/* palette: bg=#0E0E0E fg=#E6E4DF accent=#E0531F */
/* fonts: display="Newsreader" body="Inter Tight" mono="Space Mono" */

:root {
  --bg: #0E0E0E;        /* dominant near-black background from reference */
  --bg-alt: #161513;    /* alternating section background */
  --bg-invert: #ECE7DD; /* cream inverted band (magazine contrast) */
  --fg: #E6E4DF;        /* warm off-white primary text */
  --fg-soft: #C6C3BB;   /* slightly softer fg */
  --muted: #8A877F;     /* secondary text */
  --accent: #E0531F;    /* vivid orange pulled from reference imagery */
  --accent-deep: #B83E10; /* darker accent for hover */
  --line: rgba(230, 228, 223, 0.16);
  --line-strong: rgba(230, 228, 223, 0.30);
  --border: rgba(0, 0, 0, 0.12);

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

  --maxw: 1280px;
  --pad: 32px;
}

*, *::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;
  text-rendering: optimizeLegibility;
  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; }

/* ---------- layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 640px) { :root { --pad: 20px; } }

.section { padding: clamp(80px, 12vw, 160px) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow--accent { color: var(--accent); }

.folio {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }
@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(14, 14, 14, 0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.nav__links { display: none; gap: 32px; align-items: center; }
.nav__links--left { justify-self: start; }
.nav__links--right { justify-self: end; }
.nav__brand {
  justify-self: center;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__link {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--fg); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .menu-toggle { display: none; }
}

.menu-toggle {
  justify-self: end; grid-column: 3;
  width: 40px; height: 40px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 8px;
}
.menu-toggle span { display: block; height: 1.5px; width: 22px; 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(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 ---------- */
.mobile-menu {
  position: fixed; inset: 64px 0 0 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; padding: 40px var(--pad);
  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: clamp(2rem, 9vw, 3rem);
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg-soft);
  transition: color 0.25s var(--ease);
}
.mobile-menu a:hover { color: var(--accent); }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  padding: 120px 0 64px;
}
.hero__eyebrow { margin-bottom: 40px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-align: center;
  max-width: 16ch;
  margin: 0 auto;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub {
  text-align: center; max-width: 620px; margin: 40px auto 0;
  color: var(--fg-soft); font-size: clamp(1rem, 2.2vw, 1.18rem); line-height: 1.7;
}
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: auto; padding-top: 56px; gap: 24px; flex-wrap: wrap;
}
.hero__meta .folio { max-width: 30ch; }
.hero__scroll { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- work grid ---------- */
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; }
.work-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.work-grid {
  display: grid; grid-template-columns: 1fr; gap: 56px 40px;
}
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }

.work-card { display: block; }
.work-card__label {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 0 0 14px; border-top: 1px solid var(--line); padding-top: 14px;
}
.work-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(0.1) contrast(1.02);
}
.work-card:hover .work-card__media img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.work-card__title { font-family: var(--serif); font-size: 1.5rem; margin-top: 18px; line-height: 1.25; }
.work-card__desc { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.work-card__arrow { color: var(--accent); transition: transform 0.3s var(--ease); display: inline-block; }
.work-card:hover .work-card__arrow { transform: translateX(6px); }

/* ---------- manifesto (inverted cream band) ---------- */
.manifesto {
  background: var(--bg-invert); color: #1A1814;
  padding: clamp(96px, 14vw, 180px) 0;
}
.manifesto .eyebrow { color: #8A6A2E; }
.manifesto blockquote {
  margin: 0; max-width: 900px; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.18; letter-spacing: -0.02em;
}
.manifesto blockquote em { color: var(--accent); font-style: italic; }
.manifesto__mark {
  font-family: var(--serif); font-size: clamp(5rem, 12vw, 9rem); line-height: 0.6;
  color: var(--accent); display: block; height: 0.5em; overflow: visible;
}
.manifesto cite { display: block; margin-top: 40px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #6A6258; }

/* ---------- services / editorial list ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-item {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
@media (min-width: 860px) {
  .svc-item { grid-template-columns: 80px 1fr 1.2fr; gap: 40px; align-items: start; }
}
.svc-item:hover { background: rgba(224, 83, 31, 0.04); }
.svc-item__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); padding-top: 10px; }
.svc-item__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; letter-spacing: -0.01em; }
.svc-item__title span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.svc-item__body { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.75; }
.svc-item__body ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.svc-item__body li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* ---------- spotlight (asymmetric) ---------- */
.spotlight { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .spotlight { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } .spotlight--rev .spotlight__media { order: 2; } }
.spotlight__media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__eyebrow { margin-bottom: 24px; }
.spotlight h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 24px; }
.spotlight h2 em { font-style: italic; color: var(--accent); }
.spotlight p { color: var(--fg-soft); font-size: 1.05rem; line-height: 1.78; margin-bottom: 18px; max-width: 52ch; }
.spotlight .dropcap::first-letter {
  font-family: var(--serif); float: left; font-size: 4.4rem; line-height: 0.82;
  padding: 6px 14px 0 0; color: var(--accent); font-weight: 400;
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 40px 28px; }
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.02em; line-height: 1; }
.stat__num em { color: var(--accent); font-style: normal; }
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; margin: 0 auto; }
.cta h2 em { font-style: italic; color: var(--accent); }
.cta p { color: var(--fg-soft); max-width: 540px; margin: 28px auto 40px; font-size: 1.08rem; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 32px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--fg); transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #120A06; }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- text page (legal / generic prose) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 24px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 48px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.8; }
.prose p { margin-bottom: 16px; }
.prose ul { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-lead { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.contact-info dl { margin: 0; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
.contact-info dd { margin: 6px 0 0; font-size: 1.1rem; color: var(--fg); font-family: var(--serif); }
.contact-info dd a:hover { color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.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; color: var(--fg);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px; transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #1A1916; }
.field input::placeholder, .field textarea::placeholder { color: #5E5B54; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 22px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-note a { color: var(--accent); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); padding: 28px 0; }
.faq__q { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 400; display: flex; gap: 18px; align-items: baseline; }
.faq__q .folio { color: var(--accent); }
.faq__a { color: var(--fg-soft); margin-top: 14px; max-width: 62ch; line-height: 1.78; padding-left: 38px; }
@media (max-width: 560px) { .faq__a { padding-left: 0; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.04em; }
.footer__tag { color: var(--muted); margin-top: 16px; max-width: 38ch; font-size: 0.98rem; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; color: var(--fg-soft); font-size: 0.98rem; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__bottom p, .footer__bottom a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.footer__bottom a:hover { color: var(--fg-soft); }

/* ---------- 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);opacity:0;pointer-events:none;transition:opacity .3s; }
.cookie-popup[data-open="true"] { opacity:1;pointer-events:all; }
.cookie-popup__card { background:var(--bg-alt);padding:32px 36px;max-width:480px;border-radius:4px;border:1px solid var(--line); }
.cookie-popup__label { font-family:var(--mono);font-size:10px;letter-spacing:0.16em;text-transform:uppercase;color:var(--accent);margin-bottom:14px; }
.cookie-popup__card h3 { font-family:var(--serif);font-weight:400;font-size:1.5rem;margin-bottom:10px; }
.cookie-popup__card p { color:var(--fg-soft);font-size:0.92rem;line-height:1.65; }
.cookie-popup__card p a { color:var(--accent);text-decoration:underline; }
.cookie-popup__actions { display:flex;gap:12px;margin-top:20px; }
.cookie-popup__actions button { padding:11px 24px;border:1px solid var(--line-strong);cursor:pointer;font-size:13px;font-family:var(--mono);letter-spacing:0.06em;border-radius:999px;transition:background .25s,color .25s,border-color .25s; }
.cookie-popup__actions button:first-child:hover { border-color:var(--fg-soft); }
.cookie-popup__actions button:last-child { background:var(--accent);color:#120A06;border-color:var(--accent); }
.cookie-popup__actions button:last-child:hover { background:var(--accent-deep);color:#fff;border-color:var(--accent-deep); }

/* ---------- misc ---------- */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.02em; line-height: 1.08; }
.section-head p { color: var(--fg-soft); margin-top: 22px; font-size: 1.08rem; line-height: 1.75; max-width: 56ch; }
.bg-alt { background: var(--bg-alt); }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--accent); color: #120A06; padding: 10px 16px; z-index: 9999; border-radius: 4px; }
