/* Phone Trends, Taunton – black glass and the shop sign.
   Palette: glass black (the phone's screen, header, hero, footer), the blue of the shop's own sign
   (measured on the shopfront photo), the orange of the logo. Fonts: Funnel Display + Fustat (SIL OFL). */

@font-face {
    font-family: "Funnel Display";
    src: url("/fonts/funnel-display.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
}

@font-face {
    font-family: "Fustat";
    src: url("/fonts/fustat.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --glass: #0d1117;
    --glass-2: #151b25;
    --glass-3: #1f2835;
    --glass-line: #2c3747;
    --blue: #1b68a9;
    --blue-deep: #124b7c;
    --blue-bright: #4da3ec;
    --orange: #faa628;
    --orange-ink: #8a4b00;
    --paper: #f3f6fa;
    --sheet: #ffffff;
    --line: #d9e1ea;
    --ink: #121821;
    --muted: #4a5566;
    --on-dark: #eef3f9;
    --on-dark-muted: #b4c0cf;
    --radius: 22px;
    --radius-sm: 14px;
    --display: "Funnel Display", "Segoe UI", system-ui, sans-serif;
    --text: "Fustat", "Segoe UI", system-ui, sans-serif;
    --wrap: 1180px;
    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--blue);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--blue-deep);
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);
    font-weight: 750;
}

h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    font-weight: 650;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--orange);
    color: var(--glass);
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-orange {
    background: var(--orange);
    color: var(--glass);
}

.btn-orange:hover {
    background: #ffbc55;
    color: var(--glass);
}

.btn-ghost {
    border-color: rgba(238, 243, 249, 0.55);
    color: var(--on-dark);
}

.btn-ghost:hover {
    border-color: var(--on-dark);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-blue {
    background: var(--blue);
    color: #fff;
}

.btn-blue:hover {
    background: var(--blue-deep);
    color: #fff;
}

.text-link {
    font-weight: 700;
    color: var(--blue);
}

.text-link::after {
    content: " →";
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 17, 23, 0.86);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--on-dark);
    --menu-fg: var(--on-dark);
    --menu-focus: var(--orange);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    min-height: 72px;
}

.brand {
    display: block;
    flex: 0 0 auto;
    margin-right: auto;
    border-radius: 6px;
}

.brand img {
    width: 206px;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--on-dark);
    font-weight: 600;
    text-decoration: none;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav a[aria-current] {
    background: rgba(250, 166, 40, 0.14);
    color: var(--orange);
}

.top-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--glass);
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.top-call:hover {
    background: #ffbc55;
    color: var(--glass);
}

.top-call svg,
.band-phone svg,
.side-phone svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linejoin: round;
}

/* ---- menu: /js/menu.js folds the navigation behind a button on a phone ---- */

.menu-toggle {
    display: none;
}

@media (max-width: 860px) {
    .has-menu .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-height: 44px;
        padding: 0 14px;
        border: 2px solid currentColor;
        border-radius: 999px;
        background: var(--menu-bg, transparent);
        color: var(--menu-fg, inherit);
        font: inherit;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
    }

    .has-menu .menu-toggle:focus-visible {
        outline: 3px solid var(--menu-focus, currentColor);
        outline-offset: 3px;
    }

    .has-menu .menu-nav:not(.is-open) {
        display: none;
    }

    .has-menu .menu-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-basis: 100%;
        width: 100%;
        margin-inline: 0;
        gap: 2px;
        padding-block: 6px 12px;
        background: var(--menu-panel, none);
        order: 10;
    }

    .has-menu .menu-nav.is-open a {
        padding-block: 12px;
    }

    .nav {
        order: 10;
        flex-basis: 100%;
    }
}

@media (max-width: 420px) {
    .has-menu .menu-toggle {
        justify-content: center;
        width: 44px;
        padding: 0;
    }

    .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 480px) {
    .top-row {
        gap: 8px;
        min-height: 64px;
    }

    .brand img {
        width: 132px;
    }

    .top-call {
        padding: 0 12px;
        gap: 6px;
        font-size: 0.95rem;
    }
}

@media (max-width: 370px) {
    .wrap {
        width: min(100% - 24px, var(--wrap));
    }

    .brand img {
        width: 118px;
    }

    .top-call svg {
        display: none;
    }
}

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

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(27, 104, 169, 0.55), transparent 70%),
        radial-gradient(40% 50% at 10% 100%, rgba(250, 166, 40, 0.14), transparent 70%),
        var(--glass);
    color: var(--on-dark);
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("/img/server-rack-cables.webp") center / cover no-repeat;
    opacity: 0.12;
    mix-blend-mode: luminosity;
    mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(250, 166, 40, 0.45);
    border-radius: 999px;
    color: var(--orange);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero h1 {
    max-width: 13ch;
    font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.hero .lead {
    max-width: 36rem;
    color: var(--on-dark-muted);
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 26px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--on-dark);
    font-weight: 600;
}

.hero-facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-facts li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.hero-phone {
    justify-self: center;
    width: min(100%, 330px);
    text-align: center;
}

.phone-svg {
    width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 50px rgba(27, 104, 169, 0.35));
}

.ph-body {
    fill: #0a0d12;
    stroke: var(--orange);
    stroke-width: 9;
}

.ph-chin,
.ph-speaker {
    fill: var(--orange);
}

.ph-button {
    fill: #0a0d12;
}

.ph-screen-off {
    fill: #05070a;
}

.ph-crack path {
    fill: none;
    stroke: rgba(235, 242, 250, 0.9);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.ph-crack {
    opacity: 0;
}

.ph-sweep {
    opacity: 0;
}

.ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 12;
}

.ring-fill {
    fill: none;
    stroke: var(--orange);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
    transform-origin: 150px 222px;
}

.ring-num {
    fill: #fff;
    font-family: var(--display);
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
}

.ring-unit,
.ui-line {
    fill: rgba(255, 255, 255, 0.88);
    font-family: var(--text);
    font-size: 19px;
    font-weight: 700;
}

.ui-line {
    font-size: 22px;
    fill: #fff;
}

.ui-pill {
    fill: var(--orange);
}

.hero-phone-note {
    margin: 18px auto 0;
    max-width: 24ch;
    color: var(--on-dark-muted);
    font-size: 0.95rem;
}

@media (prefers-reduced-motion: no-preference) {
    .ph-crack {
        animation: crack-show 2.4s ease both;
    }

    .ph-crack path {
        animation: crack-draw 0.9s 0.25s ease-out both;
    }

    .ph-sweep {
        animation: sweep 1s 1.25s ease-in-out both;
    }

    .ph-screen-on {
        animation: fade-in 0.7s 1.8s ease both;
    }

    .ph-ui {
        animation: fade-in 0.5s 2.1s ease both;
    }

    .ring-fill {
        animation: ring 1.3s 2.3s cubic-bezier(0.6, 0, 0.2, 1) both;
    }

    .hero-copy > * {
        animation: rise 0.7s ease both;
    }

    .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
    .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
    .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
    .hero-copy > :nth-child(5) { animation-delay: 0.32s; }

    @keyframes crack-show {
        0% { opacity: 1; }
        62% { opacity: 1; }
        100% { opacity: 0; }
    }

    @keyframes crack-draw {
        from { stroke-dashoffset: 1; }
        to { stroke-dashoffset: 0; }
    }

    @keyframes sweep {
        0% { opacity: 1; transform: skewX(-16deg) translateX(0); }
        100% { opacity: 1; transform: skewX(-16deg) translateX(560px); }
    }

    @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes ring {
        from { stroke-dashoffset: 100; }
        to { stroke-dashoffset: 0; }
    }

    @keyframes rise {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: none; }
    }
}

/* ---------- strip of specialities ---------- */

.strip {
    background: var(--blue);
    color: #fff;
}

.strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    padding-block: 22px;
}

.strip h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 7px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
}

.chips-dark li {
    border-color: var(--blue);
    background: var(--sheet);
    color: var(--blue-deep);
}

/* ---------- sections ---------- */

.section {
    padding-block: clamp(56px, 7vw, 96px);
}

.section-tint {
    background: #e7edf4;
}

.section-title {
    max-width: 22ch;
}

.kicker {
    margin: 0 0 10px;
    color: var(--orange-ink);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker-light {
    color: var(--orange);
}

/* bento of the six services */

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.bento li {
    grid-column: span 3;
}

.bento .bento-1,
.bento .bento-2 {
    grid-column: span 6;
}

.bento a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 26px 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bento .bento-1 a {
    background: linear-gradient(145deg, var(--glass-2), var(--glass));
    border-color: var(--glass);
    color: var(--on-dark);
}

.bento .bento-2 a {
    background: linear-gradient(145deg, var(--blue), var(--blue-deep));
    border-color: var(--blue-deep);
    color: #fff;
}

.bento a:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 18px 40px rgba(18, 24, 33, 0.12);
}

.bento a::after {
    content: "→";
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    transition: transform 0.2s ease;
}

.bento .bento-1 a::after {
    color: var(--orange);
}

.bento .bento-2 a::after {
    color: #fff;
}

.bento a:hover::after {
    transform: translateX(4px);
}

.bento strong {
    font-family: var(--display);
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    padding-right: 28px;
}

.bento-1 strong,
.bento-2 strong {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.bento-text {
    color: var(--muted);
}

.bento-1 .bento-text {
    color: var(--on-dark-muted);
}

.bento-2 .bento-text {
    color: #e3eef9;
}

.bento-icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bento-1 .bento-icon svg {
    stroke: var(--orange);
}

.bento-2 .bento-icon svg {
    stroke: #fff;
}

/* approach: a dark band with the photo */

.approach {
    background: var(--glass-2);
    color: var(--on-dark);
    padding-block: clamp(56px, 7vw, 96px);
}

.approach-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.approach p {
    color: var(--on-dark-muted);
}

.approach-photo,
.visit-photo,
.contact-photo {
    margin: 0;
}

.approach-photo img {
    border-radius: var(--radius);
    width: 100%;
}

/* large figures */

.figures {
    background: var(--glass);
    color: var(--on-dark);
    border-top: 1px solid var(--glass-line);
}

.figures-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.figures-row > div {
    padding: 34px 22px 30px;
    border-left: 1px solid var(--glass-line);
}

.figures-row > div:first-child {
    border-left: 0;
    padding-left: 0;
}

.figures strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--orange);
}

.figures strong span {
    margin-left: 6px;
    font-size: 0.34em;
    letter-spacing: 0;
    color: var(--on-dark);
}

.figures p {
    margin: 8px 0 0;
    color: var(--on-dark-muted);
}

/* testimonials */

.quotes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.quotes li {
    position: relative;
    padding: 30px 28px 24px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.quotes li:nth-child(1),
.quotes li:nth-child(4) {
    background: #e2edf8;
    border-color: #c6d9ec;
}

.quotes li::before {
    content: "“";
    position: absolute;
    top: 4px;
    right: 22px;
    font-family: var(--display);
    font-size: 5rem;
    line-height: 1;
    color: var(--orange);
}

.quotes blockquote {
    margin: 0;
}

.quotes blockquote p {
    font-size: 1.12rem;
    padding-right: 30px;
}

.quote-by {
    margin: 0;
    font-weight: 800;
    color: var(--blue-deep);
}

/* visit / shopfront */

.visit {
    padding-block: 0 clamp(56px, 7vw, 96px);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.visit-photo img,
.contact-photo img {
    width: 100%;
    border-radius: var(--radius);
}

.visit-photo figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.visit-card,
.contact-card,
.form-card,
.side-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.visit-list {
    display: grid;
    gap: 18px;
    margin: 0;
}

.visit-list > div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.visit-list dt {
    color: var(--orange-ink);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visit-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.big-phone {
    text-decoration: none;
    font-family: var(--display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 800;
    white-space: nowrap;
}

/* call band */

.call-band {
    background:
        radial-gradient(50% 120% at 100% 0%, rgba(77, 163, 236, 0.45), transparent 70%),
        var(--blue);
    color: #fff;
}

.call-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px 40px;
    padding-block: clamp(40px, 5vw, 64px);
}

.call-band h2 {
    margin-bottom: 0.25em;
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
}

.call-band p {
    margin: 0;
    max-width: 40rem;
    color: #e6f0fa;
}

.call-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.band-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--glass);
    color: var(--orange);
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.band-phone:hover {
    background: #000;
    color: #ffbc55;
}

.call-band .btn-ghost {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

/* ---------- inner pages ---------- */

.page-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(48px, 7vw, 92px) clamp(40px, 5vw, 70px);
    background:
        radial-gradient(60% 90% at 90% 10%, rgba(27, 104, 169, 0.5), transparent 70%),
        var(--glass);
    color: var(--on-dark);
}

.page-head.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg) center / cover no-repeat;
    opacity: 0.22;
    mask-image: linear-gradient(90deg, transparent 10%, #000 85%);
}

.page-head h1 {
    max-width: 18ch;
}

.page-head .lead {
    max-width: 44rem;
    margin: 0;
    color: var(--on-dark-muted);
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
}

.page-head a {
    color: var(--blue-bright);
}

.head-icon svg {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    fill: none;
    stroke: var(--orange);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--on-dark-muted);
}

.crumbs li + li::before {
    content: "/";
    margin: 0 10px;
    color: var(--glass-line);
}

.crumbs a {
    color: var(--on-dark);
}

.crumbs [aria-current] {
    color: var(--orange);
}

.prose-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.prose {
    max-width: 44rem;
}

.prose h2 {
    margin-top: 1.4em;
    font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
}

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

.side-card {
    position: sticky;
    top: 96px;
    background: var(--glass-2);
    border-color: var(--glass-2);
    color: var(--on-dark);
}

.side-card h2 {
    font-size: 1.4rem;
}

.side-addr {
    color: var(--on-dark-muted);
}

.side-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange);
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.side-phone:hover {
    color: #ffbc55;
}

.ticks {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.ticks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ticks svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--orange);
    fill: none;
    stroke: var(--glass);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ticks-inline {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-bottom: 1.2em;
}

.ticks-inline li {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.trail {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.trail li {
    position: relative;
    padding: 0 0 28px 64px;
    counter-increment: step;
}

.trail li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
}

.trail li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 50px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
}

.trail h2 {
    margin-top: 0 !important;
    font-size: 1.4rem !important;
}

.acc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.acc-grid li {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--sheet);
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
    font-weight: 700;
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.mini-cards a {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: var(--sheet);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.mini-cards a:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.mini-cards svg {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.all-link {
    margin: 24px 0 0;
}

/* services overview: a numbered list */

.service-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--ink);
}

.service-list a {
    display: grid;
    grid-template-columns: 3.5rem 3.5rem 1fr 2rem;
    align-items: center;
    gap: 18px;
    padding: 26px 8px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.15s ease, padding 0.2s ease;
}

.service-list a:hover {
    background: var(--sheet);
    padding-left: 18px;
}

.sl-num {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--orange-ink);
}

.sl-icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sl-text strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
    line-height: 1.15;
}

.sl-text span {
    color: var(--muted);
}

.sl-arrow {
    font-size: 1.5rem;
    color: var(--blue);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 64px;
    align-items: center;
}

/* about: why choose us */

.why {
    background: var(--glass);
    color: var(--on-dark);
    padding-block: clamp(56px, 7vw, 96px);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.why p {
    color: var(--on-dark-muted);
}

.why-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    background: var(--glass-2);
    border: 1px solid var(--glass-line);
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
}

.why-list span {
    color: var(--orange);
    font-size: 1rem;
}

/* contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.contact-photo {
    margin-top: 24px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #b9c6d4;
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(27, 104, 169, 0.25);
    outline-offset: 0;
}

.contact-form textarea::placeholder {
    color: #5d6878;
}

.contact-form .btn {
    justify-self: start;
}

.form-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #e2f3e6;
    color: #14421f;
}

.contact-sent strong {
    display: block;
}

/* documents: terms and privacy */

.page-head-plain {
    padding-block: clamp(44px, 6vw, 80px) clamp(36px, 4vw, 56px);
}

.doc-grid {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

.doc-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.doc-toc {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: var(--radius-sm);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.doc-toc h2 {
    font-size: 1.05rem;
    letter-spacing: 0;
}

.doc-toc ol {
    margin: 0;
    padding-left: 1.2em;
    display: grid;
    gap: 6px;
    font-size: 0.96rem;
}

.doc {
    max-width: 48rem;
    overflow-wrap: anywhere;
}

.doc h2 {
    margin-top: 1.6em;
    padding-top: 0.6em;
    border-top: 1px solid var(--line);
    font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
}

.doc h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.doc h3 {
    margin-top: 1.4em;
}

.doc ul,
.doc ol {
    padding-left: 1.3em;
}

.doc li {
    margin-bottom: 0.4em;
}

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

.foot {
    background: var(--glass);
    color: var(--on-dark-muted);
    font-size: 0.98rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 36px;
    padding-block: 64px 40px;
}

.foot h2 {
    margin-bottom: 12px;
    color: var(--on-dark);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.foot-h-gap {
    margin-top: 24px;
}

.foot a {
    color: var(--on-dark);
}

.foot a:hover {
    color: var(--orange);
}

.foot-brand img {
    width: 206px;
    margin-bottom: 18px;
}

.foot address {
    font-style: normal;
}

.foot p {
    margin-bottom: 0.5em;
}

.foot-phone {
    font-weight: 800;
    white-space: nowrap;
}

.foot-mail {
    overflow-wrap: anywhere;
}

.foot-hours {
    margin: 0;
}

.foot-hours div {
    display: flex;
    gap: 10px;
}

.foot-hours dt {
    min-width: 5.5rem;
}

.foot-hours dd {
    margin: 0;
    color: var(--on-dark);
}

.foot-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    padding-block: 22px 28px;
    border-top: 1px solid var(--glass-line);
    font-size: 0.92rem;
}

.foot-bottom p {
    margin: 0;
}

/* ---------- 404 ---------- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background:
        radial-gradient(60% 60% at 70% 30%, rgba(27, 104, 169, 0.5), transparent 70%),
        var(--glass);
    color: var(--on-dark);
    text-align: center;
}

.not-found > div {
    max-width: 36rem;
}

.not-found img {
    margin: 0 auto 28px;
}

.not-found p {
    color: var(--on-dark-muted);
}

.not-found a:not(.btn) {
    color: var(--orange);
}

/* ---------- reveal on scroll ---------- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .bento li,
        .quotes li,
        .figures-row > div,
        .service-list li,
        .why-list li {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 45%;
        }

        @keyframes reveal {
            from { opacity: 0; transform: translateY(26px); }
            to { opacity: 1; transform: none; }
        }
    }
}

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

/* ---------- responsive ---------- */

@media (max-width: 980px) {
    .hero-grid,
    .approach-grid,
    .visit-grid,
    .why-grid,
    .contact-grid,
    .prose-cols,
    .split,
    .doc-grid {
        grid-template-columns: 1fr;
    }

    .hero-phone {
        width: min(62%, 250px);
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento .bento-1,
    .bento .bento-2 {
        grid-column: span 2;
    }

    .bento li {
        grid-column: span 1;
    }

    .figures-row {
        grid-template-columns: 1fr 1fr;
    }

    .figures-row > div:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .figures-row > div:nth-child(n + 3) {
        border-top: 1px solid var(--glass-line);
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .side-card,
    .doc-toc {
        position: static;
    }
}

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

    .bento li,
    .bento .bento-1,
    .bento .bento-2 {
        grid-column: auto;
    }

    .figures-row > div {
        padding: 24px 14px 22px;
    }

    .service-list a {
        grid-template-columns: 2.6rem 1fr 1.4rem;
        gap: 12px;
    }

    .sl-icon {
        display: none;
    }

    .visit-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .foot-grid {
        grid-template-columns: 1fr;
        padding-block: 48px 28px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .trail li {
        padding-left: 58px;
    }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox {
    --lb-bg: rgba(8, 11, 16, 0.94);
    --lb-text: #eef3f9;
    --lb-accent: #faa628;
    --lb-accent-soft: rgba(250, 166, 40, 0.2);
}
