/* ASCAnalysis homepage.
   Dark by intent: broadcast graphics are designed to read over dark water, and
   black + blue is the brand. One accent (blue). Amber, white and the medal
   colours appear only inside the pool animation, where they mean what they
   mean on air (record, personal best, placings). Layout uses logical
   properties throughout so Arabic (dir="rtl") mirrors without extra rules. */

:root {
  --ink: #05070a;
  --surface: #0a0e14;
  --surface-raised: #0f151e;
  --band: #07101d;
  --border: #1b2532;
  --border-strong: #2b3848;
  --text: #e9eef4;
  --text-muted: #97a6b8;
  --text-faint: #75859a;
  --accent: #2e8bff;
  --accent-hover: #5aa4ff;
  --accent-ink: #03101f;
  --water: #0a1e3a;
  --water-deep: #040c19;
  --data-pb: #f4f7fa;
  --data-record: #f2b233;
  --medal-gold: #d9b24c;
  --medal-silver: #c3cad3;
  --medal-bronze: #c47f43;
  --danger: #ff7a7a;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(1rem, 0.6rem + 2.4vw, 3rem);
  --section-y: clamp(4rem, 2.8rem + 5vw, 8rem);
  --radius: 0.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

:lang(ar) {
  --font-display: "IBM Plex Sans Arabic", "Inter Tight", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.3; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 1rem; top: -3rem; z-index: 60; padding: 0.5rem 1rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.7rem 1.25rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font-display); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: rgba(5, 7, 10, 0.35); }
.btn--ghost:hover { border-color: var(--text-muted); }
.btn--sm { min-height: 2.25rem; padding: 0.45rem 0.95rem; font-size: 0.875rem; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-arrow { display: inline-flex; gap: 0.5rem; align-items: center; color: var(--accent); font: 600 1rem var(--font-display); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 180ms var(--ease); }
[dir="rtl"] .link-arrow::after { content: "←"; }
.link-arrow:hover::after { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }

/* ------------------------------------------------------------ top bar */
.topbar { position: fixed; inset-inline: 0; top: 0; z-index: 40; transition: background-color 220ms var(--ease), border-color 220ms var(--ease); border-bottom: 1px solid transparent; }
.topbar.is-solid { background: rgba(5, 7, 10, 0.88); backdrop-filter: saturate(140%) blur(10px); border-bottom-color: var(--border); }
.topbar__row { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; }
.brand__logo { height: 2.6rem; width: auto; }
.brand__logo--lockup { height: 4.5rem; }
.nav { display: flex; gap: clamp(0.9rem, 0.3rem + 1vw, 1.6rem); margin-inline-start: auto; }
.nav a { font: 500 0.875rem var(--font-body); color: var(--text-muted); text-decoration: none; padding-block: 0.4rem; position: relative; white-space: nowrap; }
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav a.is-current::after { content: ""; position: absolute; inset-inline: 0; bottom: -0.2rem; height: 2px; background: var(--accent); border-radius: 2px; }
.topbar__actions { display: flex; align-items: center; gap: 0.75rem; }
.lang { background: none; border: 0; padding: 0.4rem 0.25rem; color: var(--text-muted); cursor: pointer; font: 600 0.9rem "IBM Plex Sans Arabic", var(--font-body); }
.lang:hover { color: var(--text); }
.lang:lang(en) { font-family: var(--font-body); }
.menu-btn { display: none; width: 2.5rem; height: 2.5rem; border: 1px solid var(--border-strong); border-radius: 999px; background: none; cursor: pointer; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 1rem; height: 1.5px; background: var(--text); margin-inline: auto; transition: transform 200ms var(--ease); position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-btn__bars::before { top: -5px; }
.menu-btn__bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-5px) rotate(-45deg); }
.drawer { background: rgba(5, 7, 10, 0.97); border-bottom: 1px solid var(--border); }
.drawer nav { display: grid; padding: 0.5rem var(--gutter) 1.25rem; }
.drawer a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); text-decoration: none; font: 600 1.1rem var(--font-display); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .topbar__actions { margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .topbar__actions .btn--sm { display: none; }
}

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: max(38rem, min(100svh, 62rem)); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__pool { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(5,7,10,0.94) 0%, rgba(5,7,10,0.72) 30%, rgba(5,7,10,0) 58%),
    linear-gradient(to top, rgba(5,7,10,0.95) 0%, rgba(5,7,10,0) 32%); }
[dir="rtl"] .hero__scrim { background:
    linear-gradient(to left, rgba(5,7,10,0.94) 0%, rgba(5,7,10,0.72) 30%, rgba(5,7,10,0) 58%),
    linear-gradient(to top, rgba(5,7,10,0.95) 0%, rgba(5,7,10,0) 32%); }
.hero__body { padding-block: 7rem 2.5rem; }
.hero__copy { max-width: 36rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font: 600 0.78rem/1.3 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 0.95rem; }
.eyebrow__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(46,139,255,0.5); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46,139,255,0.55); } 70%, 100% { box-shadow: 0 0 0 0.6rem rgba(46,139,255,0); } }
.hero__title { margin-top: 1rem; font-size: clamp(2.75rem, 1.5rem + 5vw, 5.75rem); font-weight: 800; font-style: italic; line-height: 0.98; letter-spacing: -0.035em; }
:lang(ar) .hero__title { font-style: normal; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.hero__sub { margin-top: 1.4rem; max-width: 30rem; font-size: 1.125rem; line-height: 1.6; color: var(--text-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@media (max-width: 760px) {
  .hero { min-height: 44rem; }
  .hero__scrim, [dir="rtl"] .hero__scrim { background: linear-gradient(to top, rgba(5,7,10,0.98) 0%, rgba(5,7,10,0.9) 38%, rgba(5,7,10,0) 62%); }
  .hero__body { padding-top: calc(178px + 82vw + 1.25rem); }  /* clears the pool band drawn by pool.js */
}

/* Partner ticker along the bottom of the first screen */
.ticker { border-top: 1px solid var(--border); background: rgba(5, 7, 10, 0.78); backdrop-filter: blur(6px); }
.ticker__row { display: flex; align-items: center; gap: 1.5rem; height: 3.5rem; }
.ticker__label { flex: none; font: 600 0.72rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); padding-inline-end: 1.5rem; border-inline-end: 1px solid var(--border); }
:lang(ar) .ticker__label { letter-spacing: 0; font-size: 0.85rem; }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
.ticker__viewport:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 1.5rem; padding-inline-end: 1.5rem; white-space: nowrap; font: 600 0.95rem var(--font-display); color: var(--text-muted); }
.ticker__item::after { content: ""; width: 0.35rem; height: 0.35rem; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }
.ticker__item--lead { color: var(--text); }
.ticker__item img { height: 1.75rem; width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.85; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* ------------------------------------------------------------ sections */
.section { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.section--band { background: var(--band); }
.section--tight { padding-block: calc(var(--section-y) * 0.7); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: end; }
.section__head--split .kicker { grid-column: 1 / -1; }
.section__head--split .section__sub { align-self: end; }
.section__sub { color: var(--text-muted); font-size: 1.125rem; margin-top: 1rem; max-width: 34rem; }
.kicker { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; font: 600 0.75rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
:lang(ar) .kicker { letter-spacing: 0; font-size: 0.9rem; }
.kicker__n { font-family: var(--font-mono); color: var(--accent); letter-spacing: 0; }
.kicker__n::after { content: ""; display: inline-block; width: 1.5rem; height: 1px; background: var(--border-strong); margin-inline-start: 0.75rem; vertical-align: middle; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; } }

/* 01 clips: three data clips, the middle one offset for rhythm */
.clips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.5rem); }
.clip:nth-child(2) { margin-top: 3.5rem; }
.clip h3 { margin-top: 1.4rem; }
.clip p { margin-top: 0.6rem; color: var(--text-muted); }
.clip__frame { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--water-deep); }
.clip__frame canvas { width: 100%; height: 100%; }
.clip__frame::after { content: ""; position: absolute; inset: 0.6rem; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 0.9rem 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1px 0.9rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 0.9rem 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1px 0.9rem no-repeat; opacity: 0.8; }
.clip__tag { position: absolute; inset-block-end: 0.9rem; inset-inline-start: 0.9rem; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.6rem; border-radius: 4px; background: rgba(5, 7, 10, 0.82); font: 600 0.75rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
:lang(ar) .clip__tag { letter-spacing: 0; font-size: 0.85rem; }
.clip__rec { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
@media (max-width: 900px) {
  .clips { grid-template-columns: 1fr; max-width: 34rem; }
  .clip:nth-child(2) { margin-top: 0; }
}

/* 02 difference: asymmetric editorial grid */
.diff { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.diff__item { position: relative; grid-column: span 5; background: var(--ink); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); transition: background-color 220ms var(--ease); }
.diff__item:hover { background: var(--surface); }
.diff__item--lead { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
.diff__item--wide { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 3rem; align-items: start; }
.diff__item--wide .diff__n { grid-column: 1 / -1; }
.diff__n { display: inline-block; font: 600 0.8rem var(--font-mono); color: var(--accent); margin-bottom: 1.25rem; }
.diff__item p { margin-top: 0.75rem; color: var(--text-muted); max-width: 36rem; }
.diff__item--lead h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; }
.diff__item--wide p { margin-top: 0; }
/* The lead card carries a drawing of the idea: a lane with its line on the water. */
.diff__lanes { margin-top: auto; padding-top: 2.5rem; height: 9rem; box-sizing: content-box;
  background:
    linear-gradient(90deg, transparent calc(62% - 1px), var(--data-pb) calc(62% - 1px), var(--data-pb) calc(62% + 1px), transparent calc(62% + 1px)) 0 50% / 100% 34% no-repeat,
    linear-gradient(90deg, transparent calc(74% - 1.5px), var(--data-record) calc(74% - 1.5px), var(--data-record) calc(74% + 1.5px), transparent calc(74% + 1.5px)) 0 100% / 100% 100% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 calc(33.33% - 1px), var(--border-strong) calc(33.33% - 1px) 33.33%) content-box; }
[dir="rtl"] .diff__lanes { transform: scaleX(-1); }
@media (max-width: 860px) {
  .diff__item, .diff__item--lead, .diff__item--wide { grid-column: span 12; grid-row: auto; }
  .diff__item--wide { display: block; }
  .diff__item--wide p { margin-top: 0.75rem; }
}

/* 03 viewers */
.viewers { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.points { margin: 2rem 0 0; display: grid; gap: 1.5rem; }
.points > div { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--border-strong); }
.points dt { font: 600 1.1rem/1.3 var(--font-display); }
.points dd { margin: 0.4rem 0 0; color: var(--text-muted); }
.compare { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--water-deep); }
.compare canvas { width: 100%; aspect-ratio: 16 / 10; }
.compare__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border); background: var(--surface); }
.compare__label { font: 600 0.8rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
:lang(ar) .compare__label { letter-spacing: 0; font-size: 0.9rem; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--ink); cursor: pointer; }
.switch::before { content: ""; position: absolute; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--accent); transition: transform 220ms var(--ease); }
.switch[aria-checked="true"]::before { transform: translateX(100%); }
[dir="rtl"] .switch[aria-checked="true"]::before { transform: translateX(-100%); }
.switch__opt { position: relative; padding: 0.35rem 1rem; font: 600 0.85rem var(--font-display); color: var(--text-muted); transition: color 220ms var(--ease); }
.switch[aria-checked="false"] .switch__opt:first-child, .switch[aria-checked="true"] .switch__opt:last-child { color: var(--accent-ink); }
@media (max-width: 900px) { .viewers { grid-template-columns: 1fr; } }

/* 04 reads: a ruled list, audience on one side and what they get on the other */
.reads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.read { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--border); position: relative; }
.read::before { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); transition: width 500ms var(--ease); }
.read:hover::before { width: 100%; }
.read h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); letter-spacing: -0.01em; }
.read p { color: var(--text-muted); font-size: 1.0625rem; max-width: 40rem; }
@media (max-width: 700px) { .read { grid-template-columns: 1fr; gap: 0.5rem; } }

/* 05 venues */
.venues { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.tab { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 1.1rem 1.4rem; background: var(--surface); border: 0; border-inline-end: 1px solid var(--border); cursor: pointer; text-align: start; position: relative; transition: background-color 180ms var(--ease); }
.tab:last-child { border-inline-end: 0; }
.tab span { font: 600 1rem/1.3 var(--font-display); }
.tab small { font: 500 0.8rem var(--font-body); color: var(--text-faint); }
.tab:hover { background: var(--surface-raised); }
.tab[aria-selected="true"] { background: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--accent); }
.venue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
.venue__name { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -0.015em; line-height: 1.15; }
.venue__city { margin-top: 0.4rem; color: var(--accent); font: 600 0.85rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
:lang(ar) .venue__city { letter-spacing: 0; font-size: 0.95rem; }
.venue__body { margin-top: 1.1rem; color: var(--text-muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.75rem 0 0; border-top: 1px solid var(--border); }
.facts div { padding-top: 0.9rem; }
.facts dt { font: 500 0.75rem var(--font-body); color: var(--text-faint); }
.facts dd { margin: 0.2rem 0 0; font: 600 1.25rem var(--font-display); font-variant-numeric: tabular-nums; }
.venue__plan { width: 100%; height: auto; }
.venue .btn { margin-top: 1.75rem; }
@media (max-width: 860px) {
  .venue { grid-template-columns: 1fr; }
  .tab { padding: 0.9rem 1rem; }
  .tab span { font-size: 0.9rem; }
}

/* 06 partners */
.partners { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: 3rem; align-items: end; }
.partners .kicker { grid-column: 1 / -1; }
.partners__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.2; max-width: 30ch; }
.partners .link-arrow { justify-self: end; }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; row-gap: 1.5rem; } .partners .link-arrow { justify-self: start; } }

/* 07 contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.contact__direct { margin-top: 2rem; color: var(--text-muted); }
.contact__direct a { color: var(--text); font: 600 1.1rem var(--font-display); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 0.875rem var(--font-body); color: var(--text-muted); }
.field input, .field select, .field textarea { width: 100%; padding: 0.8rem 0.95rem; border-radius: 0.4rem; border: 1px solid var(--border-strong); background: var(--ink); transition: border-color 180ms var(--ease); }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-faint); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 139, 255, 0.25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 0.85rem; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { color: var(--text-muted); font-size: 0.95rem; }
.form__status.is-ok { color: var(--text); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--border); padding-block: 3rem; }
.footer__row { display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; align-items: start; }
.footer__tag { margin-top: 0.75rem; color: var(--text-muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.footer__nav a { color: var(--text-muted); text-decoration: none; font-size: 0.925rem; }
.footer__nav a:hover { color: var(--text); }
.footer__legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.85rem; }
@media (max-width: 700px) { .footer__row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { 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; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
