/* =====================================================================
   ERWS Health Care — design system
   Direction: "One motif". The four interlocking parts of the ERWS cross
   (one per service line, meeting around the patient) are the only shape
   with character: hero, image corners, buttons, list bullets, footer.
   Colour: paper ground, navy-black ink, tones of the logo's blue for
   fields, the logo's magenta reserved for the action and links.
   ===================================================================== */

@font-face {
    font-family: "Stack Sans Headline";
    src: url("../assets/fonts/stack-sans-headline-latin.woff2") format("woff2");
    font-weight: 200 700;
    font-display: swap;
}

@font-face {
    font-family: "Stack Sans Text";
    src: url("../assets/fonts/stack-sans-text-latin.woff2") format("woff2");
    font-weight: 200 700;
    font-display: swap;
}

:root {
    --paper: #F6F6F3;
    --surface: #EBEBE6;
    --ink: #0B1626;
    --muted: #4F5662;
    --accent: #C8155F;
    --accent-hover: #A60E4D;
    --on-accent: #FFFFFF;

    /* Fields: tones of the logo blue (#2BA8DE), darkest to lightest */
    --deep: #0A1C30;
    --blue-1: #123A5C;
    --blue-2: #1D6A9C;
    --blue-3: #2BA8DE;
    --blue-4: #BFE3F4;
    --blue-5: #E3F0F7;
    --on-deep: #F3F6F9;
    --on-deep-muted: #A9B8C8;
    --magenta-on-deep: #F0559A;
    --sw-tl: var(--blue-3);
    --sw-bl: #6FC0E8;
    --sw-br: var(--blue-4);
    --sw-fig: #FFFFFF;

    /* The motif: one quarter-round corner, sized to the element */
    --r: clamp(28px, 4.2vw, 72px);
    --r-btn: 26px;

    /* Five type steps, no more */
    --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
    --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
    --step-head: clamp(2.125rem, 1.4rem + 3vw, 4rem);
    --step-display: clamp(3rem, 1.2rem + 6.2vw, 7.25rem);

    --font-display: "Stack Sans Headline", "Segoe UI", system-ui, sans-serif;
    --font-text: "Stack Sans Text", "Segoe UI", system-ui, sans-serif;

    --margin: clamp(20px, 4vw, 64px);
    --gap: clamp(16px, 2vw, 28px);
    --section: clamp(96px, 12vw, 200px);
    --header-h: 76px;

    /* Motion: strong ease-out for entrances, ease-in-out for things moving on screen */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-ui: cubic-bezier(0.23, 1, 0.32, 1);
    --t-reveal: 1100ms;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
    color-scheme: light;
}

html:not(.lenis) {
    scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-stopped {
    overflow: clip;
}

.lenis [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-text);
    font-size: var(--step-body);
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 350;
    letter-spacing: -0.022em;
    line-height: 1.05;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--blue-3);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Scrollbar themed from the palette */
html {
    scrollbar-color: var(--blue-2) var(--surface);
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    left: var(--margin);
    top: 12px;
    z-index: 2000;
    padding: 12px 18px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 500;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 200ms var(--ease-ui);
}

.skip-link:focus {
    transform: none;
}

.wrap {
    width: 100%;
    padding-inline: var(--margin);
    max-width: 1680px;
    margin-inline: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
}

/* ---------------------------------------------------------------------
   Buttons — flat fill, one quarter-round corner (the motif)
   --------------------------------------------------------------------- */
.btn {
    --bx: 0px;
    --by: 0px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--r-btn) 0 0 0;
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-text);
    font-size: var(--step-body);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transform: translate3d(var(--bx), var(--by), 0);
    transition: background-color 200ms ease, border-radius 300ms var(--ease-ui), transform 160ms var(--ease-ui);
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 300ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: var(--accent-hover);
        border-radius: var(--r-btn) 0 var(--r-btn) 0;
    }

    .btn:hover svg {
        transform: translateX(4px);
    }
}

.btn:active {
    transform: translate3d(var(--bx), var(--by), 0) scale(0.97);
}

.btn[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.btn-ink {
    background: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
    .btn-ink:hover {
        background: var(--blue-1);
    }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.link-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 300ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
    .link-arrow:hover svg {
        transform: translateX(4px);
    }
}

/* ---------------------------------------------------------------------
   Header — a plain bar: wordmark, a few links, one action
   --------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    color: var(--ink);
    background: var(--paper);
    transition: transform 600ms var(--ease-out), background-color 400ms ease, color 400ms ease;
}

.site-header[data-tone="dark"] {
    background: var(--deep);
    color: var(--on-deep);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border-radius: 14px 0 0 0;
}

.brand-mark img {
    width: 33px;
    height: auto;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-family: var(--font-display);
}

.brand-name strong {
    font-weight: 500;
    font-size: var(--step-body);
    letter-spacing: 0.02em;
}

.brand-name span {
    font-size: var(--step-small);
    opacity: 0.75;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 36px);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: clamp(16px, 2.2vw, 36px);
}

.main-nav a:not(.btn) {
    position: relative;
    font-size: var(--step-small);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
}

.main-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 400ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .main-nav a:not(.btn):hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.main-nav a[aria-current="true"]::after {
    transform: scaleX(1);
}

.lang-link {
    font-size: var(--step-small);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 2px;
}

.main-nav .btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: var(--step-small);
    border-radius: 18px 0 0 0;
}

.menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.menu-btn span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: currentColor;
    transition: transform 400ms var(--ease-out), opacity 200ms ease;
}

.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 28px; }

.menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   The cross (motif) — shared SVG parts
   --------------------------------------------------------------------- */
.cross .pc {
    transform-box: view-box;
    transform-origin: 200px 200px;
    transition: opacity 500ms ease, fill 500ms ease;
}

.cross .pc-tl { fill: var(--blue-3); }
.cross .pc-bl { fill: #6FC0E8; }
.cross .pc-br { fill: var(--blue-4); }
.cross .pc-fig { stroke: #FFFFFF; fill: none; }
.cross .pc-head { fill: var(--magenta-on-deep); }

/* ---------------------------------------------------------------------
   HERO — deep field, the cross at enormous scale, cropped by the edge
   --------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: max(680px, 100svh);
    background: var(--deep);
    color: var(--on-deep);
    overflow: clip;
    isolation: isolate;
}

.hero .wrap {
    position: relative;
    z-index: 2;
    min-height: max(680px, 100svh);
    padding-top: calc(var(--header-h) + clamp(24px, 5vh, 64px));
    padding-bottom: clamp(32px, 5vh, 64px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-content: space-between;
    pointer-events: none;
}

.hero .wrap > * {
    pointer-events: auto;
}

.hero-copy {
    grid-column: 1 / span 7;
}

.hero h1 {
    font-size: var(--step-display);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.035em;
    max-width: 12ch;
}

.hero-lead {
    margin-top: clamp(28px, 4vh, 44px);
    max-width: 38ch;
    font-size: var(--step-lead);
    line-height: 1.4;
    color: var(--on-deep);
}

.hero-actions {
    margin-top: clamp(28px, 4vh, 44px);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* The index: four service rows that drive the cross */
.hero-index {
    grid-column: 1 / span 6;
    margin-top: clamp(28px, 4.5vh, 56px);
}

.hero-index h2 {
    font-family: var(--font-text);
    font-size: var(--step-small);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--on-deep-muted);
    margin-bottom: 10px;
}

.hero-index ol {
    list-style: none;
}

.hero-index a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 0;
    font-family: var(--font-display);
    font-size: var(--step-lead);
    font-weight: 350;
    line-height: 1.15;
    text-decoration: none;
    color: var(--on-deep);
    transition: opacity 400ms ease, transform 500ms var(--ease-out);
}

.hero-index .swatch {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 7px 0 0 0;
    background: var(--sw);
    transition: transform 500ms var(--ease-out);
}

.hero-index .go {
    width: 22px;
    height: 22px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 300ms ease, transform 400ms var(--ease-out);
}

.hero-index.has-active a {
    opacity: 0.55;
}

.hero-index a.is-active {
    opacity: 1;
    transform: translateX(10px);
}

.hero-index a.is-active .swatch {
    transform: scale(1.5) rotate(90deg);
}

.hero-index a.is-active .go {
    opacity: 1;
    transform: none;
}

/* Stage holding the giant cross and the preview frame */
.hero-stage {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: calc(-1 * clamp(80px, 11vw, 220px));
    width: min(106vh, 62vw);
    aspect-ratio: 1;
    transform: translateY(-46%);
    perspective: 1400px;
}

.hero-stage .stage-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-stage .cross {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-stage .pc {
    cursor: pointer;
}

.hero-stage.has-active .pc {
    opacity: 0.22;
}

.hero-stage.has-active .pc.is-active,
.hero-stage.has-active .pc-head {
    opacity: 1;
}

/* The preview: one fixed frame in the motif's shape, behind the cross */
.preview {
    position: absolute;
    left: 20%;
    top: 21%;
    width: 46%;
    height: 54%;
    border-radius: 0 0 0 var(--r);
    overflow: hidden;
    background: var(--blue-1);
    will-change: transform;
}

.preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 700ms var(--ease-out), transform 1400ms var(--ease-out);
}

.preview img.is-active {
    opacity: 1;
    transform: scale(1);
}

/* ---------------------------------------------------------------------
   Sections — shared rhythm
   --------------------------------------------------------------------- */
.section {
    padding-block: var(--section);
}

.section-head h2,
.h2 {
    font-size: var(--step-head);
}

.lead {
    font-size: var(--step-lead);
    line-height: 1.4;
}

/* Intro statement with inline thumbnails in the motif's shape */
.intro {
    padding-block: clamp(88px, 15vh, 168px) 0;
}

.statement {
    max-width: 24ch;
    margin-inline: auto;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
    font-weight: 350;
    line-height: 1.22;
    letter-spacing: -0.015em;
    text-align: center;
    max-width: 36ch;
}

.thumb {
    display: inline-block;
    width: 1.35em;
    height: 0.95em;
    margin: 0 0.14em;
    vertical-align: -0.12em;
    overflow: hidden;
    background: var(--blue-2);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-tl { border-radius: 0.42em 0 0 0; }
.thumb-bl { border-radius: 0 0 0 0.42em; }
.thumb-fig { border-radius: 0 0.42em 0 0; }

.thumb img.contain {
    object-fit: contain;
    padding: 0.12em;
}

.statement .kw {
    white-space: nowrap;
}

/* Services — specimens on colour tiles */
.services .grid {
    row-gap: 56px;
}

.services-head {
    grid-column: 1 / span 4;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.services-head p {
    margin-top: 20px;
    max-width: 30ch;
}

.tiles {
    grid-column: 5 / span 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    row-gap: 48px;
}

.tile {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tile-wide {
    grid-column: span 2;
}

.tile-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--tile, var(--blue-4));
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: border-radius 500ms var(--ease-out);
}

.tile-wide .tile-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
}

.tile-wide {
    display: grid;
    grid-template-rows: 1fr auto;
}

.tile[data-piece="tl"] .tile-media { border-radius: var(--r) 0 0 0; }
.tile[data-piece="bl"] .tile-media { border-radius: 0 0 0 var(--r); }
.tile[data-piece="fig"] .tile-media { border-radius: 0 var(--r) 0 0; }
.tile[data-piece="br"] .tile-media { border-radius: 0 0 var(--r) 0; }

.tile-media img {
    max-width: none;
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    object-fit: cover;
    transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0) scale(1.02);
    transition: transform 900ms var(--ease-out);
}

.tile-media img.drawing {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16%;
}

@media (hover: hover) and (pointer: fine) {
    .tile:hover .tile-media img {
        transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0) scale(1.07);
    }
}

.tile-text {
    padding-top: 18px;
}

.tile-text h3 {
    font-family: var(--font-text);
    font-size: var(--step-body);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tile-text h3 svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    transition: transform 400ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .tile:hover .tile-text h3 svg {
        transform: translateX(6px);
    }
}

.tile-text p {
    margin-top: 6px;
    max-width: 34ch;
}

.tile-ask {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    background: var(--surface);
    border-radius: 0 0 var(--r) 0;
    aspect-ratio: 4 / 5;
}

.tile-ask h3 {
    font-size: var(--step-lead);
}

.tile-ask p {
    margin-top: 12px;
}

/* How we work — accordion of tinted panels, dark to light */
.how-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    margin-bottom: 64px;
}

.how-head h2 {
    grid-column: 1 / span 5;
}

.how-head p {
    grid-column: 7 / span 5;
    align-self: end;
}

.stages {
    display: flex;
    height: clamp(440px, 62vh, 560px);
    list-style: none;
}

.stage {
    --ink-s: var(--on-deep);
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    background: var(--bg-s);
    color: var(--ink-s);
    overflow: hidden;
    transition: flex-grow 900ms var(--ease-in-out);
}

.stage:nth-child(1) { --bg-s: var(--deep); }
.stage:nth-child(2) { --bg-s: var(--blue-1); }
.stage:nth-child(3) { --bg-s: var(--blue-2); }
.stage:nth-child(4) { --bg-s: var(--blue-4); --ink-s: var(--ink); }

.stage:first-child { border-radius: var(--r) 0 0 0; }
.stage:last-child { border-radius: 0 0 var(--r) 0; }

.stage.is-open {
    flex-grow: 4.2;
}

.stage-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.stage-name {
    position: absolute;
    left: 28px;
    bottom: 28px;
    font-family: var(--font-display);
    font-size: var(--step-body);
    font-weight: 400;
    white-space: nowrap;
    transform-origin: left bottom;
    transform: translateY(0) rotate(-90deg) translateY(100%);
    transition: transform 900ms var(--ease-in-out), font-size 900ms var(--ease-in-out);
}

.stage.is-open .stage-name {
    transform: none;
    bottom: auto;
    top: 32px;
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
}

.stage-num {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 34px;
    height: 34px;
}

.stage-body {
    position: absolute;
    left: 32px;
    bottom: 32px;
    width: min(36ch, calc(100% - 64px));
    font-size: var(--step-lead);
    line-height: 1.35;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms ease, transform 900ms var(--ease-out);
    pointer-events: none;
}

.stage.is-open .stage-body {
    opacity: 1;
    transform: none;
    transition-delay: 350ms;
}

/* About — inset deep panel with a portrait shaped as the cross */
.about-panel {
    position: relative;
    margin-inline: clamp(10px, 1.4vw, 20px);
    background: var(--deep);
    color: var(--on-deep);
    border-radius: var(--r) 0 0 0;
    overflow: hidden;
    padding: clamp(40px, 5vw, 72px) var(--margin) 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
}

.about-left {
    grid-column: 1 / span 6;
}

.about-left h2 {
    font-size: var(--step-head);
    max-width: 15ch;
}

.about-left .who {
    margin-top: 28px;
    max-width: 52ch;
    color: var(--on-deep-muted);
}

.about-portrait {
    position: relative;
    margin-top: 56px;
    width: min(38vw, 620px);
    aspect-ratio: 1;
    margin-bottom: -14%;
}

.about-portrait svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.about-right {
    grid-column: 7 / span 6;
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-bottom: 72px;
    padding-top: 8px;
}

.about-right h3 {
    font-family: var(--font-text);
    font-size: var(--step-lead);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.about-right p {
    margin-top: 12px;
    color: var(--on-deep-muted);
    max-width: 44ch;
}

.about-right .btn {
    align-self: flex-start;
}

/* Values — a two-column list, the motif as bullet */
.values-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 48px;
}

.values-head span {
    color: var(--muted);
    white-space: nowrap;
}

.values-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 96px);
    row-gap: 40px;
}

.values-list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: start;
}

.values-list .bullet {
    width: 56px;
    height: 56px;
    color: var(--blue-2);
}

.values-list h3 {
    font-family: var(--font-text);
    font-size: var(--step-lead);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.values-list p {
    margin-top: 6px;
    max-width: 40ch;
}

/* FAQ — tabbed index cards */
.faq-wrap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
}

.faq-wrap > h2 {
    grid-column: 1 / span 8;
    margin-bottom: 56px;
}

.cards {
    grid-column: 1 / span 8;
    --tab-step: clamp(40px, 9vw, 150px);
}

.faq-figure {
    grid-column: 10 / span 3;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 32px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0 var(--r) 0 0;
    background: var(--blue-4);
}

.faq-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-wrap > .cards {
    grid-row: 2;
}

.card {
    --c-bg: var(--blue-4);
    position: relative;
    margin-top: -12px;
    padding-top: 40px;
}

.card:first-child {
    margin-top: 0;
}

.card:nth-child(3n + 2) { --c-bg: var(--blue-5); }
.card:nth-child(3n + 3) { --c-bg: var(--surface); }

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--i) * var(--tab-step));
    width: clamp(120px, 16vw, 200px);
    height: 41px;
    background: var(--c-bg);
    border-radius: 14px 0 0 0;
}

.card-tab {
    position: absolute;
    top: 9px;
    left: calc(var(--i) * var(--tab-step) + 18px);
    font-size: var(--step-small);
    font-weight: 500;
    color: var(--muted);
    pointer-events: none;
}

.card details {
    position: relative;
    background: var(--c-bg);
    border-radius: 0 0 var(--r) 0;
}

.card:not(:last-child) details {
    border-radius: 0;
}

.card summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px clamp(20px, 3vw, 36px) 30px;
    cursor: pointer;
    font-family: var(--font-text);
    font-size: var(--step-body);
    font-weight: 500;
    line-height: 1.3;
}

.card summary::-webkit-details-marker {
    display: none;
}

.card summary svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transition: transform 500ms var(--ease-out);
}

.card details[open] summary svg {
    transform: rotate(45deg);
}

.card .answer {
    padding: 0 clamp(20px, 3vw, 36px) 36px;
    max-width: 62ch;
    color: var(--ink);
}

/* Smoothly animate open/close where the browser supports it */
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }

    .card details::details-content {
        block-size: 0;
        overflow: clip;
        transition: block-size 700ms var(--ease-in-out), content-visibility 700ms allow-discrete;
    }

    .card details[open]::details-content {
        block-size: auto;
    }
}

/* Contact — a coupon to cut out */
.coupon {
    position: relative;
    display: grid;
    grid-template-columns: 46fr 54fr;
    background: var(--deep);
    color: var(--on-deep);
    border-radius: var(--r) 0 0 0;
    --notch: 30px;
    -webkit-mask:
        radial-gradient(circle var(--notch) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle var(--notch) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
    mask:
        radial-gradient(circle var(--notch) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle var(--notch) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}

.coupon::after {
    content: "";
    position: absolute;
    left: 46%;
    top: calc(var(--notch) + 14px);
    bottom: calc(var(--notch) + 14px);
    width: 0;
    border-left: 5px dotted var(--paper);
    transform: translateX(-50%);
    opacity: 0.85;
}

.coupon-left {
    padding: clamp(40px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

.coupon-left h2 {
    font-size: var(--step-head);
    max-width: 11ch;
}

.coupon-left .lead {
    margin-top: 20px;
    color: var(--on-deep-muted);
    max-width: 32ch;
}

.direct h3 {
    font-family: var(--font-text);
    font-size: var(--step-small);
    font-weight: 500;
    color: var(--on-deep-muted);
    letter-spacing: 0;
}

.direct a {
    display: block;
    margin-top: 10px;
    font-size: var(--step-lead);
    color: var(--on-deep);
    text-decoration-color: var(--magenta-on-deep);
    word-break: break-word;
}

.direct .social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.direct .social a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px 0 0 0;
    transition: background-color 300ms ease;
}

.direct .social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
    .direct .social a:hover {
        background: var(--accent);
    }
}

.form {
    padding: clamp(40px, 5vw, 72px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}

.form .full {
    grid-column: 1 / -1;
}

.field {
    position: relative;
}

.field label {
    display: block;
    font-size: var(--step-small);
    color: var(--on-deep-muted);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 2px solid transparent;
    background: var(--blue-1);
    color: var(--on-deep);
    font-size: 1rem;
    outline: none;
    transition: border-color 200ms ease, background-color 200ms ease;
    border-radius: 0;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F3F6F9' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #8FA2B6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-3);
    background: #16426A;
}

.field input:user-invalid,
.field textarea:user-invalid {
    border-color: var(--magenta-on-deep);
}

.form-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: var(--step-small);
    color: var(--on-deep-muted);
}

.form-meta a {
    color: var(--on-deep);
}

.form .btn {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

.form-status {
    display: none;
    padding: 16px 18px;
    font-weight: 500;
    border-radius: 14px 0 0 0;
}

.form-status.is-ok {
    display: block;
    background: var(--blue-4);
    color: var(--ink);
}

.form-status.is-error {
    display: block;
    background: #FBE3EE;
    color: #7A0A35;
}

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------------------------------------------------------------------
   Footer — the mark, built large
   --------------------------------------------------------------------- */
.site-footer {
    margin-top: 0;
    background: var(--deep);
    color: var(--on-deep);
    padding-top: clamp(56px, 7vw, 112px);
    overflow: clip;
}

.footer-mark {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 72px);
    align-items: end;
}

.footer-mark .cross {
    width: clamp(160px, 26vw, 420px);
    height: auto;
    overflow: visible;
}

.footer-word {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3.5rem, 1rem + 11vw, 13rem);
    line-height: 0.8;
    letter-spacing: -0.045em;
    padding-bottom: 0.04em;
}

.footer-word span {
    display: block;
    font-size: 0.24em;
    letter-spacing: -0.01em;
    margin-top: 0.35em;
    color: var(--on-deep-muted);
}

.footer-cols {
    margin-top: clamp(56px, 6vw, 96px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 40px;
}

.footer-cols h2 {
    font-family: var(--font-text);
    font-size: var(--step-small);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--on-deep-muted);
    margin-bottom: 14px;
}

.footer-cols ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-cols a {
    text-decoration: none;
    font-size: var(--step-small);
}

@media (hover: hover) and (pointer: fine) {
    .footer-cols a:hover {
        text-decoration: underline;
    }
}

.fc-services { grid-column: 1 / span 3; }
.fc-company { grid-column: 4 / span 2; }
.fc-legal { grid-column: 6 / span 2; }
.fc-contact { grid-column: 9 / span 4; }

.fc-contact a {
    font-size: var(--step-body);
}

.footer-bottom {
    margin-top: 64px;
    padding-block: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: var(--step-small);
    color: var(--on-deep-muted);
    background: #07162A;
}

.footer-bottom .btn {
    min-height: 44px;
    font-size: var(--step-small);
    padding: 0 18px;
    border-radius: 18px 0 0 0;
}

/* ---------------------------------------------------------------------
   Service pages
   --------------------------------------------------------------------- */
.svc-hero {
    position: relative;
    background: var(--deep);
    color: var(--on-deep);
    padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px));
    padding-bottom: clamp(56px, 7vw, 112px);
    overflow: clip;
}

.svc-hero .grid {
    align-items: end;
}

.crumbs {
    grid-column: 1 / -1;
    margin-bottom: clamp(28px, 4vw, 56px);
    font-size: var(--step-small);
    color: var(--on-deep-muted);
}

.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 10px;
    opacity: 0.6;
}

.crumbs a {
    text-decoration: none;
}

.svc-hero-copy {
    grid-column: 1 / span 7;
}

.svc-hero h1 {
    font-size: var(--step-display);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    max-width: 14ch;
}

.svc-hero .lead {
    margin-top: 28px;
    max-width: 44ch;
    color: var(--on-deep);
}

.svc-hero .btn {
    margin-top: 36px;
}

.svc-hero-media {
    grid-column: 8 / span 5;
    position: relative;
}

.svc-hero-media .frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--blue-2);
}

.svc-hero-media .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svc-hero-media .frame img.drawing {
    object-fit: contain;
    padding: 14%;
}

.svc-hero-media .cross {
    position: absolute;
    width: 46%;
    right: -12%;
    bottom: -14%;
    overflow: visible;
}

.svc-body .grid {
    row-gap: 96px;
}

.svc-block-h {
    grid-column: 1 / span 4;
}

.svc-block-h h2 {
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
}

.svc-block {
    grid-column: 6 / span 7;
}

.svc-list {
    list-style: none;
    display: grid;
    gap: 0;
}

.svc-list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 18px;
    padding: 22px 0;
    font-size: var(--step-lead);
    line-height: 1.35;
}

.svc-list .bullet {
    width: 32px;
    height: 32px;
    margin-top: 4px;
    color: var(--blue-2);
}

.svc-for {
    font-size: var(--step-lead);
    line-height: 1.4;
    max-width: 40ch;
}

.svc-sub {
    margin-top: 56px;
    font-family: var(--font-text);
    font-size: var(--step-body);
    font-weight: 500;
    letter-spacing: 0;
}

.svc-problems {
    margin-top: 16px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.svc-problems li {
    padding: 24px;
    background: var(--surface);
    border-radius: 0 0 0 22px;
}

.related {
    list-style: none;
}

.related a {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
    font-weight: 350;
    transition: padding-left 500ms var(--ease-out), color 300ms ease;
}

.related a svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: transform 500ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .related a:hover {
        padding-left: 16px;
        color: var(--blue-2);
    }

    .related a:hover svg {
        transform: translateX(8px);
    }
}

.rel-thumb {
    display: block;
    width: 160px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--blue-2);
}

.rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.rel-thumb img.drawing {
    object-fit: contain;
    padding: 12%;
}

.related a[data-piece="tl"] .rel-thumb { border-radius: 28px 0 0 0; }
.related a[data-piece="bl"] .rel-thumb { border-radius: 0 0 0 28px; }
.related a[data-piece="fig"] .rel-thumb { border-radius: 0 28px 0 0; }
.related a[data-piece="br"] .rel-thumb { border-radius: 0 0 28px 0; }

@media (hover: hover) and (pointer: fine) {
    .related a:hover .rel-thumb img {
        transform: scale(1.1);
    }
}

.svc-for-img {
    margin-top: 32px;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    border-radius: 0 0 var(--r) 0;
    background: var(--blue-4);
}

.svc-for-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-band {
    background: var(--blue-4);
    border-radius: 0 var(--r) 0 0;
    padding: clamp(40px, 6vw, 88px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-size: var(--step-head);
    max-width: 14ch;
}

.cta-band p {
    margin-top: 16px;
    max-width: 40ch;
}

/* Privacy & 404 */
.doc {
    padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px));
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
}

.doc-main {
    grid-column: 1 / span 8;
}

.doc-aside {
    grid-column: 10 / span 3;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 40px);
    padding: 36px 32px;
    background: var(--deep);
    color: var(--on-deep);
    border-radius: 0 var(--r) 0 0;
}

.doc-aside .cross {
    width: 120px;
    margin-bottom: 28px;
}

.doc-aside h2 {
    font-size: var(--step-lead);
    margin: 0;
}

.doc-aside a {
    display: inline-block;
    margin-top: 14px;
    color: var(--on-deep);
    word-break: break-word;
}

@media (max-width: 900px) {
    .doc-main,
    .doc-aside {
        grid-column: 1 / -1;
    }

    .doc-aside {
        position: static;
        margin-top: 56px;
    }
}

.doc h1 {
    font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem);
    font-weight: 300;
}

.doc .meta {
    margin-top: 16px;
    color: var(--muted);
}

.doc .note {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--blue-5);
    border-radius: 14px 0 0 0;
    max-width: 70ch;
}

.doc section {
    margin-top: 56px;
    max-width: 70ch;
}

.doc h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.doc p {
    margin-top: 14px;
    max-width: 68ch;
}

.notfound {
    min-height: 100svh;
    display: grid;
    align-content: center;
    background: var(--deep);
    color: var(--on-deep);
}

.notfound .cross {
    width: clamp(160px, 22vw, 300px);
    margin-bottom: 40px;
}

.notfound h1 {
    font-size: var(--step-display);
    font-weight: 300;
}

.notfound p {
    margin-top: 20px;
    font-size: var(--step-lead);
    max-width: 40ch;
}

.notfound .actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.notfound .actions a:not(.btn) {
    align-self: center;
    color: var(--on-deep);
}

/* ---------------------------------------------------------------------
   Motion: entrances. Content is visible without script; the hidden
   start state only exists once main.js marks the document as ready.
   --------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
    transition-delay: var(--d, 0ms);
}

.js [data-reveal="mask"] {
    opacity: 1;
    transform: none;
}

/* The curtain runs on the children: an element clipped to nothing is never "seen" by IntersectionObserver */
.js [data-reveal="mask"] > * {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1400ms var(--ease-in-out);
    transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

.js [data-reveal="mask"].is-in > * {
    clip-path: inset(0 0 0 0);
}

/* Hero entrance: words rise inside their line, then the rest follows */
.hero h1 .w {
    display: inline-block;
    overflow: clip;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.hero h1 .w > span {
    display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
    .hero h1 .w > span {
        transform: translate3d(0, 105%, 0);
        animation: rise 1200ms var(--ease-out) forwards;
        animation-delay: calc(var(--i) * 80ms);
    }
}

.js .hero [data-enter] {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    animation: enter 1200ms var(--ease-out) forwards;
    animation-delay: var(--d, 600ms);
}

@keyframes rise {
    to { transform: none; }
}

@keyframes enter {
    to { opacity: 1; transform: none; }
}

/* Reduced motion (main.js reads the system setting and adds .reduce-motion):
   fewer and gentler moves, not none. Fades stay; travel, parallax and springs go. */
.reduce-motion:not(.lenis) {
    scroll-behavior: auto;
}

.reduce-motion.js [data-reveal] {
    transform: none;
    transition: opacity 900ms ease;
    transition-delay: var(--d, 0ms);
}

.reduce-motion.js [data-reveal="mask"] {
    opacity: 0;
}

.reduce-motion.js [data-reveal="mask"] > * {
    clip-path: none;
}

.reduce-motion.js [data-reveal="mask"].is-in {
    opacity: 1;
}

.reduce-motion.js .hero [data-enter] {
    transform: none;
    animation-name: fade;
    animation-duration: 900ms;
}

@keyframes fade {
    to { opacity: 1; }
}

.reduce-motion .preview img {
    transform: none;
    transition: opacity 700ms ease;
}

.reduce-motion .stage,
.reduce-motion .stage-name {
    transition-duration: 1ms;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .services-head {
        grid-column: 1 / -1;
        position: static;
    }

    .tiles {
        grid-column: 1 / -1;
    }

    .about-left { grid-column: 1 / span 6; }
    .about-right { grid-column: 7 / span 6; }

    .faq-wrap > h2,
    .cards {
        grid-column: 1 / -1;
    }

    .faq-figure {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 32px;
        padding: 96px var(--margin) 48px;
        background: var(--deep);
        color: var(--on-deep);
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        transition: clip-path 700ms var(--ease-in-out), visibility 700ms;
    }

    .menu-open .main-nav {
        clip-path: inset(0 0 0 0);
        visibility: visible;
    }

    .menu-open .site-header {
        background: var(--deep);
        color: var(--on-deep);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav a:not(.btn) {
        font-family: var(--font-display);
        font-size: clamp(2rem, 8vw, 2.75rem);
        font-weight: 350;
    }

    .main-nav li,
    .main-nav .lang-link,
    .main-nav .btn {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 500ms ease, transform 700ms var(--ease-out);
    }

    .menu-open .main-nav li,
    .menu-open .main-nav .lang-link,
    .menu-open .main-nav .btn {
        opacity: 1;
        transform: none;
    }

    .menu-open .main-nav li:nth-child(1) { transition-delay: 200ms; }
    .menu-open .main-nav li:nth-child(2) { transition-delay: 260ms; }
    .menu-open .main-nav li:nth-child(3) { transition-delay: 320ms; }
    .menu-open .main-nav li:nth-child(4) { transition-delay: 380ms; }
    .menu-open .main-nav .lang-link { transition-delay: 440ms; }
    .menu-open .main-nav .btn { transition-delay: 500ms; }

    .main-nav .lang-link {
        font-size: var(--step-body);
    }

    .main-nav .btn {
        min-height: 56px;
        font-size: var(--step-body);
    }

    .hero .wrap {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-top: calc(var(--header-h) + min(74vw, 420px));
    }

    .hero-stage {
        top: calc(var(--header-h) - 2vw);
        right: -16vw;
        width: min(82vw, 470px);
        transform: none;
    }

    .hero-index {
        margin-top: 36px;
    }

    .how-head h2,
    .how-head p {
        grid-column: 1 / -1;
    }

    .how-head p {
        margin-top: 20px;
    }

    .stages {
        flex-direction: column;
        height: auto;
    }

    .stage {
        flex: none;
        min-height: 68px;
    }

    .stage-btn {
        position: relative;
        height: 68px;
    }

    .stage-name,
    .stage.is-open .stage-name {
        transform: none;
        left: 22px;
        top: 50%;
        bottom: auto;
        font-size: 1.25rem;
        translate: 0 -50%;
    }

    .stage-num {
        top: 17px;
    }

    .stage-body {
        position: static;
        width: auto;
        padding: 0 22px;
        max-height: 0;
        transition: opacity 500ms ease, transform 700ms var(--ease-out), max-height 700ms var(--ease-in-out), padding 700ms var(--ease-in-out);
    }

    .stage.is-open .stage-body {
        max-height: 220px;
        padding: 0 22px 28px;
    }

    .stage:first-child { border-radius: 22px 0 0 0; }
    .stage:last-child { border-radius: 0 0 22px 0; }

    .about-left,
    .about-right {
        grid-column: 1 / -1;
    }

    .about-right {
        padding-top: 48px;
        gap: 36px;
    }

    .about-portrait {
        order: 3;
        width: 86vw;
        margin-top: 0;
    }

    .about-panel {
        display: flex;
        flex-direction: column;
    }

    .coupon {
        grid-template-columns: 1fr;
        -webkit-mask:
            radial-gradient(circle var(--notch) at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
            radial-gradient(circle var(--notch) at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
        mask:
            radial-gradient(circle var(--notch) at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
            radial-gradient(circle var(--notch) at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
        --cut: var(--cut-y, 420px);
        --notch: 22px;
    }

    .coupon::after {
        left: calc(var(--notch) + 10px);
        right: calc(var(--notch) + 10px);
        top: var(--cut);
        bottom: auto;
        width: auto;
        height: 0;
        border-left: 0;
        border-top: 5px dotted var(--paper);
        transform: translateY(-50%);
    }

    .coupon-left {
        min-height: var(--cut);
        padding-bottom: 56px;
    }

    .form {
        padding-top: 48px;
    }

    .svc-hero-copy,
    .svc-hero-media,
    .svc-block-h,
    .svc-block {
        grid-column: 1 / -1;
    }

    .svc-hero-media {
        margin-top: 48px;
        width: min(86vw, 440px);
    }

    .svc-body .grid {
        row-gap: 24px;
    }

    .svc-block {
        margin-bottom: 56px;
    }

    .fc-services { grid-column: 1 / span 6; }
    .fc-company { grid-column: 7 / span 6; }
    .fc-legal { grid-column: 1 / span 6; }
    .fc-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .brand-name span {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 12.5vw, 3.75rem);
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .statement {
        text-align: left;
        font-size: 1.375rem;
    }

    .hero-lead {
        font-size: 1.1875rem;
    }

    .tile-ask {
        padding: 20px;
    }

    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        row-gap: 32px;
    }

    .tile-wide {
        grid-column: 1 / -1;
    }

    .tile-wide .tile-media {
        aspect-ratio: 8 / 5;
        height: auto;
    }

    .tile-text h3 {
        font-size: 1.0625rem;
    }

    .tile-text p {
        font-size: 0.9375rem;
    }

    .tile-ask {
        aspect-ratio: 4 / 5;
        gap: 16px;
    }

    .tile-ask h3 {
        font-size: 1.0625rem;
    }

    .tile-ask p {
        font-size: 0.9375rem;
    }

    .values-list {
        grid-template-columns: 1fr;
    }

    .values-list li {
        grid-template-columns: 44px 1fr;
    }

    .values-list .bullet {
        width: 44px;
        height: 44px;
    }

    .cards {
        --tab-step: 40px;
    }

    .form {
        grid-template-columns: 1fr;
        padding-inline: 22px;
    }

    .coupon-left {
        padding-inline: 22px;
    }

    .svc-problems {
        grid-template-columns: 1fr;
    }

    .related a {
        grid-template-columns: 120px 1fr auto;
        gap: 16px;
    }

    .rel-thumb {
        width: 120px;
    }

    .footer-mark {
        grid-template-columns: 1fr;
    }

    .footer-cols > * {
        grid-column: 1 / -1 !important;
    }

    .cta-band .btn {
        width: 100%;
        justify-content: center;
    }
}
