:root {
    --bg: #0D0C0A;
    --surface: #16140F;
    --surface-2: #1E1B15;
    --line: rgba(243, 236, 222, 0.09);
    --line-strong: rgba(243, 236, 222, 0.16);
    --cream: #F3ECDE;
    --paper: #EAE5DB;
    /* Fine monochrome paper grain for the light header and footer */
    --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.15 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.35'/%3E%3C/svg%3E");
    --muted: #A9A193;
    --amber: #E8A317;
    --amber-deep: #D4930D;
    --gold: #F7D27A;
    --copper: #D9652B;
    --gradient: linear-gradient(100deg, var(--gold) 0%, var(--amber) 45%, var(--copper) 100%);
    --serif: 'Libre Baskerville', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gutter: max(24px, calc((100% - 1280px) / 2));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--sans);
    color: var(--cream);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--amber);
    color: var(--bg);
}

/* === AMBIENT BACKGROUND === */
/* Drifting aurora behind everything, plus film grain on top. */
body::before {
    content: '';
    position: fixed;
    inset: -20vmax;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(40vmax 30vmax at 15% 10%, rgba(232, 163, 23, 0.26), transparent 70%),
        radial-gradient(35vmax 30vmax at 85% 25%, rgba(217, 101, 43, 0.18), transparent 70%),
        radial-gradient(45vmax 35vmax at 60% 95%, rgba(150, 55, 30, 0.20), transparent 70%);
    filter: blur(20px);
    animation: aurora 28s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 40; /* below the sticky header so the logo stays clean */
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes aurora {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    50%  { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg) scale(1.08); }
    100% { transform: translate3d(-3vmax, 4vmax, 0) rotate(-6deg) scale(1.02); }
}

/* === LAYOUT === */
.wrap {
    padding-inline: var(--gutter);
}

.section {
    padding-block: 120px;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    color: var(--amber);
}

.label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gradient);
}

.section-head {
    margin-bottom: 56px;
}

.section-head h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-top: 18px;
}

/* Optional line under a section heading, in the hero intro's style */
.section-head p {
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--muted);
    max-width: 840px;
    line-height: 1.7;
    text-wrap: balance;
    margin-top: 16px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* === HEADER === */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 24px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Lightest behind the logo (its centre is --logo-x), darkening both ways:
       a little to the left edge, and to the right through warm brown to
       near-black behind the nav, which uses light text. Linear blends in oklab. */
    --logo-x: calc(var(--gutter) + 105px);
    background:
        var(--paper-grain),
        linear-gradient(90deg, #B3A996 0, #EEE8DD var(--logo-x), #CFC5B2 calc(var(--logo-x) + 160px), #6A5640 42%, #1A1712 70%, #141210 100%);
    background:
        var(--paper-grain),
        linear-gradient(90deg in oklab, #B3A996 0, #EEE8DD var(--logo-x), #CFC5B2 calc(var(--logo-x) + 160px), #6A5640 42%, #1A1712 70%, #141210 100%);
    transition: padding 0.4s var(--ease), box-shadow 0.4s ease;
}

/* Header content sits above the breathing light */
header > * {
    position: relative;
    z-index: 1;
}

/* Light in the header, driven by registered properties so each part can
   move on its own clock:
   --breathe  brightness of the pool behind the logo
   --drift    the pool wandering either side of the logo */
@property --breathe {
    syntax: '<number>';
    inherits: false;
    initial-value: 0.6;
}

@property --drift {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    --pool-at: calc(var(--logo-x) + var(--drift)) 50%;
    --pool-size: 300px 130%;
    background: radial-gradient(var(--pool-size) at var(--pool-at), rgba(255, 250, 240, calc(0.75 * var(--breathe))), transparent 70%);
    animation:
        header-breathe 5s ease-in-out infinite,
        header-drift 13s ease-in-out infinite;
}

@keyframes header-breathe {
    0%, 100% { --breathe: 0.1; }
    50%      { --breathe: 1; }
}

@keyframes header-drift {
    0%, 100% { --drift: -60px; }
    50%      { --drift: 60px; }
}

/* Amber hairlines where the header and footer meet the page. A bright glint
   with its own soft glow runs along each every few seconds. The element is
   taller than the line so the glow can spill either side of it. */
header::after,
footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 16px;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, #FFF8E6 50%, transparent) no-repeat,
        radial-gradient(closest-side, rgba(255, 222, 140, 0.75), transparent) no-repeat,
        linear-gradient(90deg, transparent, var(--amber-deep) 20%, var(--gold) 50%, var(--amber-deep) 80%, transparent) no-repeat;
    background-size: 30% 2px, 30% 100%, 100% 2px;
    background-position: -50% 50%, -50% 50%, 0 50%;
    filter: drop-shadow(0 0 3px rgba(247, 210, 122, 0.6));
    animation: line-glint 8s cubic-bezier(0.45, 0, 0.25, 1) 1.5s infinite;
}

header::after {
    bottom: -7px;
}

@keyframes line-glint {
    0%        { background-position: -50% 50%, -50% 50%, 0 50%; }
    40%, 100% { background-position: 150% 50%, 150% 50%, 0 50%; }
}

/* Nav links drop in one after another on load */
header nav a {
    animation: nav-in 0.7s var(--ease) backwards;
}

header nav a:nth-child(1) { animation-delay: 0.15s; }
header nav a:nth-child(2) { animation-delay: 0.25s; }
header nav a:nth-child(3) { animation-delay: 0.35s; }

@keyframes nav-in {
    from { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
}

header.scrolled {
    padding-block: 14px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Logo is fixed brand: do not change colours, gradient or underline */
.logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo {
    line-height: 1;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: baseline;
}

.logo .aarti {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 28px;
    color: #1A1A1A;
}

.logo .intelmann {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 32px;
    background: linear-gradient(90deg, #7a5a1a 0%, #D4930D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-underline {
    height: 2px;
    width: 100%;
    margin-top: 4px;
    border-radius: 1px;
    background: linear-gradient(90deg, #D4930D 0%, #7a5a1a 50%, #1A1A1A 100%);
}

/* Soft halo in light stone so the header logo always stands clear of the
   dark end of the gradient behind it. A drop-shadow filter, not text-shadow:
   "Intelmann" is a gradient clipped to its letters, and text-shadow would
   paint over it. The filter works on the finished letters, so the logo's
   colours are untouched. */
header .logo .aarti,
header .logo .intelmann {
    filter: drop-shadow(0 0 1px rgba(236, 230, 219, 0.9)) drop-shadow(0 0 6px rgba(236, 230, 219, 0.7)) drop-shadow(0 0 14px rgba(236, 230, 219, 0.4));
}

header .logo-underline {
    box-shadow: 0 0 6px rgba(236, 230, 219, 0.8), 0 0 14px rgba(236, 230, 219, 0.4);
}

header nav {
    display: flex;
    gap: 36px;
}

header nav a {
    position: relative;
    font-size: 14px;
    color: #E8E0D2;
    text-decoration: none;
    letter-spacing: 0.5px;
    padding-block: 4px;
    transition: color 0.25s ease;
}

header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, var(--amber-deep), var(--gold));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

header nav a:hover {
    color: var(--gold);
}

header nav a.active {
    color: #FBF6EC;
}

header nav a:hover::after,
header nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}

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

.btn-primary {
    color: var(--bg);
    background: var(--gradient);
    background-size: 150% 100%;
    box-shadow: 0 8px 30px -8px rgba(232, 163, 23, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 14px 40px -8px rgba(232, 163, 23, 0.7);
}

.btn-ghost {
    color: var(--cream);
    background: rgba(243, 236, 222, 0.04);
    border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 163, 23, 0.6);
    background: rgba(232, 163, 23, 0.08);
}

/* === GLOW (pointer-tracked spotlight, see site.js) === */
[data-glow] {
    position: relative;
    isolation: isolate;
}

[data-glow]::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 163, 23, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

[data-glow]:hover::before {
    opacity: 1;
}

/* === CARD === */
.card {
    background: linear-gradient(180deg, rgba(243, 236, 222, 0.05), rgba(243, 236, 222, 0.02));
    border: 1px solid var(--line);
    border-radius: 14px;
    /* Frosted, so orb glows show through softly without fighting the text */
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: border-color 0.4s ease, transform 0.5s var(--ease);
}

.card:hover {
    border-color: var(--line-strong);
}

/* === PAGE HEADER (inner pages) === */
.page-header {
    padding: 100px var(--gutter) 60px;
}

.page-header h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-top: 20px;
}

/* Orb sits right of an inner page's heading and spills down behind the content */
.page-header .orb {
    width: min(50vw, 680px);
    top: 70%;
    right: calc(min(50vw, 680px) * -0.18);
}

/* === SCROLL REVEAL === */
/* Only hidden when JS is running, so content is never lost without it. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
}

.js [data-reveal].in {
    opacity: 1;
    transform: none;
}

/* Headline letters, split by site.js. Words stay unbreakable. */
.word {
    display: inline-block;
    white-space: nowrap;
}

.char {
    display: inline-block;
    position: relative;
}

/* Hidden until site.js has split it into letters, so the plain heading never
   flashes up before its animation. Only with JS running, so it can't be lost. */
.js [data-split]:not(.split) {
    visibility: hidden;
}

/* Default: each letter flips up out of a blur, invisible until its turn */
[data-split]:not([data-split="decode"]) .char {
    opacity: 0;
    filter: blur(14px);
    transform: perspective(600px) rotateX(-75deg) translateY(0.3em) scale(1.15);
    transform-origin: 50% 100%;
    animation: focus-in 1s var(--ease) forwards;
    animation-delay: calc(0.15s + var(--i) * 0.03s);
}

@keyframes focus-in {
    60% { filter: blur(0); }
    to  { opacity: 1; filter: blur(0); transform: none; }
}

/* Decode: letters scramble through random glyphs, then settle */
/* No fade: the real letter cuts on the instant its glyph goes */
[data-split="decode"] .char > span {
    opacity: 0;
}

[data-split="decode"] .char.done > span {
    opacity: 1;
}

[data-split="decode"] .char[data-g]::after {
    content: attr(data-g);
    position: absolute;
    inset: 0;
    text-align: center;
    color: var(--amber);
    -webkit-text-fill-color: var(--amber); /* gradient <em> sets this transparent */
    opacity: 0.85;
    text-shadow: 0 0 18px rgba(232, 163, 23, 0.8);
}

[data-split] em {
    font-style: italic;
    /* The letters carry the gradient themselves. A gradient on the <em> would
       paint through the not-yet-revealed letters and show the word early. */
    background: none;
}

/* One gradient spread across the letters of a gradient <em>; each letter
   clips its own slice. Inline padding stops italic overhang being cut. */
[data-split] em .char > span {
    display: inline-block;
    padding: 0 0.1em 0.15em;
    margin: 0 -0.1em -0.15em;
    background: var(--gradient);
    background-size: calc(var(--n) * 100%) 100%;
    background-position: calc(var(--k) / max(var(--n) - 1, 1) * 100%) 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === ORBIT PIECES === */
/* Halo, comet, tilted rings and section orbs: shared by the hero and inner pages. */
@keyframes wash {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

/* Rotating colour halo, blurred into a glow */
.orbit-halo {
    inset: 10%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(247, 210, 122, 0.55) 50deg, transparent 110deg, rgba(217, 101, 43, 0.45) 180deg, transparent 240deg, rgba(170, 60, 30, 0.45) 300deg, transparent 360deg);
    -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 74%, #000 86%, transparent 100%);
    mask: radial-gradient(closest-side, transparent 62%, #000 74%, #000 86%, transparent 100%);
    filter: blur(18px);
    animation: spin 22s linear infinite;
}

/* Comet: a bright head with a fading tail, sweeping one ring */
.comet {
    inset: 21%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 230deg, rgba(247, 210, 122, 0.15) 290deg, rgba(247, 210, 122, 0.95) 359deg, transparent 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    filter: drop-shadow(0 0 6px rgba(247, 210, 122, 0.9));
    animation: spin 7s linear infinite;
}

/* Two rings tipped into 3D, crossing like an atom. The ring line is drawn
   by ::before so it can be masked (wiped on) without masking the element
   itself, which would flatten the 3D and squash the planet. */
@property --wipe {
    syntax: '<angle>';
    inherits: false;
    initial-value: 360deg;
}

.tilt {
    inset: 6%;
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: tilt-spin var(--t) linear infinite;
}

.tilt::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(232, 163, 23, 0.4);
    box-shadow: 0 0 24px rgba(232, 163, 23, 0.25), inset 0 0 24px rgba(232, 163, 23, 0.15);
    /* Reveals the ring clockwise from the planet at the top; full by default */
    -webkit-mask: conic-gradient(#000 var(--wipe), transparent 0);
    mask: conic-gradient(#000 var(--wipe), transparent 0);
}

.tilt.t1 { --tilt: rotate(-24deg); --t: 16s; }
.tilt.t2 { --tilt: rotate(38deg); --t: 22s; animation-direction: reverse; }
.tilt.t2::before { border-color: rgba(217, 101, 43, 0.4); }

/* Planet riding the tilted ring, counter-rotated so it stays round */
.tilt span {
    position: absolute;
    top: -7px;
    left: calc(50% - 7px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFF3D0, var(--amber) 60%, var(--copper));
    box-shadow: 0 0 16px 4px rgba(232, 163, 23, 0.7);
    animation: tilt-counter var(--t) linear infinite;
    animation-direction: inherit;
}

.tilt.t2 span {
    background: radial-gradient(circle at 35% 35%, #FFE1C8, var(--copper) 65%, #8A3A1A);
    box-shadow: 0 0 16px 4px rgba(217, 101, 43, 0.7);
}

@keyframes tilt-spin {
    from { transform: var(--tilt) rotateX(72deg) rotateZ(0deg); }
    to   { transform: var(--tilt) rotateX(72deg) rotateZ(360deg); }
}

@keyframes tilt-counter {
    from { transform: rotateZ(0deg) rotateX(-72deg); }
    to   { transform: rotateZ(-360deg) rotateX(-72deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 1; }
}

/* === SECTION ORBS === */
/* Smaller echoes of the hero orbit that bleed in from the page edge. */
.has-orb {
    position: relative;
    overflow-x: clip;
}

.orb {
    --orb-w: min(72vw, 980px);
    position: absolute;
    top: 50%;
    width: var(--orb-w);
    aspect-ratio: 1;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
}

.orb > * {
    position: absolute;
}

/* SVG layers fill the orb and may draw past it */
.orb > svg {
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.orb--left {
    left: calc(var(--orb-w) * -0.12);
}

.orb--right {
    right: calc(var(--orb-w) * -0.12);
}

/* Sits lower, under the last cards and into the call to action */
.orb--low {
    top: 65%;
}

/* Drifting colour wash, as behind the hero. Each blob fades out (70% of a
   40% radius = 28%) before the box edge, so no straight cut-off shows. */
.orb::before {
    content: '';
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(closest-side at 50% 50%, var(--orb-a), transparent),
        radial-gradient(40% 40% at 72% 28%, var(--orb-b), transparent 70%),
        radial-gradient(40% 40% at 28% 72%, var(--orb-c), transparent 70%);
    filter: blur(12px);
    animation: wash 20s ease-in-out infinite alternate;
}

.orb::after {
    content: '';
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 243, 208, 0.28), rgba(232, 163, 23, 0.16) 40%, transparent);
    animation: breathe 7s ease-in-out infinite;
}

.orb .orbit-halo {
    inset: 16%;
}

.orb .comet {
    inset: 24%;
}

.orb .tilt {
    inset: 12%;
}

.orb--left {
    --orb-a: rgba(217, 101, 43, 0.20);
    --orb-b: rgba(150, 55, 30, 0.24);
    --orb-c: rgba(232, 163, 23, 0.16);
}

.orb--right {
    --orb-a: rgba(232, 163, 23, 0.22);
    --orb-b: rgba(247, 210, 122, 0.14);
    --orb-c: rgba(150, 55, 30, 0.20);
}

.orb--left .orbit-halo {
    animation-direction: reverse;
}

.orb--right .tilt.t1 {
    --tilt: rotate(30deg);
}

/* --- Variant: ripples. Glowing rings pulse outward from the core. --- */
.ripple {
    inset: 14%;
    border-radius: 50%;
    border: 1.5px solid rgba(247, 210, 122, 0.7);
    box-shadow: 0 0 34px rgba(232, 163, 23, 0.4), inset 0 0 34px rgba(232, 163, 23, 0.22);
    opacity: 0;
    animation: ripple 9s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
    animation-delay: calc(var(--r) * -2.25s);
}

.ripple:nth-child(even) {
    border-color: rgba(217, 101, 43, 0.65);
    box-shadow: 0 0 34px rgba(217, 101, 43, 0.4), inset 0 0 34px rgba(217, 101, 43, 0.2);
}

@keyframes ripple {
    0%   { transform: scale(0.12); opacity: 0; }
    12%  { opacity: 1; }
    100% { transform: scale(1.12); opacity: 0; }
}

/* --- Variant: ribbons. Bands of light flow across, fading at the edges. --- */
.ribbons {
    -webkit-mask: radial-gradient(closest-side, #000 45%, transparent 100%);
    mask: radial-gradient(closest-side, #000 45%, transparent 100%);
}

.ribbons .wave {
    animation: flow var(--f) linear infinite;
}

.ribbons .w2 { animation-direction: reverse; }

@keyframes flow {
    to { transform: translateX(-300px); }
}

/* --- Variant: crystal. A glowing wireframe cube tumbling in 3D. --- */
.orb--crystal {
    perspective: 1600px;
}

.crystal {
    --c: calc(var(--orb-w) * 0.3);
    left: calc(50% - var(--c) / 2);
    top: calc(50% - var(--c) / 2);
    width: var(--c);
    height: var(--c);
    transform-style: preserve-3d;
    animation: tumble 30s linear infinite;
}

.crystal.inner {
    --c: calc(var(--orb-w) * 0.14);
    animation-duration: 18s;
    animation-direction: reverse;
}

.crystal i {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(247, 210, 122, 0.75);
    box-shadow: 0 0 26px rgba(232, 163, 23, 0.45), inset 0 0 40px rgba(232, 163, 23, 0.16);
    background: linear-gradient(135deg, rgba(232, 163, 23, 0.07), rgba(150, 55, 30, 0.07));
}

.crystal.inner i {
    border-color: rgba(217, 101, 43, 0.8);
    box-shadow: 0 0 22px rgba(217, 101, 43, 0.5), inset 0 0 24px rgba(217, 101, 43, 0.2);
}

.crystal i:nth-child(1) { transform: translateZ(calc(var(--c) / 2)); }
.crystal i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--c) / 2)); }
.crystal i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--c) / 2)); }
.crystal i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--c) / 2)); }
.crystal i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--c) / 2)); }
.crystal i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--c) / 2)); }

@keyframes tumble {
    from { transform: rotateX(-25deg) rotateY(0deg) rotateZ(15deg); }
    to   { transform: rotateX(335deg) rotateY(360deg) rotateZ(15deg); }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Long dashed ellipse: dashes flow along it (period of 22 keeps the loop seamless) */
.sweep {
    animation: dash-flow 7s linear infinite;
}

@keyframes dash-flow {
    to { stroke-dashoffset: -220; }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%      { transform: scale(1.12); opacity: 1; }
}

/* === FOOTER === */
/* Graduates left to right in the header's colours: lightest behind "Aarti"
   (its centre is --aarti-x, 16% into the logo), a little darker to the left
   edge, and through warm brown to near-black on the right. Stays light to 40%
   so the dark company details below "Aarti" stay readable. Blended in oklab; the
   plain version above it is the fallback for browsers without gradient
   colour-space support.
   Children carry the side gutters. */
footer {
    position: relative;
    z-index: 45; /* above the grain overlay, like the header */
    margin-top: 40px;
    padding-bottom: 48px;
    --aarti-x: calc(var(--gutter) + (100% - 2 * var(--gutter)) * 0.95 * 0.16);
    background:
        var(--paper-grain),
        radial-gradient(50% 160px at 100% 0%, rgba(217, 101, 43, 0.12), transparent),
        radial-gradient(70% 70% at 0% 100%, rgba(232, 163, 23, 0.18), transparent 60%),
        linear-gradient(90deg, #B3A996 0, #EEE8DD var(--aarti-x), #CFC5B2 40%, #6A5640 58%, #1A1712 80%, #141210 100%);
    background:
        var(--paper-grain),
        radial-gradient(50% 160px at 100% 0%, rgba(217, 101, 43, 0.12), transparent),
        radial-gradient(70% 70% at 0% 100%, rgba(232, 163, 23, 0.18), transparent 60%),
        linear-gradient(90deg in oklab, #B3A996 0, #EEE8DD var(--aarti-x), #CFC5B2 40%, #6A5640 58%, #1A1712 80%, #141210 100%);
    color: #1A1A1A;
    overflow: hidden;
    container-type: inline-size;
}

/* Gold line along the top edge, glinting like the header's (shared rule
   above); the half of its glow above the edge is clipped by the footer.
   Offset by half a cycle so the two glints take turns. */
footer::before {
    z-index: 1;
    top: -7px;
    animation-delay: 5.5s;
}

/* Links row, on the dark right-hand side */
.footer-top {
    display: flex;
    justify-content: flex-end;
    padding: 44px var(--gutter) 48px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 13px;
    color: #D8CFBF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Footer wordmark: the logo itself, scaled so 210 logo px span 95% of the
   space between the gutters. --u is one logo pixel. */
.footer-mark {
    --u: calc((100cqi - 2 * max(24px, (100cqi - 1280px) / 2)) * 0.95 / 210);
    padding-inline: var(--gutter);
    user-select: none;
    pointer-events: none;
}

.footer-mark .logo {
    letter-spacing: calc(-0.5 * var(--u));
}

.footer-mark .aarti {
    font-size: calc(28 * var(--u));
}

.footer-mark .intelmann {
    font-size: calc(32 * var(--u));
}

.footer-mark .logo-underline {
    height: calc(2 * var(--u));
    margin-top: calc(4 * var(--u));
    border-radius: var(--u);
}

/* Company details and copyright, under the logo. The rule above them
   graduates against the background: dark over the light side, light over
   the dark side, so it reads all the way along. */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 40px;
    margin: 44px var(--gutter) 0;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-image: linear-gradient(90deg, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.2)) 1;
    border-image: linear-gradient(90deg in oklab, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.2)) 1;
}

.footer-company {
    font-size: 13px;
    color: #3A352D;
    line-height: 1.8;
}

.footer-company strong {
    color: #1A1A1A;
    font-weight: 500;
}

.copyright {
    font-size: 12px;
    color: #B5AC9C;
    white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 1199px) {
    /* Below this width the company details reach past 40% (and on phones
       everything stacks full width), so no side can go dark: lightest behind
       "Aarti", easing evenly to mid-stone both ways (the left stop mirrored
       past the edge), with dark text throughout. */
    footer {
        background:
            var(--paper-grain),
            radial-gradient(70% 70% at 0% 100%, rgba(232, 163, 23, 0.18), transparent 60%),
            linear-gradient(90deg, #B0A48E calc(2 * var(--aarti-x) - 100%), #EEE8DD var(--aarti-x), #B0A48E 100%);
        background:
            var(--paper-grain),
            radial-gradient(70% 70% at 0% 100%, rgba(232, 163, 23, 0.18), transparent 60%),
            linear-gradient(90deg in oklab, #B0A48E calc(2 * var(--aarti-x) - 100%), #EEE8DD var(--aarti-x), #B0A48E 100%);
    }

    .footer-links a,
    .copyright {
        color: #2A2620;
    }

    .footer-links a:hover {
        color: #7A5A1A;
    }

    .footer-bottom {
        border-image: none;
    }
}

@media (max-width: 768px) {
    .orb {
        --orb-w: 130vw;
        opacity: 0.7;
    }

    .orb--left {
        left: -50vw;
    }

    .orb--right {
        right: -50vw;
    }

    /* Logo stacks above the nav here: the light pool centres on the logo and
       darkens outwards in every direction, dark behind the links below. */
    header {
        padding: 18px var(--gutter);
        flex-direction: column;
        gap: 30px; /* room for the blend between logo and links */
        background:
            var(--paper-grain),
            radial-gradient(ellipse 90% 55% at 50% 28%, #EEE8DD 0, #CFC5B2 40%, #2A251E 70%, #1A1712 100%);
        background:
            var(--paper-grain),
            radial-gradient(in oklab ellipse 90% 55% at 50% 28%, #EEE8DD 0, #CFC5B2 40%, #2A251E 70%, #1A1712 100%);
    }

    header::before {
        --pool-at: calc(50% + var(--drift) / 2) 28%;
        --pool-size: 180px 50%;
    }

    header.scrolled {
        padding-block: 12px;
    }

    header nav {
        gap: 24px;
    }

    .section {
        padding-block: 80px;
    }

    .page-header {
        padding: 60px var(--gutter) 40px;
    }

    .footer-top {
        justify-content: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 14px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
