/* ==========================================================================
   Fawnoos — shared design system
   "A lantern in the dark." Dark cinematic theme built around the brand
   ember (#e8890c). Loaded by every redesigned page; page-specific rules
   live alongside it (e.g. css/misagh.css).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Ink */
    --ink-900: #05060a;
    --ink-850: #080a10;
    --ink-800: #0b0e15;
    --ink-700: #11151e;
    --ink-600: #171c27;

    /* Ember — brand */
    --ember: #e8890c;
    --ember-400: #ffa62b;
    --ember-300: #ffc46b;
    --ember-200: #f7d9a0;
    --flame: #ff5f2e;

    /* Light */
    --paper: #f7f3ec;
    --text: #ece8e1;
    --muted: rgba(236, 232, 225, .64);
    --faint: rgba(236, 232, 225, .42);

    /* Lines & surfaces */
    --line: rgba(255, 255, 255, .09);
    --line-soft: rgba(255, 255, 255, .055);
    --glass: linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .014));
    --glass-hover: linear-gradient(180deg, rgba(255, 255, 255, .072), rgba(255, 255, 255, .022));

    /* Type */
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Rhythm */
    --container: 1200px;
    --gutter: clamp(20px, 5vw, 48px);
    --section-y: clamp(84px, 11vw, 160px);
    --radius: 20px;
    --radius-lg: 28px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur: .45s;

    --header-h: 84px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--ink-900);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16.5px;
    line-height: 1.72;
    font-weight: 350;
    letter-spacing: .002em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

p {
    margin: 0 0 1.15em;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.015em;
    font-variation-settings: "opsz" 96;
}

::selection {
    background: rgba(232, 137, 12, .32);
    color: #fff;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 999;
    padding: 12px 20px;
    background: var(--ember);
    color: #16100a;
    font: 600 13px/1 var(--font-sans);
    border-radius: 10px;
    transition: top .25s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

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

.container--wide {
    max-width: 1400px;
}

/* --------------------------------------------------------------------------
   3. Ambience — grain, aurora, vignette
   -------------------------------------------------------------------------- */
.ambience {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ambience__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    will-change: transform;
}

.ambience__glow--a {
    width: 46vw;
    height: 46vw;
    top: -12vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(232, 137, 12, .30), transparent 68%);
    animation: drift-a 26s var(--ease) infinite alternate;
}

.ambience__glow--b {
    width: 52vw;
    height: 52vw;
    bottom: -18vw;
    left: -14vw;
    background: radial-gradient(circle, rgba(35, 74, 140, .34), transparent 68%);
    animation: drift-b 34s var(--ease) infinite alternate;
}

.ambience__grain {
    position: absolute;
    inset: -120px;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

@keyframes drift-a {
    to {
        transform: translate3d(-6vw, 5vw, 0) scale(1.14);
    }
}

@keyframes drift-b {
    to {
        transform: translate3d(7vw, -5vw, 0) scale(1.1);
    }
}

.page {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: height .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
    height: 66px;
    background: rgba(6, 8, 13, .74);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom-color: var(--line-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    transition: opacity .3s var(--ease);
}

.brand img {
    height: 27px;
    width: auto;
    filter: drop-shadow(0 2px 14px rgba(232, 137, 12, .28));
    transition: height .4s var(--ease);
}

.site-header.is-stuck .brand img {
    height: 23px;
}

.brand:hover {
    opacity: .82;
}

/* Progress bar */
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--flame), var(--ember), var(--ember-300));
    box-shadow: 0 0 14px rgba(232, 137, 12, .7);
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.site-header.is-stuck .scroll-progress {
    opacity: 1;
}

/* Nav — scoped to the header: Bootstrap also ships a `.nav` class, and the
   /terms tabs use it. */
.site-header .nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 34px);
    position: relative;
    z-index: 1;
}

.nav__link {
    position: relative;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 8px 0;
    transition: color .3s var(--ease);
    white-space: nowrap;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, var(--ember), var(--ember-300));
    box-shadow: 0 0 10px rgba(232, 137, 12, .8);
    transition: width .38s var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    width: 100%;
}

.nav__cta {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--ember-300);
    padding: 10px 20px;
    border: 1px solid rgba(232, 137, 12, .42);
    border-radius: 999px;
    background: rgba(232, 137, 12, .07);
    transition: all .35s var(--ease);
    white-space: nowrap;
}

.nav__cta:hover {
    color: #1a1206;
    background: linear-gradient(135deg, var(--ember-300), var(--ember));
    border-color: transparent;
    box-shadow: 0 8px 30px -8px rgba(232, 137, 12, .8);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    position: relative;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    padding: 0;
    place-items: center;
}

.nav-toggle span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .25s var(--ease);
}

.nav-toggle span+span {
    margin-top: 4.5px;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: grid;
    }

    .site-header .nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: rgba(5, 6, 10, .94);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .4s var(--ease), visibility .4s;
    }

    body.nav-open .site-header .nav {
        opacity: 1;
        visibility: visible;
    }

    .nav__link,
    .nav__cta {
        font-size: 15px;
        letter-spacing: .22em;
        padding: 14px 24px;
        opacity: 0;
        transform: translateY(14px);
    }

    body.nav-open .site-header .nav>* {
        animation: nav-in .5s var(--ease-out) forwards;
    }

    body.nav-open .site-header .nav> :nth-child(1) {
        animation-delay: .06s;
    }

    body.nav-open .site-header .nav> :nth-child(2) {
        animation-delay: .11s;
    }

    body.nav-open .site-header .nav> :nth-child(3) {
        animation-delay: .16s;
    }

    body.nav-open .site-header .nav> :nth-child(4) {
        animation-delay: .21s;
    }

    body.nav-open .site-header .nav> :nth-child(5) {
        animation-delay: .26s;
    }

    body.nav-open .site-header .nav> :nth-child(6) {
        animation-delay: .31s;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@keyframes nav-in {
    to {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 96px;
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: 68% center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(1.06) contrast(1.04);
    transform: scale(1.12);
    opacity: 0;
    transition: opacity 1.7s var(--ease);
    will-change: transform;
}

.hero__media.is-loaded {
    opacity: 1;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1150px 640px at 24% 52%, rgba(5, 6, 10, .90) 0%, rgba(5, 6, 10, .74) 34%, rgba(5, 6, 10, .34) 62%, transparent 80%),
        radial-gradient(118% 88% at 72% 46%, transparent 0%, rgba(5, 6, 10, .10) 40%, rgba(5, 6, 10, .74) 100%),
        linear-gradient(180deg, rgba(5, 6, 10, .72) 0%, transparent 24%, transparent 62%, var(--ink-900) 100%);
}

.hero__embers {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    width: 100%;
}

.hero__rule {
    width: 62px;
    height: 1px;
    background: linear-gradient(90deg, var(--ember), transparent);
    box-shadow: 0 0 12px rgba(232, 137, 12, .8);
    margin-bottom: 30px;
}

.hero__title {
    font-size: clamp(1.7rem, 4.2vw, 3.85rem);
    line-height: 1.06;
    letter-spacing: -.022em;
    font-weight: 400;
    font-variation-settings: "opsz" 144;
    text-shadow: 0 18px 60px rgba(0, 0, 0, .6), 0 2px 20px rgba(0, 0, 0, .5);
}

.hero__title .line {
    display: block;
    overflow: hidden;
}

.hero__title .line>span {
    display: block;
    transform: translateY(105%);
    animation: line-up 1.05s var(--ease-out) forwards;
}

.hero__title .line:nth-child(1)>span {
    animation-delay: .18s;
}

.hero__title .line:nth-child(2)>span {
    animation-delay: .30s;
}

.hero__title .line:nth-child(3)>span {
    animation-delay: .42s;
}

@keyframes line-up {
    to {
        transform: none;
    }
}

.ember-text {
    background: linear-gradient(96deg, var(--ember-300) 0%, var(--ember-400) 38%, var(--flame) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
    filter: drop-shadow(0 0 26px rgba(232, 137, 12, .42));
}

.hero__subtitle {
    margin: 34px 0 0;
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    color: var(--muted);
    max-width: 46ch;
    opacity: 0;
    animation: fade-up .9s var(--ease-out) .78s forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.link-ember {
    position: relative;
    color: var(--ember-300);
    font-weight: 500;
    white-space: nowrap;
}

.link-ember::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    opacity: .5;
    transform-origin: 100% 50%;
    transform: scaleX(1);
    transition: transform .4s var(--ease-out), opacity .3s;
}

.link-ember:hover::after {
    transform-origin: 0 50%;
    transform: scaleX(0);
    opacity: 0;
}

.link-ember:hover {
    color: var(--ember-200);
}

/* Supported platform marks */
.hero__marks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 46px 0 0;
    padding: 0;
    opacity: 0;
    animation: fade-up .9s var(--ease-out) .95s forwards;
}

.hero__marks li a,
.hero__marks li span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .028);
    transition: all .35s var(--ease);
}

.hero__marks li a:hover {
    color: var(--ember-300);
    border-color: rgba(232, 137, 12, .45);
    background: rgba(232, 137, 12, .08);
    transform: translateY(-2px);
}

/* Scroll cue */
.hero__cue {
    position: absolute;
    left: max(var(--gutter), calc(50% - 700px + var(--gutter)));
    bottom: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--faint);
    opacity: 0;
    animation: fade-up .9s var(--ease-out) 1.25s forwards;
    transition: color .3s;
}

.hero__cue:hover {
    color: var(--ember-300);
}

.hero__cue i {
    display: block;
    width: 1px;
    height: 52px;
    background: linear-gradient(180deg, transparent, var(--line), transparent);
    position: relative;
    overflow: hidden;
}

.hero__cue i::after {
    content: "";
    position: absolute;
    left: -1.5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 12px 2px rgba(232, 137, 12, .9);
    animation: cue 2.6s var(--ease) infinite;
}

@keyframes cue {

    0% {
        top: -6px;
        opacity: 0;
    }

    22% {
        opacity: 1;
    }

    78% {
        opacity: 1;
    }

    100% {
        top: 52px;
        opacity: 0;
    }
}

@media (min-width: 1600px) {
    .hero__title {
        font-size: 4.5rem;
    }
}

/* On narrow screens the copy sits over the middle of the photograph,
   so the scrim becomes a full-width dim instead of a side pool. */
@media (max-width: 860px) {
    .hero__scrim {
        background:
            linear-gradient(180deg, rgba(5, 6, 10, .86) 0%, rgba(5, 6, 10, .58) 22%, rgba(5, 6, 10, .74) 52%, rgba(5, 6, 10, .90) 78%, var(--ink-900) 100%),
            radial-gradient(130% 55% at 50% 46%, rgba(5, 6, 10, .55), transparent 78%);
    }

    .hero__media {
        background-position: 58% center;
    }
}

@media (max-width: 900px) {
    .hero__cue {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   5b. Page opener — interior pages, no full-viewport hero
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 84px);
    overflow: hidden;
    isolation: isolate;
}

.page-hero__embers {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(78% 62% at 76% 8%, rgba(232, 137, 12, .16), transparent 68%),
        radial-gradient(64% 58% at 8% 92%, rgba(35, 74, 140, .20), transparent 70%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Section furniture
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    padding-block: var(--section-y);
}

.section--tint {
    background:
        radial-gradient(90% 60% at 50% 0%, rgba(232, 137, 12, .055), transparent 70%),
        linear-gradient(180deg, var(--ink-850), var(--ink-900) 60%);
}

.hairline {
    height: 1px;
    border: 0;
    margin: 0;
    background: linear-gradient(90deg, transparent, rgba(232, 137, 12, .38), rgba(255, 255, 255, .10), transparent);
}

.section-head {
    max-width: 900px;
    margin-bottom: clamp(44px, 6vw, 76px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 20px;
}

.kicker::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ember));
}

.section-head--center .kicker::after {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--ember), transparent);
}

.section-title {
    font-size: clamp(2.05rem, 4.6vw, 3.65rem);
    letter-spacing: -.022em;
    text-wrap: balance;
    font-variation-settings: "opsz" 144;
}

.section-lead {
    margin-top: 22px;
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    color: var(--muted);
    max-width: 62ch;
}

.section-head--center .section-lead {
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   7. About
   -------------------------------------------------------------------------- */
.about__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
}

.about__prose {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 60ch;
}

.about__prose a {
    color: var(--ember-300);
    box-shadow: inset 0 -1px 0 0 rgba(232, 137, 12, .38);
    transition: box-shadow .3s var(--ease), color .3s;
}

.about__prose a:hover {
    color: var(--ember-200);
    box-shadow: inset 0 -2px 0 0 var(--ember);
}

/* Pull quote */
.quote {
    position: relative;
    padding: clamp(30px, 3.6vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 100% at 80% 0%, rgba(232, 137, 12, .12), transparent 62%),
        var(--glass);
    overflow: hidden;
}

.quote::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(150deg, rgba(232, 137, 12, .55), transparent 42%, transparent 62%, rgba(255, 255, 255, .14));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.quote__lamp {
    width: 34px;
    height: 34px;
    color: var(--ember);
    filter: drop-shadow(0 0 16px rgba(232, 137, 12, .65));
    margin-bottom: 20px;
}

.quote blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.24rem, 2.1vw, 1.68rem);
    line-height: 1.42;
    letter-spacing: -.012em;
    color: var(--paper);
    font-variation-settings: "opsz" 48;
}

.quote blockquote i {
    font-style: italic;
}

/* Luminous logo plate */
.plate {
    position: relative;
    margin-top: clamp(48px, 6vw, 84px);
    padding: clamp(24px, 3.4vw, 42px) clamp(20px, 4vw, 62px);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fdfcfa, #f1ece3);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .10),
        0 34px 90px -30px rgba(232, 137, 12, .40),
        0 20px 70px -30px rgba(0, 0, 0, .9);
    overflow: hidden;
}

.plate::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 120% at 50% -20%, rgba(232, 137, 12, .16), transparent 60%);
    pointer-events: none;
}

.plate img {
    width: 100%;
    max-width: 940px;
    margin-inline: auto;
}

.plate__caption {
    margin: 18px 0 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(20, 22, 28, .45);
}

/* --------------------------------------------------------------------------
   8. Cards (shared)
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: clamp(18px, 2.2vw, 26px);
}

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

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

.card {
    position: relative;
    padding: clamp(26px, 3vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    overflow: hidden;
    transition: transform .55s var(--ease-out), border-color .45s var(--ease), background .45s var(--ease), box-shadow .55s var(--ease-out);
    isolation: isolate;
}

/* pointer-tracked spotlight */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(330px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 190, 110, .13), transparent 62%);
    transition: opacity .45s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 137, 12, .34);
    background: var(--glass-hover);
    box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95), 0 0 44px -22px rgba(232, 137, 12, .55);
}

.card:hover::after {
    opacity: 1;
}

.card__title {
    font-size: 1.34rem;
    letter-spacing: -.014em;
    margin-bottom: 12px;
    font-variation-settings: "opsz" 40;
}

.card__body {
    margin: 0;
    font-size: .955rem;
    color: var(--muted);
    line-height: 1.75;
}

.card__body a {
    color: var(--ember-300);
    box-shadow: inset 0 -1px 0 0 rgba(232, 137, 12, .35);
    transition: box-shadow .3s var(--ease);
}

.card__body a:hover {
    box-shadow: inset 0 -2px 0 0 var(--ember);
}

/* Tech chip cards */
.tech__chip {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff, #eee8dd);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .12),
        0 16px 34px -18px rgba(0, 0, 0, .95);
    transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}

.tech__chip img {
    max-width: 46px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.card:hover .tech__chip {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 0 0 1px rgba(232, 137, 12, .45),
        0 20px 40px -18px rgba(232, 137, 12, .55);
}

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.service {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    margin-bottom: 22px;
    color: var(--ember-300);
    border: 1px solid rgba(232, 137, 12, .28);
    background: radial-gradient(120% 120% at 30% 0%, rgba(232, 137, 12, .22), rgba(232, 137, 12, .04));
    transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), color .4s;
}

.service__icon svg {
    width: 23px;
    height: 23px;
}

.card:hover .service__icon {
    transform: translateY(-3px);
    color: var(--ember-200);
    box-shadow: 0 0 34px -6px rgba(232, 137, 12, .6);
}

.service__sweep {
    position: absolute;
    left: 0;
    top: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--ember), transparent);
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity .4s var(--ease);
}

.card:hover .service__sweep {
    opacity: 1;
    animation: sweep 1.5s var(--ease-out) infinite;
}

@keyframes sweep {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

/* --------------------------------------------------------------------------
   10. Buttons
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), color .3s;
}

.btn svg {
    width: 15px;
    height: 15px;
    transition: transform .4s var(--ease-out);
}

.btn:hover svg {
    transform: translateX(5px);
}

.btn--ember {
    color: #180f04;
    background: linear-gradient(120deg, var(--ember-300), var(--ember) 52%, var(--flame));
    background-size: 200% 100%;
    box-shadow: 0 16px 44px -16px rgba(232, 137, 12, .85);
}

.btn--ember:hover {
    transform: translateY(-3px);
    background-position: 100% 0;
    box-shadow: 0 22px 56px -16px rgba(232, 137, 12, 1);
}

.btn--ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
}

.btn--ghost:hover {
    color: var(--ember-200);
    border-color: rgba(232, 137, 12, .5);
    background: rgba(232, 137, 12, .09);
    transform: translateY(-3px);
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(40px, 5vw, 62px);
}

/* --------------------------------------------------------------------------
   11. Team
   -------------------------------------------------------------------------- */
.member {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(30px, 4.4vw, 62px);
    align-items: center;
    padding: clamp(28px, 3.4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 130% at 0% 0%, rgba(232, 137, 12, .11), transparent 58%),
        var(--glass);
}

.member__portrait {
    position: relative;
    border-radius: 200px 200px 22px 22px;
    overflow: hidden;
    background: #f3f1ee;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .12),
        0 34px 80px -34px rgba(0, 0, 0, .95),
        0 0 60px -24px rgba(232, 137, 12, .7);
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}

.member__portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(232, 137, 12, .10), transparent 45%, rgba(5, 6, 10, .16));
    pointer-events: none;
}

.member:hover .member__portrait {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(232, 137, 12, .4),
        0 40px 90px -34px rgba(0, 0, 0, .95),
        0 0 80px -22px rgba(232, 137, 12, .85);
}

.member__name {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -.02em;
    font-variation-settings: "opsz" 96;
}

.member__role {
    display: block;
    margin: 10px 0 20px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--ember);
}

.member__bio {
    color: var(--muted);
    font-size: 1rem;
    max-width: 62ch;
}

.member__bio a {
    color: var(--ember-300);
    box-shadow: inset 0 -1px 0 0 rgba(232, 137, 12, .35);
}

.member__bio a:hover {
    box-shadow: inset 0 -2px 0 0 var(--ember);
}

.member__bio strong {
    color: var(--text);
    font-weight: 600;
}

.member__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
}

.socials {
    display: flex;
    align-items: center;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--faint);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    transition: all .38s var(--ease-out);
}

.socials svg {
    width: 16px;
    height: 16px;
}

.socials a:hover {
    color: #180f04;
    background: linear-gradient(135deg, var(--ember-300), var(--ember));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px -10px rgba(232, 137, 12, .9);
}

@media (max-width: 800px) {
    .member {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .member__portrait {
        max-width: 250px;
    }

    .member__bio {
        text-align: left;
    }

    .member__foot {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   12. Blog
   -------------------------------------------------------------------------- */
.post-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-card__date {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ember);
}

.post-card__title {
    font-size: 1.28rem;
    line-height: 1.24;
    letter-spacing: -.012em;
    font-variation-settings: "opsz" 40;
}

.post-card__title a {
    background-image: linear-gradient(var(--ember), var(--ember));
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .5s var(--ease-out), color .35s;
}

.card:hover .post-card__title a {
    background-size: 100% 1px;
    color: var(--ember-200);
}

.post-card__summary {
    margin: 0;
    font-size: .93rem;
    color: var(--muted);
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__more {
    margin-top: auto;
    padding-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--faint);
    transition: color .35s var(--ease), gap .35s var(--ease-out);
}

.card:hover .post-card__more {
    color: var(--ember);
    gap: 13px;
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
/* The section is nested inside this span so the blog's moveToHelp can relocate
   the whole block in one move; the span therefore has to behave like a block. */
#contact-section-header {
    display: block;
}
.contact {
    position: relative;
    background:
        radial-gradient(80% 60% at 15% 0%, rgba(232, 137, 12, .10), transparent 64%),
        linear-gradient(180deg, var(--ink-900), var(--ink-850));
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: start;
}

.contact__list {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.contact-item {
    display: block;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--glass);
    transition: all .4s var(--ease-out);
}

.contact-item:hover {
    border-color: rgba(232, 137, 12, .4);
    background: var(--glass-hover);
    transform: translateY(-3px);
}

.contact-item__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-item__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #180f04;
    background: linear-gradient(135deg, var(--ember-300), var(--ember));
    box-shadow: 0 10px 26px -12px rgba(232, 137, 12, .95);
}

.contact-item__icon svg {
    width: 19px;
    height: 19px;
}

.contact-item--wa .contact-item__icon {
    color: #06240f;
    background: linear-gradient(135deg, #7ae582, #25d366);
    box-shadow: 0 10px 26px -12px rgba(37, 211, 102, .9);
}

.contact-item__value {
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--text);
    font-family: var(--font-sans);
}

.contact-item__hours {
    margin: 14px 0 0;
    padding-left: 56px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--faint);
    line-height: 1.85;
}

.contact-item__hours p {
    margin: 0;
}

/* Form */
.form {
    padding: clamp(26px, 3.4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--glass);
}

.field {
    position: relative;
    margin-bottom: 20px;
}

.field__label {
    display: block;
    margin-bottom: 9px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--faint);
    transition: color .3s var(--ease);
}

.field:focus-within .field__label {
    color: var(--ember);
}

.field input,
.field textarea {
    width: 100%;
    display: block;
    font-family: var(--font-sans);
    font-size: .97rem;
    color: var(--text);
    background: rgba(255, 255, 255, .028);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px 18px;
    transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
    resize: vertical;
}

.field textarea {
    min-height: 158px;
    line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(236, 232, 225, .3);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(232, 137, 12, .55);
    background: rgba(232, 137, 12, .04);
    box-shadow: 0 0 0 4px rgba(232, 137, 12, .10);
}

.form__captcha {
    margin: 6px 0 20px;
    min-height: 78px;
    transform-origin: 0 0;
}

.form__foot {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 420px) {
    .form__captcha {
        transform: scale(.86);
        margin-bottom: 4px;
    }
}

/* Ad slot — keep the unit from fighting the surrounding dark surfaces. */
.ad-slot {
    margin-top: clamp(40px, 5vw, 64px);
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .022);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    padding: clamp(56px, 7vw, 88px) 0 44px;
    background: var(--ink-900);
    text-align: center;
}

.site-footer__logo img {
    height: 30px;
    width: auto;
    margin: 0 auto 26px;
    opacity: .92;
    filter: drop-shadow(0 2px 20px rgba(232, 137, 12, .32));
    transition: opacity .3s;
}

.site-footer__logo:hover img {
    opacity: 1;
}

.site-footer .socials {
    justify-content: center;
    margin-bottom: 30px;
}

.site-footer p {
    margin: 0 auto;
    max-width: 60ch;
    font-size: .84rem;
    line-height: 1.9;
    color: var(--faint);
}

.site-footer p a {
    color: var(--muted);
    box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, .2);
    transition: color .3s, box-shadow .3s;
}

.site-footer p a:hover {
    color: var(--ember-300);
    box-shadow: inset 0 -1px 0 0 var(--ember);
}

/* Scroll top */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #180f04;
    background: linear-gradient(135deg, var(--ember-300), var(--ember));
    box-shadow: 0 14px 34px -12px rgba(232, 137, 12, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition: all .45s var(--ease-out);
}

.to-top svg {
    width: 17px;
    height: 17px;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px -12px rgba(232, 137, 12, 1);
}

/* --------------------------------------------------------------------------
   15. Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}

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

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }

    :root {
        --header-h: 72px;
    }

    body {
        font-size: 16px;
    }

    .contact-item__hours {
        padding-left: 0;
    }
}

/* --------------------------------------------------------------------------
   17. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__title .line>span {
        transform: none;
    }

    .hero__subtitle,
    .hero__marks,
    .hero__cue {
        opacity: 1;
    }

    .hero__media {
        opacity: 1;
        transform: none;
    }
}

@media print {

    .site-header,
    .to-top,
    .ambience,
    .hero__embers {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}
