/* ==========================================================================
   Grupo Xcape — landing
   ========================================================================== */

:root {
  --ink: #282826;
  --ink-2: #1f1f1d;
  --cream: #ebf0df;
  --cream-2: #e1e6d6;
  --accent: #ff3b00;
  --accent-2: #e32424;
  --line-dark: rgba(235, 240, 223, 0.28);
  --line-light: rgba(40, 40, 38, 0.35);

  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1440px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --fs-hero: clamp(48px, 12.8vw, 210px);
  --fs-display: clamp(40px, 7vw, 104px);
  --fs-headline: clamp(40px, 6.4vw, 92px);
  --fs-lead: clamp(16px, 1.25vw, 19px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--light { background: var(--cream); color: var(--ink); }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.display {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.058em;
  text-transform: uppercase;
}
.headline {
  margin: 0;
  font-size: var(--fs-headline);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.lead {
  font-size: var(--fs-lead);
  max-width: 62ch;
  margin: 1.4em 0 0;
}

/* split-text helpers (generated by JS) */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > .line__in { display: block; will-change: transform; }

/* ---------- Icons (pure css) ---------- */
.icon-down, .icon-up, .icon-right {
  display: inline-grid;
  place-items: center;
  width: 1.15em; height: 1.15em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  vertical-align: -0.2em;
  flex: none;
}
.icon-down::before, .icon-up::before, .icon-right::before {
  content: "";
  width: 0.32em; height: 0.32em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
}
.icon-up::before { transform: translateY(20%) rotate(-135deg); }
.icon-right::before { transform: translateX(-20%) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; display: inline-block; }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent::before { background: var(--cream); }
.section--light .btn--accent::before { background: var(--ink); }
.section--light .btn--accent:hover { color: var(--cream); }

.btn--ghost { border: 1.5px solid currentColor; }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
}
.link-arrow i { transition: transform 0.4s var(--ease); }
.link-arrow:hover i { transform: translateY(3px); }

.link-accent {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-2);
  font-size: 13px; font-weight: 700;
}
.link-accent i { transition: transform 0.4s var(--ease); }
.link-accent:hover i { transform: translateX(4px); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  z-index: 90;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), opacity 0.3s;
  opacity: 0;
}
.cursor__label {
  font-size: 13px; font-weight: 700; color: var(--ink);
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: 0.85; }
.cursor.is-view { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--cream);
  mix-blend-mode: difference;
  transition: transform 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.nav__logo span { letter-spacing: -0.04em; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav__links a {
  position: relative;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 32px; height: 32px; position: relative; }
.nav__burger span {
  position: absolute; left: 4px; right: 4px; height: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__burger span:first-child { top: 11px; }
.nav__burger span:last-child { top: 19px; }
.menu-open .nav__burger span:first-child { top: 15px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 15px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0;
  z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px;
  padding: 0 var(--gutter);
  background: var(--cream);
  color: var(--ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.menu a {
  font-size: clamp(40px, 12vw, 80px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.menu-open .menu { clip-path: inset(0 0 0 0); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: 96px var(--gutter) 64px; max-width: var(--max); margin: 0 auto; }
.section--dark.hero { background: none; }
.hero__title {
  margin: 0 0 clamp(20px, 3vw, 36px);
  font-size: var(--fs-hero); /* JS fits it to the container width */
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: nowrap;
  column-gap: 0.14em;
  white-space: nowrap;
  --drift: 0px;
}
@media (max-width: 560px) {
  .hero__title { flex-direction: column; align-items: flex-start; }
}
/* hidden until JS has fitted the title and set the intro start state */
.js-intro .hero__title, .js-intro .hero__media { visibility: hidden; }
/* padding + equal negative margin: room for glyph overshoot without changing the layout */
.hero__line { display: inline-flex; overflow: hidden; padding: 0.12em 0.1em 0.08em; margin: -0.12em -0.1em -0.08em; }
.hero__line .char { display: inline-block; will-change: transform; padding: 0.12em 0.08em 0.08em; margin: -0.12em -0.08em -0.08em; }
/* Each letter is painted with a cream layer (width = --fill) over the pool photo,
   so the word can turn into water and back. --bx/--by align the photo across letters. */
.hero__title .char {
  color: transparent;
  background-image: linear-gradient(var(--cream), var(--cream)), url("../assets/img/hero.jpg");
  background-repeat: no-repeat;
  background-size: var(--fill, 100%) 100%, var(--bw, 0px) var(--bh, 0px);
  background-position: 0 0, calc(var(--bx, 0px) + var(--drift)) var(--by, 0px);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__reg {
  width: 0.2em; height: 0.2em;
  margin: 0.04em 0 0 0.05em;
  align-self: flex-start;
  flex: none;
}

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 5.2;
  clip-path: inset(0 0 0 0 round var(--radius));
}
.hero__img {
  width: 100%; height: 125%;
  object-fit: cover;
  will-change: transform;
}

.hero__meta {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0 32px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 200;
}
.hero__scroll { display: inline-flex; align-items: center; gap: 8px; }
.hero__scroll i { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.hero__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px clamp(24px, 6vw, 120px);
  padding-top: clamp(32px, 4vw, 48px);
}
.hero__claim {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
  max-width: 10ch;
}
.hero__side p { margin: 0; font-size: var(--fs-lead); max-width: 42ch; align-self: end; }
.hero__side { display: flex; align-items: flex-end; }

@media (max-width: 760px) {
  .hero { padding-top: 84px; }
  .hero__media { aspect-ratio: 4 / 5; }
  .hero__intro { grid-template-columns: 1fr; }
  .hero__intro > :nth-child(1) { order: 1; }
  .hero__intro > :nth-child(2) { order: 2; }
  .hero__intro > :nth-child(3) { order: 4; }
  .hero__intro > :nth-child(4) { order: 3; }
  .hero__meta { flex-direction: column; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 10px 0 6px;
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__track span {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 900;
  letter-spacing: -0.06em;
  padding-right: 0.8em;
  white-space: nowrap;
}
.marquee__track sup { font-size: 0.4em; font-weight: 700; vertical-align: 1.3em; margin-left: 0.15em; }

/* ---------- About ---------- */
.about { padding: clamp(64px, 8vw, 120px) 0 0; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(100px, 0.15fr) 1fr;
  gap: 24px;
  align-items: start;
}
.about__grid > .eyebrow { margin-top: clamp(80px, 13vw, 180px); }
.about .display { max-width: 13ch; }
.about__body { max-width: 68ch; margin-top: 2em; font-size: var(--fs-lead); }
.about__body p { margin: 0 0 1.2em; }
.about__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 1em; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--line-light);
  padding-top: 24px;
  padding-bottom: 32px;
}
.pillar {
  padding: 4px clamp(16px, 3vw, 40px);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.pillar + .pillar { border-left: 1px solid var(--line-light); }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__grid > .eyebrow { margin-top: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 18px 0; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line-light); }
}

/* ---------- Ecosystem ---------- */
.eco { padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 120px); }
.eco .headline { margin-top: 1.1em; }
.eco .lead { max-width: 80ch; }

.brands { position: relative; margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-dark); }
.brand { border-bottom: 1px solid var(--line-dark); }
.brand__head {
  width: 100%;
  display: flex; align-items: flex-end; gap: clamp(12px, 1.5vw, 20px);
  padding: clamp(16px, 2vw, 28px) 0 clamp(14px, 1.6vw, 22px);
  text-align: left;
}
.brand__name {
  position: relative;
  font-size: clamp(36px, 6.4vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
  -webkit-text-stroke: 2.4px var(--cream);
  paint-order: stroke fill;
  white-space: nowrap;
}
.brand__name::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--cream);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease);
}
.brand__head:hover .brand__name::after { clip-path: inset(0 0 0 0); }
.brand__tag { font-size: clamp(14px, 1.2vw, 17px); font-weight: 200; padding-bottom: 0.2em; flex: 1; }
.brand__toggle { font-size: 18px; transition: transform 0.6s var(--ease); margin-bottom: 0.2em; }
.brand.is-open .brand__toggle { transform: rotate(180deg); }

.brand__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s var(--ease);
}
.brand.is-open .brand__body { grid-template-rows: 1fr; }
.brand__inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(16px, 4vw, 64px);
}
.brand__inner > * { padding-bottom: 32px; }
.brand__inner h3 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.brand__inner p { margin: 0 0 0.9em; font-weight: 200; max-width: 62ch; opacity: 0.85; }
@media (max-width: 760px) {
  .brand__head { flex-wrap: wrap; }
  .brand__name { width: 100%; }
  .brand__inner { grid-template-columns: 1fr; }
  .brand__inner > h3 { padding-bottom: 0; }
}

.brand-preview {
  position: absolute; top: 0; left: 0;
  width: 280px; aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  transform: scale(0.6) rotate(-6deg);
}
.brand-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .brand-preview { display: none; } }

.connect { margin-top: clamp(40px, 5vw, 64px); }
.connect__text { font-size: var(--fs-lead); max-width: 90ch; margin: 1.6em 0 0; }
.connect__icons { display: flex; align-items: center; gap: 28px; margin-top: 28px; color: var(--cream); }
.connect__icons svg { height: 46px; width: auto; transition: color 0.3s, transform 0.5s var(--ease); }
.connect__icons svg:hover { color: var(--accent); transform: translateY(-4px) rotate(-4deg); }

/* ---------- Section head (shared) ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(100px, 0.15fr) 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 80px); }
.services .display { max-width: 16ch; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--ink);
}
.service {
  position: relative;
  padding: 26px clamp(0px, 2vw, 28px) 40px 0;
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.service::before {
  content: "";
  position: absolute; inset: 0 0 0 -100vw;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.service:hover { color: var(--cream); }
.service:hover::before { transform: scaleY(1); }
.service:nth-child(3n+2), .service:nth-child(3n) { padding-left: clamp(16px, 2vw, 28px); }
.service__num {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.service h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  max-width: 12ch;
}
.service p { margin: 0; max-width: 32ch; font-size: 15px; }
.center { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(n) { padding-left: 0; }
  .service:nth-child(2n) { padding-left: 20px; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .service:nth-child(2n) { padding-left: 0; }
}

/* ---------- Impact ---------- */
.impact { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px); }
.impact .display { max-width: 18ch; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px) clamp(16px, 3vw, 32px);
  margin-top: clamp(48px, 6vw, 80px);
}
.stat { border-top: 1px solid var(--ink); padding-top: 22px; }
.stat__num {
  display: block;
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.4s;
}
.stat:hover .stat__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.stat__label { display: block; margin-top: 10px; font-weight: 700; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -0.03em; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.projects { padding: clamp(64px, 8vw, 120px) 0; border-bottom: 1px solid var(--line-dark); }
.projects .display { max-width: 15ch; }

.ticker {
  margin: clamp(40px, 5vw, 72px) 0;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  transform: rotate(-2deg) scale(1.04);
  padding: 12px 0 10px;
}
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__track span {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  padding-right: 0.6em;
  white-space: nowrap;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.project { cursor: none; }
.project__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 8 / 7;
  transform: translateZ(0);
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.2s var(--ease), filter 0.6s;
}
.project:hover .project__media img { transform: scale(1.02); }
.project h3 {
  margin: 22px 0 8px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.project h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.project p { margin: 0; font-size: 14px; font-weight: 200; max-width: 36ch; opacity: 0.85; }
@media (hover: none) { .project { cursor: auto; } }
@media (max-width: 860px) {
  .projects__grid {
    grid-template-columns: repeat(3, 78%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .project { scroll-snap-align: start; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(64px, 8vw, 120px) 0; }
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact .display { margin-top: 0.4em; max-width: 12ch; }
.contact .lead { max-width: 40ch; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-top: 24px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 26px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  outline: none;
  border-radius: 0;
  appearance: none;
  resize: vertical;
  transition: border-color 0.3s;
}
.field select { cursor: pointer; }
.field select option { color: var(--ink); }
.field--select::after {
  content: "";
  position: absolute; right: 4px; bottom: 18px;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--cream);
  border-bottom: 1.5px solid var(--cream);
  transform: rotate(45deg);
  pointer-events: none;
}
.field label {
  position: absolute; left: 0; top: 26px;
  font-size: 15px;
  font-weight: 200;
  color: rgba(235, 240, 223, 0.6);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.4s var(--ease), color 0.3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-24px) scale(0.75);
  color: var(--cream);
  font-weight: 700;
}
.field::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
  z-index: 1;
}
.field:focus-within::before { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: var(--accent); }
.field.is-invalid label { color: var(--accent); }

.form__foot { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding-top: 8px; }
.form__status { margin: 0; min-height: 1.5em; font-size: 14px; }
.form.is-sent .form__status { color: var(--accent); font-weight: 700; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { padding: 28px 0 24px; overflow: hidden; }
.footer__top, .footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__top span { font-weight: 700; }
.footer__top nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.5vw, 40px); }
.footer__top nav a { transition: color 0.3s; }
.footer__top nav a:hover { color: var(--accent); }
.footer__logo {
  text-align: center;
  font-size: clamp(56px, 17vw, 270px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.05;
  margin: clamp(32px, 5vw, 64px) 0 clamp(8px, 1vw, 16px);
  white-space: nowrap;
}
.footer__logo .char { display: inline-block; }
.footer__bottom { border-top: 1px solid var(--line-dark); padding-top: 18px; font-weight: 200; }
.footer__bottom .link-arrow { font-weight: 400; font-size: 11px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
