/* palette: bg=#1a1a1a fg=#f4f3ee accent=#efc81f */
/* fonts: display="Playfair Display" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #1a1a1a;          /* dominant near-black background */
  --bg-alt: #f2f1ec;      /* light alternating section */
  --bg-deep: #131313;     /* deepest band */
  --fg: #f4f3ee;          /* primary text on dark */
  --fg-soft: #cfcdc6;     /* slightly softer fg */
  --muted: #8d8b84;       /* secondary text */
  --ink: #1b1b1b;         /* text on light sections */
  --ink-soft: #4a4844;    /* softer ink */
  --accent: #efc81f;      /* gold accent from logo + CTA */
  --accent-deep: #d4ac08; /* darker gold for hover */
  --border: rgba(255, 255, 255, 0.12);
  --border-ink: rgba(0, 0, 0, 0.13);
  --serif: 'Playfair Display', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex 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: 17px;
  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 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  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--light { background: var(--bg-alt); color: var(--ink); }
.section--deep { background: var(--bg-deep); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  display: block;
}
.section--light .eyebrow { color: var(--ink-soft); }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 60ch;
}
.section--light .lead { color: var(--ink-soft); }

/* ---------- 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: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  border: 1px solid var(--border);
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { color: var(--fg); border-color: rgba(255,255,255,0.28); }
.btn--ghost:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.btn--solid { background: var(--accent); color: #1b1b1b; border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.section--light .btn--ghost { color: var(--ink); border-color: rgba(0,0,0,0.22); }
.section--light .btn--ghost:hover { background: var(--ink); color: var(--bg-alt); border-color: var(--ink); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
  transition: gap 0.4s var(--ease);
}
.arrow-link:hover { gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--border), 0 8px 30px -12px rgba(0,0,0,0.6);
  background: rgba(20, 20, 20, 0.92);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand em { color: var(--accent); font-style: italic; }
.nav { display: none; gap: 36px; }
.nav a {
  font-size: 15px;
  color: var(--fg-soft);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
}
.header__cta { display: none; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: flex-end;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.4s 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); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 78px 0 0 0;
  z-index: 99;
  background: var(--bg-deep);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s 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: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 16ch;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero__sub {
  margin-top: 40px;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--fg-soft);
  line-height: 1.7;
}
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__meta {
  margin-top: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 34px;
}
.hero__meta div span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero__meta div strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

/* Awwwards-style side tab */
.side-tab {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 90;
  background: var(--fg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 8px;
  writing-mode: vertical-rl;
  text-align: center;
  display: none;
}
.side-tab strong { font-weight: 700; }
@media (min-width: 1024px) { .side-tab { display: block; } }

/* ---------- Section heading block ---------- */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.sec-head .lead { margin-top: 20px; }
@media (min-width: 900px) {
  .sec-head--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .sec-head--split .lead { margin-top: 0; max-width: 38ch; }
}

/* ---------- Work / projects ---------- */
.work-list { display: flex; flex-direction: column; }
.work-item {
  display: grid;
  gap: 24px;
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--border-ink);
  align-items: center;
}
.work-item:last-child { border-bottom: 1px solid var(--border-ink); }
.work-item__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #ddd;
}
.work-item__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.work-item:hover .work-item__media img { transform: scale(1.05); }
.work-item__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.work-item__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.work-item__tags {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.work-item__desc { color: var(--ink-soft); max-width: 46ch; margin-bottom: 22px; }
@media (min-width: 900px) {
  .work-item { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .work-item:nth-child(even) .work-item__media { order: 2; }
}

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  padding: clamp(32px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.section--light .grid { background: var(--border-ink); border-color: var(--border-ink); }
.section--light .card { background: var(--bg-alt); }
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 28px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.12;
  margin-bottom: 14px;
}
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.section--light .card p { color: var(--ink-soft); }
.card__tags {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Manifesto / quote ---------- */
.manifesto { text-align: center; }
.manifesto__quote {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
}
.manifesto__quote 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;
  margin-bottom: 24px;
}
.manifesto__cite {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--bg); padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px); }
.step__num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 22px;
}
.step h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stat span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- Principles / list ---------- */
.principles { display: grid; gap: 0; }
.principle {
  display: grid;
  gap: 12px;
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border);
}
.principle:last-child { border-bottom: 1px solid var(--border); }
.principle__k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.principle h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; }
.principle p { color: var(--fg-soft); max-width: 60ch; }
@media (min-width: 900px) {
  .principle { grid-template-columns: 120px 1fr 1.2fr; gap: 40px; align-items: baseline; }
}

/* ---------- Team (text-only, no faces) ---------- */
.team-grid { display: grid; gap: 1px; background: var(--border-ink); border: 1px solid var(--border-ink); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member { background: var(--bg-alt); padding: clamp(28px, 3.5vw, 40px); }
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #1b1b1b;
  margin-bottom: 28px;
}
.member h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 4px; }
.member__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.member p { color: var(--ink-soft); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 auto 28px;
}
.cta-band h2 em { color: var(--accent); font-style: italic; }
.cta-band .lead { margin: 0 auto 40px; text-align: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

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

.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; 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 {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  padding: 12px 0;
  transition: border-color 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #6c6a64; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { background: var(--bg); color: var(--fg); }
.form .btn { justify-self: start; margin-top: 8px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--accent); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h1 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 16px; }
.prose .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 48px; display: block; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 14px; letter-spacing: -0.01em; }
.prose p { color: var(--fg-soft); margin-bottom: 18px; }
.prose ul { color: var(--fg-soft); padding-left: 20px; margin-bottom: 18px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--accent); }

/* ---------- Thanks ---------- */
.thanks { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks h1 { font-family: var(--serif); font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 24px; }
.thanks h1 em { color: var(--accent); font-style: italic; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top {
  display: grid;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-size: 2.4rem; letter-spacing: -0.01em; }
.footer__brand em { color: var(--accent); font-style: italic; }
.footer__tagline { color: var(--muted); margin-top: 16px; max-width: 34ch; font-size: 15px; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer__col a { display: block; color: var(--fg-soft); padding: 7px 0; font-size: 15px; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 32px;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.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.4);
  -webkit-backdrop-filter: blur(4px);
  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);
  border: 1px solid var(--border);
  padding: 32px 36px;
  max-width: 480px;
  border-radius: 6px;
}
.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; }
.cookie-popup__card p { font-size: 14px; color: var(--fg-soft); line-height: 1.65; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 11px 26px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cookie-popup__actions button:first-child:hover { background: rgba(255,255,255,0.06); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #1b1b1b; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--fg-soft);
}
.section--light .tag { border-color: var(--border-ink); color: var(--ink-soft); }
