/* ==========================================================================
   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-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); }

.header__bar {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: var(--header-h);
}

.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; }
.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; }

@media (min-width: 1060px) {
    .nav { display: flex; align-items: center; gap: 0.25rem; }
}

.nav__item { position: relative; }

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    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: 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; 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;
}

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

@media (max-width: 1059px) { .header__cta { display: none; } }

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

.lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    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: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--mist-200);
    border-radius: 999px;
    cursor: pointer;
}

@media (min-width: 1060px) { .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: 1060px) { .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-xs); 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: 56px 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: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    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.1875rem; }
.step__text { font-size: 0.9375rem; color: var(--steel-500); line-height: 1.65; max-width: 62ch; }

@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)); }
    .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 */

.packages {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    align-items: stretch;
}

.pkg {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    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.25rem, 2.5vw, 1.75rem);
    padding: 0.2em 0.6em;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
}

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

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

.pkg__row {
    display: grid;
    gap: 0.15rem;
    padding-block: 0.8rem;
    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.625rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--steel-500);
}

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

.pkg__note { margin-block-start: 1rem; font-size: var(--text-xs); color: var(--steel-500); line-height: 1.55; }

/* --------------------------------------------------------- 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; }

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    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); }

.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); }
