@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/public/fonts/BricolageGrotesque/bricolage-grotesque-latin-variable.woff2")
    format("woff2");
}

@font-face {
  font-family: "Noto Sans Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/public/fonts/NotoSansMono/noto-sans-mono-latin-variable.woff2")
    format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/public/fonts/Montserrat/montserrat-v15-latin-600.woff2")
    format("woff2");
}

:root {
  --bg: #faf7f2;
  --ink: #3a3535;
  --orange: #ffa878;
  --blue: #7fb4e0;
  --yellow: #ffe480;
  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);

  --section-gap: 3.5rem;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Noto Sans Mono", "SF Mono", monospace;
  --font-brand: "Montserrat", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  position: relative;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  letter-spacing: -0.04em;
  max-width: 28ch;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2rem), 1080px);
  margin: 0 auto;
  position: relative;
}

/* ── Header ── */

.site-header {
  border-bottom: var(--border);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  color: var(--ink);
}

/* ── Navigation ── */

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms;
}

.site-nav a:hover {
  border-bottom-color: var(--ink);
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* ── Hero ── */

.hero {
  padding: 0 0 3rem;
  border-bottom: var(--border);
}

.accent-bar {
  height: 8px;
  background: var(--orange);
  margin-bottom: 2.5rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  max-width: 20ch;
}

.highlight {
  background: var(--yellow);
  padding: 0 0.12em;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero .intro {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* ── Hero visual ── */

.hero-visual {
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.abstract {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Services — pastel-filled cards with depth ── */

.services {
  padding: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-box {
  border: var(--border);
  padding: 1.5rem;
  position: relative;
}

.service-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.service-box:nth-child(1)::before {
  background: var(--orange);
}

.service-box:nth-child(2)::before {
  background: var(--blue);
}

.service-box:nth-child(3)::before {
  background: var(--yellow);
}

/* Geometric accent marks */

.service-box::after {
  content: "";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  opacity: 0.3;
}

.service-box:nth-child(1)::after {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
}

.service-box:nth-child(2)::after {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.service-box:nth-child(3)::after {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

/* ── Case Study ── */

.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.case-visual {
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 1rem;
}

.case-content p {
  opacity: 0.85;
  line-height: 1.7;
}

.case-content p + p {
  margin-top: 0.75rem;
}

.case-split + .case-split {
  margin-top: 2.5rem;
}

.case-split--reversed {
  direction: rtl;
}

.case-split--reversed > * {
  direction: ltr;
}

/* ── Process — Timeline ── */

.how-it-works {
  padding: 0;
}

.process-timeline {
  border: var(--border);
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
}

.process-step + .process-step {
  border-top: var(--border);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  border-right: var(--border);
  color: var(--ink);
}

.step-content {
  padding: 1.5rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

/* ── CTA ── */

.cta-section {
  padding-top: 2rem;
  text-align: center;
  border-top: var(--border);
}

.cta-box {
  border: var(--border);
  background: var(--yellow);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

/* ── Footer ── */

footer.cta-section {
  padding: var(--section-gap) 0;
  border-top: var(--border);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-box:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-split,
  .case-split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 60px 1fr;
  }

  .step-number {
    font-size: 1.2rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 540px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .step-number {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
