/* =====================================================================
   Mohan George · Portfolio v2 — home page sections
   ===================================================================== */

.section { padding: clamp(96px, 12vw, 150px) 0; position: relative; background: #0c0c11; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: hsl(152 80% 55%); flex: none; box-shadow: 0 0 0 0 hsl(152 80% 55% / .6); animation: pulse 2.2s ease-out infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 hsl(152 80% 55% / .55); } 80%, 100% { box-shadow: 0 0 0 10px hsl(152 80% 55% / 0); } }

/* ---------- Spine navigator (left) ---------- */
.spine { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 80; --sp: 0; }
.spine__track { position: absolute; left: 6px; top: 7px; width: 2px; height: 190px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.spine__fill { position: absolute; inset: 0 0 auto 0; height: calc(var(--sp) * 100%); background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--glow); }
.spine__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 21px; position: relative; }
.spine__list a { position: relative; display: block; width: 14px; height: 14px; }
.spine__node { position: absolute; inset: 0; display: grid; place-items: center; }
.spine__node::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim);
  transition: all .45s var(--ease);
}
.spine__list a:hover .spine__node::before { background: var(--ink); transform: scale(1.4); }
.spine__list a.is-passed .spine__node::before { background: var(--accent); }
.spine__list a.is-active .spine__node::before {
  width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg);
  background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent), 0 0 18px var(--glow);
}
.spine__label {
  position: absolute; left: 28px; top: 50%; transform: translate(-6px, -50%);
  white-space: nowrap; padding: 6px 12px; border-radius: 100px;
  background: hsl(var(--h) 40% 9% / .9); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.spine__label b { font-family: var(--mono); font-weight: 500; color: var(--accent); margin-right: 4px; font-size: 12px; }
.spine__list a:hover .spine__label, .spine__list a:focus-visible .spine__label, .spine__list a.is-flash .spine__label { opacity: 1; transform: translate(0, -50%); }
.spine__now { margin-top: 26px; margin-left: 1px; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.spine__pct { font-family: var(--mono); color: var(--accent); }
.spine__name { font-weight: 600; letter-spacing: .02em; }
@media (max-width: 1100px) { .spine { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: stretch; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 46% at 70% 62%, hsl(var(--h) 95% 55% / .30), transparent 70%),
    radial-gradient(30% 30% at 88% 30%, hsl(var(--h2) 95% 60% / .14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, hsl(var(--h) 55% 7%) 62%, var(--bg) 100%);
}
.hero__floor {
  position: absolute; left: -30%; width: 160%; top: 66%; height: 90%;
  transform-origin: 50% 0; transform: perspective(380px) rotateX(66deg);
  background-image:
    linear-gradient(hsl(var(--h) 95% 70% / .32) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--h) 95% 70% / .32) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 60%, transparent 100%);
  animation: floor-run 5s linear infinite, fade-in 1.6s var(--ease) both;
}
@keyframes floor-run { to { background-position: 0 56px, 0 0; } }
.hero__horizon { position: absolute; left: 0; right: 0; top: 66%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent); box-shadow: 0 0 24px 2px var(--glow); opacity: .8; animation: fade-in 1.6s var(--ease) .2s both; }
@keyframes fade-in { from { opacity: 0; } }

.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, hsl(var(--h) 48% 4.6% / .7) 35%, transparent 62%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding-top: 110px; position: relative; }
.hero__copy { padding-bottom: 80px; position: relative; z-index: 2; }
.hero__status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 16px 8px 14px; border-radius: 100px; border: 1px solid var(--line-2); background: hsl(var(--h) 40% 10% / .5); backdrop-filter: blur(8px); font-size: 15px; color: var(--ink-2); }
.hero__role { margin: 0 0 18px; color: var(--accent); font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.hero__title {
  margin: 0 0 28px; font-family: var(--display); font-weight: 500;
  font-size: clamp(44px, 6vw, 92px); line-height: .98; letter-spacing: -0.045em;
}
.hero__title span {
  background: linear-gradient(100deg, var(--ink) 0 42%, var(--accent) 48%, var(--accent-2) 52%, var(--ink) 58% 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s var(--ease) both, sheen 2.4s var(--ease) both;
}
/* "scale." always carries the current theme colour (and follows the theme picker) */
.hero__title .hero__accent {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px hsl(var(--h) 95% 60% / .35));
}
.hero__title span:nth-child(1) { animation-delay: .15s, .9s; }
.hero__title span:nth-child(2) { animation-delay: .27s, 1.05s; }
.hero__title span:nth-child(3) { animation-delay: .39s, 1.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); filter: blur(8px); } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero__lead { margin: 0 0 34px; max-width: 54ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18.5px); animation: rise 1s var(--ease) .5s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1s var(--ease) .6s both; }
.hero__status, .hero__role { animation: rise 1s var(--ease) .05s both; }
.hero__photo { align-self: end; position: relative; z-index: 1; animation: photo-in 1.4s var(--ease) .2s both; }
.hero__photo img { width: auto; height: min(calc(100svh - 96px), 900px); max-width: none; object-fit: contain; object-position: bottom center; margin: 0 auto; transform: translateX(4%); filter: brightness(1.2) contrast(1.05) saturate(1.06) drop-shadow(0 30px 60px hsl(var(--h) 80% 4% / .6)); }
.hero__photo::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 14%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
@keyframes photo-in { from { opacity: 0; transform: translateY(30px) scale(.98); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: hsl(var(--h) 40% 6%); }
.ticker__track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker__track span { display: flex; align-items: center; gap: 36px; padding: 18px 0 18px 36px; font-family: var(--display); font-size: clamp(14px, 1.4vw, 18px); font-weight: 400; color: var(--muted); white-space: nowrap; }
.ticker__track span::after { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 10px var(--glow); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.idcard {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  margin: 0; padding: 14px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, hsl(var(--h) 40% 14% / .9), hsl(var(--h) 40% 7% / .9));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px #000, 0 0 0 1px hsl(var(--h) 90% 70% / .05) inset;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
  position: sticky; top: 110px;
}
.idcard.is-tilting { transition: transform .08s linear; }
.idcard__frame { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1230 / 1278; background: radial-gradient(75% 65% at 50% 32%, hsl(var(--h) 75% 34% / .75), hsl(var(--h) 55% 9%) 75%); }
.idcard__img--mob { display: none; }
.idcard__frame img { width: 100%; height: 100%; object-fit: cover; object-position: bottom center; position: relative; }
.idcard__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, hsl(var(--h) 50% 6% / .55)); pointer-events: none; }
.idcard__scan { position: absolute; left: 0; right: 0; height: 22%; top: -22%; background: linear-gradient(180deg, transparent, hsl(var(--h) 95% 70% / .22) 85%, hsl(var(--h) 95% 80% / .7) 100%); mix-blend-mode: screen; animation: scan 6s var(--ease) 1s infinite; z-index: 2; }
@keyframes scan { 0% { top: -22%; } 45%, 100% { top: 100%; } }
.idcard__corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); z-index: 3; filter: drop-shadow(0 0 6px var(--glow)); }
.idcard__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.idcard__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.idcard__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.idcard__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.idcard__glare { position: absolute; inset: 0; z-index: 4; background: radial-gradient(40% 40% at var(--gx) var(--gy), hsl(0 0% 100% / .18), transparent 70%); mix-blend-mode: overlay; opacity: 0; transition: opacity .4s; pointer-events: none; }
.idcard:hover .idcard__glare { opacity: 1; }
.idcard figcaption { padding: 18px 8px 6px; }
.idcard__data { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.idcard__data div { min-width: 0; }
.idcard__data div:nth-last-child(-n+2) { grid-column: 1 / -1; }
.idcard__data dt { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.idcard__data dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.idcard__live { display: flex; align-items: center; gap: 10px; }

.about__body .h2 { margin-bottom: 28px; }
.about__body .lead { margin: 0 0 18px; }
.about__body strong { color: var(--ink); font-weight: 600; }
.about__stats { list-style: none; margin: 40px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about__stats li { position: relative; }
.about__stats .num { font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.about__stats .plus { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); color: var(--accent); vertical-align: top; margin-left: 2px; }
.about__stats p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; max-width: 18ch; }
.about__focus { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.about__focus li { padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); background: hsl(var(--h) 40% 10% / .4); }

/* ---------- Skills ---------- */

.skills__intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.skills__intro .lead { margin: 0; }
.skills__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 80px); }
.skills__grid .h3 { margin-bottom: 26px; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.meter__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.meter__name { font-weight: 600; font-size: 16px; }
.meter__val { font-family: var(--display); font-size: 14px; color: var(--muted); }
.meter__val b { font-weight: 500; font-size: 20px; color: var(--ink); }
.meter__cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 7px; }
.meter__cells i { border-radius: 2px; background: hsl(var(--h) 30% 20% / .7); transition: background .3s, box-shadow .3s; }
.meter__cells i.on { background: color-mix(in oklab, var(--accent) calc((1 - var(--t)) * 100%), var(--accent-2)); }
.meter.is-on .meter__cells i.on { box-shadow: 0 0 10px hsl(var(--h) 95% 60% / .35); }
.js .meter:not(.is-on) .meter__cells i.on { background: hsl(var(--h) 30% 20% / .7); }
.meter.is-on .meter__cells i { transition-delay: calc(var(--i) * 28ms); }
.meter__meta { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.skills__note { color: var(--ink-2); margin: 0 0 26px; font-size: 16px; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tool { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .3s var(--ease); }
.tool:hover { border-color: var(--line-2); transform: translateX(4px); }
.tool__signal { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.tool__signal i { width: 5px; border-radius: 2px; background: hsl(var(--h) 30% 22%); position: relative; overflow: hidden; }
.tool__signal i:nth-child(1) { height: 30%; } .tool__signal i:nth-child(2) { height: 47%; } .tool__signal i:nth-child(3) { height: 64%; } .tool__signal i:nth-child(4) { height: 82%; } .tool__signal i:nth-child(5) { height: 100%; }
.tool__signal i::after { content: ""; position: absolute; inset: auto 0 0 0; height: calc(var(--f, 0) * 100%); background: linear-gradient(var(--accent-2), var(--accent)); }
.tool__name { font-weight: 600; }
.tool__val { font-family: var(--display); font-size: 18px; }

.modes { margin-top: clamp(64px, 8vw, 110px); }
.modes__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.modes__head p { margin: 0; color: var(--muted); max-width: 46ch; }
.modes__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; height: 370px; }
.mode {
  flex: 1 1 0; min-width: 0; position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  transition: flex-grow .6s var(--ease), border-color .4s, background .4s;
}
.mode::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 0% 100%, hsl(var(--h) 90% 55% / .28), transparent 60%); opacity: 0; transition: opacity .5s; }
.mode.is-open { flex-grow: 2.3; border-color: hsl(var(--h) 90% 70% / .35); background: #0c0c11; }
.mode__btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 18px; text-align: left; border-radius: inherit; }
.mode__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mode__btn i { font-size: 26px; margin-top: auto; color: var(--ink-2); transition: color .4s, transform .5s var(--ease); }
.mode.is-open .mode__btn i { color: var(--accent); transform: translateY(-64px) scale(1.15); }
.mode__title { margin-top: 12px; font-weight: 600; font-size: 17px; line-height: 1.2; transition: transform .5s var(--ease); }
.mode.is-open .mode__title { transform: translateY(-64px); font-family: var(--display); font-weight: 500; }
.mode__desc { position: absolute; left: 18px; right: 18px; bottom: 18px; margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.mode.is-open .mode__desc { opacity: 1; transform: none; transition-delay: .18s; }
.mode:last-child .mode__desc::after { content: " ↻"; color: var(--accent); }

/* infographic art in each mode panel */
.mode__art { position: absolute; left: 6px; right: 6px; top: 38px; height: 176px; width: calc(100% - 12px); pointer-events: none; opacity: .75; transform-origin: 50% 0; transition: opacity .5s var(--ease), height .6s var(--ease); overflow: hidden; }
.mode.is-open .mode__art { height: 168px; overflow: visible; }
.mode:not(.is-open) .mode__art .a-txt { opacity: 0; }
.mode.is-open .mode__art { opacity: 1; }
.mode__art .h-grid { fill: none; stroke: hsl(var(--h) 60% 75% / .16); stroke-width: 1; }
.mode__art .h-grid--edges { stroke: hsl(var(--h) 70% 70% / .28); stroke-dasharray: 2 4; }
.mode__art .h-gridl { fill: none; stroke: hsl(var(--h) 60% 75% / .12); stroke-width: 1; stroke-dasharray: 2 5; }
.mode__art .h-orbit { fill: none; stroke: hsl(var(--h) 70% 70% / .3); stroke-width: 1; stroke-dasharray: 3 5; }
.mode__art .h-orbit--2 { stroke: hsl(var(--h2) 70% 70% / .18); }
.mode__art .h-node { fill: var(--accent); }
.mode__art .h-node2 { fill: var(--accent-2); }
.mode__art .h-core { fill: var(--accent); }
.mode__art .h-core-ring { fill: hsl(var(--h) 60% 10% / .9); stroke: var(--accent); stroke-width: 1.6; }
.mode__art .h-stroke { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode__art .h-stroke--thin { stroke-width: 1.4; }
.mode__art .h-pulse, .mode__art .h-tap { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.mode__art .h-dim circle { fill: hsl(var(--h) 60% 75% / .45); }
.mode__art .h-dimf, .mode__art .h-dimf rect { fill: hsl(var(--h) 60% 75% / .22); }
.mode__art .h-spark { fill: var(--accent); }
.mode__art .h-spark2 { fill: var(--accent-2); }
.mode__art .h-frame { fill: hsl(var(--h) 50% 9% / .7); stroke: hsl(var(--h) 70% 72% / .45); stroke-width: 1.2; }
.mode__art .h-block { fill: hsl(var(--h) 95% 62% / .3); stroke: var(--accent); stroke-width: 1; }
.mode__art .h-block--soft { fill: hsl(var(--h) 95% 62% / .18); }
.mode__art .h-flow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6; animation: art-dash 1.2s linear infinite; }
.mode__art .h-flow--loop { stroke-width: 1.4; opacity: .7; }
.mode__art .h-trend { fill: none; stroke-width: 1.6; stroke-dasharray: 3 4; opacity: .8; animation: art-dash 1.6s linear infinite; }
.mode__art .h-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.mode__art .h-ecg { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60 200; animation: art-ecg 2.6s linear infinite; opacity: .85; }
.mode__art .a-txt { font-family: var(--body); font-size: 9.5px; font-weight: 600; fill: var(--muted); letter-spacing: .02em; }
.mode__art .a-mid { text-anchor: middle; }
.mode__art .a-end { text-anchor: end; }
.mode.is-open .mode__art .a-txt { fill: var(--ink-2); }
@keyframes art-dash { to { stroke-dashoffset: -20; } }
@keyframes art-ecg { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* HUD backdrop + animated light border on the open panel */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.mode__btn::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 62%; border-radius: inherit;
  background-image: radial-gradient(hsl(var(--h) 70% 75% / .12) 1px, transparent 1.2px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); pointer-events: none; }
.mode::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, var(--accent) 80%, var(--accent-2) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s; animation: mode-ang 4.5s linear infinite; }
.mode.is-open::after { opacity: 1; }
.mode.is-open { box-shadow: 0 30px 80px -40px var(--glow), inset 0 0 60px -30px hsl(var(--h) 95% 60% / .35); }
.mode:not(.is-open):hover .mode__art { opacity: 1; }
@keyframes mode-ang { to { --ang: 360deg; } }

/* ---------- Experience ---------- */
.exp__intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.exp__intro .lead { margin: 0; }
.exp__panel { border-block: 1px solid var(--line); background: #101016; padding: 26px 0 22px; }
.exp__bar { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; }
.exp__range { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 18px; }
.exp__arrow { width: 40px; height: 1px; background: linear-gradient(90deg, var(--muted), var(--accent)); position: relative; }
.exp__arrow::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--accent); transform: translateX(5px); }
.exp__progress { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; position: relative; overflow: hidden; }
.exp__progress span { position: absolute; top: 0; bottom: 0; left: var(--pl, 0%); width: var(--pw, 30%); background: var(--grad); border-radius: 2px; box-shadow: 0 0 10px var(--glow); }
.exp__ctrls { display: flex; gap: 8px; }
.exp__btn, .more__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; transition: background .25s, border-color .25s, color .25s, opacity .25s; }
.exp__btn:hover:not([disabled]), .more__arrow:hover:not([disabled]) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.exp__btn[disabled], .more__arrow[disabled] { opacity: .3; cursor: default; }
.exp__scroller {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-top:10px;
  scrollbar-width: none; cursor: grab; outline-offset: -3px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(40px, 9vw, 140px), #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 clamp(40px, 9vw, 140px), #000 calc(100% - 60px), transparent 100%);
}
.exp__scroller::-webkit-scrollbar { display: none; }
.exp__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.exp__scroller.is-dragging * { user-select: none; pointer-events: none; }
.exp__rail { list-style: none; margin: 0; padding: 0 0 8px; display: flex; position: relative; width: max-content; }
.exp__rail::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 1px; background: linear-gradient(90deg, var(--accent-2), var(--accent) 15%, var(--dim)); }
.stop { width: 330px; flex: none; padding-right: 40px; scroll-snap-align: start; scroll-margin-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); position: relative; }
.stop__node { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: var(--accent); background: hsl(var(--h) 40% 9%); border: 1px solid hsl(var(--h) 90% 70% / .35); position: relative; margin-bottom: 22px; transition: transform .4s var(--ease), box-shadow .4s; }
.stop:hover .stop__node { transform: translateY(-3px); box-shadow: 0 0 0 6px var(--glow-soft); }
.stop--now .stop__node { background: var(--grad); color: var(--accent-ink); border: 0; box-shadow: 0 0 0 6px var(--glow-soft), 0 0 30px var(--glow); }
.stop__dates { margin: 0 0 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stop__live { display: inline-flex; align-items: center; gap: 6px; color: hsl(152 80% 60%); font-weight: 500; }
.stop__company { margin: 0; font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.stop__role { margin: 4px 0 16px; color: var(--ink-2); font-size: 15px; }
.stop__metric { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: hsl(var(--h) 40% 12% / .6); border: 1px solid var(--line); display: inline-block; }
.stop__metric b { font-family: var(--display); font-weight: 500; color: var(--accent); font-size: 16px; margin-right: 4px; }
.stop__desc { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.stop__tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stop__tags span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); }
.exp__hint { margin-top: 14px; margin-bottom: 0; font-size: 13px; color: var(--muted); }

/* ---------- Work ---------- */
.work__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.work__intro .lead { margin: 0; }
.feature {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(18px, 2.6vw, 34px); border-radius: var(--r-lg);
  background: linear-gradient(150deg, hsl(var(--h) 40% 12% / .9), hsl(var(--h) 45% 6% / .95) 60%);
  border: 1px solid hsl(var(--h) 90% 70% / .18);
  box-shadow: 0 50px 100px -50px #000, 0 0 80px -40px var(--glow);
  position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 70%); pointer-events: none; opacity: .6; }
.feature > * { position: relative; }
.feature__media { display: grid; gap: 18px; align-content: start; }
.feature__shot { position: relative; display: block; width: 100%; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.feature__shot img { width: 100%; height: auto; aspect-ratio: 1400 / 1120; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.feature__shot:hover img { transform: scale(1.04); }
.feature__play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 100px; background: hsl(var(--h) 45% 6% / .85); color: var(--ink); font-weight: 600; font-size: 14px; backdrop-filter: blur(8px); border: 1px solid var(--line-2); transition: background .3s, color .3s; }
.feature__play i { font-size: 18px; color: var(--accent); }
.feature__shot:hover .feature__play { background: var(--accent); color: var(--accent-ink); }
.feature__shot:hover .feature__play i { color: var(--accent-ink); }
.feature__viz { padding: 18px 20px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: hsl(var(--h) 45% 5% / .7); }
.feature__viz-title { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.bars li b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }
.bars li::after { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, hsl(var(--h) 20% 60%) calc(var(--v) * 1%), hsl(var(--h) 30% 18%) 0); }
.bars li.is-key { color: var(--ink); }
.bars li.is-key b { color: var(--accent); }
.bars li.is-key::after { background: linear-gradient(90deg, var(--accent) calc(var(--v) * 1%), hsl(var(--h) 30% 18%) 0); box-shadow: 0 0 10px var(--glow); }
.feature__body { display: flex; flex-direction: column; padding: 6px 4px; }
.feature__idx { font-size: 52px; line-height: 1; color: var(--accent); font-weight: 500; letter-spacing: -0.04em; margin-bottom: 26px; }
.feature__meta { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.feature__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-right: 18px; vertical-align: middle; transform: translateY(-1px); }
.feature__title { margin: 0 0 16px; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -0.025em; }
.feature__desc { margin: 0 0 26px; color: var(--ink-2); }
.feature__metrics { margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 0; border-block: 1px solid var(--line); }
.feature__metrics div { min-width: 0; }
.feature__metrics dt { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-bottom: 8px; }
.feature__metrics dd { margin: 0; display: grid; gap: 2px; }
.feature__metrics dd b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.feature__metrics dd small { font-size: 12.5px; color: var(--muted); }
.feature__mattered { margin: 0 0 28px; font-size: 15px; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--accent); }
.feature__mattered strong { color: var(--ink); }
.feature__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

.more { margin-top: 56px; }
.more__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.more__count { margin: 0; color: var(--muted); font-size: 15px; }
.more__cur { color: var(--ink); }
.more__body { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 16px; align-items: center; }
.more__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--r-md); }
.more__viewport::-webkit-scrollbar { display: none; }
.more__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.pcard {
  flex: 0 0 calc((100% - 36px) / 3); min-width: 0; height: 470px; scroll-snap-align: start;
  position: relative; border-radius: var(--r-md); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); background: hsl(var(--h) 40% 8%);
}
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: -2; filter: brightness(.42) saturate(.75); transform: scale(1.02); transition: filter .6s var(--ease), transform 1s var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, hsl(var(--h) 45% 5% / .7) 0%, hsl(var(--h) 45% 5% / .55) 34%, hsl(var(--h) 45% 5% / .88) 60%, hsl(var(--h) 45% 4% / .98) 100%); }
.pcard:hover .pcard__img, .pcard:focus-within .pcard__img { filter: brightness(.62) saturate(1); transform: scale(1.07); }
.pcard:hover, .pcard:focus-within { border-color: hsl(var(--h) 90% 70% / .4); }
.pcard__body { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 24px; }
.pcard__idx { font-size: 34px; color: var(--accent); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.pcard__meta { margin: 16px 0 6px; font-size: 13px; color: var(--ink-2); }
.pcard__title { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.pcard__metric { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.pcard__metric b { font-size: 18px; color: var(--accent); font-weight: 500; margin-right: 4px; }
.pcard__desc { margin: auto 0 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pcard__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: 120vw; height: 80%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, hsl(var(--h) 90% 55% / .18), transparent 70%); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; position: relative; }
.contact__info .lead { margin: 0 0 26px; }
.contact__cv { margin-top: 26px; }
.contact__form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: #131319;
  box-shadow: 0 40px 100px -40px #000, 0 0 80px -50px var(--glow); }
.contact__form .field input, .contact__form .field textarea { background: rgba(255, 255, 255, .02); }
.contact__form .field input:focus, .contact__form .field textarea:focus { background: rgba(255, 255, 255, .04); }
.contact__form-title { margin: 0 0 22px; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.contact__title { margin: 0 0 44px; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 7vw, 108px); line-height: 1; letter-spacing: -0.045em; max-width: 13ch; }
.contact .lead { margin: 0 0 34px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact__list li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list li:first-child { border-top: 1px solid var(--line); }
.contact__list li > i { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); font-size: 17px; }
.contact__list span { display: block; font-size: 12.5px; color: var(--muted); }
.contact__list a, .contact__list p { margin: 0; font-weight: 600; font-size: 16px; word-break: break-word; }
.contact__list a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pcard { flex-basis: calc((100% - 18px) / 2); }
}
/* Tablet & mobile: hero photo is removed from the hero and shown in the About ID card instead */
@media (max-width: 1024px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 140px; }
  .hero__copy { padding-bottom: 110px; max-width: 720px; }
  .hero__photo { display: none; }
  .hero__floor, .hero__horizon { top: 74%; }
  .hero__bg::after { background: linear-gradient(180deg, transparent 40%, hsl(var(--h) 48% 4.6% / .4)); }
  .idcard__frame { aspect-ratio: 1057 / 1250; }
  .idcard__img--desk { display: none; }
  .idcard__img--mob { display: block; }
  .idcard__frame img { object-position: top center; }
}
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .idcard { position: relative; top: 0; max-width: 460px; }
  .skills__intro, .exp__intro, .work__intro, .skills__grid, .contact__grid { grid-template-columns: 1fr; gap: 28px; }
  .feature { grid-template-columns: 1fr; }
  .feature__body { order: -1; }
  .feature__idx { margin-bottom: 14px; }
  .modes__list { flex-direction: column; height: auto; }
  .mode { flex: none; }
  .mode__btn { position: relative; inset: auto; flex-direction: row; align-items: center; gap: 14px; padding: 18px; }
  .mode__btn::before { display: none; }
  .mode__btn i, .mode.is-open .mode__btn i { margin: 0; transform: none; font-size: 22px; }
  .mode__title, .mode.is-open .mode__title { margin: 0; transform: none; }
  .mode__desc { position: relative; left: auto; right: auto; bottom: auto; padding: 0 18px; max-height: 0; overflow: hidden; transform: none; transition: max-height .5s var(--ease), opacity .3s, padding .4s; }
  .mode.is-open .mode__desc { max-height: 140px; padding: 0 18px 12px 54px; }
  .mode__art, .mode.is-open .mode__art { position: static; display: none; height: 120px; width: calc(100% - 72px); margin: 0 18px 18px 54px; }
  .mode.is-open .mode__art { display: block; }
}
@media (max-width: 640px) {
  .hero__title { font-size: clamp(38px, 11vw, 56px); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__actions .btn--icon { flex: none; }
  .about__stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .about__stats p { font-size: 12.5px; }
  .feature__metrics { grid-template-columns: 1fr; gap: 14px; }
  .feature__metrics dt { margin-bottom: 2px; }
  .more__body { grid-template-columns: 1fr; }
  .more__arrow { display: none; }
  .more__head { flex-wrap: wrap; gap: 8px; }
  .pcard { flex-basis: 84%; height: 440px; }
  .stop { width: 290px; padding-right: 28px; }
  .exp__bar { gap: 14px; }
  .exp__range { font-size: 15px; }
  .exp__arrow { width: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .mode::after { animation: none; }
  .hero__floor, .ticker__track, .idcard__scan { animation: none !important; }
  .hero__title span { background-position: 0 0; }
}
