/* palette: bg=#FBF9F3 fg=#15171A accent=#119E72 */
/* fonts: display="Newsreader" body="Inter" mono="Space Mono" */

:root {
  --bg: #FBF9F3;        /* warm off-white background from reference */
  --bg-alt: #FFFFFF;    /* bento cell / alternating background */
  --bg-warm: #F3F0E7;   /* subtle warm fill */
  --fg: #15171A;        /* near-black primary text */
  --fg-soft: #33373B;   /* slightly lighter foreground */
  --muted: #6E726F;     /* secondary text */
  --accent: #119E72;    /* emerald accent from reference */
  --accent-deep: #0C7A58; /* darker accent for hover */
  --deep: #0E4C3A;      /* deep emerald band */
  --deep-2: #0A3A2C;    /* darkest emerald */
  --border: rgba(21, 23, 26, 0.12);
  --border-soft: rgba(21, 23, 26, 0.07);

  --serif: 'Newsreader', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1280px;
  --pad: clamp(20px, 5vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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-weight: 400; margin: 0; }
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--plain { color: var(--muted); }
.eyebrow--plain::before { background: var(--border); }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 56ch;
}

/* ---------- 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; }
  *, *::before, *::after { animation-duration: 0.001ms !important; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 243, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  border-color: var(--border-soft);
  box-shadow: 0 6px 30px -16px rgba(21, 23, 26, 0.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}
.brand__mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0;
}
.brand b { font-weight: 500; }
.brand i { font-style: italic; color: var(--fg-soft); font-weight: 400; }

.nav { display: none; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after { width: 100%; }

.header__cta {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.header__cta:hover { background: var(--fg); color: var(--bg); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-right: -10px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 0 auto;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.mobile-menu a span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.mobile-menu__foot {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
}
.cell {
  padding: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  position: relative;
  min-width: 0;
}
.cell__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cell__label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Hero cell */
.hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.1rem, 9vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  max-width: 16ch;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__title .dotcol { color: var(--accent); }
.hero__intro {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.6;
  max-width: 52ch;
  color: var(--fg-soft);
}
.hero__intro b { font-weight: 600; color: var(--fg); }
.hero__intro .muted { color: var(--muted); }
.hero__meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__meta .k { color: var(--fg-soft); }
.hero__meta .v { color: var(--accent); }
.hero__meta .marker { color: var(--accent); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-grid .visual {
  background: linear-gradient(150deg, var(--deep) 0%, var(--deep-2) 100%);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.hero-grid .visual img {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: luminosity;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}
.hero-grid .visual__tag {
  position: absolute;
  left: 24px; bottom: 22px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.hero-grid .visual__big {
  position: absolute;
  left: 24px; top: 24px;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  line-height: 1.05;
}
.hero-grid .visual__big b { font-weight: 500; }
.hero-grid .visual__big span { display: block; color: rgba(255,255,255,0.7); font-size: 0.55em; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 10px; }

/* ---------- Stat / mini cards inside bento ---------- */
.statline { display: flex; align-items: baseline; gap: 14px; }
.statline__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}
.statline__num em { font-style: italic; color: var(--accent); }
.statline__txt { font-size: 0.92rem; color: var(--muted); max-width: 22ch; }

.minilist { list-style: none; margin: 0; padding: 0; }
.minilist li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.96rem;
}
.minilist li:last-child { border-bottom: 0; }
.minilist li span { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.03em; }

.workcard__img {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
  background: var(--bg-warm);
}
.workcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.workcard:hover .workcard__img img { transform: scale(1.05); }
.workcard__title { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.workcard__desc { font-size: 0.95rem; color: var(--muted); }
.workcard__meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 14px; }

/* arrow link */
.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.arrowlink .arr { transition: transform 0.3s var(--ease); color: var(--accent); }
.arrowlink:hover { color: var(--accent); gap: 14px; }
.arrowlink:hover .arr { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); transform: translateY(-2px); }
.btn--light { background: var(--bg); color: var(--fg); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Section heads ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.sec-head h2 em { font-style: italic; color: var(--accent); }
.sec-head p { margin-top: 22px; }
.sec-head--split { display: grid; gap: 24px; max-width: none; }
@media (min-width: 880px) {
  .sec-head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 48px; }
  .sec-head--split p { margin-top: 0; }
}

/* ---------- Services list ---------- */
.svc-list { border-top: 1px solid var(--border); }
.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(32px, 5vw, 52px) 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease);
}
.svc-row:hover { padding-left: 14px; }
.svc-row__no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.svc-row__title { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.08; }
.svc-row__title em { font-style: italic; color: var(--accent); }
.svc-row__desc { color: var(--muted); font-size: 1rem; max-width: 48ch; }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svc-row__tags span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--fg-soft);
}
@media (min-width: 880px) {
  .svc-row { grid-template-columns: 60px 1.1fr 1.2fr; align-items: start; gap: 32px; }
  .svc-row__no { padding-top: 10px; }
}

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 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: 6px;
  padding: clamp(26px, 3vw, 36px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  box-shadow: 0 4px 24px -4px rgba(21,23,26,0.06);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px -8px rgba(21,23,26,0.14); border-color: var(--border); }
.card__no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 22px; }
.card__title { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.card__desc { color: var(--muted); font-size: 0.98rem; }

/* ---------- Manifesto (dark band) ---------- */
.manifesto {
  background: var(--deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(17,158,114,0.4), transparent 55%);
  pointer-events: none;
}
.manifesto .container { position: relative; z-index: 1; }
.manifesto .eyebrow { color: rgba(255,255,255,0.55); }
.manifesto .eyebrow::before { background: rgba(255,255,255,0.4); }
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
  text-align: center;
}
.manifesto__quote em { font-style: italic; color: #5fd6ac; }
.manifesto__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.5;
  color: rgba(95,214,172,0.4);
  text-align: center;
  display: block;
  margin-bottom: 10px;
}
.manifesto__by {
  margin-top: 42px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: clamp(30px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--border);
}
.step__no {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.step__title { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.01em; }
.step__desc { color: var(--muted); font-size: 0.98rem; max-width: 50ch; }
@media (min-width: 880px) {
  .step { grid-template-columns: 120px 1fr 1.3fr; gap: 36px; align-items: start; }
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px); }
.stat__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__num em { font-style: italic; color: var(--accent); }
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: clamp(22px, 3vw, 30px) 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.faq__q .ico {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
}
.faq__q .ico::before, .faq__q .ico::after {
  content: ""; position: absolute; background: var(--accent);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq__q .ico::before { width: 14px; height: 1.5px; }
.faq__q .ico::after { width: 1.5px; height: 14px; transition: transform 0.35s var(--ease); }
.faq__item[data-open="true"] .ico::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq__a-inner { padding: 0 0 28px; color: var(--fg-soft); max-width: 64ch; }
.faq__item[data-open="true"] .faq__a { max-height: 420px; }

/* ---------- CTA ---------- */
.cta {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  padding: clamp(40px, 7vw, 88px);
  text-align: center;
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 18ch;
  margin: 0 auto 26px;
}
.cta h2 em { font-style: italic; color: var(--accent); }
.cta p { max-width: 48ch; margin: 0 auto 36px; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.contact-info dl { margin: 0; }
.contact-info .row { padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-info dd { margin: 0; font-size: 1.05rem; color: var(--fg); }
.contact-info dd a:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-alt);
  color: var(--fg);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17,158,114,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.form__consent input { margin-top: 4px; accent-color: var(--accent); }
.form__consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Logos / trust row ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.trust span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(70px, 11vw, 150px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lead { margin-top: 30px; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; margin: 48px 0 16px; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; margin: 30px 0 10px; }
.prose p { margin-bottom: 18px; color: var(--fg-soft); }
.prose ul { margin: 0 0 18px; padding-left: 20px; color: var(--fg-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--fg); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: var(--deep-2);
  color: rgba(255,255,255,0.72);
  padding: clamp(60px, 9vw, 104px) 0 36px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer__brand {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 16ch;
}
.footer__brand em { font-style: italic; color: #5fd6ac; }
.footer__tag { margin-top: 18px; font-size: 0.95rem; max-width: 36ch; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,0.78); margin-bottom: 11px; font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: #5fd6ac; }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 30px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}
@media (min-width: 700px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: #5fd6ac; }

/* ---------- Cookie popup ---------- */
.cookie-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end; padding: 24px;
  background: rgba(10,20,16,0.42);
  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: 8px; border: 1px solid var(--border);
  box-shadow: 0 20px 60px -16px rgba(0,0,0,0.4);
  margin: 0 auto;
}
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cookie-popup__card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--fg-soft); line-height: 1.65; }
.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: 999px; flex: 1; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase; transition: all 0.25s var(--ease);
}
.cookie-popup__actions button:hover { border-color: var(--fg); }
.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); }

/* ---------- Desktop bento layouts ---------- */
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
  .hero-grid .visual { min-height: 100%; }
}
@media (min-width: 760px) {
  .bento--home {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
  .bento--home .cell--work { grid-column: span 1; grid-row: span 2; }
  .bento--home .cell--feature { grid-column: span 2; }
}
.cell:last-child { border-right: 0; }
@media (min-width: 760px) {
  .bento--home .cell { border-right: 1px solid var(--border-soft); }
}

/* utility */
.center { text-align: center; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 32px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

@media (min-width: 880px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
}
