/* ==========================================================================
   Rohan R® — portfolio
   Dark editorial system: extended ultra-bold display type, grotesk body,
   hairline rails, pill tags and a single hot accent.
   ========================================================================== */

:root {
    --bg: #060607;
    --panel: #0b0b0c;
    --panel-2: #111113;
    --chip: #1c1c1e;
    --line: #1f1f22;
    --line-2: #2c2c30;
    --text: #ffffff;
    --soft: #d4d4d4;
    --muted: #878787;
    --dim: #4a4a4f;
    --ghost: #1b1b1d;
    --brand: #FE3D00;

    --font-display: 'Archivo', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --gutter: 20px;
    --ease: cubic-bezier(.2, .7, 0, 1);
    --col: 114px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html.modal-open,
body.menu-open {
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

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

/* Author display rules (e.g. .btn-arrow) must never override the hidden attribute */
[hidden] {
    display: none !important;
}

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

.muted {
    color: var(--muted);
}

.center {
    display: flex;
    justify-content: center;
    padding-top: 32px;
}

/* ---------------------------------------------------------------- tokens */

.display {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    text-transform: uppercase;
    line-height: .84;
    letter-spacing: -0.02em;
    margin: 0;
}

.display sup,
.hero-name sup {
    font-size: .32em;
    vertical-align: top;
    position: relative;
    top: .08em;
    margin-left: .04em;
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
    margin-right: 10px;
    flex: none;
}

.dot.end {
    margin: 0;
    width: 6px;
    height: 6px;
    background: var(--dim);
    justify-self: end;
}

.bar {
    display: inline-block;
    width: .95em;
    height: .13em;
    background: currentColor;
    margin-right: .08em;
    vertical-align: -.02em;
}

.cross {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: none;
}

.cross::before,
.cross::after {
    content: '';
    position: absolute;
    background: #3a3a3f;
}

.cross::before {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
}

.cross::after {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 12px;
    color: #bdbdbd;
    white-space: nowrap;
    transition: background .3s, color .3s, border-color .3s;
}

.pill sup {
    font-size: 9px;
    color: var(--muted);
}

/* Rail: the hairline label row used between every block */
.rail {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 10px 0;
    font-size: 11px;
    color: var(--muted);
}

.rail > * {
    display: inline-flex;
    align-items: center;
}

/* Arrow button: label chip + hot square */
.btn-arrow {
    display: inline-flex;
    align-items: stretch;
    height: 42px;
    background: var(--chip);
    border-radius: 3px;
    overflow: hidden;
    font-size: 13px;
    color: var(--text);
    transition: transform .4s var(--ease);
}

.btn-arrow span {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
}

.btn-arrow i {
    font-style: normal;
    display: inline-grid;
    place-items: center;
    width: 42px;
    background: #2a2a2d;
    color: var(--brand);
    transition: background .3s, color .3s;
}

.btn-arrow:hover i {
    background: var(--brand);
    color: #fff;
}

.btn-arrow.ghost {
    background: transparent;
    border: 1px solid var(--line-2);
}

.btn-arrow.ghost i {
    background: transparent;
    border-left: 1px solid var(--line-2);
}

.link-btn {
    font-size: 12px;
    color: var(--brand);
    padding: 6px 0;
}

.link-btn:hover {
    text-decoration: underline;
}

/* Film grain over everything */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 300;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1s steps(6) infinite;
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); }
    80% { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

/* ----------------------------------------------------------- intro loader */

.no-preload .preloader {
    display: none;
}

html.preloading,
html.preloading body {
    overflow: hidden;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 18px var(--gutter);
    background:
        radial-gradient(60% 50% at 50% 55%, #121316 0%, transparent 70%),
        var(--bg);
    transition: clip-path 1s var(--ease);
    clip-path: inset(0 0 0 0);
}

.pl-done .preloader {
    clip-path: inset(0 0 100% 0);
}

.pl-tl,
.pl-tr {
    position: absolute;
    top: 22px;
}

.pl-tl { left: 22px; }
.pl-tr { right: 22px; }

.pl-stage {
    display: grid;
    place-items: center;
    transition: transform .8s var(--ease), opacity .5s;
}

.pl-done .pl-stage {
    transform: translateY(-40px) scale(.7);
    opacity: 0;
}

.cube {
    /* Three slabs stacked into one cube; they twist in turn around the
       stacking axis, break apart, then lock back together. */
    --s: clamp(64px, 6.4vw, 92px);
    --d: calc(var(--s) / 3);
    width: var(--s);
    height: var(--s);
    perspective: 900px;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6));
}

.rig {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(-32deg) rotateY(48deg);
    animation: rig-sway 7.2s ease-in-out infinite;
}

@keyframes rig-sway {
    0%, 100% { transform: rotateX(-32deg) rotateY(48deg); }
    50% { transform: rotateX(-26deg) rotateY(36deg); }
}

.slab {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: twist 3.6s cubic-bezier(.7, 0, .25, 1) infinite;
}

/* back → front along Z, each a third of the cube */
.slab.s1 { --c: #5d5d62; --hi: #74747a; --lo: #3e3e42; transform: translateZ(calc(var(--d) * -1)); animation-delay: 0s; }
.slab.s2 { --c: #9c9ca1; --hi: #b9b9be; --lo: #6f6f74; transform: translateZ(0); animation-delay: .14s; }
.slab.s3 { --c: #151517; --hi: #2a2a2e; --lo: #0b0b0c; transform: translateZ(var(--d)); animation-delay: .28s; }

@keyframes twist {
    0%, 18% { rotate: z 0deg; }
    42%, 58% { rotate: z 90deg; }
    82%, 100% { rotate: z 180deg; }
}

.sf {
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* front/back: s × s, top/bottom: s × d, left/right: d × s */
.sf.f, .sf.b { width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); }
.sf.f { transform: translateZ(calc(var(--d) / 2)); }
.sf.b { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--lo); }
.sf.t, .sf.u { width: var(--s); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--s) / -2); }
.sf.t { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: var(--hi); }
.sf.u { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: var(--lo); }
.sf.l, .sf.r { width: var(--d); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--d) / -2); }
.sf.l { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.sf.r { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: var(--lo); }

.slab.s3 .sf.f b {
    position: absolute;
    left: 56%;
    top: 58%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px var(--brand);
}

.pl-foot {
    display: grid;
    gap: 10px;
    transition: opacity .4s;
}

.pl-done .pl-foot {
    opacity: 0;
}

.pl-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.pl-pct {
    font-size: clamp(32px, 3.6vw, 60px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.pl-page {
    font-size: clamp(16px, 1.6vw, 26px);
    color: var(--soft);
}

.pl-rail {
    border-top: 0;
    padding: 0;
}

.pl-rail > span:last-child {
    justify-self: end;
}

.pl-bar {
    height: 2px;
    background: var(--line);
    overflow: hidden;
}

.pl-bar i {
    display: block;
    height: 100%;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 52% 1fr 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 14px var(--gutter);
    transition: background .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}

.site-header.past-hero,
.menu-open .site-header {
    background: rgba(6, 6, 7, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-color: var(--line);
}

.menu-open .site-header {
    background: transparent;
    border-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.logo {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .4s, transform .4s var(--ease);
    pointer-events: none;
}

.logo sup {
    font-size: 9px;
    vertical-align: top;
}

.past-hero .logo,
.menu-open .logo {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.meta {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    color: var(--soft);
}

.clock {
    font-variant-numeric: tabular-nums;
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 10px;
    background: var(--chip);
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: transform .4s var(--ease), background .3s;
}

.menu-btn:hover {
    background: #2a2a2d;
}

#menu-toggle {
    height: 44px;
    padding: 0 20px;
    gap: 12px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0;
}

#menu-toggle:hover,
#menu-toggle:focus-visible {
    background: var(--text);
    color: var(--brand);
}

#menu-toggle .menu-icon {
    width: 16px;
    gap: 3.5px;
}

#menu-toggle .menu-icon i {
    height: 2px;
}

.menu-open #menu-toggle .menu-icon i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open #menu-toggle .menu-icon i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    width: 11px;
}

.menu-icon i {
    height: 1.5px;
    background: currentColor;
    transition: transform .4s var(--ease), opacity .3s;
}

.menu-open .menu-icon i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-icon i:nth-child(2) { opacity: 0; }
.menu-open .menu-icon i:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ menu */

.menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: 72px var(--gutter) 24px;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .8s var(--ease), visibility 0s .8s;
}

.menu-open .menu {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path .8s var(--ease), visibility 0s;
}

.menu-links {
    display: flex;
    flex-direction: column;
    margin: auto 0;
}

.menu-links a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(40px, 8.5vw, 132px);
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--soft);
    overflow: hidden;
}

.ml-text {
    display: inline-block;
    transform: translateY(100%);
    transition: transform .9s var(--ease), color .3s;
}

.menu-open .ml-text {
    transform: none;
}

.menu-links a:nth-child(2) .ml-text { transition-delay: .05s; }
.menu-links a:nth-child(3) .ml-text { transition-delay: .1s; }
.menu-links a:nth-child(4) .ml-text { transition-delay: .15s; }
.menu-links a:nth-child(5) .ml-text { transition-delay: .2s; }

.menu-links a:hover .ml-text {
    color: var(--brand);
}

.ml-num {
    font-size: .32em;
    color: var(--dim);
}

.menu-foot {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    font-size: 13px;
    color: var(--muted);
}

.menu-foot a:hover {
    color: var(--text);
}

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative;
    min-height: 100svh;
    min-height: max(100svh, 700px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    padding: 0 var(--gutter);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 66%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 98%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, #000 45%, transparent 98%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-composite: intersect;
}

.hero-bg-img {
    position: absolute;
    inset: -4%;
    background: url('../images/bg_texture.png') 30% 40% / cover no-repeat;
    filter: grayscale(1) contrast(1.15) brightness(.95);
    transform: translate(var(--px, 0), var(--py, 0)) scale(1.06);
    transition: transform 1.2s var(--ease);
    animation: drift 18s ease-in-out infinite alternate, flicker 6s steps(1) infinite;
}

@keyframes drift {
    from { scale: 1; }
    to { scale: 1.08; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    47% { opacity: .92; }
    48% { opacity: 1; }
    83% { opacity: .95; }
}

.hero-bg::after {
    /* Horizontal glitch lines over the photo */
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 4px);
    mix-blend-mode: multiply;
}

.scanlines {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
        radial-gradient(120% 90% at 25% 55%, transparent 40%, rgba(6, 6, 7, .85) 100%);
}

.hero-name {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding-top: 10px;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(64px, 9vw, 176px);
    line-height: .8;
    letter-spacing: -0.03em;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

.hn-line {
    display: inline-block;
    overflow: hidden;
    padding-bottom: .04em;
}

.hn-inner {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.2s var(--ease) .1s;
}

.loaded .hn-inner {
    transform: none;
}

.hero-name sup {
    font-size: .2em;
    top: .1em;
    opacity: 0;
    transition: opacity .6s 1s;
}

.loaded .hero-name sup {
    opacity: 1;
}

.hero-visual {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    min-height: 320px;
    pointer-events: none;
}

.hero-side {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(28px, 4vh, 48px);
    padding: 84px 0 32px;
    min-width: 0;
}

/* Product-pack strip */
.pack-strip {
    overflow: hidden;
    margin-right: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.strip-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: strip 40s linear infinite;
}

.pack-strip:hover .strip-track,
.pack-strip:focus-within .strip-track {
    animation-play-state: paused;
}

@keyframes strip {
    to { transform: translateX(calc(-50% - 5px)); }
}

.pack {
    margin: 0;
    cursor: pointer;
}

.pack-sm {
    /* Two and a half cards fill the hero's right column, like the template. */
    width: clamp(220px, calc((50vw - var(--gutter)) / 2.55), 420px);
}

.pack-sm .pack-frame {
    aspect-ratio: 1 / 1.06;
    transition: border-color .4s;
}

.pack-sm .pack-frame img {
    object-fit: contain;
    padding: 4% 8%;
}

.pack-sm:hover .pack-frame,
.pack-sm:focus-visible .pack-frame {
    border-color: var(--line-2);
}

.pack-sm:hover figcaption span:last-child {
    color: var(--brand);
}

.pack-frame {
    position: relative;
    aspect-ratio: 928 / 1120;
    background: #0c0d0d;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.pack-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease), filter .6s;
}

.pack:hover .pack-frame img {
    transform: scale(1.05);
}

.pack figcaption {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-top: 10px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.pack figcaption span:first-child {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(16px, 1.3vw, 22px);
    letter-spacing: -0.02em;
    color: var(--brand);
}

.pack figcaption span:last-child {
    color: var(--soft);
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-intro {
    position: relative;
    display: grid;
    gap: 22px;
    max-width: 640px;
    padding-right: 64px;
}

.hi-text {
    margin: 0;
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.12;
    color: var(--muted);
}

.hi-lead {
    display: block;
    color: var(--text);
}

.hi-lead .dot {
    width: 6px;
    height: 6px;
    margin: 0 10px 3px 6px;
}

.rotator {
    color: var(--soft);
    display: inline-block;
    transition: opacity .25s, transform .25s;
}

.rotator.out {
    opacity: 0;
    transform: translateY(4px);
}

.hi-year {
    position: absolute;
    top: 0;
    right: 0;
    font-size: clamp(18px, 1.55vw, 24px);
    color: var(--muted);
}

.hero-intro .btn-arrow {
    justify-self: start;
}

.hero-social {
    position: absolute;
    left: var(--gutter);
    top: 50%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-social a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: var(--text);
    color: var(--brand);
    transition: background .3s, color .3s, transform .4s var(--ease);
}

.hero-social a:hover,
.hero-social a:focus-visible {
    background: var(--brand);
    color: #fff;
    transform: translateX(3px);
}

.hero-social svg {
    width: 22px;
    height: 22px;
}

.hero-rail {
    grid-column: 1 / -1;
    grid-row: 3;
}

.scroll-more {
    justify-self: end;
    color: var(--soft);
}

.scroll-more span {
    display: inline-block;
    animation: blink 1.4s steps(2) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ------------------------------------------------------------- statement */

.statement {
    padding: 48px var(--gutter) 120px;
    overflow: hidden;
}

.big {
    font-size: clamp(52px, 11.2vw, 210px);
}

.statement .big {
    font-size: clamp(40px, 8.4vw, 168px);
}

.statement .display:not(.ghost-type) {
    color: var(--soft);
}

.ghost-type {
    color: var(--ghost);
    text-align: right;
    margin-top: .25em;
    will-change: transform;
}

.ghost-type span {
    display: block;
}

[data-lines] .ln {
    display: block;
    overflow: hidden;
    padding-bottom: .02em;
}

[data-lines] .ln > span {
    display: inline-block;
    white-space: nowrap;
}

.js [data-lines] .ln > span {
    transform: translateY(105%);
    transition: transform 1.1s var(--ease);
}

.js [data-lines].in .ln > span {
    transform: none;
}

.js [data-lines] .ln:nth-child(2) > span { transition-delay: .08s; }
.js [data-lines] .ln:nth-child(3) > span { transition-delay: .16s; }

/* --------------------------------------------------------------- section */

.section {
    position: relative;
    padding: 80px var(--gutter);
}

.title-row {
    position: relative;
    color: var(--soft);
    margin: 140px 0 0;
}

.tr-num {
    position: absolute;
    right: 0;
    bottom: 0;
    line-height: .84;
    transition: opacity 1s .3s;
}

.js .title-row:not(.in) .tr-num {
    opacity: 0;
}

/* Reveal */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}

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

/* ----------------------------------------------------------------- about */

.about-panel {
    display: grid;
    grid-template-columns: 1fr 1.3fr 3fr;
    gap: 24px;
    align-items: start;
    margin-top: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
}

.ap-index {
    font-size: clamp(28px, 2.6vw, 40px);
    color: var(--muted);
    font-weight: 300;
    align-self: center;
    justify-self: center;
}

.ap-card {
    position: relative;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #0c0d0d;
}

.ap-card .cross {
    position: absolute;
}

.ap-card .cross.tl { top: 10px; left: 10px; }
.ap-card .cross.br { bottom: 10px; right: 10px; }

.ap-copy {
    display: grid;
    gap: 40px;
    align-self: center;
}

.ap-text {
    margin: 0;
    font-size: clamp(22px, 2.7vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--muted);
}

.ap-label {
    font-size: 11px;
    letter-spacing: 0;
    color: var(--muted);
    vertical-align: top;
    margin-right: clamp(20px, 5vw, 90px);
}

.ap-text .lead {
    color: var(--text);
}

.ap-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    border-top: 1px solid var(--line);
}

.ap-stats .stat {
    padding: 14px 0 0;
}

.ap-stats dd {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ap-stats dt {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
}

.quote-block {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    padding: 100px 0 60px;
}

.quote-mark {
    width: clamp(90px, 10vw, 150px);
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
}

.quote-paras {
    display: grid;
    gap: 48px;
}

.quote-paras p {
    margin: 0;
    font-size: clamp(20px, 2.3vw, 34px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--muted);
}

.circled {
    display: inline-grid;
    place-items: center;
    width: 1.05em;
    height: 1.05em;
    border: 1.5px solid var(--dim);
    border-radius: 50%;
    font-size: .6em;
    vertical-align: .15em;
    margin-right: 3.2em;
    color: var(--muted);
    letter-spacing: 0;
}

.signature {
    display: grid;
    grid-template-columns: 1fr 1.6fr auto;
    gap: 16px;
    margin-left: calc(46.5% + 20px);
    padding: 18px 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--soft);
}

.signature span:last-child {
    color: var(--muted);
}

/* ------------------------------------------------------------ experience */

.xp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.xp-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
}

.xp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.rail-lg {
    padding: 14px 0;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(16px, 2.1vw, 34px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--soft);
}

.rail-lg .dot {
    width: .22em;
    height: .22em;
    margin-right: .4em;
    background: var(--brand);
}

.rail-lg > span:last-child {
    color: var(--brand);
}

.xp-card {
    font-family: var(--font-display);
    font-stretch: 125%;
    letter-spacing: -0.01em;
}

.xp-top {
    font-size: clamp(16px, 1.4vw, 22px);
    font-weight: 900;
}

.xp-top .pill {
    height: 30px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
}

.xp-body {
    display: grid;
    grid-template-columns: minmax(160px, .85fr) 1.15fr;
    gap: 18px;
    padding: 10px;
    flex: 1;
}

.xp-photo {
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #0c0d0d;
    align-self: start;
}

.xp-photo img {
    width: 100%;
    aspect-ratio: 928 / 1120;
    object-fit: cover;
    filter: grayscale(.25) contrast(1.05);
    transition: filter .6s, transform .9s var(--ease);
}

.xp-card:hover .xp-photo img {
    filter: none;
    transform: scale(1.03);
}

.xp-info {
    display: grid;
    align-content: start;
    gap: 22px;
    font-size: 13.5px;
    padding-top: 4px;
}

.xp-when {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand);
}

.xp-project h4 {
    margin: 0 0 10px;
    font-size: clamp(14px, 1.15vw, 18px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.xp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
    display: grid;
    border-bottom: 1px solid var(--line);
}

.xp-list li {
    position: relative;
    padding: 10px 0 10px 16px;
    border-top: 1px solid var(--line);
    font-weight: 400;
    line-height: 1.55;
}

.xp-list li::before {
    content: '/';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--brand);
}

.xp-list strong {
    color: var(--text);
    font-weight: 700;
}

.xp-list li.extra {
    display: none;
}

.xp-list.expanded li.extra {
    display: block;
}

.xp-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.xp-company {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(22px, 2.4vw, 34px);
    text-transform: uppercase;
    line-height: .9;
}

.xp-role {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--muted);
}

.xp-num {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(22px, 2.4vw, 34px);
    color: var(--dim);
    line-height: .9;
}

/* --------------------------------------------------------- projects pack */

/* ---- project intro (see playProjectIntro) */
.pack-grid.intro-pending .pack-cell {
    opacity: 1;
    transform: none;
}

.pack-cell .pc-stage > *,
.pack-cell .pc-foot {
    transition: opacity .6s ease;
}

.pack-grid.intro-pending .pc-stage > *,
.pack-grid.intro-pending .pc-foot {
    opacity: 0;
}

.intro-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.intro-card {
    position: absolute;
    border-radius: 6px;
    overflow: hidden;
    background: #0c0d0d;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
    will-change: transform;
}

.intro-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-word {
    position: absolute;
    z-index: 0;
    display: grid;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(56px, 11vw, 200px);
    line-height: .82;
    letter-spacing: -0.03em;
    color: var(--soft);
    opacity: 0;
}

.intro-word span:last-child {
    padding-left: .5em;
}

.pack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.pack-count {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(13px, 1.1vw, 17px);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--muted);
}

.pack-count b {
    color: var(--brand);
    font-weight: 900;
}

.pack-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-wrap {
    position: relative;
}

.filter-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    transition: background .3s, color .3s, transform .4s var(--ease);
}

.filter-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.open {
    background: var(--text);
    color: var(--brand);
}

.filter-btn.has-filter svg {
    fill: currentColor;
}

.fb-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--text);
    color: #000;
    border: 2px solid var(--bg);
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: 10px;
    line-height: 16px;
}

.filter-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
    width: max-content;
    min-width: 290px;
    padding: 8px;
    background: var(--panel-2);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    font-family: var(--font-display);
    font-stretch: 125%;
    animation: pop .35s var(--ease);
}

@keyframes pop {
    from { opacity: 0; transform: translateY(-6px); }
}

.fp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 8px 10px 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.fp-clear {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand);
}

.fp-clear:hover {
    color: var(--text);
}

.fp-list {
    display: grid;
    padding-top: 6px;
}

.fp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--soft);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.fp-item:hover {
    background: var(--chip);
    color: var(--text);
}

.fp-item sup {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
}

.fp-item input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid var(--muted);
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.fp-item input::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg) scale(0);
    transition: transform .2s var(--ease);
}

.fp-item input:checked {
    background: var(--brand);
    border-color: var(--brand);
}

.fp-item input:checked::after {
    transform: translateY(-1px) rotate(45deg) scale(1);
}

.fp-item:has(input:checked) {
    color: var(--text);
}

.round-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-size: 18px;
    transition: transform .4s var(--ease), background .3s, color .3s;
}

.round-btn:hover {
    background: var(--text);
    color: #000;
}

.pack-grid {
    display: grid;
    background: #0c0d0d;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-2);
    border-left: 1px solid var(--line-2);
}

.pack-cell {
    border-right: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    cursor: pointer;
    outline-offset: -2px;
}

.pc-stage {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1.08;
    padding: 72px 18% 48px;
    overflow: hidden;
}

.pc-num {
    position: absolute;
    left: 18px;
    top: 16px;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(22px, 2.1vw, 34px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.pc-live {
    position: absolute;
    right: 18px;
    top: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--text);
    color: #000;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: background .3s, color .3s, transform .4s var(--ease);
}

.pc-live .dot {
    width: 6px;
    height: 6px;
    margin-right: 8px;
    background: var(--brand);
}

.pc-live:hover,
.pc-live:focus-visible {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

.pc-live:hover .dot,
.pc-live:focus-visible .dot {
    background: #fff;
}

.pc-stage .pack-frame {
    width: 100%;
    max-width: 280px;
    border: 0;
    background: transparent;
    transition: transform .9s var(--ease);
}

.pack-cell:hover .pc-stage .pack-frame {
    transform: translateY(-14px) scale(1.03);
}

.pc-title {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 34px;
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(18px, 1.8vw, 28px);
    line-height: .92;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--soft);
    transition: color .35s, transform .7s var(--ease);
    text-shadow: 0 2px 24px #000;
}

.pack-cell:hover .pc-title,
.pack-cell:focus-visible .pc-title {
    color: var(--brand);
    transform: translateX(6px);
}

.pc-dl,
.pc-dr {
    position: absolute;
    bottom: 18px;
    margin: 0;
    background: var(--dim);
}

.pc-dl { left: 18px; }
.pc-dr { right: 18px; }

.pc-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--line-2);
    font-size: 12px;
    color: var(--muted);
}

.pack-cell:hover .pc-foot span:first-child {
    color: var(--text);
}

/* ------------------------------------------------------------ spec lists */

.manifesto {
    position: relative;
    margin: 70px 0 90px;
    font-size: clamp(28px, 4.1vw, 68px);
    line-height: .98;
    letter-spacing: -0.035em;
    color: var(--muted);
}

.manifesto .indent {
    display: inline-block;
    width: var(--col);
}

.manifesto .cross.tl {
    position: absolute;
    left: -2px;
    top: .32em;
}

/* Toolkit / education / certifications share the work-section type */
.spec-list,
.award-list {
    font-family: var(--font-display);
    font-stretch: 125%;
    letter-spacing: -0.01em;
}

.spec-list {
    border-bottom: 1px solid var(--line);
}

.spec-row {
    display: grid;
    grid-template-columns: calc(var(--col) + 20px) minmax(200px, 340px) 1fr 12px;
    align-items: center;
    gap: 0 12px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.spec-num,
.aw-num {
    font-weight: 900;
    font-size: clamp(22px, 2.1vw, 34px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.spec-label {
    margin: 0;
    font-size: clamp(15px, 1.4vw, 22px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.spec-row .pill {
    height: 34px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
}

.spec-row .pill:hover {
    border-color: var(--brand);
    color: var(--text);
}

.award-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.award-list li {
    display: grid;
    grid-template-columns: calc(var(--col) + 20px) 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.aw-text {
    font-size: clamp(14px, 1.3vw, 20px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.aw-text .muted {
    font-weight: 400;
    text-transform: none;
}

.aw-score {
    font-weight: 900;
    font-size: clamp(20px, 1.9vw, 30px);
    letter-spacing: -0.02em;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- contact */

.contact {
    padding: 40px var(--gutter) var(--gutter);
}

.contact-panel {
    position: relative;
    padding: clamp(16px, 4vw, 56px);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 80% 0%, rgba(255, 255, 255, .16), transparent 70%),
        radial-gradient(40% 60% at 0% 60%, rgba(255, 255, 255, .1), transparent 70%),
        radial-gradient(circle at 50% 50%, #1d1d20 34%, transparent 36%) 0 0 / 12px 12px,
        #0a0a0b;
}

.contact-panel > * {
    position: relative;
    background: var(--panel);
}

.contact-panel > .rail {
    padding: 10px 16px;
    border-top: 0;
    border-radius: 6px 6px 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid var(--line);
}

.contact-left {
    padding: 24px 20px 32px;
    display: grid;
    gap: 22px;
    align-content: start;
}

.contact-direct {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.15;
}

.c-email {
    color: var(--brand);
}

.c-email:hover,
.c-phone:hover {
    text-decoration: underline;
}

.contact-form {
    display: grid;
    gap: 6px;
    padding-top: 20px;
}

.cf-label {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--muted);
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #151517;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 12px;
    font-size: 12px;
    resize: vertical;
    transition: border-color .3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .04em;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
}

.contact-form .btn-arrow {
    justify-self: start;
    margin-top: 10px;
}

.cl-kicker {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(16px, 1.5vw, 24px);
    letter-spacing: -0.02em;
    color: var(--soft);
}

.cl-kicker .dot {
    background: var(--brand);
}

.contact-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 24px 20px 32px;
    border-left: 1px solid var(--line);
}

.contact-shout {
    font-size: clamp(56px, 8.2vw, 164px);
    line-height: .84;
    color: var(--soft);
}

.contact-shout .hot {
    color: var(--brand);
}

.js .contact-shout .ln:nth-child(4) > span {
    transition-delay: .24s;
}

.shout-note {
    margin: 0;
    max-width: 38ch;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 700;
    font-size: clamp(13px, 1.1vw, 17px);
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--muted);
}

.shout-note .dot {
    background: var(--brand);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 6px 6px;
    font-size: 11px;
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--text);
}

/* ------------------------------------------------------------------ modal */

.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .3s;
}

.modal-panel {
    position: relative;
    width: min(1280px, calc(100vw - 24px));
    max-height: calc(100svh - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 56px 20px 24px;
    transform: translateY(30px);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .3s;
}

.modal.open .modal-backdrop,
.modal.open .modal-panel {
    opacity: 1;
}

.modal.open .modal-panel {
    transform: none;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.wd-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 70px 0 14px;
}

.wd-title {
    font-size: clamp(36px, 6.4vw, 104px);
    max-width: 14ch;
}

.wd-head .pill {
    height: 26px;
    font-size: 11px;
}

.wd-grid {
    display: grid;
    grid-template-columns: minmax(220px, 420px) 1fr;
    gap: 32px;
}

.wd-media {
    display: grid;
    gap: 18px;
    align-content: start;
}

.wd-num {
    font-size: clamp(48px, 6vw, 96px);
}

.wd-copy {
    display: grid;
    gap: 18px;
    align-content: start;
}

.wd {
    /* Project detail uses the hero's extended typeface throughout. */
    font-family: var(--font-display);
    font-stretch: 125%;
    letter-spacing: -0.01em;
}

.wd .pill,
.wd .btn-arrow {
    font-weight: 500;
}

.wd-tagline {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.02em;
}

.wd-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.wd-list li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.55;
}

.wd-list strong {
    color: var(--text);
    font-weight: 700;
}

.wd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.modal-panel.wide {
    width: min(1400px, calc(100vw - 24px));
    padding: 0;
}

.demo-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 120px 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.demo-dots {
    display: inline-flex;
    gap: 6px;
}

.demo-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-2);
}

.demo-dots i:first-child {
    background: var(--brand);
}

.demo-title {
    flex: 1;
    color: var(--soft);
}

.demo-frame {
    position: relative;
    height: min(82svh, 900px);
}

.demo-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    opacity: 0;
    transition: opacity .4s;
}

.demo.loaded iframe {
    opacity: 1;
}

.demo-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--muted);
}

/* ------------------------------------------------------------------ toast */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 200;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    padding: 10px 16px;
    background: var(--text);
    color: #000;
    border-radius: 999px;
    font-size: 13px;
    transition: opacity .3s, transform .4s var(--ease);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
    .about-panel {
        grid-template-columns: 1fr 2fr;
    }

    .ap-index {
        display: none;
    }

    .xp-grid {
        grid-template-columns: 1fr;
    }

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

    .pack-head {
        flex-wrap: wrap;
    }

}

@media (max-width: 860px) {
    :root {
        --gutter: 16px;
        --col: 56px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-header .meta {
        display: none;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(260px, 38svh) auto auto;
    }

    .hero-name {
        padding-top: 64px;
        font-size: clamp(48px, 17.5vw, 150px);
    }

    .hero-visual {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
    }

    .hero-bg {
        width: 100%;
        opacity: .7;
    }

    .hero-side {
        grid-column: 1;
        grid-row: 3;
        padding: 12px 0 28px;
        gap: 28px;
    }

    .hero-rail {
        grid-row: 4;
    }

    .hero-intro {
        padding-right: 48px;
    }

    .hero-social {
        top: calc(80px + 17.5vw);
        left: auto;
        right: var(--gutter);
    }

    .rail {
        grid-template-columns: 1fr 1fr auto;
    }

    .rail-lg {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
        font-size: 14px;
    }

    .hero-social a {
        width: 40px;
        height: 40px;
    }

    .hero-social svg {
        width: 19px;
        height: 19px;
    }

    .statement {
        padding-bottom: 60px;
    }

    .title-row {
        margin-top: 90px;
    }

    .tr-num {
        position: static;
        display: block;
        text-align: right;
        margin-top: .1em;
    }

    .about-panel {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .ap-card {
        max-width: 260px;
    }

    .quote-block {
        grid-template-columns: 1fr;
        padding: 60px 0 40px;
    }

    .circled {
        margin-right: 1.2em;
    }

    .signature {
        margin-left: 0;
        grid-template-columns: auto 1fr auto;
        font-size: 12px;
    }

    .xp-body {
        grid-template-columns: 1fr;
    }

    .xp-photo {
        max-width: 220px;
    }


    .pack-grid {
        grid-template-columns: 1fr;
    }

    .pc-stage {
        aspect-ratio: auto;
        padding: 52px 22% 76px;
    }

    .spec-num,
    .aw-num {
        font-size: 18px;
    }

    .spec-row {
        grid-template-columns: 64px 1fr 8px;
        gap: 12px;
    }

    .spec-row .pills {
        grid-column: 1 / -1;
    }

    .spec-row .dot.end {
        grid-row: 1;
        grid-column: 3;
    }

    .spec-row .pill {
        height: 30px;
        font-size: 12px;
        padding: 0 12px;
    }

    .award-list li {
        grid-template-columns: 64px 1fr;
        align-items: start;
    }

    .aw-score {
        grid-column: 2;
    }

    .manifesto .indent {
        width: 1.2em;
    }

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

    .contact-right {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .contact-shout {
        font-size: clamp(40px, 15.5vw, 96px);
    }

    /* "INTELLIGENT" is the longest title word; keep it on screen */
    .title-long {
        font-size: 10.2vw;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }

    .wd-grid {
        grid-template-columns: 1fr;
    }

    .wd-media .pack-frame {
        max-width: 280px;
    }

    .modal-panel {
        padding: 52px 14px 20px;
    }

    .wd-head {
        padding-top: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .strip-track,
    .hero-bg-img {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

}
