/* ==========================================================================
   ORA Dental Implant — site design system
   --------------------------------------------------------------------------
   The visual language is "precision instrument": a cool titanium-and-ink
   palette for the surgical hardware, a warmer paper tone for the patient
   facing aligner brand, monospace for anything a clinician reads as data
   (references, torque, taper), and hairline rules instead of heavy borders.
   Everything is laid out with logical properties so the Arabic locale
   mirrors without a second stylesheet.
   ========================================================================== */

/* --------------------------------------------------------------- 01 tokens */

:root {
    /* Cool neutrals — the surgical side of the brand. */
    --ink-900: #06111a;
    --ink-800: #0a1824;
    --ink-700: #10242f;
    --ink-600: #19323f;
    --ink-500: #27454f;

    --steel-500: #5e7686;
    --steel-400: #86a0ae;
    --steel-300: #aebfc9;

    --mist-200: #dce5ea;
    --mist-100: #eef2f5;
    --paper: #ffffff;
    --bg: #f6f9fa;

    /* Warm neutrals — reserved for the aligner sub-brand. */
    --bone-100: #f8f6f2;
    --bone-200: #efe9e0;

    /* Single accent. Teal reads clinical without being hospital-blue. */
    --accent: #0fb3a3;
    --accent-bright: #2ccfbd;
    --accent-deep: #087a70;
    --accent-tint: rgba(15, 179, 163, 0.10);
    --accent-line: rgba(15, 179, 163, 0.32);

    --danger: #c0392b;
    --warning: #b26a00;

    /* Type */
    --font-display: 'Sora', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-body: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.3rem;
    --display-s: clamp(1.4rem, 2vw, 1.75rem);
    --display-m: clamp(1.65rem, 2.8vw, 2.4rem);
    --display-l: clamp(2rem, 4.2vw, 3.3rem);
    --display-xl: clamp(2.5rem, 5.6vw, 4.6rem);

    /* Space & shape */
    --shell: 1240px;
    --shell-wide: 1480px;
    --shell-narrow: 860px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section-y: clamp(4rem, 9vw, 8rem);

    --radius-sm: 4px;
    --radius: 10px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --hairline: 1px solid var(--mist-200);
    --hairline-dark: 1px solid rgba(255, 255, 255, 0.10);

    --shadow-sm: 0 1px 2px rgba(6, 17, 26, 0.06), 0 2px 8px rgba(6, 17, 26, 0.04);
    --shadow: 0 2px 6px rgba(6, 17, 26, 0.06), 0 18px 40px -16px rgba(6, 17, 26, 0.18);
    --shadow-lg: 0 4px 10px rgba(6, 17, 26, 0.08), 0 40px 80px -32px rgba(6, 17, 26, 0.32);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --header-h: 76px;
}

/* ---------------------------------------------------------------- 02 reset */

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

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--ink-700);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

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

::selection { background: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------------------------- 03 typography */

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    text-wrap: balance;
}

.display-xl { font-size: var(--display-xl); font-weight: 700; letter-spacing: -0.035em; }
.display-l  { font-size: var(--display-l); letter-spacing: -0.028em; }
.display-m  { font-size: var(--display-m); }
.display-s  { font-size: var(--display-s); }

p { text-wrap: pretty; }

.lede {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: var(--ink-600);
}

.muted { color: var(--steel-500); }

.mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

/* Small capitalised monospace label — the "engineering drawing" voice. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.eyebrow::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: var(--accent);
    flex: none;
}

.on-dark .eyebrow,
.eyebrow--light { color: var(--accent-bright); }

/* Arabic needs a slightly larger body size and no negative tracking. */
[dir='rtl'] body { font-size: 1.03rem; }

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] h4,
[dir='rtl'] .display-xl,
[dir='rtl'] .display-l {
    letter-spacing: 0;
    line-height: 1.25;
}

[dir='rtl'] .eyebrow { letter-spacing: 0; }

/* --------------------------------------------------------------- 04 layout */

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

.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.section--ink,
.on-dark {
    background: var(--ink-900);
    color: var(--mist-200);
}

/*
 * Every dark surface has to be listed here, not just the section modifiers:
 * headings default to --ink-900, which is the same value as the dark
 * background, so a panel left off this list renders its heading invisible.
 */
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4,
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4,
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4,
.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--paper); }

.section--ink .lede, .on-dark .lede,
.page-hero .lede, .cta-band .lede, .hero .lede { color: var(--steel-300); }

.section--ink .muted, .on-dark .muted,
.page-hero .muted, .cta-band .muted, .hero .muted { color: var(--steel-400); }

.page-hero p, .cta-band p { color: var(--mist-200); }
.page-hero .eyebrow, .cta-band .eyebrow, .hero .eyebrow { color: var(--accent-bright); }

.section--paper { background: var(--paper); }
.section--bone { background: var(--bone-100); }

/* Faint hairline grid for dark panels — reads as drafting paper. */
.grid-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 88px),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 88px);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 85%);
}

.section-head {
    display: grid;
    gap: 1.25rem;
    max-width: 62ch;
    margin-block-end: clamp(2.5rem, 5vw, 4rem);
}

.section-head--wide { max-width: none; }

.section-head--split {
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .section-head--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .section-head--split > :last-child { padding-block-end: 0.35rem; }
}

/* Numbered section marker: 01 — title */
.section-index {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    color: var(--steel-500);
}

.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.hairline { height: 1px; background: var(--mist-200); border: 0; }
.on-dark .hairline { background: rgba(255, 255, 255, 0.1); }

.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-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.7rem 1.1rem;
    background: var(--ink-900);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------- 05 buttons */

.btn {
    --btn-bg: var(--accent);
    --btn-fg: #fff;
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.85em 1.5em;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -8px rgba(15, 179, 163, 0.6);
}

.btn:active { transform: translateY(0); }

.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
[dir='rtl'] .btn:hover .arrow { transform: translateX(-3px); }

.btn--ink { --btn-bg: var(--ink-900); }
.btn--ink:hover { box-shadow: 0 8px 22px -8px rgba(6, 17, 26, 0.5); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink-800);
    --btn-border: var(--mist-200);
}

.btn--ghost:hover {
    --btn-border: var(--ink-800);
    box-shadow: none;
}

.on-dark .btn--ghost,
.btn--ghost-light {
    --btn-bg: transparent;
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, 0.28);
}

.on-dark .btn--ghost:hover,
.btn--ghost-light:hover {
    --btn-bg: rgba(255, 255, 255, 0.08);
    --btn-border: rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.btn--sm { padding: 0.6em 1.1em; font-size: var(--text-xs); }
.btn--block { width: 100%; }

/* Text link with an animated rule under it. */
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--accent-deep);
    position: relative;
    padding-block-end: 2px;
}

.link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: inline-start;
    transition: transform 0.3s var(--ease-out);
}

.link:hover::after { transform: scaleX(1); }
.on-dark .link { color: var(--accent-bright); }

/* ---------------------------------------------------------------- 06 badge */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.35em 0.75em;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border-radius: 999px;
}

.badge--light {
    color: var(--accent-bright);
    background: rgba(15, 179, 163, 0.16);
}

.badge--outline {
    background: transparent;
    border: 1px solid var(--accent-line);
}

/* --------------------------------------------------------------- 07 header */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px) saturate(140%);
    border-block-end: var(--hairline);
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-stuck { box-shadow: 0 1px 0 var(--mist-200), 0 10px 30px -20px rgba(6, 17, 26, 0.35); }

/* Wider than the content column on purpose: the brand, a five-item
   navigation, the phone number and the utilities do not fit in 1240px
   without the links breaking over two lines. Nothing in this bar may
   wrap — a header that reflows is read as broken. */
.header__bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(0.75rem, 1.8vw, 1.5rem);
    min-height: var(--header-h);
    max-width: var(--shell-wide);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex: none;
    padding-block: 0.5rem;
}

.brand__logo { height: 34px; width: auto; }

.brand__text { display: grid; line-height: 1.1; white-space: nowrap; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--ink-900); }
.brand__claim { font-size: 0.6875rem; color: var(--steel-500); letter-spacing: 0.01em; }

@media (max-width: 420px) { .brand__text { display: none; } }

.nav { display: none; margin-inline-end: auto; }

/* 1240px is where the full bar fits without wrapping. Below it the
   drawer takes over: a burger that works beats a navigation that
   reflows onto two lines. */
@media (min-width: 1240px) {
    .nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.25rem; }
}

.nav__item { position: relative; }

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-block: 0.6rem;
    padding-inline: clamp(0.35rem, 0.8vw, 0.85rem);
    font-size: 0.875rem;
    white-space: nowrap;
    font-weight: 500;
    color: var(--ink-700);
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover { color: var(--accent-deep); background: var(--mist-100); }

.nav__link[aria-current='page'],
.nav__item.is-active > .nav__link { color: var(--accent-deep); }

.nav__link[aria-current='page']::after {
    content: '';
    position: absolute;
    inset-inline: clamp(0.35rem, 0.8vw, 0.85rem);
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav__caret { width: 10px; height: 10px; opacity: 0.5; transition: transform 0.25s var(--ease); }
.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret { transform: rotate(180deg); }

/* Mega panel */
.mega {
    position: absolute;
    inset-inline-start: 50%;
    top: calc(100% + 0.5rem);
    translate: -50% 0;
    width: min(92vw, 880px);
    padding: 1.75rem;
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease-out), visibility 0.22s;
}

.nav__item:hover > .mega,
.nav__item:focus-within > .mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega__grid {
    display: grid;
    gap: 0.5rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.mega__link {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.7rem;
    border-radius: var(--radius);
    transition: background 0.2s var(--ease);
}

.mega__link:hover { background: var(--mist-100); }

.mega__thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--mist-100);
    object-fit: cover;
    object-position: center;
    flex: none;
}

.mega__title { font-weight: 600; font-size: 0.9375rem; color: var(--ink-900); line-height: 1.3; }
.mega__desc { font-size: var(--text-xs); color: var(--steel-500); line-height: 1.45; margin-block-start: 0.15rem; }

.mega__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-block-start: 1.25rem;
    padding-block-start: 1.25rem;
    border-block-start: var(--hairline);
}

/* Header utilities */
.header__tools { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.5rem; margin-inline-start: auto; }

.header__phone {
    display: none;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.02em;
    color: var(--ink-700);
    padding-inline-end: 0.5rem;
    white-space: nowrap;
}

@media (min-width: 1520px) { .header__phone { display: inline-flex; align-items: center; gap: 0.45rem; } }

.header__cta { white-space: nowrap; }
@media (max-width: 1339px) { .header__cta { display: none; } }

/* Language switcher */
.lang { position: relative; }

.lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    white-space: nowrap;
    letter-spacing: 0.08em;
    background: transparent;
    border: 1px solid var(--mist-200);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s var(--ease);
}

.lang__toggle:hover { border-color: var(--ink-700); }

.lang__menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.4rem);
    min-width: 170px;
    padding: 0.4rem;
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease-out), visibility 0.18s;
    z-index: 20;
}

.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    transition: background 0.18s var(--ease);
}

.lang__option:hover { background: var(--mist-100); }
.lang__option[aria-current='true'] { color: var(--accent-deep); font-weight: 600; }
.lang__option span:last-child { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--steel-500); }

/* Burger */
.burger {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    background: transparent;
    border: 1px solid var(--mist-200);
    border-radius: 999px;
    cursor: pointer;
}

@media (min-width: 1240px) { .burger { display: none; } }

.burger__box { display: grid; gap: 4px; width: 17px; }
.burger__box i { display: block; height: 1.5px; background: var(--ink-800); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger[aria-expanded='true'] .burger__box i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__box i:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__box i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 95;
    background: var(--paper);
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease-out), visibility 0.3s;
}

.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

@media (min-width: 1240px) { .drawer { display: none; } }

.drawer__group { border-block-end: var(--hairline); padding-block: 0.4rem; }

.drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink-900);
}

.drawer__sub { display: grid; gap: 0.1rem; padding-block: 0 0.8rem; padding-inline-start: 0.25rem; }

.drawer__sublink {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--steel-500);
}

.drawer__sublink::before {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--mist-200);
    flex: none;
}

.drawer__foot { display: grid; gap: 0.75rem; margin-block-start: 1.75rem; }

/* ----------------------------------------------------------------- 08 hero */

.hero {
    position: relative;
    background: var(--ink-900);
    color: var(--mist-200);
    overflow: hidden;
    isolation: isolate;
}

/* Accent glow behind the headline. */
.hero::after {
    content: '';
    position: absolute;
    inset-block-start: -30%;
    inset-inline-start: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(15, 179, 163, 0.18), transparent 62%);
    pointer-events: none;
    z-index: -1;
}

.hero__inner {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

@media (min-width: 980px) {
    .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero__slides { position: relative; }

.hero__slide {
    display: grid;
    gap: 1.5rem;
    align-content: start;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.7s var(--ease-out), visibility 0.6s;
}

.hero__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hero__title {
    font-size: var(--display-xl);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--paper);
}

[dir='rtl'] .hero__title { letter-spacing: 0; line-height: 1.22; }

.hero__text { font-size: clamp(1rem, 1.35vw, 1.1875rem); color: var(--steel-300); max-width: 54ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 0.5rem; }

/* The media column: image on a plinth with corner ticks. */
.hero__media { position: relative; }

.hero__frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
    border: var(--hairline-dark);
    aspect-ratio: 4 / 3.3;
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s var(--ease), transform 1.4s var(--ease-out);
}

.hero__img.is-active { opacity: 1; transform: scale(1); }

.hero__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 17, 26, 0.55), transparent 55%);
    pointer-events: none;
}

/* Slide controls: monospace index plus progress rules. */
.hero__rail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-block-start: 1.5rem;
}

.hero__count {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    color: var(--steel-400);
    flex: none;
}

.hero__count b { color: var(--paper); font-weight: 500; }

.hero__dots { display: flex; gap: 0.5rem; flex: 1; }

.hero__dot {
    flex: 1;
    height: 2px;
    max-width: 56px;
    padding: 0;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s var(--ease);
}

.hero__dot::after {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 0;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.hero__dot[aria-selected='true']::after { width: 100%; }
.hero__dot:hover { background: rgba(255, 255, 255, 0.3); }

/* Compact hero for interior pages. */
.page-hero {
    position: relative;
    background: var(--ink-900);
    color: var(--mist-200);
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
    overflow: hidden;
    isolation: isolate;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset-block-start: -40%;
    inset-inline-end: -5%;
    width: 50vw;
    height: 50vw;
    max-width: 640px;
    max-height: 640px;
    background: radial-gradient(circle, rgba(15, 179, 163, 0.16), transparent 65%);
    z-index: -1;
}

.page-hero__inner { display: grid; gap: 1.25rem; max-width: 72ch; }
.page-hero__title { font-size: var(--display-l); color: var(--paper); }

.page-hero--split .page-hero__inner { max-width: none; }

@media (min-width: 900px) {
    .page-hero--split .page-hero__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 4rem);
        align-items: center;
    }
}

/* Breadcrumb */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    color: var(--steel-400);
}

.crumbs a { transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--accent-bright); }
.crumbs i { opacity: 0.45; font-style: normal; }

/* ---------------------------------------------------------------- 09 stats */

.stats {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    border-block-start: var(--hairline-dark);
}

.stat {
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
    border-block-end: var(--hairline-dark);
    border-inline-end: var(--hairline-dark);
}

.stat:last-child { border-inline-end: 0; }

.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--paper);
}

[dir='rtl'] .stat__value { letter-spacing: 0; }

.stat__label {
    margin-block-start: 0.65rem;
    font-size: var(--text-sm);
    color: var(--steel-400);
    line-height: 1.4;
}

/* ---------------------------------------------------------------- 10 cards */

.card {
    position: relative;
    display: grid;
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    background: linear-gradient(150deg, var(--mist-100), var(--mist-200));
    overflow: hidden;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(1rem, 3vw, 2rem);
    transition: transform 0.6s var(--ease-out);
}

.card__media--cover img { object-fit: cover; padding: 0; }

.card:hover .card__media img { transform: scale(1.04); }

.card__body { display: grid; gap: 0.7rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); align-content: start; }

.card__title { font-size: 1.1875rem; }
.card__text { font-size: var(--text-sm); color: var(--steel-500); line-height: 1.6; }

.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-block-start: auto;
    padding: 0 clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem);
}

.card__meta { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--steel-400); }

/* Whole-card link overlay. */
.card__hit { position: absolute; inset: 0; z-index: 1; }
.card__foot .link { position: relative; z-index: 2; }

/* Corner ticks — precision-instrument detail on feature cards. */
.card--ticked::before,
.card--ticked::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.card--ticked::before {
    inset-block-start: 12px;
    inset-inline-start: 12px;
    border-width: 1.5px 0 0 1.5px;
}

.card--ticked::after {
    inset-block-end: 12px;
    inset-inline-end: 12px;
    border-width: 0 1.5px 1.5px 0;
}

.card--ticked:hover::before,
.card--ticked:hover::after { opacity: 1; }

/* Dark card variant for ink sections. */
.card--ink {
    background: var(--ink-800);
    border-color: rgba(255, 255, 255, 0.08);
}

.card--ink .card__title { color: var(--paper); }
.card--ink .card__text { color: var(--steel-400); }
.card--ink .card__media { background: linear-gradient(150deg, var(--ink-700), var(--ink-900)); }

/* --------------------------------------------- 11 product-line feature grid */

.lines { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

@media (min-width: 760px) {
    .lines { grid-template-columns: repeat(6, 1fr); }
    .lines > * { grid-column: span 3; }
    .lines > :nth-child(1) { grid-column: span 6; }
}

@media (min-width: 1100px) {
    .lines > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
    .lines > :nth-child(n + 2) { grid-column: span 3; }
}

.line {
    position: relative;
    display: grid;
    align-content: end;
    gap: 0.75rem;
    min-height: 260px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-lg);
    background: var(--ink-800);
    overflow: hidden;
    isolation: isolate;
    color: var(--mist-200);
    transition: transform 0.4s var(--ease-out);
}

.lines > :nth-child(1) .line { min-height: 380px; }

.line:hover { transform: translateY(-3px); }

.line__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: transform 0.8s var(--ease-out), opacity 0.4s var(--ease);
}

.line:hover .line__bg { transform: scale(1.05); opacity: 0.62; }

.line::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, var(--ink-900) 8%, rgba(6, 17, 26, 0.72) 48%, rgba(6, 17, 26, 0.3));
}

.line__name { font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--paper); }
.line__tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-bright); }
.line__text { font-size: var(--text-sm); color: var(--steel-300); line-height: 1.6; max-width: 46ch; }

.line__go {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-start: 0.35rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--paper);
}

.line__go .arrow { transition: transform 0.3s var(--ease-out); }
.line:hover .line__go .arrow { transform: translateX(4px); }
[dir='rtl'] .line:hover .line__go .arrow { transform: translateX(-4px); }

.line__hit { position: absolute; inset: 0; z-index: 2; }

/* ------------------------------------------------------------ 12 datasheet */

/* Table styled like a manufacturer spec sheet: monospace data, hairlines,
   sticky header, and a horizontal scroll shadow on narrow screens. */
.datasheet {
    border: var(--hairline);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
}

.datasheet__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.datasheet table { min-width: 760px; font-size: var(--text-sm); }

.datasheet thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: start;
    color: var(--steel-500);
    background: var(--mist-100);
    border-block-end: var(--hairline);
    white-space: nowrap;
}

.datasheet tbody td {
    padding: 0.85rem 1rem;
    border-block-end: 1px solid var(--mist-100);
    vertical-align: middle;
}

.datasheet tbody tr:last-child td { border-block-end: 0; }
.datasheet tbody tr:hover { background: var(--mist-100); }

.datasheet td.num,
.datasheet td.ref {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--ink-800);
    white-space: nowrap;
}

.datasheet td.ref { font-weight: 500; }
.datasheet .name { font-weight: 600; color: var(--ink-900); }

/* Colour-ring swatch for the endo files. */
.swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.swatch__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(6, 17, 26, 0.2);
    flex: none;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.swatch__dot--double { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 0 0 2px currentColor; }

/* Definition grid for spec pairs. */
.specs {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    border-block-start: var(--hairline);
}

.on-dark .specs { border-block-start: var(--hairline-dark); }

.spec {
    padding: 1.25rem clamp(0.75rem, 2vw, 1.5rem);
    border-block-end: var(--hairline);
    border-inline-end: var(--hairline);
}

.on-dark .spec { border-block-end: var(--hairline-dark); border-inline-end: var(--hairline-dark); }

.spec__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel-500);
}

.spec__value {
    margin-block-start: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.3;
}

.on-dark .spec__value { color: var(--paper); }

/* ------------------------------------------------------- 13 prose / markup */

.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-600); }

.prose > * + * { margin-block-start: 1.1em; }

.prose h2 {
    font-size: var(--display-s);
    margin-block-start: 2.2em;
    margin-block-end: 0.7em;
    color: var(--ink-900);
}

.prose h2:first-child { margin-block-start: 0; }

.prose h3 { font-size: 1.1875rem; margin-block-start: 1.8em; margin-block-end: 0.5em; }

.prose strong { color: var(--ink-900); font-weight: 600; }

.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

.prose ul, .prose ol { display: grid; gap: 0.55em; padding-inline-start: 1.2em; }
.prose ul { list-style: none; padding-inline-start: 0; }

.prose ul > li {
    position: relative;
    padding-inline-start: 1.5em;
}

.prose ul > li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
}

.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--accent-deep); font-family: var(--font-mono); font-size: 0.85em; }

.prose blockquote {
    padding-inline-start: 1.25rem;
    border-inline-start: 2px solid var(--accent);
    font-size: 1.125rem;
    color: var(--ink-700);
}

/* Bulleted clinical list used for indications / benefits. */
.ticks { display: grid; gap: 0.75rem; }

.ticks li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.75rem;
    align-items: start;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.ticks li::before {
    content: '';
    width: 18px;
    height: 18px;
    margin-block-start: 0.2em;
    border-radius: 50%;
    background: var(--accent-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fb3a3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
}

.on-dark .ticks li::before { background-color: rgba(15, 179, 163, 0.18); }

/* ------------------------------------------------------- 14 aligner brand */

/* The aligner sub-brand runs warmer and lighter than the surgical range:
   bone-coloured grounds, more air, softer radii. Same accent, different
   temperature, so it reads as a sibling rather than a different company. */

.aligner-hero {
    position: relative;
    background: var(--bone-100);
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 6rem);
}

.aligner-hero__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }

@media (min-width: 940px) {
    .aligner-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}

.aligner-hero__title { font-size: var(--display-xl); }
.aligner-hero__title em { font-style: normal; color: var(--accent-deep); }

.aligner-hero__media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 4.4;
    background: var(--bone-200);
}

.aligner-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.fda {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem 0.5rem 0.6rem;
    background: var(--paper);
    border: 1px solid var(--bone-200);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

[dir='rtl'] .fda { padding: 0.5rem 0.6rem 0.5rem 0.9rem; }

.fda__mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.fda__text { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.04em; color: var(--ink-800); }

/* Numbered step list with a connecting rule. */
.steps { display: grid; gap: 0; counter-reset: step; }

.step {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: clamp(1rem, 2.5vw, 2rem);
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
    border-block-end: 1px solid var(--bone-200);
    counter-increment: step;
}

.step:last-child { border-block-end: 0; }

.step__num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--accent-deep);
}

.step__num::before { content: counter(step, decimal-leading-zero); }

.step__body { display: grid; gap: 0.5rem; align-content: start; }
.step__title { font-size: 1.3125rem; }

/* 15px set over two columns is a caption, not a paragraph. These six items
   are the page's actual argument, so they are set at reading size. */
.step__text { font-size: var(--text-base); color: var(--steel-500); line-height: 1.7; max-width: 54ch; }

@media (min-width: 760px) {
    .steps--split { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); }
}

/* Alternating image / text rows. */
.alt { display: grid; gap: clamp(2rem, 5vw, 4rem); }

.alt__row { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

@media (min-width: 860px) {
    .alt__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* The picture is first in the markup, so -1 moved it nowhere and the
       rows never alternated. 1 sends it to the second column instead. */
    .alt__row:nth-child(even) .alt__media { order: 1; }
}

.alt__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bone-200);
}

.alt__media img { width: 100%; height: 100%; object-fit: cover; }

.alt__body { display: grid; gap: 1rem; align-content: start; }

/* Oversized metric callout. */
.metric { display: grid; gap: 0.35rem; }

.metric__value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.95;
    color: var(--accent-deep);
}

[dir='rtl'] .metric__value { letter-spacing: 0; }

.metric__label { font-size: var(--text-sm); font-weight: 500; color: var(--ink-700); max-width: 28ch; }

/* ------------------------------------------------------------ 15 packages */

/* Five packages across a 1160px column left each one 210px wide, which is
   where the 10px labels inside them came from. At 300px the grid falls to
   three and two, every card has room for its numbers, and nothing has to be
   set small to fit. */
.packages {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    align-items: stretch;
}

.pkg {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0;
    padding: clamp(1.5rem, 2.6vw, 2.25rem);
    background: var(--paper);
    border: 1px solid var(--bone-200);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pkg:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.pkg--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.pkg__badge {
    position: absolute;
    inset-block-start: -10px;
    inset-inline-start: clamp(1.5rem, 2.6vw, 2.25rem);
    padding: 0.25em 0.7em;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
}

.pkg__name {
    font-size: 1.5rem;
    padding-block-end: 1.1rem;
    border-block-end: 1px solid var(--bone-200);
}

/* The aligner count, lifted out of the list and given the weight it earns:
   it is the only line that differs between Mini and Unlimited. */
.pkg__lead {
    display: grid;
    gap: 0.35rem;
    padding-block: 1.25rem;
    border-block-end: 1px solid var(--bone-200);
}

.pkg__count {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--accent-deep);
    text-wrap: balance;
}

[dir='rtl'] .pkg__count { letter-spacing: 0; }

.pkg__rows { display: grid; gap: 0; }

.pkg__row {
    display: grid;
    gap: 0.25rem;
    padding-block: 1rem;
    border-block-end: 1px solid var(--bone-100);
}

.pkg__row:last-child { border-block-end: 0; }

.pkg__key {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--steel-500);
}

.pkg__val { font-size: 1.0625rem; font-weight: 600; color: var(--ink-900); }

.pkg__note { margin-block-start: 1.1rem; font-size: var(--text-sm); color: var(--steel-500); line-height: 1.6; }

/* --------------------------------------------------------- 16 network grid */

.offices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.office {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    padding: clamp(1.25rem, 2.5vw, 1.6rem);
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.office:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }

.office--hq {
    background: var(--ink-900);
    border-color: transparent;
    color: var(--mist-200);
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .office--hq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
}

.office--hq .office__country { color: var(--paper); }
.office--hq .office__address { color: var(--steel-300); }

.office__country {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink-900);
}

.office__company { font-size: var(--text-sm); font-weight: 500; color: var(--accent-deep); }
.office--hq .office__company { color: var(--accent-bright); }

.office__address { font-size: 0.875rem; color: var(--steel-500); line-height: 1.6; white-space: pre-line; }

.office__contacts { display: grid; gap: 0.3rem; font-family: var(--font-mono); font-size: 0.8125rem; }
.office__contacts a { transition: color 0.2s var(--ease); }
.office__contacts a:hover { color: var(--accent-deep); }
.office--hq .office__contacts a:hover { color: var(--accent-bright); }

/* Region filter chips. */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
    padding: 0.45em 0.95em;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--ink-700);
    background: var(--paper);
    border: var(--hairline);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.chip:hover { border-color: var(--ink-700); }

.chip[aria-pressed='true'] {
    color: #fff;
    background: var(--ink-900);
    border-color: var(--ink-900);
}

/* ----------------------------------------------------------------- 17 form */

.form { display: grid; gap: 1.1rem; }

.form__row { display: grid; gap: 1.1rem; }

@media (min-width: 620px) {
    .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: 0.4rem; }

.field__label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-700);
}

.field__label span { color: var(--accent-deep); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    font-size: 0.9375rem;
    color: var(--ink-900);
    background: var(--paper);
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    appearance: none;
}

.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e7686' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 15px;
    padding-inline-end: 2.4rem;
}

[dir='rtl'] .field select { background-position: left 0.85rem center; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--steel-400); }

.field--error input,
.field--error select,
.field--error textarea { border-color: var(--danger); }

.field__error { font-size: var(--text-xs); color: var(--danger); }

.field--check {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.7rem;
}

.field--check input {
    width: 18px;
    height: 18px;
    margin-block-start: 0.15rem;
    accent-color: var(--accent);
    border-radius: 3px;
    padding: 0;
}

.field--check label { font-size: var(--text-sm); color: var(--steel-500); line-height: 1.5; }

/* Honeypot — present in the DOM, never shown or focusable. */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Alerts */
.alert {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.15rem;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    border-inline-start: 3px solid currentColor;
}

.alert--ok { color: var(--accent-deep); background: var(--accent-tint); }
.alert--bad { color: var(--danger); background: rgba(192, 57, 43, 0.08); }
.alert strong { display: block; font-weight: 600; }
.alert p { color: var(--ink-600); }

/* --------------------------------------------------------------- 18 footer */

.footer {
    background: var(--ink-900);
    color: var(--steel-400);
    padding-block: clamp(3rem, 6vw, 5rem) 2rem;
    position: relative;
    overflow: hidden;
}

.footer__grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    padding-block-end: clamp(2rem, 4vw, 3rem);
    border-block-end: var(--hairline-dark);
}

@media (min-width: 820px) {
    .footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}

.footer__brand { display: grid; gap: 1rem; align-content: start; }
.footer__brand .brand__name { color: var(--paper); }
.footer__brand .brand__claim { color: var(--steel-500); }
.footer__about { font-size: var(--text-sm); line-height: 1.7; max-width: 42ch; }

.footer__title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel-500);
    margin-block-end: 1rem;
}

.footer__list { display: grid; gap: 0.6rem; font-size: 0.9375rem; }
.footer__list a { transition: color 0.2s var(--ease); }
.footer__list a:hover { color: var(--accent-bright); }

.footer__contact { display: grid; gap: 0.75rem; font-size: 0.9375rem; }
.footer__contact .mono { color: var(--mist-200); }
.footer__contact address { font-style: normal; line-height: 1.6; white-space: pre-line; }

.socials { display: flex; gap: 0.5rem; margin-block-start: 0.5rem; }

.socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: var(--hairline-dark);
    border-radius: 50%;
    transition: all 0.22s var(--ease);
}

.socials a:hover { color: var(--paper); border-color: var(--accent); background: rgba(15, 179, 163, 0.16); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-block-start: 1.75rem;
    font-size: var(--text-xs);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a:hover { color: var(--accent-bright); }

/* ------------------------------------------------------------ 19 utilities */

.cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--ink-900);
    color: var(--mist-200);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.75rem);
}

.cta-band::after {
    content: '';
    position: absolute;
    inset-block-end: -60%;
    inset-inline-end: -10%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(15, 179, 163, 0.22), transparent 65%);
    z-index: -1;
}

.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }

@media (min-width: 880px) {
    .cta-band__inner { grid-template-columns: minmax(0, 1.5fr) auto; gap: 2.5rem; }
}

.empty {
    display: grid;
    gap: 0.5rem;
    place-items: center;
    padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
    text-align: center;
    background: var(--paper);
    border: 1px dashed var(--mist-200);
    border-radius: var(--radius-lg);
    color: var(--steel-500);
}

.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.media-tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--mist-100);
    border: var(--hairline);
}

.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.media-tile:hover img { transform: scale(1.05); }

.media-tile__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(to top, rgba(6, 17, 26, 0.55), transparent 60%);
}

.media-tile__play i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-900);
    font-style: normal;
    transition: transform 0.25s var(--ease-out);
}

.media-tile:hover .media-tile__play i { transform: scale(1.08); }

.media-tile__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.9rem 1rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: #fff;
}

.ratio-16-9 { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-800); }
.ratio-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/*
 * Scroll-reveal. Hiding is scoped to .js, which the document sets in the
 * head: if the script never runs, the content is simply visible rather
 * than stuck at opacity 0 with no way back.
 */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.8s var(--ease-out);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; }
}

.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; margin-block-start: 2.5rem; }

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding-inline: 0.6rem;
    font-size: var(--text-sm);
    border: var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--paper);
}

.pagination a:hover { border-color: var(--ink-700); }
.pagination .is-current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: 0.4; }

.text-center { text-align: center; }
.mt-0 { margin-block-start: 0; }
.mt-2 { margin-block-start: 1rem; }
.mt-4 { margin-block-start: 2rem; }
.mb-0 { margin-block-end: 0; }
.flex-end { margin-inline-start: auto; }

@media print {
    .header, .footer, .drawer, .hero__rail, .btn { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ========================================================================== */
/* 20 ordering: basket, checkout and the customer portal                      */
/* ========================================================================== */

/* Price, rendered in the display currency. "On request" is a first-class
   state here, not a missing value: most of the catalogue is quoted. */
.price {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink-900);
    white-space: nowrap;
}

.price--lg { font-size: 1.25rem; }
.price--muted { color: var(--steel-500); font-weight: 400; }

.price-request {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--steel-500);
    white-space: nowrap;
}

/* Cart / currency buttons in the header */
.header__tools .cart-btn { position: relative; }

/* A fixed circle rather than a pill around a label: the label is
   screen-reader only, so a pill sized by its padding looked undersized
   next to the brand. */
.cart-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--ink-800);
    background: transparent;
    border: 1px solid var(--mist-200);
    border-radius: 999px;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cart-btn:hover { border-color: var(--ink-800); }

/* The count sits on the rim, so a full basket cannot stretch the circle. */
.header__tools .cart-btn__count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    box-shadow: 0 0 0 2px var(--paper);
}

.cart-btn__count {
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding-inline: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
}

/* Add-to-basket control inside a datasheet row */
.add-line { display: flex; align-items: center; gap: 0.35rem; }

.add-line__qty {
    width: 56px;
    padding: 0.35rem 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-align: center;
    color: var(--ink-900);
    background: var(--paper);
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-sm);
    appearance: textfield;
}

.add-line__qty::-webkit-outer-spin-button,
.add-line__qty::-webkit-inner-spin-button { appearance: none; margin: 0; }

.add-line__qty:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.add-line__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.add-line__btn:hover { background: var(--accent); color: #fff; }

/* Basket layout */
.basket { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

@media (min-width: 980px) {
    .basket { grid-template-columns: minmax(0, 1fr) 340px; }
}

.basket__lines {
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bline {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem clamp(1rem, 2vw, 1.4rem);
    border-block-end: 1px solid var(--mist-100);
}

.bline:last-child { border-block-end: 0; }

@media (min-width: 760px) {
    .bline {
        grid-template-columns: 64px minmax(0, 1fr) auto auto auto;
        align-items: center;
        gap: 1.25rem;
    }
}

.bline__thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 4px;
    background: var(--mist-100);
    border: var(--hairline);
    border-radius: var(--radius-sm);
}

.bline__body { display: grid; gap: 0.2rem; min-width: 0; }
.bline__name { font-weight: 600; font-size: 0.9375rem; color: var(--ink-900); line-height: 1.35; }
.bline__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--steel-500); }
.bline__group { font-size: var(--text-xs); color: var(--steel-500); }

.bline__qty { display: flex; align-items: center; gap: 0.3rem; }
.bline__price { text-align: end; min-width: 92px; }
.bline__remove {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--steel-500);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.bline__remove:hover { color: var(--danger); background: rgba(192, 57, 43, 0.08); }

/* Summary panel */
.summary {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
}

.summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9375rem;
}

.summary__row + .summary__row { padding-block-start: 0.6rem; border-block-start: 1px solid var(--mist-100); }
.summary__row dt { color: var(--steel-500); }
.summary__total { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--ink-900); }
.summary__note { font-size: var(--text-xs); color: var(--steel-500); line-height: 1.6; }

.summary__hint {
    display: grid;
    gap: 0.3rem;
    padding: 0.8rem 0.9rem;
    font-size: var(--text-xs);
    line-height: 1.6;
    color: var(--ink-700);
    background: var(--mist-100);
    border-radius: var(--radius);
}

/* Checkout */
.checkout { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

@media (min-width: 980px) {
    .checkout { grid-template-columns: minmax(0, 1fr) 340px; }
}

.checkout__panel {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
}

.checkout__legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel-500);
}

.checkout__legend::after { content: ''; flex: 1; height: 1px; background: var(--mist-200); }

/* Compact line list reused on checkout, confirmation and the portal */
.mini-lines { display: grid; gap: 0; }

.mini-line {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: baseline;
    padding-block: 0.65rem;
    border-block-end: 1px solid var(--mist-100);
    font-size: var(--text-sm);
}

.mini-line:last-child { border-block-end: 0; }
.mini-line__qty { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--steel-500); }
.mini-line__name { min-width: 0; }
.mini-line__name b { display: block; font-weight: 600; color: var(--ink-900); font-size: 0.875rem; line-height: 1.35; }
.mini-line__name span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--steel-500); }

/* Order reference, shown big on the confirmation */
.ref-card {
    display: grid;
    gap: 0.4rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    text-align: center;
    background: var(--ink-900);
    color: var(--mist-200);
    border-radius: var(--radius-lg);
}

.ref-card__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel-400);
}

.ref-card__value {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--paper);
}

/* Status pill */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.25em 0.7em;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
}

.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.status--received { color: var(--accent-deep); background: var(--accent-tint); }
.status--quoted { color: #8a6100; background: rgba(178, 106, 0, 0.1); }
.status--confirmed { color: #0b6e9a; background: rgba(11, 110, 154, 0.1); }
.status--shipped { color: #5b4bb8; background: rgba(91, 75, 184, 0.1); }
.status--completed { color: #0f8f5f; background: rgba(15, 143, 95, 0.1); }
.status--cancelled { color: var(--steel-500); background: var(--mist-100); }

/* Customer portal shell */
.portal { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

@media (min-width: 900px) {
    .portal { grid-template-columns: 240px minmax(0, 1fr); }
}

.portal__nav {
    display: grid;
    gap: 2px;
    padding: 0.5rem;
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
}

@media (min-width: 900px) { .portal__nav { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

.portal__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.portal__link:hover { background: var(--mist-100); }

.portal__link.is-active {
    color: var(--accent-deep);
    background: var(--accent-tint);
    font-weight: 600;
}

.portal__link .icon { opacity: 0.6; flex: none; }
.portal__link.is-active .icon { opacity: 1; }

.portal__panel {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
}

.portal__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-block-end: 1rem;
    border-block-end: var(--hairline);
}

.portal__head h2 { font-size: 1.125rem; }

/* Auth card, used by portal sign-in and registration */
.auth-card {
    width: min(480px, 100%);
    display: grid;
    gap: 1.25rem;
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-card--wide { width: min(760px, 100%); }
.auth-card__head { display: grid; gap: 0.4rem; }
.auth-card__foot { font-size: var(--text-sm); color: var(--steel-500); text-align: center; }

/* Order history table */
.orders-table { font-size: var(--text-sm); }
.orders-table th {
    padding: 0.7rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: start;
    color: var(--steel-500);
    border-block-end: var(--hairline);
    white-space: nowrap;
}

.orders-table td { padding: 0.8rem 0.9rem; border-block-end: 1px solid var(--mist-100); }
.orders-table tbody tr:last-child td { border-block-end: 0; }
.orders-table .ref { font-family: var(--font-mono); font-weight: 500; color: var(--ink-900); }

/* ========================================================================== */
/* 21 preloader                                                               */
/* ========================================================================== */

/*
 * The brand mark held inside its own globe, with a line travelling around
 * it. Shown only when scripting is available — without JS there would be
 * nothing to take the overlay away again, so it stays hidden entirely.
 */

.preloader { display: none; }

.js .preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: var(--gutter);
    background: var(--ink-900);
    background-image: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(15, 179, 163, 0.16), transparent 70%);
    opacity: 1;
    transition: opacity 0.55s var(--ease), visibility 0.55s;
}

.js .preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Keeps the page behind from scrolling under the overlay. */
html.is-loading,
html.is-loading body { overflow: hidden; }

.preloader__inner {
    display: grid;
    justify-items: center;
    gap: 1.5rem;
    text-align: center;
}

.preloader__stage {
    position: relative;
    width: clamp(168px, 34vw, 230px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.globe { width: 100%; height: 100%; overflow: visible; }

.globe__wire,
.globe__meridians {
    fill: none;
    stroke: rgba(255, 255, 255, 0.17);
    stroke-width: 1;
}

.globe__wire circle { stroke: rgba(255, 255, 255, 0.3); }

/* Each meridian squashes to edge-on and back; three of them, offset in
   time, read as one sphere turning. */
.globe__m {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: ora-meridian 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.globe__m:nth-of-type(2) { animation-delay: -2.66s; }
.globe__m:nth-of-type(3) { animation-delay: -5.33s; }

@keyframes ora-meridian {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.04); }
}

/* The travelling line: a short arc of a circle, spun about the centre. */
.globe__orbit {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: ora-orbit 2.8s linear infinite;
}

.globe__orbit circle {
    fill: none;
    stroke: url(#oraOrbit);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 26 74;
}

.globe__orbit--reverse {
    animation-duration: 4.6s;
    animation-direction: reverse;
}

.globe__orbit--reverse circle {
    stroke: rgba(44, 207, 189, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 8 92;
}

@keyframes ora-orbit {
    to { transform: rotate(360deg); }
}

.preloader__mark {
    position: absolute;
    width: 42%;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(145, 116, 169, 0.45)) brightness(1.25);
    animation: ora-mark-in 1s var(--ease-out) both;
}

@keyframes ora-mark-in {
    from { opacity: 0; transform: scale(0.82); }
    to { opacity: 1; transform: none; }
}

.preloader__brand {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--paper);
    animation: ora-fade-up 0.8s var(--ease-out) 0.15s both;
}

[dir='rtl'] .preloader__brand { letter-spacing: 0; }

@keyframes ora-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Cycling product words. Each span owns one slice of the shared cycle, so
   the timing stays correct however many the dashboard publishes. */
.preloader__words {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 1.6em;
    margin-block-start: -0.75rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-bright);
}

[dir='rtl'] .preloader__words {
    font-family: var(--font-body);
    letter-spacing: 0;
    font-size: var(--text-sm);
}

/* Each word owns one slot of a shared cycle. Deriving both the duration
   and the delay from --word-count keeps the spacing even however many
   product lines the dashboard publishes. */
.preloader__words { --slot: 1.6s; }

.preloader__word {
    grid-area: 1 / 1;
    opacity: 0;
    animation: ora-word calc(var(--word-count, 4) * var(--slot)) linear infinite;
    animation-delay: calc(var(--i, 0) * var(--slot));
}

/* Invisible longest word, so the row never changes height mid-cycle. */
.preloader__word-ghost { grid-area: 1 / 1; visibility: hidden; }

@keyframes ora-word {
    0% { opacity: 0; transform: translateY(6px); }
    4%, 17% { opacity: 1; transform: none; }
    21%, 100% { opacity: 0; transform: translateY(-6px); }
}

.preloader__bar {
    width: clamp(120px, 26vw, 190px);
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

.preloader__bar i {
    display: block;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
    border-radius: 2px;
    animation: ora-bar 1.5s var(--ease) infinite;
}

/* Once the page is ready the bar stops sweeping and simply completes. */
.preloader.is-ready .preloader__bar i {
    width: 100%;
    background: var(--accent-bright);
    animation: none;
    transition: width 0.3s var(--ease-out);
}

@keyframes ora-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(400%); }
}

[dir='rtl'] .preloader__bar i { animation-direction: reverse; }

/* Stillness for anyone who asked for it: the mark, the words and the bar
   are shown at rest rather than animated. */
@media (prefers-reduced-motion: reduce) {
    .globe__m,
    .globe__orbit,
    .preloader__mark,
    .preloader__brand,
    .preloader__bar i { animation: none; }

    .globe__orbit circle { stroke-dasharray: none; stroke: rgba(44, 207, 189, 0.5); }
    .preloader__mark { opacity: 1; transform: none; }
    .preloader__word { animation: none; opacity: 0; }
    .preloader__word:nth-child(1) { opacity: 1; }
    .preloader__bar i { width: 100%; background: var(--accent-bright); }
}

/* ========================================================================== */
/* 22 install invitation                                                      */
/* ========================================================================== */

/*
 * Appears only once the browser fires beforeinstallprompt, and only while
 * the panel is not dismissed — so it is never shown to someone who cannot
 * act on it.
 */
.pwa-panel {
    position: fixed;
    inset-inline: var(--gutter);
    bottom: var(--gutter);
    z-index: 90;
    display: grid;
    gap: 0.9rem;
    max-width: 420px;
    margin-inline: auto;
    padding: 1rem 1.1rem;
    background: var(--paper);
    border: var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: ora-panel-in 0.45s var(--ease-out) both;
}

.pwa-panel[hidden] { display: none; }

@media (min-width: 720px) {
    .pwa-panel { inset-inline: auto var(--gutter); margin-inline: 0; }
}

@keyframes ora-panel-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.pwa-panel__body { display: flex; align-items: center; gap: 0.9rem; }

.pwa-panel__icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 10px;
    border: var(--hairline);
    background: var(--paper);
}

.pwa-panel__text { display: grid; gap: 0.15rem; min-width: 0; }
.pwa-panel__text strong { font-size: 0.9375rem; color: var(--ink-900); }
.pwa-panel__text span { font-size: var(--text-xs); color: var(--steel-500); line-height: 1.5; }

.pwa-panel__actions { display: flex; gap: 0.5rem; }
.pwa-panel__actions .btn { flex: 1; }

/* Installed and running standalone: give the fixed header room under the
   status bar on phones that report a safe area. */
.is-standalone .header { padding-block-start: env(safe-area-inset-top, 0); }
.is-standalone .footer { padding-block-end: calc(2rem + env(safe-area-inset-bottom, 0)); }

/* --------------------------------------------------------- 23 image viewer */
/*
 * Opens over the catalogue and media grids. The tiles keep their href, so
 * everything here is additive: without scripting the attribute is never read
 * and the overlay stays hidden.
 */

.viewer[hidden] { display: none; }

.viewer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.25rem, 2vw, 1.5rem);
    padding: clamp(0.75rem, 3vw, 2.5rem);
    background: rgba(4, 11, 17, 0.92);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.viewer.is-open { opacity: 1; }

/* Behind the overlay the page must not scroll away under the image. */
html.is-viewing,
html.is-viewing body { overflow: hidden; }

.viewer__figure {
    grid-column: 2;
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    margin: 0;
    min-width: 0;
    transform: scale(0.98);
    transition: transform 0.25s var(--ease-out);
}

.viewer.is-open .viewer__figure { transform: scale(1); }

.viewer__image {
    display: block;
    max-width: 100%;
    /* Leaves room for the caption under it on short screens. */
    max-height: calc(100vh - 11rem);
    max-height: calc(100dvh - 11rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--ink-800);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.viewer__figure.is-ready .viewer__image { opacity: 1; }

.viewer__caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.75rem;
    max-width: 60ch;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--mist-200);
}

.viewer__counter {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    color: var(--steel-500);
}

.viewer__btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.viewer__btn:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); }
.viewer__btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

.viewer__close {
    position: absolute;
    top: clamp(0.75rem, 3vw, 2rem);
    inset-inline-end: clamp(0.75rem, 3vw, 2rem);
    z-index: 2;
}

.viewer__nav--prev { grid-column: 1; }
.viewer__nav--next { grid-column: 3; }

/* A single image needs no paging, but the columns stay so it does not jump. */
.viewer.is-single .viewer__nav,
.viewer__nav[disabled] { visibility: hidden; }

@media (max-width: 640px) {
    .viewer { grid-template-columns: minmax(0, 1fr); }

    .viewer__figure { grid-column: 1; }

    .viewer__nav {
        position: absolute;
        bottom: clamp(0.75rem, 3vw, 2rem);
    }

    .viewer__nav--prev { inset-inline-start: clamp(0.75rem, 3vw, 2rem); }
    .viewer__nav--next { inset-inline-end: clamp(0.75rem, 3vw, 2rem); }

    .viewer__image {
        max-height: calc(100vh - 13rem);
        max-height: calc(100dvh - 13rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .viewer,
    .viewer__figure,
    .viewer__image { transition: none; }

    .viewer__figure { transform: none; }
}


/* --------------------------------------------------- 24 aligner page scale */

/* The catalogue is a reference: short texts beside a photograph, read in a
   column, 14px is right there. The aligner page is a brochure — six reasons,
   five packages, four advantages, all prose — and at the same 14px it reads
   as a leaflet seen from across the room. Everything here raises that one
   step, and only inside .aligner-page, so no other page moves. */

.aligner-page .card__text {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--steel-500);
}

.aligner-page .card__title { font-size: 1.3125rem; }
.aligner-page .card__body { gap: 0.85rem; }

/* A section opener may run wider than a column of body text: these are one
   sentence of explanation, and 62ch broke them over four short lines. */
.aligner-page .section-head { max-width: 74ch; }

.aligner-page .ticks li { font-size: var(--text-base); line-height: 1.6; }

/* On a workflow card this is the caption under the number — "70%" and
   then what the 70% is. That is content, not a label, so it does not
   stay at the 12px the catalogue's card meta uses. */
.aligner-page .card__meta { font-size: var(--text-sm); }

/* The two turnaround promises close the packages section, so they are set as
   statements rather than as the footnotes they were. */
.ticks--lead li { font-size: 1.0625rem; font-weight: 500; color: var(--ink-800); }
.aligner-page .ticks--lead li { font-size: 1.125rem; }

/* The metric that opens an advantage row ("Up to 55%") carries the point of
   the row; its caption should not be half its size in weight. */
.aligner-page .metric__label { font-size: var(--text-base); max-width: 32ch; }

@media (min-width: 860px) {
    /* An advantage is text against one photograph. Giving the text the wider
       half keeps the paragraph on five or six lines instead of ten. */
    .aligner-page .alt__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .aligner-page .alt__row:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------ 25 photo statement */

/* A full-bleed photograph with the claim written over it: the pattern the
   original aligner page is built from. The heading sits at the top of the
   band and the sentence is centred at the foot, so the middle of the picture
   — which is where the subject is — stays uncovered.

   The wash is not decoration. A photograph of a clinic is light, busy and
   different in every band, and white text on it is unreadable without one.
   Two layers: a vertical darkening that is heaviest where the text is, and
   our teal bloom from below, which is what keeps these bands part of this
   site rather than of the one they came from. */

.photoband {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: clamp(2.5rem, 7vw, 6rem);
    min-height: clamp(360px, 44vw, 600px);
    padding-block: clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    isolation: isolate;
    background: var(--ink-900);
}

.photoband__media { position: absolute; inset: 0; z-index: -2; }

.photoband__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The faces and the screens sit in the upper half of these photographs. */
    object-position: 50% 35%;
}

.photoband::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom,
            rgba(4, 11, 17, 0.78) 0%,
            rgba(4, 11, 17, 0.34) 38%,
            rgba(4, 11, 17, 0.84) 100%),
        radial-gradient(ellipse 90% 70% at 50% 108%, rgba(15, 179, 163, 0.38), transparent 68%);
}

.photoband__title {
    font-size: var(--display-m);
    color: #fff;
    max-width: 18ch;
    text-wrap: balance;
}

.photoband__foot { display: grid; justify-items: center; gap: 1.5rem; }

.photoband__text {
    max-width: 56ch;
    margin: 0;
    text-align: center;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

/* A band that carries a metric instead of a sentence — "70%", "Up to 55%". */
.photoband__metric { display: grid; justify-items: center; gap: 0.4rem; text-align: center; }

.photoband__metric .metric__value { color: var(--accent-bright); font-size: clamp(3rem, 7vw, 5rem); }
.photoband__metric .metric__label { color: rgba(255, 255, 255, 0.86); font-size: var(--text-base); max-width: 34ch; }

/* Two bands in a row would otherwise read as one very tall picture. */
.photoband + .photoband { border-block-start: 1px solid rgba(255, 255, 255, 0.12); }

@media (max-width: 640px) {
    .photoband { min-height: 420px; }
    .photoband__title { max-width: none; }
}

/* The closing band carries buttons, so its foot needs a little more air and
   a darker floor than the bands that only carry a sentence. */
.photoband--close { min-height: clamp(420px, 46vw, 620px); }

.photoband--close::after {
    background:
        linear-gradient(to bottom,
            rgba(4, 11, 17, 0.72) 0%,
            rgba(4, 11, 17, 0.42) 32%,
            rgba(4, 11, 17, 0.9) 100%),
        radial-gradient(ellipse 90% 75% at 50% 112%, rgba(15, 179, 163, 0.42), transparent 68%);
}

.photoband--close .photoband__foot { gap: 1.75rem; }

/* The aligner page's closing section: the offer beside the two people who
   answer it. Portraits, not a band — see the note in the view. */

.partner-close__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

@media (min-width: 900px) {
    .partner-close__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

.partner-close__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.partner-close__portrait {
    aspect-ratio: 3 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-close__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Two portraits side by side under 420px are two thumbnails. One is better. */
@media (max-width: 420px) {
    .partner-close__people { grid-template-columns: minmax(0, 1fr); }
    .partner-close__portrait:last-child { display: none; }
}
