/* palette: bg=#FCFBF9 fg=#1A1714 accent=#B57F8C */
/* fonts: display="Bodoni Moda" body="Jost" mono="Space Mono" */

:root {
  --bg: #FCFBF9;         /* warm white — main page background */
  --bg-alt: #F2EEE8;     /* alternating soft section background */
  --panel: #CEC5BA;      /* greige taupe flanking blocks from reference */
  --panel-deep: #BFB4A6;
  --fg: #1A1714;         /* ink */
  --fg-soft: #423C35;    /* slightly lighter fg */
  --muted: #8C8276;      /* secondary text */
  --accent: #B57F8C;     /* dusty mauve-rose accent */
  --accent-deep: #94616F;
  --border: rgba(26, 23, 20, 0.12);
  --border-soft: rgba(26, 23, 20, 0.07);
  --serif: 'Bodoni Moda', ui-serif, Georgia, 'Times New Roman', serif;
  --sans: 'Jost', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  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; }

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

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  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); }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 22px;
  display: inline-block;
}
.section--dark .eyebrow { color: var(--accent); }

.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--fg-soft);
  max-width: 44ch;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  color: inherit;
}

.h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

em { font-style: italic; color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 249, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  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"] {
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.06);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.brand__status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-top: 5px;
}
.nav {
  display: none;
  gap: 34px;
  align-items: center;
}
.nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  transition: color 0.25s var(--ease);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--fg); }

.header__cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), opacity 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: transparent; border-color: var(--fg); color: var(--fg); }
.section--dark .btn { background: var(--bg); color: var(--fg); }
.section--dark .btn:hover { background: var(--accent); color: var(--bg); }

.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.arrowlink .ar { transition: transform 0.3s var(--ease); }
.arrowlink:hover { color: var(--accent-deep); }
.arrowlink:hover .ar { transform: translateX(5px); }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  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: 74px 0 0 0;
  z-index: 95;
  background: var(--bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-14px);
  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);
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 128px);
  overflow: hidden;
}
.hero__panel {
  display: none;
}
@media (min-width: 1024px) {
  .hero__panel {
    display: block;
    position: absolute;
    top: 150px;
    width: 142px;
    height: 540px;
    background: var(--panel);
  }
  .hero__panel--left { left: max(24px, calc(50vw - 620px)); }
  .hero__panel--right { right: max(24px, calc(50vw - 620px)); background: var(--panel-deep); top: 210px; }
}
.hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero__title {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 10px 0 0;
}
.hero__figure {
  margin: clamp(40px, 6vw, 64px) auto 0;
  width: min(360px, 78%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--panel);
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 9s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}
.hero__quote {
  margin: clamp(40px, 6vw, 60px) auto 0;
  max-width: 540px;
}
.hero__quote p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--fg);
}
.hero__quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted);
}

/* ---------- Generic section head ---------- */
.sec-head {
  max-width: 760px;
  margin: 0 0 clamp(48px, 7vw, 80px);
}
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin: 24px 0 0; }

/* ---------- Manifesto / essay ---------- */
.manifesto {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.manifesto__statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.manifesto__body {
  display: grid;
  gap: 28px;
  max-width: 680px;
  margin: clamp(48px, 7vw, 72px) auto 0;
  text-align: left;
}
.manifesto__body p {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.78;
  margin: 0;
  color: var(--fg-soft);
}
.manifesto__body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.74;
  padding: 10px 14px 0 0;
  color: var(--accent);
}

/* ---------- Capabilities grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: background 0.4s var(--ease);
}
.card:hover { background: var(--bg-alt); }
.card__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: auto;
}
.card__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.card__text {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--fg-soft);
  margin: 0;
}

/* ---------- Capability with image (editorial grid) ---------- */
.worklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
}
@media (min-width: 768px) { .worklist { grid-template-columns: 1fr 1fr; } }
.work {
  display: block;
}
.work__media {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 22px;
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.work:hover .work__media img { transform: scale(1.05); }
.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.work__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
}
.work__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}
.work__text {
  margin: 12px 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--fg-soft);
}

/* ---------- Dark pull-quote band ---------- */
.pullquote {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}
.pullquote__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.6;
  color: var(--accent);
  display: block;
  height: 0.5em;
}
.pullquote p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 30px 0 0;
}
.pullquote cite {
  display: block;
  margin-top: 34px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(252, 251, 249, 0.6);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg);
  padding: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 36px);
}
.section--alt .stat { background: var(--bg-alt); }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Principles (numbered editorial list) ---------- */
.principles { display: grid; gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.principle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
@media (min-width: 768px) {
  .principle { grid-template-columns: 90px 1fr 1.3fr; gap: 40px; align-items: start; }
}
.principle__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  padding-top: 6px;
}
.principle__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.principle__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--fg-soft);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--border); padding: clamp(24px, 3vw, 34px) 0; }
.faq__q {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.faq__a { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--fg-soft); max-width: 70ch; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta h2 {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.cta p { margin: 26px auto 38px; max-width: 48ch; color: inherit; opacity: 0.86; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 2px;
  transition: border-color 0.3s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: 8px; }

.infoblock { display: grid; gap: 30px; }
.infoblock__row { }
.infoblock__k {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 8px;
}
.infoblock__v { font-size: 1.05rem; line-height: 1.6; color: var(--fg); margin: 0; }
.infoblock__v a:hover { color: var(--accent-deep); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 52px 0 18px;
  line-height: 1.1;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p { font-size: 1.02rem; line-height: 1.8; color: var(--fg-soft); margin: 0 0 18px; }
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.prose li { font-size: 1.02rem; line-height: 1.8; color: var(--fg-soft); margin-bottom: 8px; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.page-head { padding: clamp(80px, 11vw, 150px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.page-head p { margin: 26px 0 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--fg);
  color: var(--bg);
  padding: clamp(64px, 9vw, 110px) 0 48px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(252, 251, 249, 0.14);
}
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand .brand__mark { font-size: 2.4rem; color: var(--bg); }
.footer__tag { margin: 22px 0 0; max-width: 34ch; color: rgba(252, 251, 249, 0.66); font-size: 1rem; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(252, 251, 249, 0.5);
  margin: 0 0 20px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(252, 251, 249, 0.82);
  margin: 0 0 12px;
  transition: color 0.25s var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
}
.footer__bottom p { margin: 0; font-size: 12.5px; color: rgba(252, 251, 249, 0.5); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { font-size: 12.5px; color: rgba(252, 251, 249, 0.6); transition: color 0.25s var(--ease); }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Scroll 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__figure img { animation: 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, 20, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.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: 4px;
  box-shadow: 0 24px 60px -16px rgba(26, 23, 20, 0.4);
}
@media (min-width: 560px) { .cookie-popup { align-items: center; justify-content: flex-start; padding: 40px; } }
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.cookie-popup__card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.cookie-popup__card p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--fg-soft); }
.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: 13px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s 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); }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 32px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
