/* palette: bg=#FAF5EC fg=#17243F accent=#1F56C4 */
/* fonts: display="Fraunces" body="Hanken Grotesk" mono="Space Mono" */

:root {
  --bg: #FAF5EC;          /* warm ivory — dominant editorial background */
  --bg-alt: #F0E6D2;      /* deeper warm sand for alternating sections */
  --bg-tile: #EDE3CE;     /* talavera tile tint for decorative blocks */
  --fg: #17243F;          /* deep cobalt ink — primary text (not brown) */
  --fg-soft: #2C3B5C;     /* softened cobalt ink */
  --muted: #6C6553;       /* warm taupe for secondary text */
  --accent: #1F56C4;      /* cobalt blue — signature talavera accent */
  --accent-deep: #163F94; /* darker cobalt for hover */
  --terracotta: #C7502C;  /* decorative terracotta */
  --terracotta-deep: #A33E20;
  --mustard: #E0A32B;     /* decorative mustard / saffron */
  --border: rgba(23, 36, 63, 0.14);
  --border-soft: rgba(23, 36, 63, 0.08);

  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1240px;
  --pad: 20px;
  --shadow-card: 0 4px 24px -4px rgba(23, 36, 63, 0.08);
  --shadow-hover: 0 14px 44px -10px rgba(23, 36, 63, 0.18);
}

*, *::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;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01" 1;
}

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; letter-spacing: -0.02em; }
p { margin: 0; }

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

/* ------------------------------------------------------------------ */
/* Layout primitives                                                   */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }

.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--fg);
  color: var(--bg);
}
.section--dark .eyebrow { color: var(--mustard); }
.section--dark .muted { color: rgba(250, 245, 236, 0.66); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.muted { color: var(--muted); }

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 62ch;
}

/* ------------------------------------------------------------------ */
/* Buttons & links                                                     */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  font-weight: 500;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--fg);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(31, 86, 196, 0.6); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--fg); transform: translateY(-2px); }

.btn--on-dark { background: var(--bg); color: var(--fg); }
.btn--on-dark:hover { background: var(--mustard); color: var(--fg); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: gap 0.35s var(--ease), color 0.3s var(--ease);
}
.arrow-link .arw { transition: transform 0.35s var(--ease); }
.arrow-link:hover { color: var(--accent-deep); }
.arrow-link:hover .arw { transform: translateX(5px); }

/* ------------------------------------------------------------------ */
/* Decorative — papel picado + talavera motif                          */
/* ------------------------------------------------------------------ */
.papel {
  width: 100%;
  height: 26px;
  display: block;
  background-repeat: repeat-x;
  background-size: 48px 26px;
  background-position: top center;
  opacity: 0.9;
}
.papel--terracotta { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26' viewBox='0 0 48 26'%3E%3Cpath fill='%23C7502C' d='M0 0h48v8H0zM24 8a8 8 0 0 1-8 8 8 8 0 0 1-8-8h-8v2a8 8 0 0 0 8 8v-2a6 6 0 0 0 6 6 6 6 0 0 0 6-6 6 6 0 0 0 6 6 6 6 0 0 0 6-6 8 8 0 0 0 8-6v-2h-8a8 8 0 0 1-8 8 8 8 0 0 1-8-8z'/%3E%3C/svg%3E"); }

.motif {
  width: 34px;
  height: 34px;
  flex: none;
}

.divider-motif {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 var(--pad);
  margin: 0 auto;
}
.divider-motif::before,
.divider-motif::after {
  content: "";
  height: 1px;
  width: min(120px, 22vw);
  background: var(--border);
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--border-soft), 0 10px 30px -22px rgba(23, 36, 63, 0.5);
  border-bottom-color: var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.brand__mark {
  width: 30px; height: 30px;
  flex: none;
}

.nav {
  display: none;
  align-items: center;
  gap: 38px;
}
.nav a {
  font-size: 14px;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header__cta { display: none; }

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  padding: 96px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.mobile-menu a:hover { color: var(--accent); padding-left: 10px; }
.mobile-menu__foot {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 36, 63, 0.28) 0%, rgba(23, 36, 63, 0.12) 40%, rgba(23, 36, 63, 0.82) 100%),
    linear-gradient(90deg, rgba(31, 86, 196, 0.30) 0%, rgba(199, 80, 44, 0.12) 100%);
  mix-blend-mode: multiply;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 9vw, 108px);
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.92); }
.hero .eyebrow::before { background: var(--mustard); }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 300;
  max-width: 15ch;
  margin-bottom: 30px;
  text-shadow: 0 2px 40px rgba(23, 36, 63, 0.35);
}
.hero h1 em {
  font-style: italic;
  color: var(--mustard);
  font-weight: 400;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.6;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__actions .btn--primary { background: #fff; color: var(--fg); }
.hero__actions .btn--primary:hover { background: var(--mustard); }
.hero__actions .arrow-link { color: rgba(255,255,255,0.92); }
.hero__actions .arrow-link:hover { color: #fff; }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  right: var(--pad);
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  writing-mode: vertical-rl;
  display: none;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 40px;
  margin: 12px auto 0;
  background: linear-gradient(rgba(255,255,255,0.8), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(0.6)} 50%{opacity:1;transform:scaleY(1)} }

/* Page hero (inner pages — no photo, editorial) */
.page-hero {
  padding: clamp(120px, 16vw, 200px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 300;
  max-width: 16ch;
  margin-bottom: 26px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.page-hero .lede { margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* Manifesto / essay                                                   */
/* ------------------------------------------------------------------ */
.manifesto {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.manifesto__statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 300;
}
.manifesto__statement em { font-style: italic; color: var(--accent); }
.section--dark .manifesto__statement em { color: var(--mustard); }

.essay {
  display: grid;
  gap: 40px;
  max-width: 760px;
  margin: 48px auto 0;
}
.essay p {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  line-height: 1.78;
  color: var(--fg-soft);
}
.essay p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 8px 14px 0 0;
  color: var(--terracotta);
  font-weight: 400;
}

/* Two-column essay layout */
.essay-split {
  display: grid;
  gap: 40px;
}
.essay-split__head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
}
.essay-split__body { display: grid; gap: 26px; }
.essay-split__body p { color: var(--fg-soft); font-size: 1.06rem; line-height: 1.78; }

/* ------------------------------------------------------------------ */
/* Section header                                                      */
/* ------------------------------------------------------------------ */
.sec-head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 820px; }
.sec-head h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.sec-head h2 em { font-style: italic; color: var(--accent); }
.sec-head p { margin-top: 22px; }

/* ------------------------------------------------------------------ */
/* Services — numbered editorial list                                  */
/* ------------------------------------------------------------------ */
.services-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.service-row:hover { background: var(--bg-tile); padding-left: 16px; }
.service-row__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--terracotta);
  letter-spacing: 0.08em;
}
.service-row__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 400;
}
.service-row__desc { color: var(--muted); max-width: 56ch; }
.service-row__tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 5px 13px;
}

/* ------------------------------------------------------------------ */
/* Services — card grid (services page)                                */
/* ------------------------------------------------------------------ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  box-shadow: var(--shadow-card);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-tile);
  color: var(--accent);
}
.card__num { font-family: var(--mono); font-size: 12px; color: var(--terracotta); letter-spacing: 0.08em; }
.card h3 { font-size: 1.5rem; line-height: 1.15; }
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.68; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.card ul li {
  position: relative; padding-left: 22px;
  font-size: 0.95rem; color: var(--fg-soft);
}
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px;
  background: var(--terracotta);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ------------------------------------------------------------------ */
/* Split image + text                                                  */
/* ------------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.split:hover .split__media img { transform: scale(1.05); }
.split__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(31,86,196,0.10), rgba(199,80,44,0.14));
  mix-blend-mode: multiply;
}
.split__body h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; margin-bottom: 22px; font-weight: 300; }
.split__body h2 em { font-style: italic; color: var(--accent); }
.split__body p { color: var(--fg-soft); margin-bottom: 20px; line-height: 1.78; }
.split__body .arrow-link { margin-top: 6px; }

/* ------------------------------------------------------------------ */
/* Pull quote (dark band)                                              */
/* ------------------------------------------------------------------ */
.pullquote { text-align: center; max-width: 1000px; margin: 0 auto; position: relative; }
.pullquote__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.6;
  color: var(--mustard);
  display: block;
  height: 0.4em;
  margin-bottom: 10px;
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 300;
}
.pullquote blockquote em { font-style: italic; color: var(--mustard); }
.pullquote__cite {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.7);
}

/* ------------------------------------------------------------------ */
/* Stats                                                               */
/* ------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stat {
  background: var(--bg);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section--alt .stat { background: var(--bg-alt); }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat__num span { color: var(--terracotta); }
.stat__label { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ */
/* Work / case list                                                    */
/* ------------------------------------------------------------------ */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.work-item { display: block; }
.work-item__media {
  position: relative; overflow: hidden; border-radius: 6px;
  aspect-ratio: 16 / 11; box-shadow: var(--shadow-card);
}
.work-item__media img { width:100%; height:100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.work-item:hover .work-item__media img { transform: scale(1.06); }
.work-item__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(23,36,63,0.0) 40%, rgba(23,36,63,0.55));
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.work-item:hover .work-item__media::after { opacity: 1; }
.work-item__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.work-item__meta h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; line-height: 1.12; }
.work-item__cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); }
.work-item__desc { color: var(--muted); margin-top: 10px; max-width: 60ch; }

/* ------------------------------------------------------------------ */
/* Principles / values (text-only cards)                               */
/* ------------------------------------------------------------------ */
.principles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.principle { background: var(--bg); padding: 40px 34px; display: flex; flex-direction: column; gap: 14px; }
.section--alt .principle { background: var(--bg-alt); }
.principle__idx { font-family: var(--mono); font-size: 12px; color: var(--terracotta); letter-spacing: 0.08em; }
.principle h3 { font-size: 1.55rem; font-weight: 400; line-height: 1.12; }
.principle p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }

/* Team / studio — monogram cards, no faces */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.member {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.avatar--mono {
  width: 60px; height: 60px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.member__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.member__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); margin-top: 3px; }
.member__bio { color: var(--muted); font-size: 0.94rem; line-height: 1.66; margin-top: 12px; }

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--border); max-width: 900px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 22px;
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--terracotta);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 48px 26px 0; color: var(--fg-soft); line-height: 1.75; }
.faq__answer p + p { margin-top: 14px; }

/* ------------------------------------------------------------------ */
/* CTA / Newsletter                                                    */
/* ------------------------------------------------------------------ */
.cta-band { text-align: center; max-width: 860px; margin: 0 auto; }
.cta-band h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.cta-band h2 em { font-style: italic; color: var(--mustard); }
.cta-band p { max-width: 54ch; margin: 0 auto 36px; font-size: 1.1rem; }
.cta-band .btn { margin: 0 6px 10px; }

/* Newsletter inline form */
.news-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 32px auto 0;
  flex-wrap: wrap;
}
.news-form input {
  flex: 1 1 220px;
  padding: 15px 20px;
  border: 1px solid rgba(250,245,236,0.3);
  background: rgba(250,245,236,0.06);
  color: #fff;
  border-radius: 9999px;
  font: inherit;
  font-size: 15px;
}
.news-form input::placeholder { color: rgba(250,245,236,0.5); }
.news-form input:focus { outline: none; border-color: var(--mustard); }

/* ------------------------------------------------------------------ */
/* Contact form                                                        */
/* ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
.form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 86, 196, 0.12);
}
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { font-size: 0.85rem; color: var(--muted); }
.form__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.contact-info { display: grid; gap: 30px; }
.contact-block__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.contact-block p, .contact-block a { color: var(--fg-soft); line-height: 1.7; }
.contact-block a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* Legal / long-form text pages                                        */
/* ------------------------------------------------------------------ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin: 48px 0 16px;
  font-weight: 400;
  line-height: 1.2;
}
.prose h3 { font-size: 1.25rem; margin: 30px 0 10px; font-weight: 500; }
.prose p { color: var(--fg-soft); margin-bottom: 16px; line-height: 1.8; }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--fg-soft); }
.prose ul li { margin-bottom: 8px; line-height: 1.7; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }

/* Thank-you page */
.thanks {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--pad) 80px;
}
.thanks__inner { max-width: 620px; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; line-height: 1.02; margin-bottom: 22px; }
.thanks h1 em { font-style: italic; color: var(--accent); }
.thanks p { color: var(--fg-soft); font-size: 1.12rem; margin-bottom: 32px; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.footer {
  background: var(--fg);
  color: rgba(250, 245, 236, 0.72);
  padding: clamp(64px, 9vw, 110px) 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 245, 236, 0.14);
}
.footer__brand .brand { color: var(--bg); font-size: 26px; }
.footer__tagline { margin-top: 20px; max-width: 34ch; color: rgba(250,245,236,0.6); line-height: 1.6; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard);
  font-weight: 400;
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__col a, .footer__col p { color: rgba(250,245,236,0.72); font-size: 0.95rem; transition: color 0.3s var(--ease); line-height: 1.5; }
.footer__col a:hover { color: #fff; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(250,245,236,0.5);
}
.footer__bottom a:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/* Reveal animation                                                    */
/* ------------------------------------------------------------------ */
.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__media img { animation: none; transform: scale(1); }
  * { scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ */
/* Cookie popup                                                        */
/* ------------------------------------------------------------------ */
.cookie-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end;
  padding: 24px;
  background: rgba(23, 36, 63, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--bg);
  padding: 32px 36px;
  max-width: 480px;
  border-radius: 6px;
  box-shadow: 0 30px 70px -20px rgba(23,36,63,0.5);
  border-top: 4px solid var(--accent);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.cookie-popup__card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 11px 24px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cookie-popup__actions button:first-child: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); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .service-row { grid-template-columns: 80px 1fr; gap: 24px; }
  .hero__scroll { display: block; }
}

@media (min-width: 768px) {
  :root { --pad: 32px; }
  body { font-size: 18px; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .essay-split { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1.4fr 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 72px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 90px 1.1fr 1.4fr; align-items: start; }
  .service-row__desc { margin-top: 0; }
}
