

:root{
--black:#090b09;--dark:#111510;--paper:#e9e9df;
--white:#f1f1e9;--muted:#9da496;--green:#c8f36d;
--mono:"DM Mono",monospace;--sans:"Manrope",Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--black);color:var(--white);font-family:var(--sans);overflow-x:hidden;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
::selection{background:var(--green);color:var(--black)}
.site-header{position:absolute;z-index:100;top:0;left:0;width:100%;height:78px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.16);background:rgba(8,10,8,.38);backdrop-filter:blur(12px)}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{width:35px;height:35px;display:grid;place-items:center;border:1px solid var(--green);color:var(--green);font-weight:800}
.brand-name{font-size:10px;letter-spacing:.13em;font-weight:800}
.brand-name span{color:#858c7e;font-weight:500}
.main-nav{display:flex;gap:34px}
.main-nav a,.header-contact{font:10px var(--mono);color:#c4c9bd}
.main-nav a:hover,.header-contact:hover{color:var(--green)}
.header-contact{border:1px solid rgba(255,255,255,.2);padding:12px 16px}
.header-contact span{color:var(--green);margin-left:12px}
.menu-toggle{display:none;background:none;border:0;padding:8px}
.menu-toggle span{display:block;width:23px;height:1px;background:white;margin:6px}
.experience{position:relative;overflow:hidden}
.micro,.coordinates,.opening-foot,.interference-top,.interference-bottom,.fragment-heading>span,.fragment-caption,.fragment-note,.interlude-coordinate,.method-meta,.method-words,.ending-top,.ending-foot{font:9px var(--mono);letter-spacing:.13em}
.opening{min-height:100svh;background:var(--black);padding:145px 7vw 30px;display:flex;flex-direction:column;justify-content:space-between;isolation:isolate}
.coordinates{color:#899084;position:relative;z-index:5}
.opening-copy{position:relative;z-index:4;margin:auto 0;padding:75px 0}
.micro{color:var(--green)}
.pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:9px;box-shadow:0 0 15px var(--green);animation:pulse 2s infinite}
.opening h1{font-size:clamp(76px,15.5vw,225px);line-height:.77;letter-spacing:-.115em;font-weight:800;margin:45px 0 0}
.opening h1>span{display:block;white-space:nowrap}
.outline{color:transparent;-webkit-text-stroke:1px rgba(243,243,235,.72);margin-left:7vw}
.opening h1 sup{font:12px var(--mono);color:var(--green);vertical-align:top;letter-spacing:0}
.opening-sub{display:flex;align-items:center;gap:20px;margin:45px 0 0 8vw;font:10px var(--mono);letter-spacing:.12em;color:#adb4a6}
.asterisk{font-size:32px;color:var(--green);animation:spin 18s linear infinite}
.opening-orbit{position:absolute;z-index:1;width:min(70vw,900px);height:min(70vw,900px);right:-15vw;top:4%;pointer-events:none}
.orbit-ring{position:absolute;inset:0;border:1px solid rgba(200,243,109,.22);border-radius:50%;animation:spin 35s linear infinite}
.ring-b{inset:12%;border-color:rgba(243,243,235,.2);animation-direction:reverse;animation-duration:45s}
.ring-c{inset:25%;border-style:dashed}
.orb-core{position:absolute;inset:38%;border-radius:50%;background:radial-gradient(circle at 35% 28%,#f1f4e7,#7b8670 18%,#222a21 52%,#080a08 75%);box-shadow:0 0 100px #c8f36d18}
.orb-cut{position:absolute;inset:28%;border:12px solid transparent;border-radius:48%;background:linear-gradient(130deg,#f1f3e8,#4c5747,#0c100c,#d4dcc8,#273126) border-box;mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);mask-composite:exclude;transform:rotate(-35deg);animation:float 9s ease-in-out infinite}
.opening-foot{position:relative;z-index:5;display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.18);padding-top:18px;color:#92998b}
.opening-foot a{color:var(--green)}
.interference{min-height:850px;background:var(--paper);color:#171b14;padding:95px 8vw 30px;isolation:isolate}
.interference-top{display:flex;justify-content:space-between;color:#68715f;position:relative;z-index:4}
.interference-copy{position:relative;z-index:4;width:65%;padding:100px 0 120px}
.dark{color:#70844b}
.interference-copy h2,.method-copy h2,.ending-copy h2{font-size:clamp(80px,12vw,165px);line-height:.78;letter-spacing:-.11em;margin:35px 0;font-weight:700}
.interference-copy h2 em,.method-copy h2 em{font-style:normal;color:#82984f}
.interference-note{max-width:300px;margin-left:35%;font-size:13px;line-height:1.9;color:#5d6654}
.collision{position:absolute;z-index:1;right:-5%;top:12%;width:65%;height:75%;pointer-events:none}
.collision-disc{position:absolute;width:65%;aspect-ratio:1;right:5%;top:10%;border-radius:50%;background:radial-gradient(circle at 30% 28%,#f8f8ed,#a5ae98 20%,#4a5543 50%,#151d15 75%);box-shadow:inset -25px -30px 45px #101710}
.collision-block{position:absolute;width:90%;height:22%;right:-3%;top:43%;background:linear-gradient(100deg,#1b241a,#d4dac8 22%,#707d64 45%,#1b211a 72%,#e7e9dc);clip-path:polygon(0 25%,100% 0,88% 100%,10% 80%);transform:rotate(-25deg)}
.collision-grid{position:absolute;inset:0;background-image:linear-gradient(#53644724 1px,transparent 1px),linear-gradient(90deg,#53644724 1px,transparent 1px);background-size:28px 28px;transform:rotate(-15deg)}
.collision-line{position:absolute;width:120%;height:1px;background:#819166;top:55%;transform:rotate(-30deg)}
.collision-orbit{position:absolute;inset:8%;border:1px dashed #73845b;border-radius:50%;transform:rotate(30deg) scaleY(.55)}
.collision-code{position:absolute;bottom:13%;left:5%;font:8px var(--mono);color:#68745d}
.second-code{left:auto;right:5%;top:20%}
.interference-bottom{display:flex;justify-content:space-between;border-top:1px solid #252b211f;padding-top:17px;color:#69715e;position:relative;z-index:4}
.fragments{background:#10140f;padding:100px 7vw 55px;min-height:1050px}
.fragment-heading{display:flex;justify-content:space-between;align-items:start;color:#9ba493}
.fragment-heading p{max-width:240px;font-size:12px;line-height:1.7;margin:0}
.fragment-stage{height:770px;position:relative;margin-top:30px;isolation:isolate}
.fragment-grid{position:absolute;inset:5% 0;background-image:linear-gradient(#b6c49b15 1px,transparent 1px),linear-gradient(90deg,#b6c49b15 1px,transparent 1px);background-size:55px 55px;transform:perspective(500px) rotateX(55deg) scale(1.4);opacity:.6}
.fragment-type{position:absolute;z-index:4;font-weight:800;letter-spacing:-.1em;line-height:.8;white-space:nowrap}
.fragment-type span{color:var(--green)}
.type-one{font-size:clamp(75px,12vw,160px);top:8%;left:0}
.type-two{font-size:clamp(60px,9vw,125px);top:32%;right:0;color:transparent;-webkit-text-stroke:1px #dce4d0}
.type-three{font-size:clamp(85px,14vw,185px);top:55%;left:4%;color:#b4c2a4}
.type-four{font-size:clamp(55px,9vw,120px);bottom:5%;right:0}
.fragment-object{position:absolute;z-index:2;pointer-events:none}
.object-one{width:36%;height:42%;top:15%;left:33%;background:linear-gradient(120deg,#d7ddcb,#586450 35%,#1d271d 70%,#b5c1a6);clip-path:polygon(0 15%,75% 0,100% 85%,25% 100%);transform:rotate(18deg);mix-blend-mode:screen;opacity:.8}
.object-two{width:30%;height:45%;top:34%;right:12%;border:18px solid transparent;border-radius:50%;background:linear-gradient(120deg,#f2f3e8,#596651,#141a13,#cbd4c0) border-box;mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);mask-composite:exclude;transform:rotate(-35deg)}
.object-three{width:28%;height:30%;bottom:4%;left:20%;background:linear-gradient(135deg,#c8f36d,#526a37 55%,#131a11);clip-path:polygon(50% 0,100% 100%,0 80%);opacity:.55}
.object-four{width:1px;height:95%;left:52%;top:0;background:#c8f36d88;transform:rotate(25deg)}
.fragment-cross{position:absolute;top:45%;left:48%;font-size:55px;color:var(--green);z-index:5}
.fragment-note{position:absolute;z-index:5;font-size:8px;color:#a4ad98}
.note-one{top:5%;right:5%}.note-two{top:45%;left:2%}.note-three{bottom:23%;right:5%}.note-four{bottom:2%;left:3%}
.fragment-caption{display:flex;justify-content:space-between;border-top:1px solid #ffffff25;padding-top:17px;color:#929b8c}
.interlude{background:#c8f36d;color:#11170d;padding:100px 8vw;min-height:780px}
.interlude-mark{font:11px var(--mono);border:1px solid #344421;width:55px;height:55px;display:grid;place-items:center;border-radius:50%;margin-bottom:90px}
.interlude h2{font-size:clamp(70px,11vw,150px);line-height:.82;letter-spacing:-.105em;margin:30px 0}
.interlude h2 span{color:#596f35}
.interlude h2 em{font-style:normal;color:#e9eddf;-webkit-text-stroke:1px #344421}
.interlude-line{height:1px;background:#344421;width:70%;margin:60px 0 25px}
.interlude-note{font-size:13px;max-width:250px;margin-left:40%}
.interlude-coordinate{margin-top:90px;color:#506333}
.method{background:var(--paper);color:#171b14;padding:100px 8vw 60px;min-height:850px}
.method-meta{display:flex;justify-content:space-between;color:#69725e;position:relative;z-index:3}
.method-copy{position:relative;z-index:3;padding:100px 0 90px}
.method-copy h2 em{color:#82984f}
.method-visual{position:absolute;right:-8%;top:12%;width:70%;height:70%;opacity:.5}
.method-visual svg{width:100%;height:100%}
.method-visual path{fill:none;stroke:#83956b;stroke-width:1.4}
.method-visual path:nth-child(2){stroke:#b3bda4;stroke-width:2}
.method-visual path:nth-child(3){stroke-dasharray:4 9}
.method-visual path:nth-child(4){stroke:#64794a;stroke-dasharray:1 7}
.method-visual circle{fill:#8da84d;stroke:#e9e9df;stroke-width:5}
.method-words{display:flex;justify-content:space-between;border-top:1px solid #20291c55;padding-top:20px;color:#5f6d50}
.ending{background:var(--green);color:#11170d;min-height:900px;padding:100px 8vw 30px;isolation:isolate}
.ending-top,.ending-foot{display:flex;justify-content:space-between;position:relative;z-index:4;color:#536735}
.ending-copy{position:relative;z-index:4;padding:110px 0 80px}
.ending-copy h2{font-size:clamp(90px,14vw,190px)}
.ending-copy h2 span{color:#f1f3e7}
.ending-copy>p:last-child{font-size:14px;margin-left:10%}
.ending-art{position:absolute;right:-4%;top:12%;width:60%;height:75%;z-index:1;pointer-events:none}
.ending-ring{position:absolute;width:75%;height:75%;right:0;top:10%;border:1px solid #28351e99;border-radius:50%}
.ring-two{width:55%;height:95%;right:15%;top:0;border:12px solid #f0f4e577;transform:rotate(45deg)}
.ending-solid{position:absolute;width:40%;height:45%;right:22%;top:25%;background:linear-gradient(135deg,#f0f3e5aa,#68864166,#24331a88);transform:rotate(-25deg);filter:blur(1px)}
.ending-cross{position:absolute;right:25%;top:35%;font-size:100px;color:#18231166}
.ending-contact{position:relative;z-index:4;width:min(440px,100%);display:grid;gap:0}
.ending-contact>a{padding:16px 0;border-bottom:1px solid #1a24114d;font-weight:700;font-size:14px}
.ending-contact p{font-size:11px;line-height:1.8;margin-top:25px;max-width:350px}
.ending-foot{border-top:1px solid #1a24114d;padding-top:18px;margin-top:80px;flex-wrap:wrap;gap:15px}
.site-footer{background:#090b09;padding:30px 8vw 20px}
.footer-top{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:25px}
.footer-brand{font-size:25px;line-height:.85;letter-spacing:-.08em;font-weight:800}
.footer-brand span{color:var(--green)}
.footer-top p{font-size:10px;line-height:1.8;color:#9ba394}
.back-top{font:9px var(--mono);color:var(--green)}
.footer-bottom{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #ffffff25;padding-top:15px;color:#8f9788;font:9px var(--mono)}
.footer-bottom a{color:var(--green)}
@keyframes pulse{50%{box-shadow:0 0 0 8px #c8f36d18,0 0 22px var(--green)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes float{0%,100%{transform:rotate(-35deg) translateY(0)}50%{transform:rotate(-25deg) translateY(-20px)}}
@media(max-width:900px){
.opening h1{font-size:16vw}
.opening-orbit{width:90vw;height:90vw;right:-30vw}
.interference-copy{width:80%}
.fragment-stage{height:650px}
}
@media(max-width:650px){
.site-header{height:68px;padding:0 6vw}
.main-nav{display:none;position:absolute;top:68px;left:0;width:100%;padding:25px 6vw;background:#101510;flex-direction:column;gap:22px;border-bottom:1px solid #ffffff25}
.main-nav.open{display:flex}
.header-contact{display:none}
.menu-toggle{display:block}
.opening{min-height:100svh;padding:110px 6vw 25px}
.opening-copy{padding:65px 0}
.opening h1{font-size:16vw;letter-spacing:-.1em}
.outline{margin-left:2vw}
.opening-orbit{width:115vw;height:115vw;right:-57vw;top:15%}
.opening-sub{margin:35px 0 0 2vw;gap:12px;font-size:8px}
.opening-foot{font-size:7px;gap:8px}
.interference{padding:75px 7vw 25px;min-height:760px}
.interference-copy{width:100%;padding:90px 0}
.interference-copy h2,.method-copy h2{font-size:clamp(65px,15vw,100px)}
.collision{width:100%;height:60%;right:-40%;top:20%;opacity:.48}
.interference-note{margin-left:15%;max-width:260px}
.interference-bottom{font-size:7px;gap:8px}
.fragments{padding:75px 6vw 35px;min-height:850px}
.fragment-heading{display:block}
.fragment-heading p{margin-top:20px}
.fragment-stage{height:650px;margin-top:25px}
.type-one{font-size:19vw;top:12%}
.type-two{font-size:14vw;top:34%}
.type-three{font-size:20vw;top:55%}
.type-four{font-size:13vw;bottom:10%}
.object-one{width:55%;left:20%;height:35%}
.object-two{width:38%;height:35%;right:5%;top:40%}
.object-three{width:35%;height:25%;left:10%}
.fragment-note{font-size:6px}
.fragment-caption{font-size:7px;gap:8px;flex-wrap:wrap}
.interlude{padding:75px 7vw;min-height:700px}
.interlude-mark{margin-bottom:75px}
.interlude h2{font-size:clamp(65px,14vw,100px)}
.interlude-note{margin-left:15%}
.method{padding:75px 7vw 40px;min-height:720px}
.method-copy{padding:100px 0}
.method-visual{width:125%;height:55%;right:-40%;top:20%;opacity:.3}
.method-words{font-size:7px;gap:8px;flex-wrap:wrap}
.ending{padding:75px 7vw 25px;min-height:850px}
.ending-top,.ending-foot{font-size:7px;gap:10px;flex-wrap:wrap}
.ending-copy{padding:100px 0 65px}
.ending-copy h2{font-size:clamp(85px,18vw,125px)}
.ending-art{width:110%;height:50%;right:-45%;top:40%;opacity:.55}
.ending-contact{max-width:100%}
.ending-contact>a{font-size:12px}
.ending-foot{margin-top:65px}
.footer-top{gap:20px;flex-wrap:wrap}
.footer-bottom{flex-wrap:wrap;line-height:1.8}
}
@media(prefers-reduced-motion:reduce){
*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* =========================================================
   FE MOTION SYSTEM — CONSOLIDATED
   ========================================================= */

/* Editorial ticker */
.fragment-caption {
    position: relative;
    overflow: hidden;
    padding-bottom: 34px;
}

.fragment-caption::after {
    content: "INFRASTRUCTURE × INFORMATION × MOVEMENT × OPERATIONS     INFRASTRUCTURE × INFORMATION × MOVEMENT × OPERATIONS";
    position: absolute;
    left: 0;
    bottom: 0;
    width: max-content;
    white-space: nowrap;
    color: var(--green);
    font: 9px var(--mono);
    letter-spacing: .18em;
    opacity: .8;
    pointer-events: none;
    animation: feTicker 38s linear infinite;
}

@keyframes feTicker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Architectural registration marks */
.fragment-stage::before,
.fragment-stage::after {
    content: "";
    position: absolute;
    z-index: 6;
    width: 13px;
    height: 13px;
    pointer-events: none;
    opacity: .45;
}

.fragment-stage::before {
    top: 50%;
    left: 50%;
    border-top: 1px solid var(--green);
    border-left: 1px solid var(--green);
}

.fragment-stage::after {
    right: 2%;
    bottom: 3%;
    border-right: 1px solid var(--green);
    border-bottom: 1px solid var(--green);
}

/* Scroll reveal — only active after JavaScript initialises */
.motion-ready .fragment-type,
.motion-ready .fragment-object,
.motion-ready .interlude h2,
.motion-ready .method-copy,
.motion-ready .ending-copy {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .9s ease,
        transform 1.1s cubic-bezier(.2,.7,.2,1);
}

.motion-ready .fragment-type.seen,
.motion-ready .fragment-object.seen,
.motion-ready .interlude h2.seen,
.motion-ready .method-copy.seen,
.motion-ready .ending-copy.seen {
    opacity: 1;
    transform: translateY(0);
}

/* Ticker interaction */
.fragment-caption:hover::after {
    animation-play-state: paused;
}

@media (max-width: 650px) {
    .fragment-caption {
        padding-bottom: 30px;
    }

    .fragment-caption::after {
        font-size: 8px;
        animation-duration: 44s;
    }

    .fragment-stage::before {
        left: 48%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fragment-caption::after {
        animation: none;
        white-space: normal;
    }

    .motion-ready .fragment-type,
    .motion-ready .fragment-object,
    .motion-ready .interlude h2,
    .motion-ready .method-copy,
    .motion-ready .ending-copy {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* FE ACCESSIBILITY REFINEMENT */
:where(a, button):focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 5px;
}

.menu-toggle {
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline-color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
    .opening-orbit,
    .asterisk,
    .pulse {
        animation: none !important;
    }
}

/* =========================================================
   FE CINEMATIC MOTION V1
   Built on existing Firoja Enterprise artwork
   ========================================================= */

/* Scroll reveal initial states */
.motion-ready .collision,
.motion-ready .interference-copy,
.motion-ready .interference-bottom,
.motion-ready .fragment-heading,
.motion-ready .fragment-caption,
.motion-ready .interlude-mark,
.motion-ready .interlude > .micro,
.motion-ready .interlude-line,
.motion-ready .interlude-note,
.motion-ready .interlude-coordinate,
.motion-ready .method-meta,
.motion-ready .method-words,
.motion-ready .ending-top,
.motion-ready .ending-contact,
.motion-ready .ending-foot {
    opacity: 0;
    translate: 0 24px;
    transition:
        opacity 900ms ease,
        translate 1100ms cubic-bezier(.2,.7,.2,1);
}

.motion-ready .seen {
    opacity: 1;
    translate: 0 0;
}

/* Existing reveal elements: preserve their visibility fix */
.motion-ready .fragment-type.seen,
.motion-ready .fragment-object.seen,
.motion-ready .interlude h2.seen,
.motion-ready .method-copy.seen,
.motion-ready .ending-copy.seen {
    opacity: 1;
    transform: translateY(0);
}

/* 01 — Architectural depth */
.collision-disc {
    will-change: translate;
    animation: feDiscDrift 12s ease-in-out infinite alternate;
}

.collision-block {
    will-change: translate;
    animation: feBlockDrift 10s ease-in-out infinite alternate;
}

.collision-orbit {
    animation: feOrbitBreath 16s ease-in-out infinite alternate;
}

.collision-grid {
    animation: feGridDrift 24s ease-in-out infinite alternate;
}

@keyframes feDiscDrift {
    from { translate: 0 0; }
    to   { translate: -18px 12px; }
}

@keyframes feBlockDrift {
    from { translate: 0 0; }
    to   { translate: 12px -15px; }
}

@keyframes feOrbitBreath {
    from { scale: 1 .92; opacity: .55; }
    to   { scale: 1 1.04; opacity: .9; }
}

@keyframes feGridDrift {
    from { background-position: 0 0; }
    to   { background-position: 28px 28px; }
}

/* 02 — Kinetic typography */
.fragment-type {
    will-change: translate, opacity;
}

.type-one.seen {
    transition-delay: 80ms;
}

.type-two.seen {
    transition-delay: 220ms;
}

.type-three.seen {
    transition-delay: 360ms;
}

.type-four.seen {
    transition-delay: 500ms;
}

.fragment-object {
    will-change: translate, opacity;
}

.object-one {
    animation: feObjectFloat 11s ease-in-out infinite alternate;
}

.object-two {
    animation: feObjectFloat 14s ease-in-out infinite alternate-reverse;
}

.object-three {
    animation: feObjectFloat 9s ease-in-out infinite alternate;
}

.object-four {
    animation: feLinePulse 7s ease-in-out infinite alternate;
}

@keyframes feObjectFloat {
    from { translate: 0 0; }
    to   { translate: 0 -18px; }
}

@keyframes feLinePulse {
    from { opacity: .3; }
    to   { opacity: .9; }
}

/* 03 — Green interlude */
.interlude h2 {
    clip-path: inset(0 0 0 0);
}

.interlude h2.seen {
    animation: feHeadingSettle 1100ms cubic-bezier(.2,.7,.2,1) both;
}

.interlude-line {
    transform-origin: left center;
}

.interlude-line.seen {
    animation: feLineReveal 1400ms cubic-bezier(.2,.7,.2,1) both;
}

@keyframes feHeadingSettle {
    from { letter-spacing: -.14em; }
    to   { letter-spacing: -.105em; }
}

@keyframes feLineReveal {
    from { scale: 0 1; }
    to   { scale: 1 1; }
}

/* 04 — Drawing the process lines */
.method-visual svg path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    transition: stroke-dashoffset 2.6s cubic-bezier(.2,.7,.2,1);
}

.method-visual.seen svg path {
    stroke-dashoffset: 0;
}

.method-visual svg circle {
    transform-box: fill-box;
    transform-origin: center;
}

.method-visual.seen svg circle {
    animation: feNodeAppear 900ms ease both;
}

.method-visual.seen svg circle:last-child {
    animation-delay: 350ms;
}

@keyframes feNodeAppear {
    from { scale: .15; opacity: 0; }
    to   { scale: 1; opacity: 1; }
}

/* 05 — Ending artwork */
.ending-ring {
    animation: feEndingRing 24s ease-in-out infinite alternate;
}

.ring-two {
    animation-direction: alternate-reverse;
}

.ending-solid {
    animation: feEndingSolid 13s ease-in-out infinite alternate;
}

@keyframes feEndingRing {
    from { scale: .94; }
    to   { scale: 1.06; }
}

@keyframes feEndingSolid {
    from { translate: 0 0; }
    to   { translate: -20px 18px; }
}

/* Motion timing and performance */
@media (max-width: 650px) {
    .collision-disc,
    .collision-block,
    .collision-grid,
    .object-one,
    .object-two,
    .object-three {
        animation-duration: 18s;
    }

    .fragment-type.seen {
        transition-duration: 700ms;
    }

    .method-visual svg path {
        transition-duration: 1.8s;
    }
}

/* Respect visitor motion preferences */
@media (prefers-reduced-motion: reduce) {
    .collision-disc,
    .collision-block,
    .collision-orbit,
    .collision-grid,
    .object-one,
    .object-two,
    .object-three,
    .object-four,
    .ending-ring,
    .ending-solid {
        animation: none !important;
    }

    .method-visual svg path {
        stroke-dashoffset: 0;
        transition: none;
    }

    .motion-ready .collision,
    .motion-ready .interference-copy,
    .motion-ready .interference-bottom,
    .motion-ready .fragment-heading,
    .motion-ready .fragment-caption,
    .motion-ready .interlude-mark,
    .motion-ready .interlude > .micro,
    .motion-ready .interlude-line,
    .motion-ready .interlude-note,
    .motion-ready .interlude-coordinate,
    .motion-ready .method-meta,
    .motion-ready .method-words,
    .motion-ready .ending-top,
    .motion-ready .ending-contact,
    .motion-ready .ending-foot {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

/* =========================================================
   FE ADVANCED INTERACTION V2
   ========================================================= */

/* Custom cursor — enabled only on fine pointer devices */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.fe-custom-cursor,
    body.fe-custom-cursor a,
    body.fe-custom-cursor button {
        cursor: none !important;
    }

    .fe-cursor-dot,
    .fe-cursor-ring {
        position: fixed;
        top: -100px;
        left: -100px;
        z-index: 10001;
        pointer-events: none;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .fe-cursor-dot {
        width: 5px;
        height: 5px;
        background: var(--green);
    }

    .fe-cursor-ring {
        width: 34px;
        height: 34px;
        border: 1px solid rgba(200, 243, 109, .65);
        transition:
            width 280ms cubic-bezier(.2,.7,.2,1),
            height 280ms cubic-bezier(.2,.7,.2,1),
            border-color 280ms ease,
            background 280ms ease;
    }

    .fe-cursor-hover .fe-cursor-ring {
        width: 58px;
        height: 58px;
        background: rgba(200, 243, 109, .09);
        border-color: var(--green);
    }

    .fe-cursor-hidden .fe-cursor-dot,
    .fe-cursor-hidden .fe-cursor-ring {
        opacity: 0;
    }
}

/* Scroll progress */
.fe-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 0;
    height: 2px;
    background: var(--green);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(200, 243, 109, .35);
}

/* Magnetic link response */
.main-nav a,
.header-contact,
.opening-foot a,
.ending-contact a,
.back-top {
    transition:
        color 250ms ease,
        opacity 250ms ease,
        translate 220ms cubic-bezier(.2,.7,.2,1);
}

/* Kinetic word interaction */
.fragment-type {
    transition:
        letter-spacing 400ms cubic-bezier(.2,.7,.2,1),
        text-shadow 400ms ease,
        color 400ms ease;
}

.fragment-type.fe-word-active {
    letter-spacing: -.065em;
    text-shadow: 0 0 28px rgba(200, 243, 109, .18);
}

.type-two.fe-word-active {
    -webkit-text-stroke-color: var(--green);
}

/* Refined interactive contact links */
.ending-contact a {
    position: relative;
    overflow: hidden;
}

.ending-contact a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.ending-contact a:hover::after,
.ending-contact a:focus-visible::after {
    transform: scaleX(1);
}

/* Mobile: no custom cursor or magnetic movement */
@media (max-width: 650px), (pointer: coarse) {
    .fe-cursor-dot,
    .fe-cursor-ring {
        display: none !important;
    }

    .fragment-type.fe-word-active {
        letter-spacing: inherit;
        text-shadow: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fe-scroll-progress {
        display: none;
    }

    .main-nav a,
    .header-contact,
    .opening-foot a,
    .ending-contact a,
    .back-top,
    .fragment-type {
        transition: none !important;
    }

    .ending-contact a::after {
        transition: none !important;
    }
}

/* =========================================================
   FE SECTION INDEX V1
   ========================================================= */

html {
    scroll-behavior: smooth;
}

.fe-section-index {
    position: fixed;
    z-index: 900;
    top: 50%;
    right: 25px;
    width: 112px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    color: var(--ink, #171916);
    font-family: "DM Mono", monospace;
    pointer-events: auto;
}

.fe-index-heading,
.fe-index-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    letter-spacing: .12em;
}

.fe-index-heading {
    padding-bottom: 9px;
    border-bottom: 1px solid currentColor;
    opacity: .65;
}

.fe-index-total,
.fe-index-scroll {
    opacity: .5;
}

.fe-index-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.fe-index-item {
    display: grid;
    grid-template-columns: 19px 9px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 13px;
    color: inherit;
    text-decoration: none;
    opacity: .48;
    transition:
        opacity 350ms ease,
        translate 350ms cubic-bezier(.2,.7,.2,1);
}

.fe-index-number {
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.fe-index-marker {
    width: 5px;
    height: 5px;
    border: 1px solid currentColor;
    border-radius: 50%;
    transition:
        background 350ms ease,
        scale 350ms ease,
        box-shadow 350ms ease;
}

.fe-index-label {
    font-size: 8px;
    letter-spacing: .055em;
    white-space: nowrap;
    opacity: 0;
    translate: 7px 0;
    transition:
        opacity 300ms ease,
        translate 300ms ease;
}

.fe-index-item:hover,
.fe-index-item:focus-visible,
.fe-index-item.is-active {
    opacity: 1;
}

.fe-index-item:hover .fe-index-label,
.fe-index-item:focus-visible .fe-index-label,
.fe-index-item.is-active .fe-index-label {
    opacity: 1;
    translate: 0 0;
}

.fe-index-item.is-active .fe-index-marker {
    background: var(--green, #c8f36d);
    border-color: var(--green, #c8f36d);
    scale: 1.5;
    box-shadow: 0 0 12px rgba(150, 190, 90, .35);
}

.fe-index-item:hover {
    translate: -3px 0;
}

.fe-index-footer {
    padding-top: 9px;
    border-top: 1px solid currentColor;
}

.fe-index-current {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* Colour adapts to the section underneath */
.fe-section-index {
    mix-blend-mode: difference;
    color: white;
}

.fe-section-index a {
    color: white;
}

.fe-section-index a:focus-visible {
    outline: 1px solid white;
    outline-offset: 5px;
}

/* Smaller desktops */
@media (max-width: 1100px) {
    .fe-section-index {
        right: 12px;
        width: 82px;
    }

    .fe-index-label {
        display: none;
    }

    .fe-index-item {
        grid-template-columns: 19px 9px;
    }
}

/* Tablet and mobile */
@media (max-width: 760px) {
    .fe-section-index {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fe-index-item,
    .fe-index-marker,
    .fe-index-label {
        transition: none;
    }
}

/* =========================================================
   FE CINEMATIC TRANSITION V2
   Dark-to-lime architectural entrance
   ========================================================= */

.interlude {
    position: relative;
    isolation: isolate;
}

/* Diagonal lime sweep rising from the section boundary */
.interlude::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: -105px;
    height: 106px;
    background: #c8f36d;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1300ms cubic-bezier(.72, 0, .18, 1);
    pointer-events: none;
}

.interlude.fe-transition-active::before {
    transform: scaleX(1);
}

/* Fine architectural registration line */
.interlude::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 8vw;
    width: 84vw;
    height: 1px;
    background: rgba(34, 53, 19, .55);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1700ms cubic-bezier(.2,.7,.2,1);
    pointer-events: none;
}

.interlude.fe-transition-active::after {
    transform: scaleX(1);
}

/* Small moving highlight travelling along the line */
.interlude.fe-transition-active .interlude-line {
    animation: feTransitionLine 1300ms cubic-bezier(.2,.7,.2,1) both;
}

@keyframes feTransitionLine {
    0% {
        opacity: 0;
        transform: scaleX(.05);
        transform-origin: left;
    }
    45% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Heading enters after the diagonal sweep */
.interlude.fe-transition-active h2 {
    animation: feTransitionHeading 1100ms 350ms cubic-bezier(.2,.7,.2,1) both;
}

@keyframes feTransitionHeading {
    from {
        clip-path: inset(0 0 100% 0);
        transform: translateY(28px);
    }
    to {
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 650px) {
    .interlude::before {
        top: -55px;
        height: 56px;
    }

    .interlude::after {
        left: 7vw;
        width: 86vw;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .interlude::before,
    .interlude::after {
        transform: none;
        transition: none;
    }

    .interlude.fe-transition-active h2,
    .interlude.fe-transition-active .interlude-line {
        animation: none;
    }
}

/* FE QUIET LOGO SIGNATURE V2 — transparent original brand mark */
.ending-logo {
    display: inline-flex;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
    background: transparent;
    border: 0;
    opacity: .94;
    transition: opacity .3s ease, transform .3s ease;
}

.ending-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ending-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 650px) {
    .ending-logo {
        width: 54px;
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ending-logo {
        transition: none;
    }
}