/* palette: bg=#FBF7EC fg=#1A1712 accent=#EDA836 */
/* fonts: display="Sora" body="Hanken Grotesk" mono="Space Mono" */

:root {
  --bg: #FBF7EC;
  --bg-alt: #F2ECDB;
  --fg: #1A1712;
  --fg-soft: #423D33;
  --muted: #8C8677;
  --accent: #EDA836;
  --accent-deep: #D9922A;
  --border: rgba(26, 23, 18, 0.14);
  --border-soft: rgba(26, 23, 18, 0.08);
  --serif: 'Sora', ui-sans-serif, system-ui, sans-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);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  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; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0 0 1.1em; }

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

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: var(--bg); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-block;
}
.eyebrow--tag {
  background: var(--accent);
  color: var(--fg);
  padding: 5px 12px;
  font-size: 11px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 236, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(26, 23, 18, 0.06);
  border-bottom-color: var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .header__inner { padding: 0 32px; } }
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.nav { display: none; align-items: center; gap: 34px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-size: 16px;
  color: var(--fg-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.btn-contact {
  background: var(--accent);
  color: var(--fg);
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-contact:hover { background: var(--accent-deep); }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 0;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  height: 2px;
  width: 100%;
  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);
  padding: 100px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { transform: none; opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:last-of-type { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
}
.hero__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.55fr 1fr; gap: 60px; } }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  letter-spacing: -0.035em;
  font-weight: 400;
  line-height: 0.98;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--muted); }
.hero__aside { font-size: clamp(17px, 1.4vw, 20px); color: var(--fg-soft); line-height: 1.6; }
.hero__aside p { max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translate(3px, -3px); }
.btn--primary { background: var(--accent); color: var(--fg); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--light { background: var(--bg); color: var(--fg); }
.btn--light:hover { background: #fff; }

/* text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.tlink:hover { gap: 13px; color: var(--accent-deep); }

/* ---------- Case row (numbered project) ---------- */
.caserow { border-top: 1px solid var(--border); margin-top: clamp(48px, 8vw, 90px); padding-top: 22px; }
.caserow__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.caserow__idx { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); }
.caserow__title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.caserow__title strong { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.02em; }
.caserow__title span { color: var(--muted); font-size: 16px; }
.caserow__next { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.skyline { margin-top: 30px; width: 100%; height: auto; color: var(--fg); opacity: 0.85; }

/* console panel */
.console {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: 0 12px 40px -18px rgba(26, 23, 18, 0.28);
}
.console__bar {
  background: var(--accent);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 9px; height: 9px; background: var(--fg); display: inline-block; }
.console__body { display: grid; grid-template-columns: 1fr; min-height: 300px; }
@media (min-width: 820px) { .console__body { grid-template-columns: 250px 1fr; } }
.console__side { border-right: 1px solid var(--border); padding: 22px 20px; }
.console__side h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 16px; }
.console__item { padding: 12px 14px; border-radius: 4px; margin-bottom: 6px; }
.console__item.is-active { background: var(--bg); border: 1px solid var(--border); box-shadow: inset 3px 0 0 var(--accent); }
.console__item strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 16px; }
.console__item span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.console__main {
  padding: 24px;
  position: relative;
  background-image: radial-gradient(circle, rgba(26,23,18,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.console__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.console__chat {
  width: 220px;
  max-width: 55%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 6px;
  padding: 14px;
}
.console__chat span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.console__chat .line { height: 30px; background: var(--bg-alt); border-radius: 4px; margin: 10px 0; }
.console__chat .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fg); }

/* ---------- Section head ---------- */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 7vw, 80px); }
.sec-head--left { text-align: left; margin-left: 0; }
.sec-head h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.025em;
  font-weight: 400;
  line-height: 1.02;
  margin: 18px 0 22px;
}
.sec-head h2 em { font-style: normal; color: var(--muted); }
.sec-head p { color: var(--fg-soft); font-size: clamp(17px, 1.4vw, 19px); max-width: 52ch; margin-inline: auto; }
.sec-head--left p { margin-inline: 0; }

/* ---------- Expertise / services list ---------- */
.exlist { border-top: 1px solid var(--border); }
.exitem {
  display: grid;
  gap: 12px;
  padding: 34px 4px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
@media (min-width: 820px) { .exitem { grid-template-columns: 60px 1fr 2fr auto; align-items: start; gap: 30px; } }
.exitem:hover { background: var(--bg-alt); }
.exitem__num { font-family: var(--mono); font-size: 13px; color: var(--accent-deep); }
.exitem__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.exitem__desc { color: var(--fg-soft); font-size: 17px; line-height: 1.65; }
.exitem__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Work grid ---------- */
.workgrid { display: grid; gap: 26px; }
@media (min-width: 700px) { .workgrid { grid-template-columns: repeat(2, 1fr); } }
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 4px 24px -4px rgba(26, 23, 18, 0.08);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px -8px rgba(26, 23, 18, 0.16); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 26px 26px 30px; }
.card__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); }
.card__body h3 { font-size: 1.55rem; font-weight: 500; margin: 12px 0 10px; letter-spacing: -0.02em; }
.card__body p { color: var(--fg-soft); font-size: 16px; margin-bottom: 18px; }

/* ---------- Stats bar chart ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: end;
  margin-top: 20px;
}
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 30px; } }
.stat__num { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
.stat__bar {
  margin-top: 12px;
  background: var(--accent);
  background-image: repeating-linear-gradient(-45deg, rgba(26,23,18,0.10) 0 2px, transparent 2px 9px);
  border: 1px solid var(--accent-deep);
  width: 100%;
}
.stat__label { margin-top: 12px; font-size: 15px; color: var(--fg-soft); }

/* ---------- Manifesto (dark) ---------- */
.manifesto { text-align: center; }
.manifesto .mark { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: 0.6; color: var(--accent); display: block; }
.manifesto blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 15ch;
  margin: 24px auto 30px;
}
.manifesto blockquote em { font-style: normal; color: var(--accent); }
.manifesto cite { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,247,236,0.6); font-style: normal; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 40px 26px 4px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: -0.01em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 24px;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent-deep);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-soft); font-size: 17px; padding: 0 40px 26px 4px; margin: 0; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 70px; } }
.info-block { margin-bottom: 30px; }
.info-block h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.info-block p { font-size: 18px; color: var(--fg); margin: 0; line-height: 1.6; }
.info-block a:hover { color: var(--accent-deep); }

form.lead { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 17px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg);
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.02; max-width: 18ch; margin: 0 auto 28px; }
.cta-band h2 em { font-style: normal; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: var(--bg); padding: clamp(70px, 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-weight: 700; font-size: 30px; letter-spacing: -0.04em; }
.footer__tag { color: rgba(251,247,236,0.62); margin-top: 14px; max-width: 32ch; font-size: 16px; }
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,247,236,0.5); font-weight: 400; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: rgba(251,247,236,0.82); font-size: 16px; margin: 0 0 10px; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(50px, 8vw, 80px);
  padding-top: 26px;
  border-top: 1px solid rgba(251,247,236,0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(251,247,236,0.55);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 130px 0 100px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; letter-spacing: -0.03em; margin-bottom: 14px; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; margin: 44px 0 14px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--fg-soft); font-size: 17px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 82vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 400; letter-spacing: -0.03em; margin-bottom: 20px; }
.thanks h1 em { font-style: normal; color: var(--accent); }
.thanks p { color: var(--fg-soft); font-size: 19px; margin-bottom: 32px; }

/* ---------- 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; }
  html { scroll-behavior: auto; }
}

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; padding: 24px; background: rgba(26,23,18,0.4); 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: 6px; border: 1px solid var(--border); box-shadow: 0 20px 60px -20px rgba(26,23,18,0.4); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px; }
.cookie-popup__card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 10px; }
.cookie-popup__card p { font-size: 15px; color: var(--fg-soft); line-height: 1.6; margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; font-weight: 600; border-radius: 4px; transition: background 0.2s var(--ease); }
.cookie-popup__actions button:first-child:hover { background: var(--bg-alt); }
.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-deep); border-color: var(--accent-deep); color: var(--fg); }
