/* ==========================================================================
   CFI Model School - modern theme (rebuild)
   Design tokens, layout system, components and motion.
   Only external dependency is Google Fonts, which the site CSP allows.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
    --ink:        #0a1a30;
    --ink-2:      #12294a;
    --ink-soft:   #46587a;
    --body:       #4a5a72;
    --line:       #e6ecf5;

    --brand:      #f26522;
    --brand-dark: #d24d10;
    --brand-soft: #fff1e9;
    --gold:       #e9a82c;
    --gold-soft:  #fdf4e2;

    --cream:      #fff8f2;
    --paper:      #ffffff;
    --mist:       #f5f8fc;

    --grad-brand: linear-gradient(135deg, #f7861f 0%, #f26522 45%, #e2490f 100%);
    --grad-gold:  linear-gradient(135deg, #f6c453 0%, #e9a82c 50%, #d98b12 100%);

    --shadow-xs:  0 2px 8px rgba(10, 26, 48, .06);
    --shadow-sm:  0 8px 24px rgba(10, 26, 48, .08);
    --shadow-md:  0 18px 48px rgba(10, 26, 48, .12);
    --shadow-lg:  0 34px 80px rgba(10, 26, 48, .18);
    --shadow-brand: 0 18px 40px rgba(242, 101, 34, .32);

    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 40px;

    --head: "Outfit", "Segoe UI", sans-serif;
    --text: "Plus Jakarta Sans", "Segoe UI", sans-serif;

    --nav-h: 86px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: calc(var(--nav-h) + 18px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.75;
    color: var(--body);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--head);
    color: var(--ink);
    line-height: 1.14;
    letter-spacing: -.02em;
    margin: 0 0 .6em;
    font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15rem; }

a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 1.2rem; padding-left: 1.15rem; }
li { margin-bottom: .5rem; }
strong { color: var(--ink-2); font-weight: 700; }

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

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: #c9d5e6; border-radius: 20px; border: 3px solid var(--mist); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 3000;
    background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* Visible to search engines and screen readers, not on screen. */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ layout */
.shell { width: min(1220px, 100% - 44px); margin-inline: auto; }
.shell-narrow { width: min(940px, 100% - 44px); margin-inline: auto; }

.section { position: relative; padding: clamp(40px, 4.6vw, 74px) 0; }
.section--tight { padding: clamp(30px, 3.4vw, 52px) 0; }
.section--mist { background: var(--mist); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink strong { color: #fff; }

.grid { display: grid; gap: clamp(16px, 1.9vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.text-center { text-align: center; }
.mt-3 { margin-top: 1.2rem; }
.mt-5 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------- section heading */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--head);
    font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid rgba(242, 101, 34, .18);
    padding: 7px 16px 7px 13px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand);
    animation: ping 2.4s infinite;
}
.section--ink .eyebrow { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: var(--gold); }
.section--ink .eyebrow::before { background: var(--gold); animation-name: pingGold; }

@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(242, 101, 34, .55); }
    70%  { box-shadow: 0 0 0 12px rgba(242, 101, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 101, 34, 0); }
}
@keyframes pingGold {
    0%   { box-shadow: 0 0 0 0 rgba(233, 168, 44, .6); }
    70%  { box-shadow: 0 0 0 12px rgba(233, 168, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 168, 44, 0); }
}

.sec-head { max-width: 760px; margin-bottom: clamp(20px, 2.6vw, 36px); }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 0; }
.section--ink .sec-head p { color: rgba(255, 255, 255, .72); }

.gradient-text {
    /* A shadow would show THROUGH the transparent fill and muddy the letters. */
    text-shadow: none;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

.u-mark { position: relative; display: inline-block; }
.u-mark::after {
    content: ""; position: absolute; left: -2px; right: -2px; bottom: .05em; height: .3em;
    background: linear-gradient(90deg, rgba(233, 168, 44, .5), rgba(242, 101, 34, .32));
    border-radius: 6px; z-index: -1;
    transform: scaleX(0); transform-origin: left;
    transition: transform 1s var(--ease) .25s;
}
.is-in .u-mark::after { transform: scaleX(1); }

/* ----------------------------------------------------------------- buttons */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--head); font-size: .97rem; font-weight: 600;
    padding: 15px 30px;
    white-space: nowrap;
    border-radius: 100px;
    border: 0; cursor: pointer;
    overflow: hidden;
    text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s, background .3s;
    isolation: isolate;
}
.btn + .btn { margin-left: 12px; }

/* Row of two or more buttons: spacing comes from the gap, so wrapping on a
   phone leaves them neatly stacked instead of touching. */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-row .btn + .btn { margin: 0; }
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, #12294a, #0a1a30);
    transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 24px 50px rgba(10, 26, 48, .28); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(10, 26, 48, .15); }
.btn-ghost::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--grad-brand);
    transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn-ghost:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.btn-ghost:hover::before { transform: translateY(0); }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }

.btn-lg { padding: 18px 36px; font-size: 1.04rem; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--head); font-weight: 600; color: var(--brand);
}
.link-arrow::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 32px; }

/* --------------------------------------------------------------- preloader */
#preloader {
    position: fixed; inset: 0; z-index: 4000;
    display: grid; place-items: center;
    background: var(--ink);
    transition: opacity .6s ease, visibility .6s ease;
}
#preloader.is-done { opacity: 0; visibility: hidden; }
.pre-mark { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.pre-mark img { width: 76px; animation: preBeat 1.8s ease-in-out infinite; }
.pre-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .09);
    border-top-color: var(--brand);
    animation: spin 1.1s linear infinite;
}
.pre-ring.two { inset: 15px; border-top-color: transparent; border-bottom-color: var(--gold); animation-duration: 1.8s; animation-direction: reverse; }
.pre-text {
    position: absolute; bottom: -44px; left: 50%; transform: translateX(-50%);
    font-family: var(--head); font-size: .7rem; letter-spacing: .38em; text-transform: uppercase;
    color: rgba(255, 255, 255, .5); white-space: nowrap;
    animation: fadePulse 1.8s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes preBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes fadePulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* --------------------------------------------------------- scroll progress */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    transform: scaleX(0); transform-origin: left;
    background: var(--grad-brand);
    z-index: 1300;
}

/* ------------------------------------------------------------------ topbar */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
    padding: 9px 0;
}
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: var(--gold); }
.topbar-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar-list li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.topbar-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--head); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem;
    color: var(--gold);
}

/* ------------------------------------------------------------------ header */
.site-header {
    position: sticky; top: 0; z-index: 1200;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(10, 26, 48, .07);
    transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 34px rgba(10, 26, 48, .09); background: rgba(255, 255, 255, .95); }
.site-header .shell { width: min(1400px, 100% - 48px); }

.nav-bar {
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    min-width: 0;
    transition: height .35s var(--ease);
}
.site-header.is-stuck .nav-bar { height: 72px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
    width: 54px; height: 54px; flex: none;
    filter: drop-shadow(0 6px 14px rgba(242, 101, 34, .3));
    transition: transform .6s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--head); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em;
    color: var(--ink); white-space: nowrap;
}
.brand-sub { white-space: nowrap; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 600; }

/* main menu */
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; margin: 0; }
.nav-link {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--head); font-weight: 500; font-size: .92rem;
    color: var(--ink-2);
    padding: 10px 10px;
    white-space: nowrap;
    border-radius: 100px;
    transition: color .3s, background .3s;
}
.nav-link .caret {
    width: 0; height: 0; margin-top: 2px;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor; opacity: .55;
    transition: transform .3s var(--ease);
}
.nav-menu > li:hover .caret { transform: rotate(180deg); }
.nav-link::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px;
    background: var(--grad-brand); border-radius: 2px;
    transform: scaleX(0); transform-origin: right;
    transition: transform .35s var(--ease);
}
.nav-menu > li:hover .nav-link::after, .nav-link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-menu > li:hover .nav-link, .nav-link.is-current { color: var(--brand); }

.nav-drop {
    position: absolute; top: calc(100% + 14px); left: 50%;
    min-width: 248px;
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    padding: 10px;
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden;
    transform: translate(-50%, 12px) scale(.97);
    transform-origin: top center;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav-drop::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-menu > li:hover .nav-drop, .nav-menu > li:focus-within .nav-drop {
    opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
}
.nav-drop li { margin: 0; }
.nav-drop a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 12px;
    font-size: .93rem; color: var(--ink-2); font-weight: 500;
    transition: background .25s, color .25s, padding-left .25s var(--ease);
}
.nav-drop a::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
    opacity: 0; transform: scale(.4); transition: all .25s var(--ease);
}
.nav-drop a:hover { background: var(--brand-soft); color: var(--brand); padding-left: 18px; }
.nav-drop a:hover::before { opacity: 1; transform: scale(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-bar .btn { padding: 11px 19px; font-size: .87rem; }
.nav-bar .btn svg { width: 15px; height: 15px; }
.nav-bar nav { flex: none; }

/* hamburger */
.burger {
    display: none;
    width: 48px; height: 48px;
    border: 0; border-radius: 14px;
    background: var(--brand-soft);
    cursor: pointer;
    position: relative;
}
.burger span {
    position: absolute; left: 14px; width: 20px; height: 2px; border-radius: 2px;
    background: var(--brand);
    transition: transform .4s var(--ease), opacity .25s, width .3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; width: 14px; }
.burger span:nth-child(3) { top: 29px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 20px; }

/* mobile drawer */
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 88vw);
    background: #fff; z-index: 1500;
    padding: 26px 26px 40px;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .5s var(--ease);
    box-shadow: -20px 0 60px rgba(10, 26, 48, .18);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-close {
    width: 42px; height: 42px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--mist); color: var(--ink); font-size: 1.3rem; line-height: 1;
    transition: background .25s, transform .25s var(--ease);
}
.drawer-close:hover { background: var(--brand-soft); color: var(--brand); transform: rotate(90deg); }
.drawer-nav { list-style: none; margin: 0 0 26px; padding: 0; }
.drawer-nav > li {
    margin: 0; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateX(22px);
}
.drawer.is-open .drawer-nav > li { animation: drawerIn .5s var(--ease) forwards; }
.drawer.is-open .drawer-nav > li:nth-child(1) { animation-delay: .08s; }
.drawer.is-open .drawer-nav > li:nth-child(2) { animation-delay: .14s; }
.drawer.is-open .drawer-nav > li:nth-child(3) { animation-delay: .2s; }
.drawer.is-open .drawer-nav > li:nth-child(4) { animation-delay: .26s; }
.drawer.is-open .drawer-nav > li:nth-child(5) { animation-delay: .32s; }
.drawer.is-open .drawer-nav > li:nth-child(6) { animation-delay: .38s; }
.drawer.is-open .drawer-nav > li:nth-child(7) { animation-delay: .44s; }
@keyframes drawerIn { to { opacity: 1; transform: translateX(0); } }

.drawer-row { display: flex; align-items: center; justify-content: space-between; }
.drawer-nav a {
    display: block; padding: 15px 2px;
    font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--ink);
    flex: 1;
}
.drawer-nav a:hover, .drawer-nav a.is-current { color: var(--brand); }
.drawer-toggle {
    width: 34px; height: 34px; flex: none;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    color: var(--ink-soft); cursor: pointer; font-size: 1rem; line-height: 1;
    transition: transform .35s var(--ease), background .25s, color .25s;
}
.drawer-toggle.is-open { transform: rotate(45deg); background: var(--brand); color: #fff; border-color: var(--brand); }
.drawer-sub {
    list-style: none; margin: 0; padding: 0 0 0 4px;
    max-height: 0; overflow: hidden;
    transition: max-height .45s var(--ease), padding-bottom .45s var(--ease);
}
.drawer-sub.is-open { max-height: 320px; padding-bottom: 12px; }
.drawer-sub a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); padding: 9px 0 9px 16px; border-left: 2px solid var(--line); }
.drawer-sub a:hover { border-color: var(--brand); }

.drawer-contact { border-top: 1px solid var(--line); padding-top: 22px; font-size: .93rem; }
.drawer-contact p { margin-bottom: .6rem; }

.overlay {
    position: fixed; inset: 0; z-index: 1400;
    background: rgba(10, 26, 48, .5);
    backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .4s, visibility .4s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* -------------------------------------------------------------------- hero */
.hero {
    position: relative;
    height: 79vh;
    min-height: 500px;
    max-height: 820px;
    display: flex; align-items: flex-end;
    overflow: hidden;
    background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transform: scale(1.16);
    transition: opacity 1.1s ease;
    will-change: transform, opacity;
}
.hero-slide.is-active { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.16) translate3d(-1.2%, -1.2%, 0); }
}

@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 40px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -34px); } }

/* slider controls */
.hero-dots { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 4; display: flex; gap: 10px; justify-content: center; }
.hero-dot {
    width: 34px; height: 5px; border: 0; padding: 0; border-radius: 4px; cursor: pointer;
    background: rgba(6, 16, 32, .45); overflow: hidden; position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: width .4s var(--ease), background .3s;
}
.hero-dot.is-active { width: 62px; background: rgba(6, 16, 32, .55); }
.hero-dot.is-active::after {
    content: ""; position: absolute; inset: 0;
    background: var(--grad-brand); transform-origin: left;
    animation: dotFill 6s linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scroll-cue {
    position: absolute; bottom: 30px; right: 44px; z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(255, 255, 255, .85); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(4, 12, 26, .8);
    font-family: var(--head);
    writing-mode: vertical-rl;
}
.scroll-cue::after {
    content: ""; width: 1px; height: 54px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .6), transparent);
    animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ------------------------------------------------------------- page banner */
.page-banner {
    position: relative;
    /* Tall enough that a cover-crop of a 3:2 photograph still shows the people
       in it, not just a letterbox slice. */
    min-height: 560px;
    /* Text sits at the bottom, like the home slider, so the faces in the
       photograph above it are never covered by the heading. */
    display: flex; align-items: flex-end;
    padding: clamp(74px, 7vw, 104px) 0 clamp(26px, 3vw, 38px);
    background: var(--ink);
    overflow: hidden;
}
.page-banner-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 1;
    transform: scale(1.04);
    animation: bannerZoom 16s ease-in-out infinite alternate;
}
@keyframes bannerZoom { from { transform: scale(1.02); } to { transform: scale(1.07); } }
.page-banner::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(6, 16, 32, .88) 0%,
        rgba(6, 16, 32, .68) 18%,
        rgba(6, 16, 32, .34) 34%,
        rgba(6, 16, 32, 0) 56%);
}
.page-banner .shell { position: relative; z-index: 2; width: min(1220px, 100% - 44px); }
.page-banner h1 { color: #fff; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(4, 12, 26, .55), 0 4px 30px rgba(4, 12, 26, .5); }
.page-banner p { color: rgba(255, 255, 255, .95); max-width: 640px; margin-bottom: 0; text-shadow: 0 1px 8px rgba(4, 12, 26, .6); }

.crumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    list-style: none; margin: 13px 0 0; padding: 0;
    font-size: .86rem; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 7px rgba(4, 12, 26, .6);
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: var(--gold); }

/* ----------------------------------------------------------------- marquee */
.marquee {
    background: var(--grad-brand);
    padding: 11px 0;
    overflow: hidden;
    position: relative;
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 0 28px;
    font-family: var(--head); font-weight: 600; font-size: .96rem; letter-spacing: .04em;
    color: #fff; white-space: nowrap;
}
.marquee-item span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------- cards */
.card-x {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
    height: 100%;
}
.card-x::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: var(--grad-brand);
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease);
}
.card-x:hover { transform: translateY(-9px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-x:hover::before { transform: scaleX(1); }
.card-x h3 { margin-bottom: 10px; }
.card-x p:last-child { margin-bottom: 0; }

.card-icon {
    width: 62px; height: 62px; border-radius: 20px;
    display: grid; place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 22px;
    transition: transform .5s var(--ease), background .4s, color .4s;
}
.card-icon svg { width: 28px; height: 28px; }
.card-x:hover .card-icon { background: var(--grad-brand); color: #fff; transform: rotate(-8deg) scale(1.06); }

.card-num {
    position: absolute; top: 16px; right: 22px;
    font-family: var(--head); font-size: 3.6rem; font-weight: 800; line-height: 1;
    color: rgba(10, 26, 48, .045);
    transition: color .4s;
}
.card-x:hover .card-num { color: rgba(242, 101, 34, .1); }

/* ---------------------------------------------------------------- counters */
.stat-band { position: relative; z-index: 2; }
.stat-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 32px 26px;
    text-align: center;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.stat-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.stat-num {
    font-family: var(--head); font-weight: 800; line-height: 1;
    font-size: clamp(2.2rem, 4vw, 3rem);
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    display: block; margin-bottom: 8px;
}
.stat-lab { font-size: .93rem; color: var(--ink-soft); font-weight: 500; }

/* stat band sitting over a dark section */
.section--ink .stat-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.section--ink .stat-lab { color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------ split / about */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 46px); align-items: center; }
.split--flip .split-media { order: 2; }

.media-stack { position: relative; padding: 0 0 46px 46px; }
.media-main {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.media-main img { width: 100%; transition: transform 1.1s var(--ease); }
.media-stack:hover .media-main img { transform: scale(1.05); }
.media-sub {
    position: absolute; left: 0; bottom: 0;
    width: 52%;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 7px solid #fff;
    box-shadow: var(--shadow-md);
    animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.media-chip {
    position: absolute; right: -14px; top: 28px;
    background: #fff;
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 13px;
    animation: bob 7s ease-in-out infinite .6s;
}
.media-chip .chip-icon {
    width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
    background: var(--grad-brand); color: #fff;
}
.media-chip .chip-icon svg { width: 20px; height: 20px; }
.media-chip b { font-family: var(--head); color: var(--ink); display: block; font-size: 1.05rem; line-height: 1.2; }
.media-chip span { font-size: .78rem; color: var(--ink-soft); }

.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; transition: transform 1.1s var(--ease); }
.media-frame:hover img { transform: scale(1.06); }

/* bullet list with animated ticks */
.tick-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.tick-list li {
    position: relative;
    padding: 9px 0 9px 38px;
    margin: 0;
    color: var(--body);
}
.tick-list li::before {
    content: ""; position: absolute; left: 0; top: 13px;
    width: 22px; height: 22px; border-radius: 8px;
    background: var(--brand-soft);
    transition: background .3s, transform .3s var(--ease);
}
.tick-list li::after {
    content: ""; position: absolute; left: 7px; top: 19px;
    width: 8px; height: 4px;
    border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
    transition: border-color .3s;
}
.tick-list li:hover::before { background: var(--grad-brand); transform: scale(1.1); }
.tick-list li:hover::after { border-color: #fff; }
.section--ink .tick-list li { color: rgba(255, 255, 255, .78); }
.section--ink .tick-list li::before { background: rgba(255, 255, 255, .1); }
.section--ink .tick-list li::after { border-color: var(--gold); }

/* ------------------------------------------------------------- explore tiles */
.tile {
    position: relative;
    display: block;
    min-height: 290px;
    border-radius: var(--r-lg);
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    box-shadow: var(--shadow-sm);
}
.tile-bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
    transition: transform 1.2s var(--ease);
}
.tile::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(8, 20, 38, .92) 8%, rgba(8, 20, 38, .45) 52%, rgba(8, 20, 38, .18) 100%);
    transition: background .5s;
}
.tile:hover .tile-bg { transform: scale(1.1); }
.tile:hover::after { background: linear-gradient(to top, rgba(210, 77, 16, .88) 5%, rgba(8, 20, 38, .6) 60%, rgba(8, 20, 38, .2) 100%); }
.tile-body { position: relative; padding: 30px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-height: 290px; }
.tile h3 { color: #fff; margin-bottom: 6px; font-size: 1.32rem; }
.tile p { color: rgba(255, 255, 255, .8); font-size: .92rem; margin: 0; }
.tile .tile-go {
    position: absolute; top: 26px; right: 26px;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    transform: scale(.7) rotate(-35deg); opacity: 0;
    transition: all .45s var(--ease);
}
.tile .tile-go svg { width: 18px; height: 18px; }
.tile:hover .tile-go { transform: scale(1) rotate(0); opacity: 1; background: #fff; color: var(--brand); }

/* ---------------------------------------------------------------- timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
    content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(to bottom, var(--brand), rgba(242, 101, 34, .12));
}
.tl-item { position: relative; padding: 0 0 22px; }
.tl-item::before {
    content: ""; position: absolute; left: -32px; top: 7px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 3px solid var(--brand);
    transition: transform .35s var(--ease), background .35s;
}
.tl-item:hover::before { transform: scale(1.25); background: var(--brand); }
.tl-item h4 { margin-bottom: 4px; color: var(--ink); }
.tl-item p { margin-bottom: 0; font-size: .96rem; }

/* ----------------------------------------------------------------- gallery */
.gallery-grid {
    columns: 3;
    column-gap: 20px;
}
.gallery-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: zoom-in;
    display: block;
    box-shadow: var(--shadow-xs);
    background: var(--mist);
}
.gallery-item img { width: 100%; transition: transform .9s var(--ease), filter .5s; }
.gallery-item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(242, 101, 34, .75), rgba(8, 20, 38, .3) 60%, transparent);
    opacity: 0; transition: opacity .45s;
}
.gallery-item .zoom-badge {
    position: absolute; left: 50%; top: 50%; z-index: 2;
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .95); color: var(--brand);
    transform: translate(-50%, -50%) scale(.4); opacity: 0;
    transition: all .45s var(--ease);
}
.gallery-item .zoom-badge svg { width: 20px; height: 20px; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .zoom-badge { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.gallery-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.gallery-pager a, .gallery-pager span {
    min-width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 14px;
    border-radius: 12px;
    font-family: var(--head); font-weight: 600; font-size: .95rem;
    border: 1px solid var(--line); color: var(--ink-2); background: #fff;
    transition: all .3s var(--ease);
}
.gallery-pager a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }
.gallery-pager .current { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }

/* lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2200;
    background: rgba(6, 14, 28, .94);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
    padding: 28px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: min(1100px, 92vw); max-height: 84vh;
    border-radius: var(--r-md);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
    transform: scale(.92); opacity: 0;
    transition: transform .45s var(--ease), opacity .45s;
}
.lightbox.is-open img { transform: scale(1); opacity: 1; }
.lb-btn {
    position: absolute;
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .1); color: #fff;
    display: grid; place-items: center; cursor: pointer;
    transition: background .3s, transform .3s var(--ease);
}
.lb-btn:hover { background: var(--brand); transform: scale(1.08); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-count {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .7); font-family: var(--head); font-size: .9rem; letter-spacing: .1em;
}

/* --------------------------------------------------------------- CTA band */
/* Quiet, neutral band. The solid orange block was shouting over the rest of
   the page, so the colour now lives only in the button and the small accents. */
.cta-band {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(28px, 3.6vw, 48px);
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--body);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--ink-soft); max-width: 620px; }
.cta-band a:not(.btn) { color: var(--brand); }
.cta-band::before,
.cta-band::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(242, 101, 34, .06);
}
.cta-band::before { width: 320px; height: 320px; top: -130px; right: -60px; animation: float1 15s ease-in-out infinite; }
.cta-band::after { width: 220px; height: 220px; bottom: -110px; right: 180px; background: rgba(233, 168, 44, .07); animation: float2 17s ease-in-out infinite; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- contact */
.info-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px; height: 100%;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.info-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.info-card .card-icon { margin-bottom: 18px; }
.info-card h4 { margin-bottom: 8px; }
.info-card p { margin-bottom: .35rem; font-size: .96rem; }
.info-card a { font-weight: 600; }

.form-card {
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: clamp(20px, 2.6vw, 32px);
}
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-family: var(--head); font-weight: 600; font-size: .88rem;
    color: var(--ink-2); margin-bottom: 8px;
}
.field .req { color: var(--brand); }
.input, .textarea {
    width: 100%;
    font-family: var(--text); font-size: 1rem; color: var(--ink);
    background: var(--mist);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 14px 18px;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.input:focus, .textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(242, 101, 34, .12);
}
.textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.captcha-box .captcha-img { border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.captcha-reload {
    width: 46px; height: 46px; flex: none;
    border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
    color: var(--brand); font-size: 1.2rem; cursor: pointer;
    transition: transform .5s var(--ease), background .3s, color .3s;
}
.captcha-reload:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: rotate(180deg); }
.captcha-box .captcha-input { flex: 1 1 180px; width: auto; }
.captcha-box .form-control {
    font-family: var(--text); font-size: 1rem; color: var(--ink);
    background: var(--mist); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 18px;
}
.captcha-box .form-control:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(242, 101, 34, .12); }

.notice { border-radius: 16px; padding: 16px 20px; margin-bottom: 24px; font-size: .96rem; border: 1px solid transparent; }
.notice ul { margin: 0; padding-left: 18px; }
.notice-ok { background: #edfbf3; border-color: #bfe9d1; color: #17603a; }
.notice-err { background: #fff1f0; border-color: #f7c9c4; color: #a12b1c; }

.map-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 7px solid #fff; }

/* small icon used inline inside a sentence */
.ic-inline { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; color: var(--brand); }

/* ------------------------------------------------------------------ tables */
.table-x { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow-xs); background: #fff; }
.table-x th, .table-x td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.table-x tr:last-child td { border-bottom: 0; }
.table-x td:first-child { font-family: var(--head); font-weight: 600; color: var(--ink-2); width: 42%; }
.table-x tbody tr { transition: background .3s; }
.table-x tbody tr:hover { background: var(--brand-soft); }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, .68); padding: clamp(36px, 4vw, 58px) 0 0; overflow: hidden; }
.site-footer::before {
    content: ""; position: absolute; top: -140px; left: -80px;
    width: 340px; height: 340px; border-radius: 50%;
    background: var(--grad-brand); filter: blur(90px); opacity: .25;
}
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 1.02rem; letter-spacing: .02em; margin-bottom: 14px; position: relative; padding-bottom: 9px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-brand); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand img { width: 60px; }
.footer-brand b { font-family: var(--head); font-size: 1.24rem; color: #fff; display: block; line-height: 1.2; }
.footer-brand span { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.site-footer p { font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, .68); font-size: .95rem; display: inline-flex; align-items: center; gap: 9px; transition: color .3s, gap .3s var(--ease); }
.footer-links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); transition: transform .3s var(--ease); }
.footer-links a:hover { color: #fff; gap: 14px; }
.footer-links a:hover::before { transform: scale(1.5); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 13px; margin-bottom: 11px; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 4px; }
.footer-contact a { color: rgba(255, 255, 255, .78); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
    position: relative; z-index: 2;
    margin-top: clamp(28px, 3.4vw, 44px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .88rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: var(--brand); }

.to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 1100;
    width: 50px; height: 50px; border: 0; border-radius: 50%;
    background: var(--grad-brand); color: #fff; cursor: pointer;
    display: grid; place-items: center;
    box-shadow: var(--shadow-brand);
    opacity: 0; visibility: hidden; transform: translateY(18px);
    transition: all .4s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px) scale(1.06); }
.to-top svg { width: 19px; height: 19px; }

/* Floating call button. Desktop already shows the number in the top bar and
   an enquiry button in the header, and at 80vh the hero CTA sits right where
   this would float - so it is a phone/tablet affordance only. */
.call-fab {
    display: none;
    position: fixed; left: 26px; bottom: 26px; z-index: 1100;
    align-items: center; gap: 10px;
    padding: 13px 20px; border-radius: 100px;
    background: #fff; color: var(--ink);
    font-family: var(--head); font-weight: 600; font-size: .92rem;
    box-shadow: var(--shadow-md);
    transition: transform .35s var(--ease), color .3s;
}
.call-fab svg { width: 18px; height: 18px; color: var(--brand); animation: ringing 2.4s ease-in-out infinite; }
.call-fab:hover { transform: translateY(-4px); color: var(--brand); }
@keyframes ringing { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }

/* --------------------------------------------------------- scroll reveals */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-46px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-left.is-in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(46px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-right.is-in { opacity: 1; transform: none; }
.reveal-zoom { opacity: 0; transform: scale(.92); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-zoom.is-in { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: .09s; }
[data-delay="2"] { transition-delay: .18s; }
[data-delay="3"] { transition-delay: .27s; }
[data-delay="4"] { transition-delay: .36s; }
[data-delay="5"] { transition-delay: .45s; }
[data-delay="6"] { transition-delay: .54s; }

/* ------------------------------------------------------------- responsive */
/* Between these widths the full menu still fits, but the menu plus the CTA
   button does not - so the button steps aside and Contact Us carries the call
   to action instead. */
@media (max-width: 1240px) {
    .nav-link { font-size: .88rem; padding: 9px 8px; }
    .brand-sub { display: none; }
}

@media (max-width: 1080px) {
    .nav-menu { display: none; }
    .burger { display: block; }
}

@media (max-width: 900px) {
    .nav-bar .btn { padding: 10px 15px; font-size: .84rem; }
}

/* Below this the drawer carries the enquiry button instead. */
@media (max-width: 620px) {
    .nav-actions .btn { display: none; }
}

@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: 1.3fr 1fr; gap: 34px; }
    .gallery-grid { columns: 2; }
}

@media (max-width: 1040px) {
    :root { --nav-h: 74px; }
    .call-fab { display: inline-flex; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .split--flip .split-media { order: 0; }
    .topbar-list li.hide-md { display: none; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .shell, .shell-narrow { width: min(100% - 32px, 1220px); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .gallery-grid { columns: 1; }
    /* The slider holds nothing but the photograph now, so it needs a height of
       its own - "auto" collapsed it to zero and the slider vanished on phones. */
    .hero { height: 56vh; min-height: 320px; max-height: 520px; }
    .scroll-cue { display: none; }
    .media-stack { padding: 0 0 46px 34px; }
    .media-chip { right: 0; top: 14px; padding: 12px 14px; }
    .btn + .btn { margin-left: 0; margin-top: 12px; }
    .btn-row .btn + .btn { margin-top: 0; }
    .call-fab { left: 16px; bottom: 16px; padding: 12px 16px; }
    .to-top { right: 16px; bottom: 16px; }
    .topbar { font-size: .78rem; }
    .topbar-list { gap: 14px; }
    .topbar .hide-sm { display: none; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
    .brand-name { font-size: 1.02rem; }
    .brand-mark { width: 46px; height: 46px; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
    .site-header, .topbar, .site-footer, .to-top, .call-fab, .hero-media, .marquee, #preloader { display: none !important; }
    body { color: #000; }
}
