/* =========================================================================
   Maiac — AI Marketing landing page
   Source of truth: Figma "Maiac AI Marketing — One-pager", frame 2:13 (1440px).
   Local reference preserved; guide typography corrected at 1440px. Figma unavailable for verification.
   ========================================================================= */

/* ---------- Fonts (self-hosted Hanken Grotesk, SIL OFL; latin + latin-ext for Romanian) ---------- */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --ink: #0b0b0b;          /* text, primary CTA, dark sections */
  --paper: #ffffff;
  --muted: #5e5e5e;        /* labels, captions, meta */
  --placeholder: #8a8a8a;
  --rule: #d9d9d9;         /* section dividers, service rows */
  --dark-muted: #a8a8a8;   /* labels on dark */
  --dark-text: #e6e6e6;    /* body copy on dark */
  --error: #b42318;

  /* type */
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display-xl: clamp(3rem, 1.388rem + 7.069vw, 7.75rem);   /* 124px @1440 */
  --fs-display-l: clamp(2.5rem, 1.314rem + 5.2067vw, 6rem);   /* 96px */
  --fs-display-m: clamp(2rem, 1.4147rem + 2.5948vw, 3.75rem);  /* 60px */
  --fs-service: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);    /* 36px */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);    /* 24px */
  --fs-body: clamp(1.0625rem, 0.98rem + 0.438889vw, 1.375rem);  /* 22px */

  /* layout */
  --max: 1312px;                              /* content width @1440 */
  --gutter: clamp(20px, 4.45vw, 64px);        /* 64px @1440 */
  --label-col: 360px;
  --col-gap: 32px;
  --section-pad: clamp(72px, 6vw + 33.6px, 120px);
  --section-pad-l: clamp(88px, 7vw + 43.2px, 144px);
  --aside: 600px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-zoom: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 200ms;
  --dur: 320ms;
  --dur-zoom: 900ms;
  --dur-menu-in: 180ms;
  --dur-menu-out: 140ms;

  --header-reserve: 11rem;
  --logo-size: clamp(120px, 19.53125vw, 150px);
  --footer-base: 680px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  isolation: isolate; /* Keep the page/footer stacking context stable across modal locking. */
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--ink); /* matches the footer so the reveal never flashes white */
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Skip navigation moves focus into the page without framing its entire edge. */
#main:focus-visible { outline-color: transparent; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }
[id] { scroll-margin-block-start: calc(var(--header-h, var(--header-reserve)) + 16px); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
}
.skip-link:focus { top: 16px; }

/* ---------- First-visit introduction ----------
   One wordmark lifts out of its slot as the black cover fades. No page lock. */
.site-loader {
  --intro-ready: 1; --intro-logo-size: clamp(180px, 18vw, 260px);
  --intro-cover-duration: 1560ms; --intro-wordmark-duration: 1280ms;
}
.site-loader__cover {
  position: fixed; inset: 0; z-index: 101; pointer-events: none;
  background: oklch(0% 0 none);
  animation: intro-cover var(--intro-cover-duration) linear both;
}
.site-loader__slot {
  position: fixed; z-index: 102; pointer-events: none;
  inset-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2));
  inset-block-start: 50%; transform: translateY(-50%);
  inline-size: var(--intro-logo-size); aspect-ratio: 87 / 30;
  overflow: clip;
}
.site-loader__logo {
  inline-size: 100%; filter: brightness(0) invert(1);
  animation: intro-wordmark var(--intro-wordmark-duration) var(--ease-out) both;
}
@keyframes intro-cover {
  0%, 64% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes intro-wordmark {
  0%, 12% { opacity: 0; transform: translateY(0); }
  38%, 62% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-102%); }
}
/* Loading and direct footer motion are explicit user-selected exceptions. */
@media (prefers-reduced-motion: reduce) {
  .site-loader__cover {
    animation: intro-cover var(--intro-cover-duration) linear both !important;
  }
  .site-loader__logo {
    animation: intro-wordmark var(--intro-wordmark-duration) var(--ease-out) both !important;
  }
}

/* ---------- Page shell (sits above the fixed footer) ---------- */
.page {
  position: relative;
  z-index: 1;
  background: var(--paper);
  /* JS sets --footer-h to the footer's real height; this fallback matches Figma. */
  margin-block-end: 0;
  padding-block-start: var(--header-h, var(--header-reserve));
}
.footer-reveal .page { margin-block-end: var(--footer-h); }
.js:not(.no-footer-reveal) .page { margin-block-end: var(--footer-h, var(--footer-base)); }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.display-xl { font-size: var(--fs-display-xl); line-height: 0.98; letter-spacing: -0.035em; font-weight: 400; }
.display-l  { font-size: var(--fs-display-l);  line-height: 1;    letter-spacing: -0.03em;  font-weight: 400; }
.display-m  { font-size: var(--fs-display-m);  line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; }
.lead { font-size: var(--fs-lead); line-height: 1.4; }
.eyebrow { font-size: 16px; line-height: 1.5; color: var(--muted); }
.eyebrow--dark { color: var(--dark-muted); }
.prose { display: grid; gap: 32px; max-width: 760px; font-size: var(--fs-body); line-height: 1.5; }
.prose--dark { color: var(--dark-text); gap: 24px; }
.stack { display: grid; gap: 32px; justify-items: start; }

/* Two-column "label | content" rows used by most sections (360 + 32 + 920). */
.split { display: grid; gap: 16px; }
.split--head { margin-bottom: clamp(40px, 4.444445vw, 64px); }
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(180px, var(--label-col)) minmax(0, 920fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
  .split--center { align-items: center; }
}
.split__label { padding-top: 0.15em; }

/* Right-hand 600px column (hero, point of view, contact). */
.aside-col { width: 100%; max-width: var(--aside); }
@media (min-width: 900px) { .aside-col { margin-left: auto; } }

/* ---------- Buttons & links ----------
   Primary:   black fill, white text  → hover: white fill, black text.
   Secondary: white fill, black text  → hover: black fill, white text.
   Both keep a 1px ink border so the shape never jumps. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 17px 27px;
  border: 1px solid var(--ink); border-radius: 0;
  font-size: 17px; font-weight: 500; line-height: 1.3; text-align: left;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--secondary { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--paper); color: var(--ink); }
  .btn--secondary:hover { background: var(--ink); color: var(--paper); }
}
.btn--primary:active { background: var(--paper); color: var(--ink); }
.btn--secondary:active { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 40px; padding: 9px 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }

.text-link {
  font-size: 16px; font-weight: 500; line-height: 1.3;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
  padding-bottom: 2px;
}
@media (hover: hover) and (pointer: fine) { .text-link:hover { background-size: 100% 1px; } }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--ink); padding: 8px 14px; min-height: 40px;
  min-inline-size: calc(5ch + 30px); justify-content: center;
  font-size: 15px; font-weight: 500; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:focus { outline: 2px solid transparent; }
.menu-toggle:focus-visible {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em;
}

/* ---------- Persistent header: same vertical section list throughout the page ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-block: 24px; padding-inline: var(--gutter);
  max-inline-size: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  color: oklch(100% 0 none); background: transparent;
  mix-blend-mode: difference; pointer-events: none;
}
.site-header a, .site-header button { pointer-events: auto; }
.site-header :focus-visible { outline-color: currentColor; }
.site-header__nav { justify-self: start; }
.site-header__list {
  list-style: none; padding: 0; display: grid; gap: 2px;
  font-size: 14px; line-height: 1.4;
}
.site-header__list a { display: inline-block; }
.site-header__list a.is-active { text-decoration: underline; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) {
  .site-header__list a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
}
.site-header__logo { justify-self: center; }
.site-header__logo img {
  inline-size: var(--logo-size); max-inline-size: none;
  filter: brightness(0) invert(1);
}
.site-header__actions { justify-self: end; }
.site-header .menu-toggle { border-color: currentColor; }
.site-header .menu-toggle:active { background: oklch(100% 0 none); color: var(--ink); }

@media (max-width: 899px) {
  :root { --header-reserve: calc(40px + var(--logo-size) * 30 / 87); }
  .site-header { grid-template-columns: auto 1fr; padding-block: 20px; }
  .js .site-header__nav, .site-header__actions .text-link { display: none; }
  .site-header__logo { justify-self: start; }
  .js .menu-toggle { display: inline-flex; align-items: center; }
}

/* Native links remain usable if scripts are absent or fail. */
html:not(.js) .site-header {
  position: relative; color: var(--ink); background: var(--paper); mix-blend-mode: normal;
}
html:not(.js) .site-header__logo img { filter: none; }
html:not(.js) .page { padding-block-start: 0; }
@media (max-width: 899px) {
  html:not(.js) .site-header__nav { grid-column: 1 / -1; grid-row: 2; margin-block-start: 24px; }
  html:not(.js) .site-header__list { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 16px; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: none; flex-direction: column; gap: 40px;
  margin: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100%;
  padding: 20px var(--gutter) 32px;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[open] { display: flex; }
.menu::backdrop { background: transparent; }
.menu__head {
  display: flex; justify-content: space-between; align-items: center;
  inline-size: 100%; max-inline-size: var(--max); margin-inline: auto;
  padding-inline-end: var(--menu-scrollbar-gap, 0px);
}
.menu__head img { inline-size: var(--logo-size); }
.menu .menu-toggle { display: inline-flex; }
.menu__list { list-style: none; padding: 0; display: grid; gap: 8px; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
.menu__list a { display: block; min-block-size: 44px; align-content: center; }
.menu .btn { align-self: flex-start; margin-top: auto; }
html.menu-open, body.menu-open { overflow: hidden; }
/* Retain the accepted fixed-body scroll-lock gutter and root-range handoff. */
body.menu-open::after {
  content: ""; position: fixed; inset-block: 0; inset-inline-end: 0;
  inline-size: var(--menu-page-scrollbar, 0px); background: var(--paper);
  z-index: 59; pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); background: var(--paper); }
.section--rule { border-top: 1px solid var(--rule); }
.section--dark { background: var(--ink); color: var(--paper); padding-block: var(--section-pad-l); }

/* Hero */
.hero { display: grid; gap: clamp(32px, 4.5vw, 64px); padding-top: clamp(64px, 9.444445vw, 136px); padding-bottom: clamp(64px, 9.444445vw, 136px); }
.hero__title { max-width: 1260px; }
.hero__aside { display: grid; gap: 40px; justify-items: start; }
.hero-image { padding-bottom: var(--section-pad); }
.hero-image img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

/* Point of view */
.shift .container { display: grid; gap: clamp(40px, 5vw, 72px); }
.shift__title { max-width: 1260px; }

/* Work */
.work-grid { display: grid; gap: 56px 24px; }
@media (min-width: 768px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card--feature { grid-column: 1 / -1; }
}
.work-card { display: grid; gap: 20px; align-content: start; }
.work-card__media { position: relative; overflow: clip; background: var(--ink); aspect-ratio: 4 / 3; }
.work-card--feature .work-card__media { aspect-ratio: 1312 / 640; }
.work-card__media picture:first-child, .work-card__img { width: 100%; height: 100%; }
.work-card__img {
  object-fit: cover;
  transform: scale(1.0001);
  transition: transform var(--dur-zoom) var(--ease-zoom);
  will-change: transform;
}
/* Per-card zoom: only the hovered card's image scales; the frame stays put. */
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-card__img { transform: scale(1.05); }
}
.work-card:focus-within .work-card__img { transform: scale(1.05); }
.work-card__overlay {
  position: absolute; left: 50%; top: 50%; width: 25.2%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.work-card__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.work-card__title { font-size: 20px; font-weight: 500; line-height: 1.4; }
.work-card__meta { font-size: 16px; line-height: 1.4; color: var(--muted); }

/* Services */
.services { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.service {
  display: grid; gap: 8px 32px;
  padding-block: 36px; border-top: 1px solid var(--rule);
  grid-template-columns: 48px 1fr;
}
.service__num { font-size: 16px; line-height: 1.5; color: var(--muted); padding-top: 0.35em; }
.service__name { font-size: var(--fs-service); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }
.service__desc { grid-column: 2; font-size: clamp(1rem, 0.9625rem + 0.25vw, 1.1875rem); line-height: 1.5; max-width: 576px; }
@media (min-width: 900px) {
  .service { grid-template-columns: 120px minmax(0, 520fr) minmax(0, 608fr); }
  .service__desc { grid-column: auto; }
}

/* Team: horizontal scroller. Starts on the page gutter, bleeds off the right edge. */
.team { padding-bottom: var(--section-pad); }
.team__scroller {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.team__scroller::-webkit-scrollbar { display: none; }
.team__scroller.is-wheeling { scroll-snap-type: none; }
.team__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.team .team__track {
  display: flex; gap: 24px; width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)) var(--gutter);
}
.member { flex: none; width: 540px; scroll-snap-align: start; }
@media (max-width: 899px) { .member { width: 78vw; } }
.member__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #eee; pointer-events: none; }
.member__portrait--valentin { overflow: clip; }
.member__portrait--valentin .member__photo { transform: scale(1.2); transform-origin: 50% 87%; }
.member__name { margin-top: 20px; font-size: 22px; font-weight: 500; line-height: 1.4; }
.member__role { margin-top: 4px; font-size: 16px; line-height: 1.4; color: var(--muted); }

/* Page scroll drives the row only after the enhancement measures a fitting stage. */
.js .team.is-scroll-driven {
  --team-card-base: 540px;
  padding-block: 0;
  block-size: calc(100svh + var(--team-travel, 0px));
}
.js .is-scroll-driven .team__pin {
  position: sticky;
  inset-block-start: 0;
  block-size: 100svh;
  padding-block: var(--team-pin-top, 100px) 24px;
  background: var(--paper);
}
.js .is-scroll-driven .split--head { margin-block-end: clamp(24px, 3svh, 32px); }
.js .is-scroll-driven .team__scroller {
  overflow-x: hidden;
  scroll-snap-type: none;
  overscroll-behavior-x: auto;
  touch-action: pan-y pinch-zoom;
  cursor: auto;
}
.js .is-scroll-driven .member { inline-size: min(var(--team-card-base), var(--team-card-fit, 540px)); }
@media (max-width: 899px) { .js .team.is-scroll-driven { --team-card-base: 78vw; } }

/* Trusted by */
.trusted { padding-block: 64px; background: var(--paper); }
.trusted__logos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.trusted__logos img { height: clamp(22px, 2vw, 29px); width: auto; }
.trusted__logos li:nth-child(2) img { height: clamp(31px, 2.85vw, 41px); }

/* Contact */
.contact { padding-block: var(--section-pad-l); }
.contact .container { display: grid; gap: clamp(32px, 4.5vw, 64px); }
.contact__col { display: grid; gap: 40px; }
.form { display: grid; gap: 32px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 15px; line-height: 1.4; color: var(--muted); }
.field__input {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 10px 0; background: transparent;
  font-size: 20px; line-height: 1.4;
  transition: border-color var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.field__input::placeholder { color: var(--muted); opacity: 1; }
.field__input:focus { outline: 2px solid transparent; border-bottom-width: 2px; padding-bottom: 9px; }
.field__input--area { block-size: 101px; min-block-size: 101px; padding-block: 10px; resize: vertical; }
.field__input--area:focus { padding-block-end: 9px; }
@media (forced-colors: active) {
  .field__input:focus-visible, .menu-toggle:focus-visible { outline-color: Highlight; }
}
.field.is-invalid .field__input { border-bottom-color: var(--error); }
.field__error { font-size: 14px; color: var(--error); }
.form__submit { display: grid; gap: 16px; justify-items: start; }
.form__note { font-size: 15px; line-height: 1.4; color: var(--muted); }
.form__copyright, .form__status { font-size: 16px; line-height: 1.4; }
.form__status:empty { position: absolute; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Local footer study: persistent accordion behind a native curtain ---------- */
.site-footer {
  position: relative; z-index: 0;
  min-block-size: 680px; block-size: auto;
  background: var(--ink); color: var(--paper);
  overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.footer-reveal .site-footer { position: fixed; inset-inline: 0; inset-block-end: 0; }
.js:not(.no-footer-reveal) .site-footer { position: fixed; inset-inline: 0; inset-block-end: 0; }
/* The footer contains only the approved artwork and its deformation surface. */
.site-footer__mark {
  position: absolute; inset-inline: 0; inset-block: 0;
  inline-size: 100%; block-size: 100%;
  pointer-events: none; overflow: clip;
}
.site-footer__mark-img, .site-footer__mark-copy {
  position: absolute; inset-block: 0;
  block-size: 100%; max-inline-size: none;
}
.site-footer__mark-img {
  inset-inline-end: -14vw; inline-size: auto; aspect-ratio: 847 / 537;
}
.site-footer__mark.is-accordion > img {
  inset-inline: 0 auto; transform-origin: 0 0;
}
.site-footer__mark.is-flowing > img { visibility: hidden; }
.site-footer__flow { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; display: none; }
.site-footer__mark.is-flowing .site-footer__flow { display: block; }

@media (max-width: 899px) {
  :root { --footer-base: 560px; }
  .site-footer { min-block-size: 560px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .work-card:hover .work-card__img, .work-card:focus-within .work-card__img { transform: none; }
  /* Direct cursor-driven footer motion is an explicit user-selected exception. */
}

/* Hardening: keep prescribed geometry while allowing zoom and narrow text. */
.split > *, .hero > *, .contact__col, .service > * { min-inline-size: 0; }
.container > * { min-inline-size: 0; }
.display-xl, .display-l, .display-m { overflow-wrap: anywhere; }
.btn { max-inline-size: 100%; }
.menu__head, .menu .btn { flex-shrink: 0; }
.menu-toggle:active { background: var(--ink); color: var(--paper); }
a:active { text-decoration: underline; text-underline-offset: 0.18em; }
.menu__list a.is-active { text-decoration: underline; text-underline-offset: 0.18em; }
.team__scroller:focus-visible { outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .work-card__img { transform: none; } }
@media (forced-colors: active) { .btn { border-color: ButtonText; } .is-active { text-decoration: underline; } }
