/* palette: bg=#E9E7E1 fg=#17171A accent=#A07840 */
/* fonts: display="Space Grotesk" body="DM Sans" mono="Space Mono" */

:root {
  --bg: #E9E7E1;          /* warm light grey background from reference */
  --bg-alt: #DFDCD4;      /* slightly deeper alternating tone */
  --ghost: #D4D0C7;       /* low-contrast ghost type behind hero */
  --fg: #17171A;          /* near-black primary text */
  --fg-soft: #2C2C30;     /* softened heading text */
  --muted: #74716A;       /* secondary text */
  --accent: #A07840;      /* bronze / amber accent (the copper object) */
  --accent-deep: #856031; /* darker accent for hover */
  --dark: #1B1B1D;        /* charcoal dark-band background */
  --dark-soft: #2A2A2C;
  --border: rgba(23, 23, 26, 0.14);
  --border-soft: rgba(23, 23, 26, 0.08);
  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
}

*, *::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; }
::selection { background: var(--accent); color: #fff; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  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;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--fg-soft);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.78;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}
em { font-style: normal; color: var(--accent); }

/* ---------- Buttons & links ---------- */
.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 30px;
  border-radius: 0;
  transition: transform .4s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: #fff; 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: var(--accent); color: #fff; transform: translateY(-2px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap .35s var(--ease), color .35s var(--ease);
}
.arrow-link .arrow { transition: transform .35s var(--ease); color: var(--accent); }
.arrow-link:hover { gap: 16px; color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(233, 231, 225, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand__mark {
  width: 26px; height: 26px;
  display: inline-flex;
  flex: 0 0 auto;
}
.brand__mark svg { width: 100%; height: 100%; }
.nav { display: none; gap: 38px; align-items: center; }
.nav__link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
  position: relative;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--fg); }
.nav__cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--border);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav__cta:hover { background: var(--fg); color: var(--bg); }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

.menu-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: flex-end;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--fg);
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.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(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .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;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg-soft);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__ghost {
  position: absolute;
  left: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(8rem, 30vw, 26rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--ghost);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 64px; }
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  color: var(--fg);
}
.hero__lead { color: var(--muted); max-width: 44ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: end;
}
.hero__media figure { margin: 0; overflow: hidden; }
.hero__media img {
  width: 100%;
  filter: grayscale(0.65) contrast(1.02);
  transition: filter .6s var(--ease), transform 8s ease-out;
  animation: heroZoom 9s ease-out forwards;
}
.hero__media figure:hover img { filter: grayscale(0); }
.hero__media figure:first-child { aspect-ratio: 3/4; }
.hero__media figure:last-child { aspect-ratio: 3/4; margin-top: 40px; }
.hero__media img { height: 100%; object-fit: cover; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__meta {
  position: absolute;
  bottom: 36px; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Section base ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #E7E4DD; }
.section--dark .h2 { color: #F2EFE8; }
.section--dark .lead, .section--dark .muted { color: #A8A49B; }
.section--dark .eyebrow { color: #9b988f; }
.section__head { max-width: 720px; margin-bottom: 64px; }
.section__head.is-wide { max-width: 920px; }
.section__split {
  display: grid;
  gap: 44px;
  align-items: end;
  margin-bottom: 64px;
}
@media (min-width: 900px) {
  .section__split { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}

/* ---------- Manifesto ---------- */
.manifesto { text-align: left; }
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0;
}
.manifesto__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.7;
  color: var(--accent);
  display: block;
  margin-bottom: -12px;
}
.manifesto__foot {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #908d84;
}

/* ---------- Services / capability cards ---------- */
.cards { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards.cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .4s var(--ease);
}
.card:hover { background: var(--bg-alt); }
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}
.card__text { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.7; }
.card__list { list-style: none; padding: 0; margin: 6px 0 0; }
.card__list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
}

/* ---------- Timeline / progression ---------- */
.timeline { display: grid; gap: 0; }
.timeline__item {
  display: grid;
  gap: 16px 40px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.timeline__item:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 900px) {
  .timeline__item { grid-template-columns: 130px 0.9fr 1.1fr; }
}
.timeline__phase {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
.timeline__text { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.timeline__text + .timeline__text { margin-top: 14px; }

/* ---------- Work / selected ---------- */
.work { display: grid; gap: 48px 32px; }
@media (min-width: 760px) { .work { grid-template-columns: 1fr 1fr; } }
.work__item:nth-child(odd) { margin-top: 0; }
@media (min-width: 760px) { .work__item:nth-child(even) { margin-top: 64px; } }
.work__media { overflow: hidden; aspect-ratio: 4/3; margin-bottom: 22px; }
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.7) contrast(1.03);
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
.work__item:hover .work__media img { transform: scale(1.05); filter: grayscale(0); }
.work__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.work__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.work__desc { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1px; background: var(--border-soft); }
@media (min-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 48px 28px; }
.section--dark .stat { background: var(--dark); }
.stat__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.stat__num em { color: var(--accent); }
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.section--dark .stat__label { color: #98958c; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 30px 50px 30px 0;
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 28px;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 50px 32px 0; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 auto 36px;
  max-width: 16ch;
}
.cta__actions { display: inline-flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.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-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: border-color .35s var(--ease);
}
.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-content: center; margin-top: 10px; }
.contact-info { display: grid; gap: 36px; align-content: start; }
.contact-block h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.contact-block p { margin: 0; color: var(--fg-soft); line-height: 1.7; }
.contact-block a:hover { color: var(--accent); }

/* ---------- Generic prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}
.prose p, .prose li { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.78; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(110px, 16vw, 180px) 0 clamp(50px, 8vw, 90px); }
.page-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.page-hero__lead { max-width: 50ch; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #C9C6BD; padding: 90px 0 40px; }
.footer__top {
  display: grid;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  color: #F2EFE8;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 16ch;
}
.footer__brand em { color: var(--accent); }
.footer__tag { color: #918e85; max-width: 36ch; font-size: 0.98rem; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #807d74;
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a { color: #C9C6BD; font-size: 0.96rem; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #807d74;
}

/* ---------- 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);
  padding: 32px 36px;
  max-width: 480px;
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4);
}
.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-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 12px;
}
.cookie-popup__card p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--muted); }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 12px 24px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s 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); }

/* ---------- 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__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.divider-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.full-img { overflow: hidden; aspect-ratio: 21/9; }
.full-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) contrast(1.04); }
