/* ==========================================================================
   Luisa González — UGC & Social Content Agency
   Layout system modelled on classic agency one-pagers:
   ivory paper, travertine linen surfaces, deep walnut espresso,
   calm camel accents; serif-led type with a heavy grotesque for labels.
   ========================================================================== */

:root {
  --ink:        #2e2721;
  --paper:      #f7f3ea;
  --cream:      #ece5d6;
  --brown:      #3a2e25;
  --peach:      #c6a57c;
  --peach-deep: #b18f63;
  --stone:      #8e8271;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --nav-h: 64px;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16.8px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

:focus-visible { outline: 2px solid var(--peach-deep); outline-offset: 3px; }

/* The nav is sticky, so anchor targets need to clear it when jumped to. */
#about, #cases, #contact { scroll-margin-top: calc(var(--nav-h) + 12px); }

sup { font-size: 0.45em; vertical-align: super; margin-left: 0.15em; }

/* ---------- shared: peach pill button ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  text-decoration: none;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.pill:hover { background: var(--peach-deep); transform: translateY(-1px); }
.pill__arrow { font-size: 1.05em; }

.pill--ghost { background: transparent; border: 1px solid rgba(46, 39, 33, 0.32); }
.pill--ghost:hover { background: transparent; border-color: var(--peach-deep); color: var(--brown); }

/* ---------- shared: round arrow button ---------- */
.roundBtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
}
.roundBtn:hover { background: var(--peach-deep); }
.roundBtn--sm { width: 42px; height: 42px; font-size: 1.05rem; }

/* ==========================================================================
   NAV — white bar, heavy caps links, centred wordmark
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--paper);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 4rem);
  position: relative;
}
.nav__side { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.5rem); }

.nav__link {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav__link:hover { opacity: 0.65; }

.nav__cluster { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.5rem); }

.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 26px; width: auto; }

.nav__wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.9vw, 1.85rem);
  color: #161f38;
  white-space: nowrap;
}

/* services dropdown */
.nav__dropWrap { position: relative; }
.nav__panel {
  position: absolute;
  top: calc(100% + 18px);
  left: -1rem;
  min-width: 480px;
  background: var(--paper);
  border: 1px solid rgba(46, 39, 33, 0.14);
  box-shadow: 0 18px 40px rgba(46, 39, 33, 0.14);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
  /* Fades and lifts rather than snapping in. visibility rides the transition
     so the panel is not focusable or clickable while closed. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0s linear 0.22s;
}
.nav__dropWrap.is-open .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
}
/* Hover-to-open only where hover is real; on touch a hover state can stick
   open after a tap, so those devices use the click toggle alone. */
@media (hover: hover) and (pointer: fine) {
  .nav__dropWrap:hover .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
  }
}
.nav__dropWrap.is-picked .nav__panel,
.nav__dropWrap.is-picked:hover .nav__panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}
.nav__panel a {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  text-decoration: none;
  padding: 0.28rem 0;
}
.nav__panel a:hover { color: var(--brown); }
.nav__panelAll {
  font-family: var(--sans) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.nav__burger { display: none; padding: 8px 4px; }
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__burger span + span { margin-top: 5px; }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid rgba(46, 39, 33, 0.12);
  padding: 0.4rem clamp(1rem, 4vw, 4rem) 1.4rem;
  /* The services list makes this taller than the viewport on small phones. */
  max-height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile.is-open { display: flex; }
/* Rows arrive in sequence so the sheet unfolds instead of appearing. */
.nav__mobile.is-open > * { animation: navRowIn 0.3s var(--ease) both; }
.nav__mobile.is-open > *:nth-child(1) { animation-delay: 0.02s; }
.nav__mobile.is-open > *:nth-child(2) { animation-delay: 0.06s; }
.nav__mobile.is-open > *:nth-child(3) { animation-delay: 0.10s; }
.nav__mobile.is-open > *:nth-child(4) { animation-delay: 0.14s; }
@keyframes navRowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.nav__mobile > a,
.nav__mobileToggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;          /* comfortable thumb target */
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.25rem 0;
}
.nav__mobileGroup { display: flex; flex-direction: column; }
.nav__mobileToggle { justify-content: space-between; text-align: left; }
.nav__mobileChevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}
.nav__mobileGroup.is-open .nav__mobileChevron { transform: rotate(-135deg) translate(-3px, -3px); }

/* Height transition without measuring: the row collapses from 1fr to 0fr. */
.nav__mobileSub {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  margin-left: 0.95rem;
  border-left: 2px solid rgba(46, 39, 33, 0.14);
  transition: grid-template-rows 0.32s var(--ease), visibility 0s linear 0.32s;
}
.nav__mobileGroup.is-open .nav__mobileSub {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.32s var(--ease), visibility 0s;
}
.nav__mobileSubInner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-left: 0;
}
.nav__mobileGroup.is-open .nav__mobileSubInner { padding-bottom: 0.6rem; }
.nav__mobileSub a {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  font-size: 1.02rem;
  text-decoration: none;
}
.nav__mobileSub .nav__mobileAll {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   HERO — intro video framed on cream, About Me copy directly beneath it,
   the pair sized to land inside the first screen
   ========================================================================== */
.hero {
  background: var(--cream);
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(1.4rem, 3.2vw, 2.2rem) clamp(1rem, 4vw, 4rem) clamp(1.8rem, 3.6vw, 2.8rem);
  overflow: hidden;
}
.hero__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.6vw, 2.1rem);
}

.hero__media {
  margin: 0 auto;
  height: clamp(170px, 27svh, 320px);
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #ded5c4;
  box-shadow: 0 22px 48px rgba(46, 39, 33, 0.16);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  max-width: 900px;
  margin-inline: auto;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.1vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* The intro reads as body copy, so it takes the site's body size and ink
   rather than a smaller scale of its own — the role line sits one step
   above as a lede. */
.hero__role {
  margin: 0.7rem auto 0;
  font-size: 1.15rem;
  line-height: 1.45;
  color: rgba(46, 39, 33, 0.86);
  max-width: 46ch;
}
.hero__introBody p {
  line-height: 1.6;
  color: rgba(46, 39, 33, 0.86);
  max-width: 66ch;
  margin-inline: auto;
}
.hero__introBody p + p { margin-top: 0.85rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
}

/* ==========================================================================
   CASE STUDIES — full-bleed card slider with dots + round arrows
   ========================================================================== */
.cases { background: var(--paper); padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.cases__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 4rem);
  margin-bottom: 1.8rem;
}
.cases__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); }
.cases__dots { display: flex; gap: 8px; }
.cases__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8cfbf;
  transition: background 0.25s;
}
.cases__dots span.is-active { background: var(--stone); }

.cases__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
  margin: -0.6rem 0 1.6rem;
}
.cases__chip {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(46, 39, 33, 0.3);
  border-radius: 999px;
  padding: 0.42rem 1.1rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cases__chip:hover { border-color: var(--peach-deep); }
.cases__chip.is-active { background: var(--peach); border-color: var(--peach); }

.cases__viewport { position: relative; }
.cases__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 clamp(1rem, 4vw, 4rem);
}
.cases__track::-webkit-scrollbar { display: none; }

.caseCard { flex: 0 0 300px; scroll-snap-align: start; }
.caseCard__img {
  border-radius: 8px;
  overflow: hidden;
  background: #e7e0d2;
}
.caseCard__img img,
.caseCard__img video {
  width: 100%;
  aspect-ratio: 300 / 420;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.caseCard:hover .caseCard__img img,
.caseCard:hover .caseCard__img video { transform: scale(1.04); }
.caseCard__link { display: block; text-decoration: none; color: inherit; }
.caseCard__ext { font-size: 0.8em; color: var(--peach-deep); }
.caseCard.is-hidden { display: none; }
.caseCard__brand {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  text-align: center;
  margin-top: 1rem;
}
.caseCard__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: center;
  margin-top: 0.35rem;
  color: rgba(46, 39, 33, 0.75);
  padding: 0 0.6rem;
}

.cases__arrow {
  position: absolute;
  top: 190px;
  z-index: 5;
}
.cases__arrow--prev { left: clamp(0.6rem, 2vw, 2rem); }
.cases__arrow--next { right: clamp(0.6rem, 2vw, 2rem); }

/* ==========================================================================
   STATISTICS — espresso panel, bento of small charts

   Chart palette (dark mode, surface #3a2e25) validated with the dataviz
   validator: lightness band, chroma floor, CVD separation (worst adjacent
   pair ΔE 11.7 protan/deutan), normal-vision floor 16.7, contrast >= 3:1.
   The brand camel fails the chroma floor as a data colour, so it stays on
   text and rules; the two slots below carry identity.
   ========================================================================== */
:root {
  --chart-1: #b2912e;   /* slot 1 — gold */
  --chart-2: #b45244;   /* slot 2 — terracotta */
  --chart-track: rgba(178, 145, 46, 0.22);
  /* Cards are recessed wells, darker than the section: on a lighter card the
     terracotta slot drops to 2.4:1 and misses the 3:1 mark contrast. */
  --card-surface: #2b231c;
  --card-line: rgba(247, 243, 234, 0.10);
}

.stats {
  background: var(--brown);
  color: var(--paper);
}
.stats { padding: clamp(4rem, 9vw, 6.5rem) clamp(1rem, 4vw, 4rem) clamp(3rem, 6vw, 4.5rem); }
.stats__inner,
.platforms__inner { max-width: 1080px; margin-inline: auto; }

.stats__eyebrow,
.card__title,
.legend {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stats__eyebrow { font-size: 0.74rem; color: var(--peach); margin-bottom: 0.6rem; }
.stats__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- bento ---------- */
.stats__bento {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}
.card {
  margin: 0;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--card-surface);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.card--flow  { grid-column: span 12; }
.card--split { grid-column: span 7; }
.card--map   { grid-column: span 5; }

/* ---------- legend: identity is never colour alone ---------- */
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; font-size: 0.68rem; }
.legend li { display: flex; align-items: center; gap: 0.45rem; color: rgba(247, 243, 234, 0.75); }
.legend__swatch { width: 10px; height: 10px; border-radius: 2px; }
.legend__swatch--1 { background: var(--chart-1); }
.legend__swatch--2 { background: var(--chart-2); }

/* ---------- process flow: the wave of five nodes ---------- */
.flow__sprite { position: absolute; }
.flow__wave { display: block; width: 100%; height: auto; }
.flow__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-anchor: middle;
  fill: var(--paper);
}
.flow__desc {
  font-family: var(--serif);
  font-size: 17.5px;
  text-anchor: middle;
  fill: rgba(247, 243, 234, 0.72);
}
/* Arcs draw themselves in and nodes rise, staggered left to right. */
.farc {
  stroke-dasharray: var(--arclen);
  stroke-dashoffset: var(--arclen);
  transition: stroke-dashoffset 0.7s var(--ease) var(--fd);
}
.fnode {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease) var(--fd), transform 0.5s var(--ease) var(--fd);
}
.reveal.is-visible .farc { stroke-dashoffset: 0; }
.reveal.is-visible .fnode { opacity: 1; transform: none; }

/* Same wave turned vertical for phones; text sits beside each node. */
.flow__wave--v { display: none; max-width: 430px; margin-inline: auto; }
.flow__nameV {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-anchor: start;
  fill: var(--paper);
}
.flow__descV {
  font-family: var(--serif);
  font-size: 25px;
  text-anchor: start;
  fill: rgba(247, 243, 234, 0.72);
}

/* ---------- stacked bar: 24px cap, 2px surface gap does the separating ------ */
.stack { display: flex; gap: 2px; height: 24px; }
.stack__seg { width: 0; transition: width 1.1s var(--ease); }
.reveal.is-visible .stack__seg { width: var(--w); }
.stack__seg--1 { background: var(--chart-1); border-radius: 4px 0 0 4px; }
.stack__seg--2 { background: var(--chart-2); border-radius: 0 4px 4px 0; }

/* Values ride outside the mark: no clipping, no cramped in-bar text. */
.splitValues { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin: 1.4rem 0 0; }
.splitValues__item { display: flex; flex-direction: column; gap: 0.3rem; }
.splitValues dt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.75);
}
.splitValues dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--paper);
}
.reveal.is-visible .stack__label { opacity: 1; }

/* ---------- map ---------- */
.card--map img { width: 100%; height: auto; margin-top: auto; opacity: 0.92; }

/* ==========================================================================
   PLATFORMS — the four feeds, bare marks on paper linking to the profiles
   ========================================================================== */
.platforms {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 4rem) clamp(4rem, 9vw, 6.5rem);
}
.platforms__grid {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2rem);
}
.platform__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.platform__link:hover { transform: translateY(-2px); }
.platform__mark { display: inline-flex; color: var(--brown); transition: color 0.25s var(--ease); }
.platform__link:hover .platform__mark { color: var(--peach-deep); }
.platform__mark svg { width: 34px; height: 34px; }
.platform__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ==========================================================================
   MARQUEE — two counter-scrolling serif rows on cream
   ========================================================================== */
.marquee { background: var(--cream); padding: 1.6rem 0 1.2rem; overflow: hidden; }
.marquee__row { overflow: hidden; }
.marquee__row + .marquee__row { margin-top: 0.4rem; }
.marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marqueeL 30s linear infinite;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: 0.01em;
}
.marquee__row--reverse .marquee__track { animation-name: marqueeR; }
.marquee__logo {
  display: inline-block;
  height: 0.78em;
  width: auto;
  vertical-align: baseline;
}
@keyframes marqueeL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ==========================================================================
   FOOTER — espresso, centred stack: form, giant serif/sans/serif lockup,
   socials, small print
   ========================================================================== */
.footer {
  background: var(--brown);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 2.4rem;
}
.footer a { color: inherit; }
.footer__inner {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__formTitle {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.footer__form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
}
.footer__field { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.footer__field label { font-family: var(--serif); font-size: 0.95rem; }
.footer__field input,
.footer__field select {
  width: 250px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background-color: var(--paper);
  padding: 0 1rem;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--ink);
}
.footer__field input::placeholder { color: rgba(46, 39, 33, 0.4); }
.footer__field input:focus,
.footer__field select:focus { outline: 2px solid var(--peach); }

/* Native select on mobile = the OS picker, which beats any custom menu for
   reach and accessibility; only the chrome is restyled. */
.footer__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5l5-5' fill='none' stroke='%232e2721' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}
/* Brief confirmation when a nav service link fills this in for you. */
.footer__field select.is-justSet { box-shadow: 0 0 0 2px var(--peach); }
.footer__submit { margin-top: 2rem; border: 0; padding: 0.72rem 2rem; }
.footer__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.footer__formNote {
  width: 100%;
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--peach);
  text-align: center;
}

.footer__lockup {
  margin: clamp(3.4rem, 9vw, 6.5rem) 0 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.99;
  text-transform: uppercase;
}
.footer__lockupSerif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.6vw, 4.8rem);
  letter-spacing: 0.02em;
}
.footer__lockupSans {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.9rem, 8.4vw, 5.4rem);
  letter-spacing: -0.005em;
}

.footer__socials { display: flex; gap: 1.3rem; margin-bottom: clamp(3rem, 8vw, 5.5rem); }
.footer__socials a { display: inline-flex; padding: 4px; transition: color 0.25s var(--ease); }
.footer__socials a:hover { color: var(--peach); }

.footer__logo { display: inline-flex; align-items: center; margin-bottom: 0.5rem; }
.footer__logo img { height: 30px; width: auto; }

.footer__small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  letter-spacing: 0.04em;
}
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; }
.footer__nav a, .footer__mail { text-decoration: none; }
.footer__nav a:hover, .footer__mail:hover { color: var(--peach); }
.footer__credit { font-size: 0.72em; opacity: 0.75; margin-top: 0.4rem; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  /* Menus still open and close, they just stop moving to get there. */
  .nav__panel,
  .nav__dropWrap.is-open .nav__panel,
  .nav__mobileSub,
  .nav__mobileGroup.is-open .nav__mobileSub,
  .nav__mobileChevron,
  .nav__burger span { transition: none; }
  .nav__panel { transform: none; }
  .nav__mobile.is-open > * { animation: none; }
  .stack__seg { transition: none; }
  .farc { stroke-dashoffset: 0; transition: none; }
  .fnode { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Centring stacks the intro under the video, so on a short laptop window the
   video gives up height first rather than pushing the copy past the fold. */
@media (min-width: 941px) and (max-height: 880px) {
  .hero__media { height: clamp(140px, 20svh, 220px); }
  .hero__inner { gap: clamp(1rem, 2vw, 1.5rem); }
}

@media (max-width: 940px) {
  .nav__side { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
  }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .caseCard { flex-basis: 240px; }
  .cases__arrow { display: none; }
  /* 28 dots are wider than a phone; the track snap-scrolls by swipe here. */
  .cases__dots { display: none; }

  .hero { min-height: 0; align-items: flex-start; }
  .hero__intro { gap: 1.1rem; }
  .hero__role { max-width: none; }
}

@media (max-width: 400px) {
  .nav__wordmark { font-size: 1.25rem; }
}

@media (max-width: 860px) {
  .card--flow, .card--split, .card--map { grid-column: span 12; }
  /* Same format, rotated: the horizontal wave's text would shrink past
     reading size, so the vertical wave takes over. */
  .flow__wave--h { display: none; }
  .flow__wave--v { display: block; }
  .platforms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .footer__form { flex-direction: column; align-items: center; }
  .footer__field { align-items: center; width: 100%; }
  .footer__field label { align-self: flex-start; margin-left: max(0px, calc((100% - min(320px, 84vw)) / 2)); }
  .footer__field input,
  .footer__field select {
    width: min(320px, 84vw);
    height: 50px;
    /* Anything under 16px makes iOS zoom the page on focus. */
    font-size: 16px;
  }
  .footer__submit { min-height: 48px; }
}

@media (max-width: 560px) {
  .caseCard { flex-basis: 210px; }
  .cases__chip { padding: 0.55rem 1rem; }   /* taller tap target */

  .hero__media { height: clamp(170px, 26svh, 240px); }
  .hero__actions .pill { flex: 1 1 auto; justify-content: center; }
}
