/* Social Surplus — one-page site. Mobile first. */

/* ---------- Fallback faces: keep layout steady while the web fonts load ---------- */
@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600;
  size-adjust: 130%;
  ascent-override: 88%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 102%;
  ascent-override: 98%;
  descent-override: 28%;
  line-gap-override: 0%;
}

:root {
  --orange: #FF6A2D;
  --orange-dark: #F05A1A;
  --cream: #FBF1E3;
  --ink: #221E1A;
  --white: #FFFFFF;

  --ink-soft: rgb(34 30 26 / 0.74);
  --line: rgb(34 30 26 / 0.13);
  --error: #C23A2B;

  --font-head: "Unbounded", "Unbounded Fallback", system-ui, sans-serif;
  --font-body: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --space: 72px;
  --header-h: 64px;
  --r-card: 16px;
  --r-video: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --fs-h1: clamp(28px, 8.2vw, 36px);
  --fs-h2: 30px;
  --fs-h3: 20px;
  --fs-num: clamp(26px, 8.2vw, 40px);
  --fs-body: 16px;
  --fs-small: 13px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
    --fs-h1: clamp(36px, 5.6vw, 48px);
    --fs-h2: clamp(30px, 3.6vw, 44px);
    --fs-h3: 22px;
    --fs-num: clamp(40px, 5vw, 52px);
    --fs-body: 18px;
    --fs-small: 14px;
  }
}
@media (min-width: 960px) {
  :root {
    --space: 120px;
    --fs-h1: clamp(40px, 4vw, 54px);
    --fs-num: clamp(34px, 4vw, 52px);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
html.i18n-wait body { opacity: 0; }

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1, h2, h3 { overflow-wrap: break-word; }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.14; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 18px;
  background: var(--ink); color: var(--cream); border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.lead { font-size: calc(var(--fs-body) + 2px); color: var(--ink-soft); }
.eyebrow {
  font-size: var(--fs-small); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; line-height: 1.4; color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.6em;
  vertical-align: -0.05em; background: var(--orange);
  -webkit-mask: var(--plus-mask) center / contain no-repeat; mask: var(--plus-mask) center / contain no-repeat;
}
:root {
  --plus-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='36' width='28' height='100' rx='14'/%3E%3Crect y='36' width='100' height='28' rx='14'/%3E%3C/svg%3E");
}

.link {
  display: inline-block; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 2px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.link:hover { border-bottom-color: var(--ink); transform: translateX(3px); }

.section { padding-top: var(--space); }
.section--last { padding-bottom: var(--space); }
.band { margin-top: var(--space); padding-block: var(--space); position: relative; overflow: hidden; }
.band--white { background: var(--white); }
.band--orange { background: var(--orange); }
.section__caption { margin-top: 16px; max-width: 60ch; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 10px 24px -10px rgb(240 90 26 / 0.65); }
.btn--ghost:hover { background: rgb(34 30 26 / 0.06); }
.btn--dark:hover { background: #000; box-shadow: 0 10px 24px -10px rgb(34 30 26 / 0.6); }
.btn:active { transform: translateY(0); }
.btn[disabled] { cursor: progress; transform: none; }
@media (min-width: 768px) { .btn { min-height: 52px; } .btn--sm { min-height: 44px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(251 241 227 / 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color 0.25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 26px; width: auto; }

.header__panel { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a {
  position: relative; padding: 6px 0; font-size: 15px; font-weight: 500; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  min-width: 40px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.lang button:hover { background: rgb(34 30 26 / 0.07); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.burger {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: none; cursor: pointer;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 959px) {
  .burger { display: block; }
  .header__panel {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 8px var(--gutter) 28px; background: var(--cream); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .header__panel.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav { flex-direction: column; gap: 0; margin: 0; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header__panel .lang { align-self: flex-start; }
  .header__panel .btn { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 28px var(--space); overflow-x: clip; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__copy { max-width: 680px; }
.hero__eyebrow { margin-bottom: 18px; }
.hero__sub { margin-top: 20px; max-width: 46ch; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.hero__media { position: relative; display: flex; justify-content: center; padding: 12px 0; }
.phone {
  position: relative; z-index: 1; width: min(62vw, 280px); aspect-ratio: 9 / 16;
  border: 8px solid var(--ink); border-radius: 40px; overflow: hidden; background: var(--ink);
  box-shadow: 0 40px 60px -30px rgb(34 30 26 / 0.45);
  transform: translateZ(0);
}
.phone__video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }

.deco { position: absolute; pointer-events: none; }
.deco--orange { color: var(--orange); }
.deco--ink { color: var(--ink); }
.deco--cream { color: var(--cream); }
.hero__plus-a { width: 150px; height: 150px; right: calc(50% - 190px); top: -4px; }
.hero__plus-b { width: 44px; height: 44px; left: calc(50% - 175px); bottom: 36px; }

@media (min-width: 640px) {
  .hero__cta { flex-direction: row; }
}
@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .hero__sub { margin-top: 28px; }
  .hero__cta { margin-top: 40px; }
  .phone { width: min(100%, 320px); border-width: 10px; border-radius: 48px; }
  .hero__plus-a { width: 220px; height: 220px; right: calc(50% - 250px); top: -30px; }
  .hero__plus-b { width: 64px; height: 64px; left: calc(50% - 230px); bottom: 60px; }
}
@media (max-width: 639px) {
  .hero__cta .btn { width: 100%; }
}

/* ---------- Numbers ---------- */
.num {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-num);
  line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats__grid li { padding: 28px 12px 28px 0; }
.stats__grid li:nth-child(even) { padding: 28px 0 28px 16px; border-left: 1px solid var(--line); }
.stats__grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat__plus { width: 14px; height: 14px; color: var(--orange); margin-bottom: 14px; }
.stat__label { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); max-width: 22ch; }
@media (min-width: 768px) {
  .stats__grid li { padding: 44px 24px 44px 0; }
  .stats__grid li:nth-child(even) { padding: 44px 0 44px 32px; }
  .stat__label { font-size: 16px; }
}
@media (min-width: 960px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stats__grid li, .stats__grid li:nth-child(even) { padding: 48px 16px 48px 28px; border-top: 0; border-left: 1px solid var(--line); }
  .stats__grid li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Idea ---------- */
.idea__grid { display: grid; gap: 24px; }
.idea__text { font-size: calc(var(--fs-body) + 2px); max-width: 62ch; }
@media (min-width: 960px) {
  .idea__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .idea__title { grid-column: 1 / span 4; }
  .idea__text { grid-column: 6 / span 7; font-size: 22px; line-height: 1.55; }
}

/* ---------- Case ---------- */
.case__head { display: grid; gap: 16px; max-width: 760px; }
.case__head h2 { font-size: min(var(--fs-h2), 7vw); }
.case__text { color: var(--ink-soft); }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; margin-top: 40px; padding-block: 28px; border-block: 1px solid var(--line); }
.metric__label { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
@media (min-width: 960px) {
  .metrics { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; padding-block: 40px; }
}

.reels {
  display: flex; gap: 14px; margin: 40px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 24px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel { flex: none; width: 62vw; max-width: 270px; scroll-snap-align: start; }
.reel__btn {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0;
  border-radius: var(--r-video); overflow: hidden; background: var(--ink); cursor: pointer;
  box-shadow: 0 24px 40px -24px rgb(34 30 26 / 0.5);
  transform: translateZ(0);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.reel__btn video { width: 100%; height: 100%; object-fit: cover; }
.reel__btn:hover { transform: translateY(-4px) translateZ(0); box-shadow: 0 32px 48px -26px rgb(34 30 26 / 0.55); }
.reel__sound {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: rgb(34 30 26 / 0.72); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 0.2s, transform 0.2s var(--ease), background-color 0.2s;
}
.reel__sound svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.reel__sound .i-on { display: none; }
.reel__btn[aria-pressed="true"] .reel__sound { background: var(--orange); color: var(--ink); }
.reel__btn[aria-pressed="true"] .i-on { display: block; }
.reel__btn[aria-pressed="true"] .i-off { display: none; }
@media (hover: hover) {
  .reel__sound { opacity: 0; transform: scale(0.85); }
  .reel__btn:hover .reel__sound, .reel__btn:focus-visible .reel__sound, .reel__btn[aria-pressed="true"] .reel__sound { opacity: 1; transform: none; }
}
@media (min-width: 960px) {
  .reels {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; overflow: visible;
    margin: 56px 0 0; padding: 0;
  }
  .reel { width: auto; max-width: none; }
}
.case__link { margin-top: 12px; }
@media (min-width: 960px) { .case__link { margin-top: 40px; } }

/* ---------- Other projects ---------- */
.cards { display: grid; gap: 16px; margin-top: 40px; }
.card {
  position: relative; padding: 28px 28px 32px; background: var(--white); border-radius: var(--r-card);
  box-shadow: 0 1px 0 var(--line), 0 18px 36px -28px rgb(34 30 26 / 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 26px 40px -26px rgb(34 30 26 / 0.45); }
.card__plus { width: 22px; height: 22px; color: var(--orange); margin-bottom: 36px; }
.card__meta {
  margin-bottom: 10px; font-size: var(--fs-small); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; line-height: 1.4; color: var(--ink-soft);
}
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } .card__plus { margin-bottom: 56px; } }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 36px; margin-top: 48px; counter-reset: step; }
.step { position: relative; }
.step__num {
  display: block; margin-bottom: 18px; font-family: var(--font-head); font-weight: 600;
  font-size: var(--fs-num); line-height: 1; letter-spacing: -0.04em;
}
.step__num i { font-style: normal; color: var(--orange); margin-right: 0.04em; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: calc(var(--fs-body) - 1px); }
.formats {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 24px 24px;
  background: var(--white); border-radius: var(--r-card); font-weight: 500;
  box-shadow: 0 1px 0 var(--line);
}
.formats svg { flex: none; width: 20px; height: 20px; margin-top: 5px; color: var(--orange); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
  .step__num { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
  .formats { padding: 28px 32px; font-size: 20px; line-height: 1.5; align-items: center; }
  .formats svg { margin-top: 0; }
}

/* ---------- For creators ---------- */
.creators { color: var(--ink); }
.creators__inner { position: relative; z-index: 1; max-width: 880px; margin-left: 0; }
.creators .eyebrow { color: var(--ink); }
.creators .eyebrow::before { background: var(--ink); }
.creators h2 { margin-top: 16px; }
.creators__text { margin-top: 24px; font-size: calc(var(--fs-body) + 2px); font-weight: 500; max-width: 60ch; }
.creators__platform { margin-top: 16px; max-width: 60ch; }
.creators .btn { margin-top: 32px; }
.creators__plus-a { width: 150px; height: 150px; right: -48px; top: -42px; }
.creators__plus-b { display: none; }
@media (min-width: 640px) {
  .creators__plus-a { width: 260px; height: 260px; right: -70px; top: -60px; }
  .creators__plus-b { display: block; width: 70px; height: 70px; right: 190px; bottom: 36px; }
}
@media (min-width: 960px) {
  .creators__inner { margin-inline: auto; padding-inline: var(--gutter); max-width: 1200px; }
  .creators__inner > * { max-width: 760px; }
  .creators__plus-a { width: 520px; height: 520px; right: -80px; top: -90px; }
  .creators__plus-b { width: 120px; height: 120px; right: 420px; bottom: 80px; }
}
@media (max-width: 959px) { .creators .btn { width: 100%; } }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 28px; align-items: center; }
.about__photo {
  width: 160px; height: 160px; margin: 8px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  background: var(--white); box-shadow: 0 0 0 6px var(--cream), 0 0 0 8px var(--orange);
}
.about__who { margin-top: 16px; font-size: calc(var(--fs-body) - 1px); color: var(--ink-soft); }
.about__who strong { color: var(--ink); }
.about__text { margin-top: 12px; max-width: 62ch; }
@media (min-width: 768px) {
  .about__grid { grid-template-columns: 256px minmax(0, 1fr); gap: 48px; align-items: start; }
  .about__photo { width: 240px; height: 240px; margin: 8px; }
}

/* ---------- Form ---------- */
.contact__grid { display: grid; gap: 32px; }
.contact__intro { position: relative; }
.contact__plus { display: none; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .contact__intro { grid-column: 1 / span 5; padding-top: 8px; }
  .form-card { grid-column: 6 / span 7; }
  .contact__plus { display: block; position: static; width: 72px; height: 72px; margin-top: 40px; }
}

.form-card { padding: 20px 18px 24px; background: var(--white); border-radius: 24px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgb(34 30 26 / 0.45); }
@media (min-width: 640px) { .form-card { padding: 32px; } }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.tab {
  min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; background: transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.tab:hover { transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--orange); border-color: var(--orange); }

.panels { position: relative; margin: -4px -4px 0; padding: 4px 4px 0; overflow: hidden; }
.panel { display: grid; gap: 18px; }
.panel[hidden] { display: none; }
.panel.is-entering { animation: panel-in 0.3s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 16px; background: var(--cream);
  border: 2px solid transparent; border-radius: 12px; font-size: 16px; line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23221E1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(34 30 26 / 0.18); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 4px rgb(255 106 45 / 0.18);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); background: #FFF5F2; }
.field__error { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { position: relative; margin-top: 24px; }
.spinner {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgb(34 30 26 / 0.25); border-top-color: var(--ink); opacity: 0;
  animation: spin 0.7s linear infinite paused;
}
.form__submit.is-loading .form__label { opacity: 0; }
.form__submit.is-loading .spinner { opacity: 1; animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__error { margin-top: 16px; padding: 14px 16px; background: #FFF5F2; border-radius: 12px; color: var(--error); font-weight: 500; font-size: 15px; }
.form__error a { color: inherit; font-weight: 700; }
.form__privacy { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

.form__success { display: grid; justify-items: center; gap: 20px; padding: 40px 12px; text-align: center; outline: none; }
.form__success[hidden] { display: none; }
.form__success p { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; max-width: 22ch; }
.form__check { width: 56px; height: 56px; animation: pop 0.5s var(--ease) both; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding-block: 56px 36px; }
.footer__inner { display: grid; gap: 28px; }
.footer__logo { height: 30px; width: auto; }
.footer__links { display: grid; gap: 8px; justify-items: start; }
.footer__links a { text-decoration: none; font-weight: 500; border-bottom: 1px solid rgb(251 241 227 / 0.3); transition: border-color 0.2s; }
.footer__links a:hover { border-bottom-color: var(--orange); }
.footer :focus-visible { outline-color: var(--cream); }
.lang--footer { justify-self: start; border-color: rgb(251 241 227 / 0.3); }
.lang--footer button { color: var(--cream); }
.lang--footer button:hover { background: rgb(251 241 227 / 0.14); }
.lang--footer button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.footer__copy { font-size: 14px; color: rgb(251 241 227 / 0.62); }
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; gap: 40px 24px; }
  .footer__links { justify-items: end; }
  .lang--footer { grid-column: 1; grid-row: 2; }
  .footer__copy { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; }
}

/* ---------- Motion ---------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

html.js [data-split]:not(.is-split) { visibility: hidden; }
[data-split] .w {
  display: inline-block; opacity: 0; transform: translateY(0.4em);
  transition: opacity 0.5s ease calc(var(--i) * 28ms), transform 0.7s var(--ease) calc(var(--i) * 28ms);
}
[data-split].is-in .w { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  [data-split] .w { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .reel__btn:hover, .tab:hover, .link:hover { transform: none; }
}

@media print {
  .site-header, .reels, .hero__media { display: none; }
}
