/* palette: bg=#F4EDDD fg=#2A2B31 accent=#E8704B */
/* fonts: display="Bricolage Grotesque" body="Hanken Grotesk" mono="Space Mono" */

:root {
  --bg: #F4EDDD;        /* dominant warm cream from reference */
  --bg-alt: #FBF7EC;    /* lighter cream alternating sections */
  --fg: #2A2B31;        /* dark charcoal-navy text */
  --fg-soft: #3C3D45;
  --muted: #6E6A5E;     /* secondary warm grey */
  --accent: #E8704B;    /* coral CTA from reference */
  --accent-deep: #D2562F;
  /* playful secondary palette extracted from blocks */
  --blue: #5C90AF;
  --gold: #DDB748;
  --brick: #B15F52;
  --teal: #2EA688;
  --olive: #7E7B4A;
  --lilac: #D89FD0;
  --border: rgba(42, 43, 49, 0.14);
  --serif: 'Bricolage Grotesque', ui-serif, serif;
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  margin: 0 0 20px;
}
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: var(--bg); }
.section--dark .eyebrow { color: rgba(244, 237, 221, 0.6); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  transition: padding 0.3s var(--ease);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251, 247, 236, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 10px 14px 10px 22px;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.header[data-scrolled="true"] .header__bar {
  box-shadow: 0 10px 34px -14px rgba(42, 43, 49, 0.28);
  background: rgba(251, 247, 236, 0.94);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand__dot { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); flex: none; }
.brand__dot--g { background: var(--teal); }
.nav { display: none; gap: 4px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-size: 14px; padding: 9px 16px; border-radius: 9999px; color: var(--fg-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(42, 43, 49, 0.07); color: var(--fg); }
.header__cta { display: none; }
@media (min-width: 560px) { .header__cta { display: inline-flex; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 12px 22px;
  border-radius: 9999px; background: var(--accent); color: #fff;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(210, 86, 47, 0.6); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { background: rgba(42,43,49,0.05); color: var(--fg); box-shadow: none; }
.btn--light { background: var(--bg); color: var(--fg); }
.btn--light:hover { background: #fff; color: var(--fg); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 15px;
  border-bottom: 1px solid var(--border); padding-bottom: 3px;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.arrow-link:hover { gap: 12px; border-color: var(--accent); }
.arrow-link span { color: var(--accent); }

/* ---------- MOBILE MENU ---------- */
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 11px; border-radius: 9999px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 2px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 40px;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 500; letter-spacing: -0.02em; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { align-self: flex-start; margin-top: 18px; font-size: 16px; }

/* ---------- HERO ---------- */
.hero { text-align: center; padding: clamp(56px, 9vw, 110px) 0 0; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem); font-weight: 400; letter-spacing: -0.035em; line-height: 0.98;
  max-width: 16ch; margin: 0 auto 28px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 56ch; margin: 0 auto 34px; line-height: 1.6; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 90px); }
.hero__media {
  position: relative; overflow: hidden; border-radius: 22px;
  aspect-ratio: 16 / 8; background: var(--fg);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 8s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- BLOCKS (anti-design signature) ---------- */
.blocks { padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 11vw, 150px); }
.blocks__head { max-width: 640px; margin: 0 auto 18px; text-align: center; }
.blocks__head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.blocks__stage {
  position: relative; margin-top: 56px; min-height: 520px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.block {
  position: relative; min-height: 230px; padding: 30px 26px; color: #fff;
  display: flex; align-items: flex-start;
}
.block h3 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 500; line-height: 1.05; }
.block p { font-size: 14px; line-height: 1.55; margin: 10px 0 0; opacity: 0.92; max-width: 32ch; }
.block__inner { position: relative; z-index: 2; }
.block--blue { background: var(--blue); }
.block--gold { background: var(--gold); border-radius: 50%; }
.block--brick { background: var(--brick); border-radius: 0 0 240px 240px; }
.block--teal { background: var(--teal); border-radius: 0 240px 240px 0; }
.deco { position: absolute; z-index: 3; }
.deco--circle { width: 70px; height: 70px; border-radius: 50%; background: var(--olive); top: -34px; left: 30%; }
.deco--x { width: 70px; height: 70px; top: -30px; right: 22%; color: var(--lilac); }
.deco--arch { width: 70px; height: 80px; background: var(--accent); border-radius: 80px 80px 0 0; bottom: -6px; left: 2%; }
.deco--diamond { width: 56px; height: 56px; background: var(--blue); transform: rotate(45deg); bottom: -22px; left: 54%; }
.deco--square { width: 58px; height: 58px; background: var(--gold); bottom: 2px; right: 3%; display: grid; place-items: center; }
.deco--square::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
@media (max-width: 720px) {
  .blocks__stage { grid-template-columns: 1fr; min-height: 0; gap: 14px; }
  .block { border-radius: 18px !important; min-height: 180px; }
  .deco { display: none; }
}

/* ---------- STATEMENT / MANIFESTO ---------- */
.statement { text-align: center; }
.statement__quote {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.16; max-width: 17ch; margin: 0 auto;
}
.statement__quote em { font-style: normal; color: var(--accent); }
.statement__mark { font-family: var(--serif); font-size: clamp(5rem, 12vw, 9rem); line-height: 0.4; color: var(--accent); display: block; height: 0.5em; }
.section--dark .statement__quote em { color: var(--gold); }

/* ---------- SERVICES / CARDS ---------- */
.head-row { display: grid; gap: 18px; margin-bottom: 52px; }
@media (min-width: 768px) { .head-row { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.head-row h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
.head-row p { color: var(--muted); font-size: 17px; max-width: 42ch; }

.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; padding: 30px 28px;
  box-shadow: 0 4px 24px -4px rgba(42,43,49,0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px -10px rgba(42,43,49,0.16); border-color: rgba(42,43,49,0.22); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.5rem; font-weight: 600; margin: 14px 0 12px; line-height: 1.1; }
.card p { font-size: 15.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.card__tag { display: inline-block; width: 38px; height: 38px; border-radius: 11px; margin-bottom: 4px; }

/* ---------- WORK / CASES ---------- */
.work { display: grid; gap: 26px; }
@media (min-width: 820px) { .work { grid-template-columns: 1fr 1fr; } }
.case { display: block; }
.case__media { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--fg); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.case:hover .case__media img { transform: scale(1.05); }
.case__meta { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 4px 0; gap: 14px; }
.case h3 { font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.case__cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.case p { color: var(--muted); font-size: 15.5px; margin: 8px 4px 0; max-width: 50ch; }

/* ---------- STATS ---------- */
.stats { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__n { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.section--dark .stat__n { color: var(--gold); }
.stat__l { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.section--dark .stat__l { color: rgba(244,237,221,0.72); }

/* ---------- STEPS ---------- */
.steps { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.step { background: var(--bg-alt); padding: 30px 28px; display: grid; gap: 8px; }
.section--alt .step { background: var(--bg); }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { font-size: 1.3rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); padding: 8px 0; }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; }
.faq__q .sign { font-family: var(--sans); color: var(--accent); font-size: 1.6rem; transition: transform 0.3s var(--ease); flex: none; }
.faq__item[data-open="true"] .sign { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 22px; max-width: 64ch; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.4rem, 6.5vw, 5.2rem); font-weight: 400; max-width: 16ch; margin: 0 auto 26px; }
.cta-band h2 em { font-style: normal; color: var(--gold); }
.cta-band p { color: rgba(244,237,221,0.78); max-width: 48ch; margin: 0 auto 34px; font-size: 17px; }

/* ---------- CONTACT FORM ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 70px; } }
.contact-info h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 22px; }
.contact-info p { color: var(--muted); font-size: 16.5px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.contact-list dd { margin: 0; font-size: 17px; }
.form { display: grid; gap: 18px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px; padding: clamp(26px, 4vw, 40px); }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg); color: var(--fg); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,112,75,0.16); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-content: center; margin-top: 6px; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------- FOOTER ---------- */
.footer { background: var(--fg); color: var(--bg); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top { display: grid; gap: 44px; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.footer__brand .brand__dot { width: 14px; height: 14px; }
.footer p { color: rgba(244,237,221,0.66); font-size: 15.5px; max-width: 40ch; margin: 18px 0 0; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,237,221,0.55); margin: 0 0 18px; font-weight: 400; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: rgba(244,237,221,0.82); font-size: 15.5px; transition: color 0.2s var(--ease); }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: clamp(48px, 7vw, 80px); padding-top: 26px; border-top: 1px solid rgba(244,237,221,0.16); }
.footer__bottom p { margin: 0; font-size: 13px; color: rgba(244,237,221,0.5); }
.footer__bottom nav { display: flex; gap: 20px; }
.footer__bottom nav a { font-size: 13px; color: rgba(244,237,221,0.5); }
.footer__bottom nav a:hover { color: var(--accent); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
}

/* ---------- LEGAL ---------- */
.legal { padding: clamp(120px, 16vw, 180px) 0 clamp(70px, 10vw, 120px); }
.legal__wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; margin-bottom: 14px; }
.legal__date { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 44px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 14px; }
.legal h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.78; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- THANKS ---------- */
.thanks { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.thanks h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 400; margin-bottom: 22px; }
.thanks h1 em { font-style: normal; color: var(--accent); }
.thanks p { color: var(--muted); font-size: 18px; max-width: 48ch; margin: 0 auto 34px; }

/* ---------- COOKIE POPUP ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; padding: 24px; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg); padding: 32px 36px; max-width: 480px; border-radius: 14px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5); }
.cookie-popup__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 14px; color: var(--muted); line-height: 1.62; margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; border-radius: 9999px; transition: background 0.2s var(--ease); }
.cookie-popup__actions button:first-child:hover { background: rgba(42,43,49,0.05); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); }
