/* palette: bg=#161d2e fg=#ece8de accent=#c9a05c */
/* fonts: display="Playfair Display" body="EB Garamond" mono="JetBrains Mono" */

:root {
  --bg: #161d2e;        /* deep night navy from reference sky */
  --bg-alt: #1d2740;    /* lighter alternating band */
  --bg-deep: #10162492; /* darkest overlay base */
  --fg: #ece8de;        /* warm pale cream text */
  --fg-soft: #cfd3dd;   /* slightly softer foreground */
  --muted: #8b93a6;     /* secondary bluish-grey text */
  --accent: #c9a05c;    /* warm gold — window glow / monogram */
  --accent-deep: #a8823f;  /* darker gold for hover */
  --teal: #6bb3a2;      /* secondary mint accent from side tab */
  --border: rgba(236, 232, 222, 0.16);
  --border-strong: rgba(236, 232, 222, 0.32);
  --serif: 'Playfair Display', ui-serif, Georgia, serif;
  --sans: 'EB Garamond', ui-serif, Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 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-size: 18px;
  line-height: 1.76;
  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: 400; margin: 0; }
p { margin: 0 0 1.1em; }

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

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 29, 46, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.6);
  border-bottom-color: var(--border);
  background: rgba(18, 23, 38, 0.92);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand span { color: var(--accent); font-style: normal; }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 38px; align-items: center; }
}
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-soft);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s 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(--accent); }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 30px; padding: 6px 0; z-index: 120;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--fg); transition: transform .35s var(--ease), opacity .25s;
}
.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: 0; z-index: 110;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif); font-style: italic; font-size: 34px;
  color: var(--fg); padding: 10px 0;
}
.mobile-menu a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 9s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(22,29,46,0.25), rgba(16,22,36,0.78) 70%),
    linear-gradient(180deg, rgba(16,22,36,0.55) 0%, rgba(16,22,36,0.35) 45%, rgba(16,22,36,0.92) 100%);
}
.hero__monogram {
  font-family: var(--serif); font-style: italic; font-size: 46px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(201,160,92,0.35);
}
.hero__seasons {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 26px;
}
.hero h1 {
  font-style: italic;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 14ch;
  margin: 0 auto 26px;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero__sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  color: var(--fg-soft); margin-bottom: 30px; letter-spacing: -0.01em;
}
.hero__stanza {
  font-style: italic; color: var(--muted);
  max-width: 46ch; margin: 0 auto 44px; line-height: 1.7;
  font-size: 1.05rem;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 15px 30px;
  border: 1px solid var(--border-strong);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn--solid { background: var(--accent); color: #161d2e; border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.link-arrow {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow:hover { gap: 14px; color: var(--accent-deep); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: #161d2e; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.04; letter-spacing: -0.02em; font-style: italic;
}
.section-head p { color: var(--muted); margin-top: 22px; font-size: 1.12rem; }
.section--dark .section-head p { color: #45506b; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  padding: 46px 40px;
  transition: background .4s var(--ease);
}
.section--alt .card { background: var(--bg-alt); }
.card:hover { background: #222c46; }
.card__num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 28px;
}
.card h3 { font-size: 1.7rem; font-style: italic; margin-bottom: 16px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 1.02rem; margin-bottom: 22px; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card ul li {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-soft); padding: 8px 0; border-top: 1px solid var(--border);
}

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .quote-mark {
  font-family: var(--serif); font-style: italic; font-size: 7rem; line-height: 0.5;
  color: var(--accent); display: block; margin-bottom: 10px;
}
.manifesto p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2; max-width: 900px; margin: 0 auto 1.2rem;
  letter-spacing: -0.02em;
}
.manifesto cite {
  font-family: var(--mono); font-style: normal; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #45506b;
}

/* ---------- Work / case studies ---------- */
.work-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { overflow: hidden; }
.work-card__media { overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease); filter: saturate(0.85) brightness(0.88);
}
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 20px 0 8px;
}
.work-card h3 { font-size: 1.85rem; font-style: italic; margin-bottom: 10px; letter-spacing: -0.01em; }
.work-card p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 48px 32px; text-align: center; }
.section--alt .stat { background: var(--bg-alt); }
.stat__num { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--accent); line-height: 1; }
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { background: var(--bg); padding: 44px 40px; }
.section--alt .step { background: var(--bg-alt); }
.step__num { font-family: var(--serif); font-style: italic; font-size: 3rem; color: var(--border-strong); line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 1.5rem; font-style: italic; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Principles / team replacement ---------- */
.principle-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 800px) { .principle-list { grid-template-columns: 1fr 1fr; } }
.principle {
  background: var(--bg); padding: 40px;
  display: flex; gap: 26px; align-items: flex-start;
}
.section--alt .principle { background: var(--bg-alt); }
.avatar--mono {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: #161d2e;
}
.principle h3 { font-size: 1.35rem; font-style: italic; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--border); padding: 30px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item h3 { font-size: 1.4rem; font-style: italic; margin-bottom: 12px; letter-spacing: -0.01em; }
.faq__item p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- CTA / Form ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-style: italic; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 24px; }
.cta p { color: var(--muted); max-width: 50ch; margin: 0 auto 40px; font-size: 1.1rem; }

.form { max-width: 720px; margin: 0 auto; text-align: left; display: grid; gap: 26px; }
.form-row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%; background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--border-strong);
  padding: 12px 0; font-family: var(--sans); font-size: 1.1rem;
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #5a6480; }
.field select option { background: var(--bg); color: var(--fg); }
.form .btn { justify-self: start; }
.form__note { font-size: 0.95rem; color: var(--muted); }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; gap: 60px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-info dl { margin: 0; display: grid; gap: 30px; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.contact-info dd { margin: 0; font-size: 1.15rem; color: var(--fg-soft); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-style: italic; letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h2 { font-size: 1.7rem; font-style: italic; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 1.05rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.page-top { padding-top: 140px; }

/* ---------- Footer ---------- */
.footer { background: #10162e; padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer__top { display: grid; gap: 48px; margin-bottom: 56px; }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-style: italic; font-size: 30px; margin-bottom: 18px; }
.footer__brand span { color: var(--accent); font-style: normal; }
.footer__tagline { color: var(--muted); max-width: 36ch; font-style: italic; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 400; }
.footer__col a, .footer__col p { display: block; color: var(--fg-soft); margin-bottom: 12px; font-size: 1rem; transition: color .3s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.footer__bottom a:hover { color: var(--accent); }

/* ---------- 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.5);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(--border); }
.cookie-popup__label { font-family:var(--mono);font-size:10px;letter-spacing:0.18em;text-transform:uppercase;color:var(--accent);margin-bottom:14px; }
.cookie-popup__card h3 { font-style:italic;font-size:1.5rem;margin-bottom:12px; }
.cookie-popup__card p { color:var(--muted);font-size:0.98rem;margin:0; }
.cookie-popup__actions { display:flex;gap:12px;margin-top:20px; }
.cookie-popup__actions button { padding:11px 24px;border:1px solid var(--border-strong);cursor:pointer;font-family:var(--mono);font-size:11px;letter-spacing:0.12em;text-transform:uppercase;transition:background .3s, color .3s; }
.cookie-popup__actions button:first-child:hover { border-color:var(--fg-soft); }
.cookie-popup__actions button:last-child { background:var(--accent);color:#161d2e;border-color:var(--accent); }
.cookie-popup__actions button:last-child:hover { background:var(--accent-deep); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .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__bg img { animation: none; }
}

/* ---------- Intro band ---------- */
.intro { text-align: center; }
.intro p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.4; max-width: 24ch; margin: 0 auto; color: var(--fg); }
.intro p span { color: var(--accent); }
