/* ==========================================================================
   Variant "immersive": cinematic scroll story (loaded after site.css)
   Always dark: the particles and the shader are lit, not printed.
   ========================================================================== */

:root, :root[data-theme="light"] {
    --bg: #05070a;
    --surface: rgba(255, 255, 255, .04);
    --surface-solid: #0c0f13;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .18);
    --text: #f1f4f2;
    --muted: #a3ada7;
    --faint: #6b746f;
    --accent: #a6f07f;
    --accent-ink: #07110a;
    --accent-soft: rgba(166, 240, 127, .12);
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
}
body.variant-immersive { background: var(--bg); cursor: default; }
.variant-immersive .is-bare { min-height: 100vh; }

/* ---------- Fixed layers ---------- */

.im-bg, .im-particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.im-bg { z-index: 0; background: radial-gradient(ellipse at 30% 20%, #10301a, transparent 60%), radial-gradient(ellipse at 80% 70%, #0d2238, transparent 60%), var(--bg); }
.im-particles { z-index: 1; }
.im-grain {
    position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
    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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: im-grain 1s steps(6) infinite;
}
@keyframes im-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }
.im { position: relative; z-index: 3; }

/* Custom cursor (fine pointers only, set up by JS): an exact dot and a ring that follows it */
.im-cursor, .im-cursor-dot { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .25s; }
.has-cursor:not(.is-native) .im-cursor, .has-cursor:not(.is-native) .im-cursor-dot { opacity: 1; }
.im-cursor-ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.im-cursor.is-hover .im-cursor-ring { transform: scale(1.45); border-color: var(--accent); background: rgba(166, 240, 127, .08); }
.im-cursor.is-down .im-cursor-ring { transform: scale(.8); }
.im-cursor.is-hover.is-down .im-cursor-ring { transform: scale(1.15); }
.im-cursor-dot span { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; transition: background-color .3s; }
.im-cursor.is-hover + .im-cursor-dot span { background: var(--accent); }
/* The native cursor is hidden only while the custom one is shown (not over fields or dialogs) */
.has-cursor:not(.is-native), .has-cursor:not(.is-native) a, .has-cursor:not(.is-native) button, .has-cursor:not(.is-native) label { cursor: none; }

/* ---------- First load: flash, loader, the interface arrives after the name ---------- */

.im-flash { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .95), color-mix(in srgb, var(--flash, #a6f07f) 55%, transparent) 16%, color-mix(in srgb, var(--flash, #a6f07f) 14%, transparent) 40%, transparent 65%); }
.im.is-flash .im-flash { animation: im-flash var(--flash-t, .8s) cubic-bezier(.2, .8, .2, 1) forwards; }
/* Peak strength comes from JS: soft for the intermediate explosions, strong only for the last one */
@keyframes im-flash { 0% { opacity: 0; transform: scale(var(--flash-s0, .5)); } 8% { opacity: var(--flash-o, .45); } 100% { opacity: 0; transform: scale(var(--flash-s1, 1.2)); } }
.im-loader { position: fixed; left: 0; right: 0; bottom: 7vh; z-index: 5; text-align: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .6s; pointer-events: none; }
.im-loader b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.im.is-loading .im-loader { opacity: 1; }

.im-header, .im-index, .im-intro-inner { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .im:not(.is-ready) .im-header { opacity: 0; transform: translateY(-24px); animation: im-safety 0s 7s forwards; }
.js .im:not(.is-ready) .im-index { opacity: 0; transform: translate(24px, -50%); animation: im-safety 0s 7s forwards; }
.js .im:not(.is-ready) .im-intro-inner { opacity: 0; transform: translateY(24px); animation: im-safety 0s 7s forwards; }
.im.is-ready .im-header { transition-delay: .15s; }
.im.is-ready .im-index { transition-delay: .45s; }
.im.is-ready .im-intro-inner { transition-delay: .3s; }
/* If the script never runs, the interface shows anyway */
@keyframes im-safety { to { opacity: 1; transform: none; } }
.js .im:not(.is-ready) .im-index { animation-name: im-safety-index; }
@keyframes im-safety-index { to { opacity: 1; transform: translateY(-50%); } }

/* ---------- Header, progress, chapter index ---------- */

.im-header { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 36px); pointer-events: none; }
.im-header > * { pointer-events: auto; }
.im-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; }
.im-header-actions { display: flex; gap: 8px; }
.im-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(5, 7, 10, .4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; }
.im-pill .icon { width: 15px; height: 15px; }
.im-pill-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.im-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.im-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), #7fd4ff, #c79bf2); }

.im-index { position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; z-index: 20; transform: translateY(-50%); display: grid; gap: 10px; }
.im-index a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border-strong); transition: background-color .3s, transform .3s var(--ease), border-color .3s; }
.im-index a.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.im-index a span { position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; font-size: 12px; font-family: var(--font-mono); letter-spacing: .04em; color: var(--muted); opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.im-index a:hover span, .im-index a.is-active span { opacity: 1; transform: translate(0, -50%); }
.im-index a.is-active span { color: var(--text); }

/* ---------- Chapters ---------- */

.im-ch { position: relative; min-height: 130vh; display: flex; align-items: center; padding: 18vh clamp(20px, 6vw, 96px); }
.im-copy { width: min(560px, 42vw, 100%); }
.im-copy-right { margin-left: auto; }
.im-copy-wide { width: min(980px, 100%); margin: 0 auto; }
.im-copy-center { width: min(860px, 100%); margin: 0 auto; text-align: center; }
.im-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.im-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.im-copy-center .im-kicker { justify-content: center; }
.im-kicker span { color: var(--accent); }
.im-kicker::after { content: ''; width: 60px; height: 1px; background: var(--border-strong); }
.im-display { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
/* Titles in the side column (about 40% of the width) are smaller than the centred ones */
.im-copy:not(.im-copy-wide):not(.im-copy-center) .im-display { font-size: clamp(2.1rem, 3.5vw, 3.3rem); }
.im-display em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; background: linear-gradient(100deg, var(--accent), #7fd4ff 60%, #c79bf2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.im-lead { margin-top: 24px; font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.65; color: var(--muted); }
.im-body { margin-top: 18px; color: var(--muted); line-height: 1.7; }
.im-meta { margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* Split words: hidden below a mask, then slide up */
.im-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.im-word > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--w) * 45ms); }
.is-in .im-word > span { transform: none; }
.js [data-fade] { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(.25s + var(--d, 0) * 90ms); }
.js .is-in [data-fade], .js [data-fade].is-in { opacity: 1; transform: none; filter: none; }

/* Intro */
.im-intro { min-height: 100vh; justify-content: center; align-items: flex-end; padding-bottom: 9vh; }
.im-intro-inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.im-intro-kicker { font-family: var(--font-mono); font-size: clamp(12px, 1.3vw, 14px); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.im-scroll { display: grid; justify-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-family: var(--font-mono); }
.im-scroll span { width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); animation: im-scroll 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes im-scroll { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.im-cursor-hint { font-size: 12.5px; color: var(--faint); opacity: 0; animation: im-hint 1s 3.2s forwards; }
@keyframes im-hint { to { opacity: 1; } }
@media (pointer: coarse) { .im-cursor-hint { display: none; } }

/* Stats */
.im-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 36px 0 0; }
.im-stats dt { font-size: clamp(2.2rem, 3.8vw, 3.3rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, #9aa7a0); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.im-stats dd { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.im-stats dd b { color: var(--accent); font-family: var(--font-mono); font-weight: 500; font-size: 12px; }
.im-stats-small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.im-stats-small dt { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* Glass cards */
.im-glass, .im-card, .im-decision {
    position: relative; border: 1px solid var(--border); border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow);
}
.im-areas { display: grid; gap: 14px; margin-top: 34px; }
.im-glass { padding: 22px 24px; }
.im-glass h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.im-glass p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.im-glass ul { margin-top: 12px; display: grid; gap: 6px; }
.im-glass li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text); line-height: 1.5; }
.im-glass li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 1px; background: var(--accent); }
.im-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.im-points { margin-top: 24px; display: grid; gap: 10px; }
.im-points li { position: relative; padding-left: 26px; line-height: 1.55; }
.im-points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--accent); box-shadow: 0 0 12px var(--accent); }
.im-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.im-tags span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.im-quote { margin-top: 26px; font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--text); }
.im-aside { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; line-height: 1.6; }
.im-aside b { color: var(--text); }
.im-base { margin-top: 16px; color: var(--muted); font-size: 15px; }
.im-base b { color: var(--accent); }

/* Journey */
.im-journey { position: relative; display: grid; gap: 12px; margin-top: 30px; }
.im-journey::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--accent), #7fd4ff, transparent); }
.im-journey li { position: relative; display: grid; grid-template-columns: 96px 1fr; padding-left: 30px; align-items: baseline; }
.im-journey li::before { content: ''; position: absolute; left: 1px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 14px var(--accent); }
.im-journey span { grid-row: 1 / 3; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.im-journey b { font-size: 1.1rem; }
.im-journey small { color: var(--muted); font-size: 13.5px; }

/* House decisions */
.im-decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.im-decision { display: grid; gap: 6px; padding: 16px; border-radius: 16px; }
.im-decision .icon { width: 22px; height: 22px; color: var(--accent); }
.im-decision b { font-size: 15px; }
.im-decision span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.im-stats-small { margin-top: 26px; }

/* Pinned horizontal track */
.im-pin { display: block; min-height: auto; height: 420vh; padding: 0; }
.im-pin-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 40px); overflow: hidden; padding: 84px clamp(20px, 6vw, 96px) 28px; }
.im-pin-head { max-width: 640px; }
.im-pin-head .im-display { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.im-hint { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); }
.im-track { display: flex; gap: 22px; width: max-content; transform: translate3d(var(--x, 0), 0, 0); will-change: transform; }
.im-card { flex: none; width: clamp(280px, 30vw, 420px); min-height: 280px; padding: 30px; display: flex; flex-direction: column; gap: 14px; transform: perspective(900px) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease); }
.im-card-n { font-family: var(--font-serif); font-style: italic; font-size: 4rem; line-height: 1; background: linear-gradient(100deg, var(--accent), #7fd4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.im-card h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.im-card p { color: var(--muted); line-height: 1.6; }
.im-card-loop { width: clamp(320px, 40vw, 560px); }
.im-card-loop ol { display: grid; gap: 8px; counter-reset: s; }
.im-card-loop li { counter-increment: s; position: relative; padding-left: 28px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.im-card-loop li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 11px/18px var(--font-mono); text-align: center; }
.im-card-loop b { color: var(--text); }

/* Short screens: the pinned head and cards must fit under the header */
@media (min-width: 861px) and (max-height: 820px) {
    .im-pin-head .im-lead { margin-top: 12px; font-size: .98rem; }
    .im-card { min-height: 0; padding: 22px 24px; gap: 10px; }
    .im-card-n { font-size: 2.8rem; }
    .im-card h3 { font-size: 1.2rem; }
    .im-card p, .im-card-loop li { font-size: 13.5px; }
}

/* Career: starts lower so the timeline drawn by the particles sits above the title */
.im-ch-low { align-items: flex-start; padding-top: 46vh; }
.im-stack.im-ch-low { align-items: stretch; justify-content: flex-start; }

/* Career */
.im-career { position: relative; display: grid; gap: 0; margin-top: 44px; }
.im-career li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--border); }
.im-career li:last-child { border-bottom: 1px solid var(--border); }
.im-year { grid-row: span 2; font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.im-career li > h3, .im-career li > p { grid-column: 2; }
.im-career h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); letter-spacing: -.02em; }
.im-career h3 em { font-family: var(--font-serif); font-weight: 400; color: var(--faint); }
.im-career h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.im-career h3 a:hover { background-size: 100% 1px; }
.im-career p { margin-top: 8px; color: var(--muted); line-height: 1.6; max-width: 70ch; }

/* Stack marquees */
.im-stack { flex-direction: column; justify-content: center; gap: 48px; padding-left: 0; padding-right: 0; min-height: 110vh; }
.im-marquees { display: grid; gap: 18px; width: 100%; transform: rotate(-3deg); }
.im-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.im-marquee > div { display: flex; gap: 14px; padding-right: 14px; flex: none; animation: im-marquee 38s linear infinite; }
.im-marquee.is-reverse > div { animation-direction: reverse; animation-duration: 44s; }
.im-marquee span { flex: none; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 500; white-space: nowrap; }
.im-marquee span b { color: var(--accent); font-weight: 600; }
.im-marquee span:has(b) { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
@keyframes im-marquee { to { transform: translateX(-100%); } }
.im-also { padding: 0 20px; text-align: center; color: var(--muted); }

/* Personal */
.im-interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; margin-top: 30px; }
.im-interests li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.im-interests .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); flex: none; }
.im-interests a { color: var(--accent); }
.im-traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--border); }
.im-traits p { display: grid; gap: 4px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.im-traits b { color: var(--text); }

/* Contact */
.im-contact { flex-direction: column; justify-content: flex-end; gap: 40px; min-height: 160vh; padding-top: 52vh; }
.im-contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.im-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .04); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 600; transition: background-color .3s, border-color .3s; }
.im-btn:hover { border-color: var(--text); }
.im-btn .icon { width: 18px; height: 18px; }
.im-btn-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 40px -6px var(--accent); }
.im-form { width: min(680px, 100%); margin: 0 auto; }
.im-form .contact-form { background: rgba(12, 15, 19, .6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-color: var(--border); }
.im-form .input { background: rgba(5, 7, 10, .6); }
.im-footer { width: 100%; display: grid; gap: 6px; padding-top: 40px; text-align: center; font-size: 13px; color: var(--faint); }
.im-footer a:hover { color: var(--text); }

/* [data-magnetic] elements move with transform set by JS */
[data-magnetic] { transition: transform .35s var(--ease); will-change: transform; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
    /* On phones every shape sits in the top 34vh of its chapter, so the text starts below it */
    .im-ch, .im-ch-low { min-height: auto; padding: 40vh 20px 8vh; }
    .im-intro { padding-top: 0; }
    .im-copy, .im-copy-right { width: 100%; margin: 0; }
    .im-index { display: none; }
    .im-brand span:last-child { display: none; }
    .im-stats-small, .im-decisions, .im-interests, .im-traits { grid-template-columns: 1fr 1fr; }
    /* the pinned chapter reserves the shape space once, on its inner box (not on the chapter as well) */
    .im-pin { height: auto; padding: 0; }
    .im-pin-inner { position: static; height: auto; padding: 40vh 20px 8vh; }
    .im-track { width: auto; flex-direction: column; transform: none !important; }
    .im-card, .im-card-loop { width: 100%; min-height: 0; transform: none !important; }
    .im-career li { grid-template-columns: 1fr; gap: 6px; }
    .im-career li > h3, .im-career li > p { grid-column: 1; }
    .im-year { grid-row: auto; }
    .im-contact { min-height: auto; padding-top: 46vh; }
    .im-intro { min-height: 100vh; }
}
@media (max-width: 520px) {
    .im-decisions, .im-interests, .im-traits { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .im-grain, .im-scroll span, .im-marquee > div { animation: none; }
    .im-word > span { transform: none; transition: none; }
    .js [data-fade] { opacity: 1; transform: none; filter: none; transition: none; }
    .im-cursor-hint { opacity: 1; animation: none; }
    .js .im:not(.is-ready) .im-header, .js .im:not(.is-ready) .im-intro-inner { opacity: 1; transform: none; }
    .js .im:not(.is-ready) .im-index { opacity: 1; transform: translateY(-50%); }
    .im-flash, .im-loader { display: none; }
}
