/* palette: bg=#F8E8C8 fg=#1A3D7A accent=#E04826 */
/* fonts: display="PT Serif" body="DM Sans" mono="Space Mono" */

:root {
  --bg: #F8E8C8;
  --bg-alt: #1A3D7A;
  --bg-deep: #102A56;
  --fg: #1A3D7A;
  --fg-soft: #2D5298;
  --muted: #6E7A95;
  --accent: #E04826;
  --accent-deep: #A82E15;
  --mustard: #E8A33B;
  --cream-deep: #EDD89D;
  --leaf: #2F6B3E;
  --border: rgba(26, 61, 122, 0.16);
  --border-strong: rgba(26, 61, 122, 0.32);
  --serif: 'PT Serif', ui-serif, Georgia, serif;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 4px 24px -4px rgba(26, 61, 122, 0.10);
  --shadow-card-hover: 0 16px 48px -10px rgba(26, 61, 122, 0.22);
}

*, *::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;
}
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: var(--bg); }

/* ───────── reusable ───────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
h1 { font-size: clamp(3.5rem, 10vw, 9rem); letter-spacing: -0.035em; line-height: 0.96; font-weight: 400; }
h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.18; letter-spacing: -0.015em; }
h4 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1.2em; max-width: 64ch; }
em { font-style: italic; color: var(--accent); }

/* ───────── papel picado SVG strip ───────── */
.picado {
  height: 28px;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='xMidYMid slice'><path fill='black' d='M0 0h120v18H0z'/><path fill='black' d='M0 18 L8 28 L16 18 L24 28 L32 18 L40 28 L48 18 L56 28 L64 18 L72 28 L80 18 L88 28 L96 18 L104 28 L112 18 L120 28 L120 18 Z'/><circle cx='12' cy='9' r='3' fill='white'/><rect x='28' y='5' width='8' height='8' fill='white' transform='rotate(45 32 9)'/><circle cx='52' cy='9' r='3' fill='white'/><rect x='68' y='5' width='8' height='8' fill='white' transform='rotate(45 72 9)'/><circle cx='92' cy='9' r='3' fill='white'/><rect x='108' y='5' width='8' height='8' fill='white' transform='rotate(45 112 9)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='xMidYMid slice'><path fill='black' d='M0 0h120v18H0z'/><path fill='black' d='M0 18 L8 28 L16 18 L24 28 L32 18 L40 28 L48 18 L56 28 L64 18 L72 28 L80 18 L88 28 L96 18 L104 28 L112 18 L120 28 L120 18 Z'/><circle cx='12' cy='9' r='3' fill='white'/><rect x='28' y='5' width='8' height='8' fill='white' transform='rotate(45 32 9)'/><circle cx='52' cy='9' r='3' fill='white'/><rect x='68' y='5' width='8' height='8' fill='white' transform='rotate(45 72 9)'/><circle cx='92' cy='9' r='3' fill='white'/><rect x='108' y='5' width='8' height='8' fill='white' transform='rotate(45 112 9)'/></svg>");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 120px 28px;
  mask-size: 120px 28px;
}
.picado--mustard { background-color: var(--mustard); }
.picado--cream { background-color: var(--cream-deep); }

/* talavera tile pattern */
.tile-bg {
  background-image:
    radial-gradient(circle at 50% 50%, var(--accent) 4px, transparent 5px),
    radial-gradient(circle at 0% 0%, var(--mustard) 3px, transparent 4px),
    radial-gradient(circle at 100% 100%, var(--mustard) 3px, transparent 4px),
    radial-gradient(circle at 0% 100%, var(--fg) 2px, transparent 3px),
    radial-gradient(circle at 100% 0%, var(--fg) 2px, transparent 3px);
  background-size: 48px 48px;
  background-position: 0 0;
}

/* ───────── header ───────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(248, 232, 200, 0.86);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -16px rgba(26, 61, 122, 0.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
}
.brand__mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
}
.brand__mark::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--mustard);
  border-radius: 50%;
}
.brand__name b { font-weight: 400; color: var(--fg); }
.brand__name span { color: var(--accent); font-style: italic; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 14px;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--accent);
  color: var(--bg);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(224, 72, 38, 0.55); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--light { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.btn--light:hover { background: var(--mustard); border-color: var(--mustard); color: var(--fg); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 76px 0 0;
  background: var(--bg);
  z-index: 90;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .35s var(--ease);
  padding: 48px 32px;
}
.mobile-menu[data-open="true"] { transform: none; opacity: 1; pointer-events: all; }
.mobile-menu nav { display: grid; gap: 24px; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.mobile-menu .btn { margin-top: 24px; align-self: start; }

@media (max-width: 920px) {
  .nav, .header__inner > .btn { display: none; }
  .menu-toggle { display: block; }
}

/* ───────── hero ───────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-bottom: 80px;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 9s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.10); }
  to { transform: scale(1); }
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 232, 200, 0.35) 0%, rgba(248, 232, 200, 0.10) 35%, rgba(26, 61, 122, 0.45) 100%),
    linear-gradient(90deg, rgba(26, 61, 122, 0.50) 0%, rgba(26, 61, 122, 0.05) 60%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 120px;
}
.hero__eyebrow {
  color: var(--mustard);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero h1 {
  color: #FFF8E5;
  max-width: 14ch;
  margin-top: 24px;
  text-shadow: 0 4px 30px rgba(16, 42, 86, 0.35);
}
.hero h1 em {
  color: var(--mustard);
  font-style: italic;
}
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 248, 229, 0.30);
  padding-top: 36px;
}
.hero__lede {
  max-width: 46ch;
  color: rgba(255, 248, 229, 0.90);
  font-size: 18px;
  line-height: 1.70;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  right: 32px;
  bottom: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 248, 229, 0.70);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll::after {
  content: '';
  width: 1px; height: 60px;
  background: linear-gradient(var(--mustard), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 720px) {
  .hero__scroll { display: none; }
  .hero { padding-bottom: 56px; }
}

/* ───────── reveal ───────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ───────── sections ───────── */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section--alt {
  background: var(--bg-alt);
  color: #FFF8E5;
}
.section--alt h1, .section--alt h2, .section--alt h3 { color: #FFF8E5; }
.section--alt .eyebrow { color: var(--mustard); }
.section--cream {
  background: var(--cream-deep);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (min-width: 880px) {
  .section__head--split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 64px;
  }
}
.section__head h2 { max-width: 16ch; }
.section__head p { font-size: 18px; color: var(--fg-soft); max-width: 52ch; }
.section--alt .section__head p { color: rgba(255, 248, 229, 0.78); }

/* ───────── services grid ───────── */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service {
  background: var(--bg);
  padding: 48px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: background .4s var(--ease);
}
.service:hover { background: var(--cream-deep); }
.service__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--accent);
}
.service__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--bg);
  position: relative;
  margin-bottom: 8px;
}
.service__icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}
.service:nth-child(2) .service__icon { background: var(--bg-alt); }
.service:nth-child(2) .service__icon::before { border-color: var(--bg-alt); }
.service:nth-child(3) .service__icon { background: var(--mustard); color: var(--fg); }
.service:nth-child(3) .service__icon::before { border-color: var(--mustard); }
.service:nth-child(4) .service__icon { background: var(--leaf); }
.service:nth-child(4) .service__icon::before { border-color: var(--leaf); }
.service h3 { color: var(--fg); }
.service p { color: var(--fg-soft); font-size: 15.5px; line-height: 1.65; }
.service__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 18px;
}
.service__list li {
  font-size: 13.5px;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service__list li::before {
  content: '◆';
  color: var(--accent);
  font-size: 9px;
}

/* ───────── work ───────── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 880px) {
  .work-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .work-grid > article:nth-child(2) { margin-top: 80px; }
  .work-grid > article:nth-child(3) { grid-column: 1 / -1; max-width: 720px; margin-left: auto; margin-top: -32px; }
}
.work {
  display: block;
  group: work;
}
.work__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
  margin-bottom: 24px;
}
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work:hover .work__media img { transform: scale(1.05); }
.work__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 61, 122, 0.20));
}
.work__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section--alt .work__meta { color: var(--mustard); }
.work h3 {
  margin-bottom: 12px;
  transition: color .35s var(--ease);
}
.work:hover h3 { color: var(--accent); }
.work p { font-size: 16px; color: var(--fg-soft); max-width: 52ch; }
.section--alt .work p { color: rgba(255, 248, 229, 0.74); }

/* ───────── manifesto ───────── */
.manifesto {
  text-align: center;
  padding: clamp(120px, 18vw, 220px) 0;
  position: relative;
  background: var(--bg-alt);
  color: #FFF8E5;
  overflow: hidden;
}
.manifesto::before, .manifesto::after {
  content: '';
  position: absolute;
  height: 28px;
  left: 0; right: 0;
  background-color: var(--mustard);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='xMidYMid slice'><path fill='black' d='M0 0h120v18H0z'/><path fill='black' d='M0 18 L8 28 L16 18 L24 28 L32 18 L40 28 L48 18 L56 28 L64 18 L72 28 L80 18 L88 28 L96 18 L104 28 L112 18 L120 28 L120 18 Z'/><circle cx='12' cy='9' r='3' fill='white'/><rect x='28' y='5' width='8' height='8' fill='white' transform='rotate(45 32 9)'/><circle cx='52' cy='9' r='3' fill='white'/><rect x='68' y='5' width='8' height='8' fill='white' transform='rotate(45 72 9)'/><circle cx='92' cy='9' r='3' fill='white'/><rect x='108' y='5' width='8' height='8' fill='white' transform='rotate(45 112 9)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='xMidYMid slice'><path fill='black' d='M0 0h120v18H0z'/><path fill='black' d='M0 18 L8 28 L16 18 L24 28 L32 18 L40 28 L48 18 L56 28 L64 18 L72 28 L80 18 L88 28 L96 18 L104 28 L112 18 L120 28 L120 18 Z'/><circle cx='12' cy='9' r='3' fill='white'/><rect x='28' y='5' width='8' height='8' fill='white' transform='rotate(45 32 9)'/><circle cx='52' cy='9' r='3' fill='white'/><rect x='68' y='5' width='8' height='8' fill='white' transform='rotate(45 72 9)'/><circle cx='92' cy='9' r='3' fill='white'/><rect x='108' y='5' width='8' height='8' fill='white' transform='rotate(45 112 9)'/></svg>");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 120px 28px;
  mask-size: 120px 28px;
}
.manifesto::before { top: 0; }
.manifesto::after { bottom: 0; transform: scaleY(-1); }
.manifesto__quote {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 22ch;
  margin: 0 auto;
  font-style: italic;
}
.manifesto__quote::before {
  content: '“';
  display: block;
  font-size: 8rem;
  line-height: 0.6;
  color: var(--accent);
  font-style: normal;
  margin-bottom: 32px;
  font-family: var(--serif);
}
.manifesto__attr {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-top: 48px;
  display: block;
}

/* ───────── process ───────── */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.process__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (min-width: 880px) {
  .process__step { grid-template-columns: 100px 240px 1fr; gap: 56px; padding: 72px 0; }
}
.process__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
  letter-spacing: -0.04em;
}
.process__step h3 { margin-bottom: 0; }
.process__body p { color: var(--fg-soft); font-size: 17px; }
.process__step:hover .process__num { color: var(--accent-deep); }
.process__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────── team ───────── */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.member__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  background: var(--cream-deep);
}
.member__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
  filter: saturate(0.9);
}
.member:hover .member__media img { transform: scale(1.04); filter: saturate(1.1); }
.member__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 248, 229, 0.25);
  pointer-events: none;
  margin: 12px;
}
.member__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.member h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.member p { font-size: 15px; color: var(--fg-soft); line-height: 1.65; }

/* ───────── CTA / form ───────── */
.cta {
  background: var(--accent);
  color: #FFF8E5;
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 248, 229, 0.35);
}
.cta::before { top: -120px; right: -80px; }
.cta::after { bottom: -160px; left: -100px; width: 400px; height: 400px; }
.cta h2 { color: #FFF8E5; }
.cta .eyebrow { color: var(--mustard); }
.cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  position: relative;
  z-index: 1;
}
@media (min-width: 920px) { .cta__inner { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; } }
.cta__lede { font-size: 18px; line-height: 1.7; color: rgba(255, 248, 229, 0.88); max-width: 44ch; }
.cta__contact {
  margin-top: 40px;
  display: grid;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.cta__contact a { border-bottom: 1px dashed rgba(255, 248, 229, 0.40); padding-bottom: 2px; }
.cta__contact a:hover { color: var(--mustard); border-color: var(--mustard); }

.form {
  display: grid;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 248, 229, 0.78);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 248, 229, 0.45);
  padding: 12px 0;
  font: inherit;
  color: #FFF8E5;
  font-size: 17px;
  font-family: var(--serif);
  border-radius: 0;
  transition: border-color .35s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--mustard);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 248, 229, 0.45); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: 16px; }
.form .btn--light { background: var(--bg); color: var(--accent); border-color: var(--bg); }
.form .btn--light:hover { background: var(--mustard); border-color: var(--mustard); color: var(--fg); }

/* ───────── about page ───────── */
.about-hero {
  padding: 180px 0 100px;
  border-bottom: 1px solid var(--border);
}
.about-hero h1 { max-width: 14ch; }
.about-hero__lede {
  margin-top: 40px;
  font-size: 22px;
  line-height: 1.55;
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-soft);
  max-width: 30ch;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
}
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value {
  background: var(--bg);
  padding: 48px 32px;
}
.value__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--accent);
  margin-bottom: 24px;
}
.value h3 { margin-bottom: 12px; }
.value p { color: var(--fg-soft); font-size: 16px; line-height: 1.7; }

.numbers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 720px) { .numbers { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.number {
  border-top: 1px solid rgba(255, 248, 229, 0.30);
  padding-top: 24px;
}
.number strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--mustard);
  margin-bottom: 8px;
  line-height: 1;
}
.number span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 248, 229, 0.72);
}

/* ───────── services page ───────── */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 880px) {
  .svc-detail { grid-template-columns: 240px 1fr 1fr; gap: 64px; padding: 96px 0; align-items: start; }
}
.svc-detail__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 0.9;
}
.svc-detail h3 { margin-bottom: 20px; max-width: 16ch; }
.svc-detail__body p { color: var(--fg-soft); font-size: 17px; }
.svc-detail__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.svc-detail__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  align-items: baseline;
}
.svc-detail__list li:last-child { border-bottom: 1px dashed var(--border); }
.svc-detail__list span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.svc-detail__list strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  color: var(--fg);
}

/* ───────── contact page ───────── */
.contact-hero {
  padding: 160px 0 80px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-bottom: 120px;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 96px; align-items: start; }
}
.contact-info { display: grid; gap: 32px; }
.contact-info__block h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 400;
}
.contact-info__block p { font-size: 17px; line-height: 1.65; color: var(--fg); margin: 0; }
.contact-info__block a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-alt);
  color: #FFF8E5;
  padding: 56px 48px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border: 1px dashed rgba(232, 163, 59, 0.4);
  border-radius: 50%;
}
.contact-form h3 { color: #FFF8E5; margin-bottom: 28px; }

/* ───────── footer ───────── */
.footer {
  background: var(--fg);
  color: #FFF8E5;
  padding: 96px 0 32px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='xMidYMid slice'><path fill='black' d='M0 10h120v18H0z'/><path fill='black' d='M0 10 L8 0 L16 10 L24 0 L32 10 L40 0 L48 10 L56 0 L64 10 L72 0 L80 10 L88 0 L96 10 L104 0 L112 10 L120 0 L120 10 Z'/><circle cx='12' cy='19' r='3' fill='white'/><rect x='28' y='15' width='8' height='8' fill='white' transform='rotate(45 32 19)'/><circle cx='52' cy='19' r='3' fill='white'/><rect x='68' y='15' width='8' height='8' fill='white' transform='rotate(45 72 19)'/><circle cx='92' cy='19' r='3' fill='white'/><rect x='108' y='15' width='8' height='8' fill='white' transform='rotate(45 112 19)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='xMidYMid slice'><path fill='black' d='M0 10h120v18H0z'/><path fill='black' d='M0 10 L8 0 L16 10 L24 0 L32 10 L40 0 L48 10 L56 0 L64 10 L72 0 L80 10 L88 0 L96 10 L104 0 L112 10 L120 0 L120 10 Z'/><circle cx='12' cy='19' r='3' fill='white'/><rect x='28' y='15' width='8' height='8' fill='white' transform='rotate(45 32 19)'/><circle cx='52' cy='19' r='3' fill='white'/><rect x='68' y='15' width='8' height='8' fill='white' transform='rotate(45 72 19)'/><circle cx='92' cy='19' r='3' fill='white'/><rect x='108' y='15' width='8' height='8' fill='white' transform='rotate(45 112 19)'/></svg>");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 120px 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 248, 229, 0.18);
}
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand .brand__name { color: #FFF8E5; }
.footer__brand p { font-size: 15px; color: rgba(255, 248, 229, 0.70); margin: 24px 0 0; max-width: 36ch; }
.footer__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--mustard);
  margin: 0 0 20px;
  font-weight: 400;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.footer__col a { font-size: 15px; color: rgba(255, 248, 229, 0.85); }
.footer__col a:hover { color: var(--mustard); }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 248, 229, 0.55);
}
.footer__bottom a:hover { color: var(--mustard); }

/* ───────── legal pages ───────── */
.legal {
  padding: 160px 0 120px;
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.6rem; margin: 56px 0 16px; }
.legal p, .legal li { font-size: 17px; color: var(--fg-soft); line-height: 1.78; }
.legal ul { padding-left: 22px; }
.legal__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; }

.thanks {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.thanks h1 { max-width: 16ch; margin: 0 auto 28px; }
.thanks p { font-size: 19px; max-width: 48ch; margin: 0 auto 36px; color: var(--fg-soft); }

/* ───────── cookie popup ───────── */
.cookie-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  background: rgba(16, 42, 86, 0.40);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s 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: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -16px rgba(16, 42, 86, 0.45);
  position: relative;
}
.cookie-popup__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 33%, var(--mustard) 33% 66%, var(--bg-alt) 66% 100%);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cookie-popup h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--fg);
}
.cookie-popup p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin-bottom: 0;
}
.cookie-popup__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.cookie-popup__actions button {
  padding: 11px 22px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  border-radius: 9999px;
  background: transparent;
  color: var(--fg);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.cookie-popup__actions button:hover { background: var(--fg); color: var(--bg); }
.cookie-popup__actions button:last-child {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
@media (max-width: 600px) {
  .cookie-popup__actions { flex-direction: column; }
  .cookie-popup__actions button { width: 100%; }
}
