/* =============================================================================
   ARLEN INDUSTRIES — Core design system
   Tokens · reset · typography · layout · components (header, footer, buttons)
   Dark, cinematic, gold-accented luxury aesthetic.
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------- */
:root {
    /* Surfaces */
    --bg:          #0a0a0b;
    --bg-elev:     #0f0f11;
    --surface:     #161619;
    --surface-2:   #1e1e23;

    /* Ink */
    --text:        #f3f0e9;
    --text-dim:    rgba(243, 240, 233, 0.72);
    --text-mute:   rgba(243, 240, 233, 0.56);
    --line:        rgba(243, 240, 233, 0.10);
    --line-soft:   rgba(243, 240, 233, 0.06);

    /* Accent (gold) */
    --accent:      #c8a24a;
    --accent-soft: #e6c877;
    --accent-deep: #9c7a2e;
    --accent-glow: rgba(200, 162, 74, 0.35);

    /* Typography */
    --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Fluid type scale */
    --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
    --fs-body:    clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
    --fs-lead:    clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem);
    --fs-h4:      clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
    --fs-h3:      clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem);
    --fs-h2:      clamp(2.1rem, 1.5rem + 2.9vw, 4rem);
    --fs-h1:      clamp(2.8rem, 1.7rem + 5vw, 6.5rem);
    --fs-mega:    clamp(4rem, 1rem + 14vw, 16rem);

    /* Space & layout */
    --maxw:       1480px;
    --maxw-text:  760px;
    --gutter:     clamp(20px, 5vw, 90px);
    --section-y:  clamp(72px, 9vw, 180px);
    --radius:     14px;
    --radius-lg:  22px;

    /* Motion */
    --ease:       cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
    --dur:        0.6s;

    --header-h:   84px;
    --shadow:     0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html.js { scroll-behavior: auto; } /* Lenis owns scrolling when JS is on */

body {
    min-height: 100svh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
    transition: opacity 0.6s ease;
}
body.is-ready { opacity: 1; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* Fixed, non-interactive brand mark safety */
.brand, .footer__logo { user-select: none; -webkit-user-select: none; }

/* ---------- Typography ---------------------------------------------------- */
h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.display { font-size: var(--fs-h1); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p  { text-wrap: pretty; }

em, .accent-italic {
    font-style: italic;
    color: var(--accent-soft);
    font-family: var(--font-display);
    font-weight: 300;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-family: var(--font-body);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.lead { font-size: var(--fs-lead); color: var(--text-dim); line-height: 1.5; }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }

/* ---------- Layout helpers ------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 100px); }
.measure { max-width: var(--maxw-text); }
.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: fixed; top: -100px; left: 16px; z-index: 10000;
    background: var(--accent); color: #111; padding: 10px 18px; border-radius: 8px;
    font-weight: 600; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Preloader ----------------------------------------------------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    display: grid; place-items: center;
    background: var(--bg);
    color: var(--text);
}
.preloader__inner { display: grid; justify-items: center; gap: 26px; width: min(320px, 70vw); }
.preloader__mark img { width: 74px; height: auto; animation: markpulse 1.8s var(--ease-inout) infinite; }
@keyframes markpulse { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1); } }
.preloader__word { display: flex; gap: 0.35em; font-family: var(--font-display); font-weight: 700;
    letter-spacing: 0.4em; font-size: 1.05rem; }
.preloader__word span { opacity: 0.2; animation: flicker 1.4s var(--ease) infinite; }
.preloader__word span:nth-child(2){ animation-delay: 0.1s; }
.preloader__word span:nth-child(3){ animation-delay: 0.2s; }
.preloader__word span:nth-child(4){ animation-delay: 0.3s; }
.preloader__word span:nth-child(5){ animation-delay: 0.4s; }
@keyframes flicker { 40%, 60% { opacity: 1; } }
.preloader__bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.preloader__fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-soft)); }
.preloader__count { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-mute); font-size: 0.85rem; letter-spacing: 0.1em; }
.preloader__count i { font-style: normal; }
.preloader.is-hidden { opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s 0.7s; }

/* ---------- Custom cursor ------------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: fixed; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.cursor__ring { position: fixed; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.6); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s; }
.cursor.is-hover .cursor__ring { width: 66px; height: 66px; background: rgba(255,255,255,0.08); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Scroll progress ---------------------------------------------- */
.scroll-progress { position: fixed; left: 0; bottom: 0; width: 100%; height: 2px; z-index: 800; background: transparent; }
.scroll-progress__bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-soft)); box-shadow: 0 0 12px var(--accent-glow); }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
    --btn-bg: transparent; --btn-fg: var(--text);
    position: relative; display: inline-flex; align-items: center; gap: 0.7em;
    padding: 1em 1.7em; border-radius: 100px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
    letter-spacing: 0.01em; color: var(--btn-fg);
    border: 1px solid var(--line);
    overflow: hidden; isolation: isolate;
    transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease);
    will-change: transform;
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--accent); transform: translateY(101%);
    transition: transform 0.5s var(--ease-out); border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn__icon { transition: transform 0.4s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--solid { --btn-bg: var(--accent); background: var(--accent); color: #14110a; border-color: var(--accent); }
.btn--solid::before { background: #14110a; }
.btn--solid:hover { color: var(--accent-soft); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { color: #14110a; }
.btn--sm { padding: 0.72em 1.25em; font-size: 0.85rem; }
.btn--lg { padding: 1.15em 2.2em; font-size: 1rem; }

.link-underline { position: relative; display: inline-flex; align-items: center; gap: 0.5em; color: var(--text); font-weight: 500; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
.link-underline .arrow { transition: transform 0.4s var(--ease); }
.link-underline:hover .arrow { transform: translateX(5px); }

/* ---------- Header / navigation ------------------------------------------ */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: height 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,10,11,0.85), rgba(10,10,11,0));
    opacity: 1; transition: opacity 0.4s var(--ease);
}
.header.is-scrolled {
    height: 68px;
    background: rgba(10, 10, 11, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line-soft);
}
.header.is-hidden { transform: translateY(-100%); }
.header { transition: transform 0.5s var(--ease), height 0.4s var(--ease), background 0.4s var(--ease); }
.header__inner {
    width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { pointer-events: none; display: flex; align-items: center; }
.brand__logo { height: 46px; width: auto; display: block; -webkit-user-drag: none; user-select: none; transition: height 0.4s var(--ease); }
.header.is-scrolled .brand__logo { height: 36px; }
@media (max-width: 520px) { .brand__logo { height: 38px; } }

.nav { display: flex; }
.nav__list { display: flex; align-items: center; gap: clamp(6px, 1.6vw, 26px); }
.nav__item { position: relative; }
.nav__link {
    position: relative; display: inline-block; padding: 10px 6px;
    font-size: 0.92rem; font-weight: 500; color: var(--text-dim);
    transition: color 0.3s var(--ease);
    overflow: hidden;
}
.nav__link span { position: relative; display: block; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link::after {
    content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Mega menu */
.mega {
    position: absolute; top: calc(100% + 18px); left: 50%; transform: translate(-50%, 10px);
    width: min(760px, 88vw);
    background: rgba(16,16,19,0.92); backdrop-filter: blur(24px);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 30px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s 0.35s;
}
.nav__item.has-mega:hover .mega,
.nav__item.has-mega:focus-within .mega {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.mega__inner { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 26px; }
.mega__eyebrow { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.mega__title { font-size: 1.5rem; line-height: 1.05; margin-bottom: 20px; }
.mega__all { display: inline-flex; gap: 0.5em; color: var(--text-dim); font-weight: 500; }
.mega__all:hover { color: var(--accent); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega__card {
    display: grid; gap: 3px; padding: 14px 16px; border-radius: 12px;
    border: 1px solid transparent; position: relative;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.mega__card:hover { background: var(--surface-2); border-color: var(--line); transform: translateY(-2px); }
.mega__card-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.mega__card-tag { font-size: 0.8rem; color: var(--text-mute); }
.mega__card-arrow { position: absolute; top: 14px; right: 14px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: 0.3s var(--ease); }
.mega__card:hover .mega__card-arrow { opacity: 1; transform: translateX(0); }

.header__actions { display: flex; align-items: center; gap: 16px; }

/* Burger + drawer */
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--text); transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { bottom: 18px; }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: opacity 0.5s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 88vw);
    background: var(--bg-elev); border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + 20px) 34px 40px;
    transform: translateX(100%); transition: transform 0.6s var(--ease-out);
    overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__nav ul { display: grid; gap: 4px; }
.drawer__nav > ul > li a { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; padding: 10px 0; display: block; color: var(--text); }
.drawer__nav > ul > li a:hover { color: var(--accent); padding-left: 8px; transition: 0.3s var(--ease); }
.drawer__cats { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer__label { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px; }
.drawer__cats a { color: var(--text-dim); }
.drawer__cats a:hover { color: var(--accent); }
.drawer__cta { margin-top: 28px; width: 100%; justify-content: center; }

/* No-JS / JS-disabled safety: never hide content behind an animation hook. */
.no-js [data-reveal],
.no-js [data-reveal-stagger] > *,
.no-js [data-reveal-words] .word,
.no-js [data-hero-el],
.no-js .reveal-line > span { opacity: 1 !important; transform: none !important; }

/* ---------- Reveal utilities (JS toggles .is-in) ------------------------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.is-in .reveal-line > span, .reveal-line.is-in > span { transform: none; }

/* ---------- CTA band + Footer -------------------------------------------- */
.cta-band { border-top: 1px solid var(--line-soft); padding-block: clamp(60px, 8vw, 130px); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: 50%; top: -40%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--accent-glow), transparent 62%); transform: translateX(-50%); filter: blur(30px); opacity: 0.5; pointer-events: none; }
.cta-band__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band__title { font-size: var(--fs-h2); margin-top: 14px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 100px); position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 40px 30px; }
.footer__logo { height: 58px; width: auto; margin-bottom: 24px; -webkit-user-drag: none; }
.footer__tag { color: var(--text-dim); max-width: 34ch; font-size: 0.95rem; }
.footer__contact { display: grid; gap: 4px; margin-top: 22px; }
.footer__contact a { color: var(--text); font-weight: 500; width: fit-content; }
.footer__contact a:hover { color: var(--accent); }
.footer__heading { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; font-weight: 600; }
.footer__col a { display: block; color: var(--text-dim); padding: 6px 0; transition: color 0.3s var(--ease), transform 0.3s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--accent); transform: translateX(4px); }
.footer__newsletter p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }
.newsletter__row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 100px; padding: 6px 6px 6px 18px; transition: border-color 0.3s var(--ease); }
.newsletter__row:focus-within { border-color: var(--accent); }
.newsletter__row input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 0.92rem; }
.newsletter__row button { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #14110a; font-size: 1.1rem; display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.newsletter__row button:hover { transform: scale(1.08); }
.newsletter__note { font-size: 0.82rem; margin-top: 10px; min-height: 1.2em; color: var(--accent-soft); }
.footer__social { display: flex; gap: 18px; margin-top: 22px; }
.footer__social a { color: var(--text-mute); font-size: 0.85rem; }
.footer__social a:hover { color: var(--text); }

.footer__wordmark { margin-top: clamp(50px, 7vw, 110px); overflow: hidden; border-top: 1px solid var(--line-soft); }
.footer__wordmark span { display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 8vw, 8rem); letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px var(--line); padding-block: 0.3em; will-change: transform; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--line-soft); color: var(--text-mute); font-size: 0.85rem; }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Shared section furniture ------------------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 70px); }
.section-head__title { font-size: var(--fs-h2); max-width: 16ch; }
.section-head__text { max-width: 44ch; color: var(--text-dim); }
.divider { height: 1px; background: var(--line-soft); border: 0; }

/* ---------- Marquee ------------------------------------------------------- */
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee__track { display: flex; flex-shrink: 0; gap: 0; will-change: transform; }

/* ---------- Facility / manufacturing tiles ------------------------------- */
.facility__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ftile { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); transition: border-color 0.5s var(--ease), transform 0.5s var(--ease); }
.ftile:hover { border-color: var(--line); transform: translateY(-4px); }
.ftile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ftile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.ftile:hover .ftile__media img { transform: scale(1.05); }
.ftile__panel { position: absolute; inset: 0; display: grid; place-items: center;
    background: radial-gradient(120% 100% at 70% 10%, rgba(200,162,74,0.16), transparent 55%), linear-gradient(160deg, #141416, #0b0b0d); overflow: hidden; }
.ftile__grid { position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%); mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%); }
.ftile__num { position: absolute; right: 16px; bottom: -6px; font-family: var(--font-display); font-weight: 800; font-size: 5.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.08); }
.ftile__icon { position: relative; width: 78px; height: 78px; border-radius: 20px; display: grid; place-items: center; background: rgba(200,162,74,0.1); border: 1px solid rgba(200,162,74,0.28); color: var(--accent); transition: transform 0.5s var(--ease); }
.ftile:hover .ftile__icon { transform: scale(1.07); }
.ftile__svg { width: 34px; height: 34px; }
.ftile__tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 100px; background: rgba(10,10,11,0.6); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 0.74rem; letter-spacing: 0.04em; font-weight: 600; color: var(--text-dim); }
.ftile__tagicon { width: 15px; height: 15px; color: var(--accent); }
.ftile__cap { padding: 18px 20px; display: grid; gap: 3px; }
.ftile__label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.ftile__sub { color: var(--text-mute); font-size: 0.86rem; }
.ftile--wide { grid-column: 1 / -1; }
.ftile--wide .ftile__media { aspect-ratio: 24 / 7; }
@media (max-width: 900px) { .facility__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facility__grid { grid-template-columns: 1fr; } .ftile__media { aspect-ratio: 16 / 10; } }

/* =============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .footer__newsletter { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
    :root { --header-h: 70px; }
    .nav { display: none; }
    .burger { display: block; }
    .header__actions .btn { display: none; }
}
@media (max-width: 720px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
    .btn { padding: 0.9em 1.4em; }
}

/* Ultra-wide */
@media (min-width: 1900px) { :root { --maxw: 1640px; } }

/* ---------- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    [data-reveal], [data-reveal-stagger] > *, .reveal-line > span { opacity: 1 !important; transform: none !important; }
    .cursor { display: none !important; }
}
