/* Priyanshu Bhatnagar — portfolio
   Molten orange on warm charcoal, glass surfaces over soft orange light.
   One family (Schibsted Grotesk) carries everything. */

@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #1A1512;           /* warm charcoal, not black */
  --bg-2: #231C18;
  --orange: #FF7A1A;
  --orange-deep: #E8590C;
  --amber: #FFB37A;        /* small labels on dark */
  --text: #F5EDE6;
  --text-2: #CDBFB3;
  --text-3: #A89A8E;
  --glass-1: rgba(255, 255, 255, 0.09);
  --glass-2: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-hi: rgba(255, 255, 255, 0.22);
  --hair: rgba(245, 237, 230, 0.12);

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2.2rem, 1.3rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.5rem, 1.3rem + 3.9vw, 4.6rem);

  --header: 64px;
  --header-top: 14px;
  --gutter: clamp(16px, 3.6vw, 56px);
  --rail: 34vw;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + var(--header-top) + 24px); }
/* oversized stamp before it lands, floating bubbles: never widen the page */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
time { font-variant-numeric: tabular-nums; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--orange); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- ambient light */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-a {
  width: 62vmax; height: 62vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.30), rgba(255, 122, 26, 0) 65%);
  animation: drift-a 38s ease-in-out infinite alternate;
}
.orb-b {
  width: 70vmax; height: 70vmax; right: -24vmax; top: 6vh;
  background: radial-gradient(circle, rgba(232, 89, 12, 0.34), rgba(232, 89, 12, 0) 62%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
.orb-c {
  width: 50vmax; height: 50vmax; left: 18vw; bottom: -30vmax;
  background: radial-gradient(circle, rgba(255, 179, 122, 0.16), rgba(255, 179, 122, 0) 65%);
  animation: drift-a 52s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate3d(8vw, 10vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-6vw, 14vh, 0) scale(0.94); } }
.grain {
  position: absolute; inset: -50%; opacity: 0.06; 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- glass */
.glass {
  position: relative;
  background: linear-gradient(145deg, var(--glass-1), var(--glass-2));
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 24px 60px -28px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(43, 35, 30, 0.94); }
}
.icon-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 122, 26, 0.28), rgba(255, 122, 26, 0.08));
  border: 1px solid rgba(255, 122, 26, 0.38); color: var(--amber);
  box-shadow: 0 8px 24px -10px rgba(255, 122, 26, 0.6);
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; z-index: 60; top: var(--header-top); left: var(--gutter); right: var(--gutter); }
.bar {
  height: var(--header); border-radius: 999px;
  display: flex; align-items: center; gap: 28px; padding: 0 10px 0 22px;
  background: linear-gradient(145deg, rgba(40, 32, 27, 0.6), rgba(40, 32, 27, 0.35));
}
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.mark-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--text-2); font-size: var(--step--1); font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background-color .25s, color .25s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="true"] { color: var(--bg); background: var(--orange); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 700 var(--step--1)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .3s, color .2s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: var(--bg);
  box-shadow: 0 10px 30px -10px rgba(255, 122, 26, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(255, 122, 26, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-glass {
  color: var(--text); border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { border-color: rgba(255, 122, 26, 0.6); background: rgba(255, 122, 26, 0.12); }
.btn-small { min-height: 44px; padding: 0 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); }
main { position: relative; z-index: 1; padding: 0 var(--gutter); min-width: 0; }
main > section { max-width: 58rem; padding-block: clamp(80px, 13vh, 140px); }
.h2 { font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.02; font-weight: 850; margin-bottom: 18px; }
.intro { color: var(--text-2); font-size: var(--step-1); line-height: 1.55; max-width: 40rem; margin-bottom: 44px; }
.org { color: var(--amber); font-size: var(--step--1); font-weight: 500; margin-top: 4px; }
.note { color: var(--text-3); font-size: var(--step--1); margin-top: 28px; }

/* ---------------------------------------------------------------- avatar stage */
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; }
.glow {
  position: absolute; inset: 0 0 0 -12vw; pointer-events: none;
  background:
    radial-gradient(40% 48% at 62% 60%, rgba(255, 122, 26, 0.38), transparent 72%),
    radial-gradient(60% 40% at 60% 108%, rgba(232, 89, 12, 0.35), transparent 72%);
}
.halo {
  position: absolute; left: 50%; bottom: 14%; width: min(82%, 520px); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 80px rgba(255, 122, 26, 0.18);
}
.rig, .rig-fallback {
  position: absolute; bottom: 0; left: 50%;
  height: min(calc(100dvh - var(--header) - var(--header-top) - 28px), calc(var(--rail) * 0.9 * 1.2414));
  width: auto; aspect-ratio: 1856 / 2304;
  transform: translateX(-50%);
}
.rig { opacity: 0; }
.rig-ready .rig { opacity: 1; }
.rig-ready .rig-fallback { display: none; }
.rig .rg { position: absolute; inset: 0; will-change: transform; }
.rig .rl { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }

/* ---------------------------------------------------------------- 1 · hero */
.hero {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding-top: calc(var(--header) + var(--header-top) + 40px) !important;
}
.hero-card { border-radius: 32px; padding: clamp(28px, 4vw, 52px); overflow: hidden; display: grid; gap: 24px; }
.sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 179, 122, 0.12) 50%, transparent 62%);
  transform: translateX(-110%);
}
.hero-card:hover .sheen { transition: transform 1.2s var(--ease-out); transform: translateX(110%); }
.pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--amber);
  background: rgba(255, 122, 26, 0.1); border: 1px solid rgba(255, 122, 26, 0.3);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }
.display { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.035em; font-weight: 850; max-width: 16ch; }
.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.display .wi { display: inline-block; }
.lede { color: var(--text-2); font-size: var(--step-1); max-width: 36rem; line-height: 1.55; }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; color: var(--text-3); font-size: var(--step--1); }
.mouse { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--text-3); display: grid; justify-items: center; padding-top: 6px; }
.mouse span { width: 3px; height: 7px; border-radius: 3px; background: var(--orange); animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- 2 · what I do: flip-in cards with cursor light */
.flip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.flip-card { padding: 28px 24px; display: grid; align-content: start; gap: 16px; overflow: hidden; transform-origin: 50% 0; }
.flip-card h3 { font-size: var(--step-1); line-height: 1.22; letter-spacing: -0.01em; }
.flip-card p { color: var(--text-2); font-size: var(--step--1); line-height: 1.55; }
.flip-card .icon-badge { transition: transform .5s var(--ease-spring); }
.flip-card:hover .icon-badge { transform: rotate(-8deg) scale(1.1); }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 26, 0.22), transparent 60%);
  transition: opacity .35s;
}
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: rgba(255, 122, 26, 0.45); }
.tools { margin-top: 28px; color: var(--text-3); font-size: var(--step--1); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tools span { color: var(--text); padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair); }

/* ---------------------------------------------------------------- 3 · experience: stacking cards */
.stack { display: grid; gap: 28px; padding-bottom: 6vh; }
.stack-card {
  position: sticky; top: calc(var(--header) + var(--header-top) + 26px + var(--i) * 24px);
  padding: clamp(22px, 3vw, 34px); border-radius: 26px;
  background: linear-gradient(145deg, rgba(50, 40, 34, 0.72), rgba(34, 27, 23, 0.6));
  transform-origin: 50% 0;
}
.stack-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: rgba(20, 16, 13, var(--dim, 0));
}
.card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.card-head h3 { font-size: var(--step-2); line-height: 1.12; letter-spacing: -0.02em; }
.mono {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.2rem; color: var(--bg);
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 10px 26px -10px rgba(255, 122, 26, 0.8);
}
.mono svg { width: 26px; height: 26px; stroke: var(--bg); stroke-width: 2; }
.when-pill {
  align-self: start; white-space: nowrap; font-size: var(--step--1); font-weight: 600; color: var(--amber);
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 122, 26, 0.1); border: 1px solid rgba(255, 122, 26, 0.3);
}
.card-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; padding-top: 20px; }
.ticks { display: grid; gap: 2px; }
.ticks li {
  position: relative; padding: 8px 10px 8px 36px; margin-left: -10px; border-radius: 10px;
  color: var(--text-2); font-size: var(--step--1); line-height: 1.5; transition: background-color .25s, color .25s;
}
.ticks li:hover { background: rgba(255, 122, 26, 0.1); color: var(--text); }
.tick { position: absolute; left: 9px; top: 11px; width: 18px; height: 18px; stroke: var(--orange); stroke-width: 2.6; }
.tick path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.js-motion .tick path { stroke-dashoffset: 24; transition: stroke-dashoffset .5s var(--ease-out); }
.js-motion .ticks.is-reviewed .tick path { stroke-dashoffset: 0; }
.card-side { display: grid; align-content: start; gap: 12px; }
.side-label { color: var(--text-3); font-size: 0.875rem; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.875rem; padding: 5px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair); color: var(--text-2); }
.text-btn {
  justify-self: start; margin-top: 6px; background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--orange); font-weight: 700; font-size: var(--step--1);
  text-decoration: underline; text-decoration-color: rgba(255, 122, 26, 0.4); text-underline-offset: 5px;
}
.text-btn:hover { text-decoration-color: var(--orange); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; align-content: start; }
.fig {
  padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair);
  transition: border-color .25s, background-color .25s;
}
.fig:hover { border-color: rgba(255, 122, 26, 0.5); background: rgba(255, 122, 26, 0.08); }
.fig dt { font-size: 1.75rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.fig dd { margin: 8px 0 0; color: var(--text-3); font-size: 0.8125rem; line-height: 1.4; }
.fig-reconcile .was { position: relative; color: var(--text-3); }
.fig-reconcile .was::after {
  content: ""; position: absolute; left: -6%; right: -6%; top: 52%; height: 3px; border-radius: 2px; background: var(--orange);
  transform: scaleX(1); transform-origin: left;
}
.fig-reconcile .now { color: var(--orange); display: inline-block; }
.js-motion .fig-reconcile .was::after { transform: scaleX(0); transition: transform .5s var(--ease-out) .2s; }
.js-motion .fig-reconcile .now { opacity: 0; transform: translateY(.3em); transition: opacity .5s .65s, transform .6s var(--ease-out) .65s; }
.js-motion .fig-reconcile.is-reconciled .was::after { transform: scaleX(1); }
.js-motion .fig-reconcile.is-reconciled .now { opacity: 1; transform: none; }

/* dialog with the full Windy Street list */
.dialog {
  position: fixed; inset: 0; margin: auto; /* .glass sets relative; a modal must stay fixed */
  width: min(720px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; color: var(--text);
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(145deg, rgba(52, 42, 36, 0.86), rgba(30, 24, 20, 0.82));
}
.dialog::backdrop { background: rgba(14, 11, 9, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in .45s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--hair); }
.dialog-head h2 { font-size: var(--step-1); }
.close-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.06); cursor: pointer; display: grid; place-items: center; }
.close-btn:hover { border-color: var(--orange); }
.close-btn svg { width: 18px; height: 18px; }
.dialog-body { padding: 8px 26px 28px; overflow: auto; max-height: calc(min(80vh, 760px) - 90px); color: var(--text-2); font-size: var(--step--1); }
.dialog-body h3 { color: var(--amber); font-size: var(--step-0); margin: 22px 0 10px; font-weight: 700; }
.dialog-body li { padding: 5px 0 5px 20px; position: relative; line-height: 1.5; }
.dialog-body li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }

/* ---------------------------------------------------------------- 4 · skills: glass tile grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 16px; perspective: 1100px; }
.tile {
  grid-column: span 2; padding: 22px; display: grid; align-content: start; gap: 14px;
  border-radius: 24px; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), border-color .3s;
}
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 55%);
  transition: opacity .3s;
}
.tile:hover { border-color: rgba(255, 122, 26, 0.5); transition: transform .12s linear, border-color .3s; }
.tile:hover::after { opacity: 1; }
.tile-xl { grid-column: span 4; grid-row: span 2; }
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 3; }
.tile-hot { background: linear-gradient(160deg, rgba(255, 122, 26, 0.26), rgba(232, 89, 12, 0.08) 60%, rgba(255, 255, 255, 0.03)); border-color: rgba(255, 122, 26, 0.35); }
.tile h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 850; }
.tile-xl h3 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.1rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px; border-radius: 10px; font-size: 0.9rem; line-height: 1.3; color: var(--text-2);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--hair);
  transition: background-color .2s, border-color .2s, color .2s, translate .3s var(--ease-spring);
}
.chips li:hover { color: var(--bg); background: var(--orange); border-color: var(--orange); translate: 0 -3px; }
.tile-xl .chips li { font-size: 1rem; padding: 9px 15px; }

/* ---------------------------------------------------------------- 5 · education: drawn path */
.path { position: relative; }
.path-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; translate: -50% 0; border-radius: 3px; background: var(--hair); }
.path-fill {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: top;
  background: linear-gradient(var(--amber), var(--orange) 40%, var(--orange-deep));
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.7);
}
.milestones { display: grid; gap: 34px; }
.milestone { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.milestone[data-side="left"] .ms-card { grid-column: 1; margin-right: 44px; }
.milestone[data-side="right"] .ms-card { grid-column: 2; margin-left: 44px; }
.node {
  position: absolute; left: 50%; top: 30px; translate: -50% 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--orange); box-shadow: 0 0 0 7px rgba(255, 122, 26, 0.14), 0 0 20px rgba(255, 122, 26, 0.6);
  z-index: 1;
}
.ms-card { padding: 24px; border-radius: 20px; display: grid; gap: 6px; }
.ms-card h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }
.ms-year { font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: transparent;
  background: linear-gradient(90deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; margin-bottom: 6px; }
.ms-note { color: var(--text-3); font-size: var(--step--1); }

/* ---------------------------------------------------------------- 6 · certifications: badges + awards */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.badge { padding: 22px; border-radius: 18px; overflow: hidden; display: grid; align-content: start; gap: 10px; transition: border-color .3s, translate .4s var(--ease-spring); }
.badge h3 { font-size: var(--step-0); line-height: 1.3; font-weight: 700; }
.badge-year {
  justify-self: start; font-weight: 800; font-size: 0.875rem; color: var(--bg);
  padding: 4px 10px; border-radius: 8px; background: linear-gradient(135deg, var(--amber), var(--orange));
}
.badge::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), rgba(255, 179, 122, 0.18), transparent);
  transform: translateX(-160%) skewX(-12deg);
}
.badge:hover { border-color: rgba(255, 179, 122, 0.55); translate: 0 -4px; }
.badge:hover::after { transition: transform .9s var(--ease-out); transform: translateX(260%) skewX(-12deg); }
.sub { font-size: var(--step-2); margin: 52px 0 16px; letter-spacing: -0.02em; }
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.award { padding: 22px; border-radius: 20px; display: grid; align-content: start; gap: 14px; color: var(--text-2); font-size: var(--step--1); line-height: 1.5; }
.award strong { color: var(--text); }
.award-icon { width: 44px; height: 44px; color: var(--orange); stroke-width: 1.6; filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.5)); }
.js-motion .draw-icon :is(path, circle, rect) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out); }
.js-motion .draws.is-drawn .draw-icon :is(path, circle, rect) { stroke-dashoffset: 0; }
/* awards: lift, cursor light, the icon hops and redraws itself */
.award { overflow: hidden; transition: translate .45s var(--ease-spring), border-color .3s, box-shadow .3s; }
.award:hover { translate: 0 -6px; border-color: rgba(255, 122, 26, 0.55); box-shadow: 0 30px 60px -28px rgba(255, 122, 26, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.award::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-170%) skewX(-12deg);
}
.award:hover::after { transition: transform 1s var(--ease-out); transform: translateX(280%) skewX(-12deg); }
.award:hover .award-icon { animation: hop .7s var(--ease-spring); }
.award:hover .draw-icon :is(path, circle, rect) { animation: redraw 1.1s var(--ease-out); }
@keyframes hop { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-8px) rotate(-10deg) scale(1.12); } 70% { transform: translateY(0) rotate(4deg); } 100% { transform: none; } }
@keyframes redraw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- 7 · interests: floating bubbles */
.bubbles { display: flex; flex-wrap: wrap; gap: 22px 20px; align-items: flex-start; padding: 10px 0 30px; max-width: 46rem; }
/* scatter them so they read as a cloud, not a list */
.bubble:nth-child(2) { margin-top: 34px; }
.bubble:nth-child(3) { margin-top: 8px; }
.bubble:nth-child(4) { margin-left: 48px; }
.bubble:nth-child(5) { margin-top: 28px; }
.bubble:nth-child(6) { margin-top: -6px; margin-left: 12px; }
.bubble {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 14px; border-radius: 999px; font-weight: 700; font-size: var(--step-0);
  cursor: default; scale: var(--s, 1);
  animation: float var(--t, 7s) ease-in-out var(--d, 0s) infinite;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.b-lg { font-size: var(--step-1); padding: 16px 26px 16px 16px; }
.b-xl { font-size: var(--step-2); padding: 18px 30px 18px 18px; }
.b-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--bg); background: linear-gradient(135deg, var(--amber), var(--orange)); flex: none; }
.b-xl .b-ico { width: 48px; height: 48px; }
.b-ico svg { width: 20px; height: 20px; stroke-width: 2.2; }
.bubble:hover { border-color: rgba(255, 122, 26, 0.7); box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.12), 0 18px 40px -16px rgba(255, 122, 26, 0.7); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* languages */
.langs { margin-top: 44px; }
.langs-title { font-size: var(--step-1); font-weight: 700; margin-bottom: 14px; }
.lang-list { display: flex; flex-wrap: wrap; gap: 14px; }
.lang {
  display: flex; align-items: center; gap: 16px; padding: 14px 26px 14px 14px; border-radius: 20px; min-width: 15rem;
  overflow: hidden; transition: translate .45s var(--ease-spring), border-color .3s;
}
.lang:hover { translate: 0 -5px; border-color: rgba(255, 122, 26, 0.6); }
.lang-glyph {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex: none;
  font-size: 1.75rem; font-weight: 800; color: var(--bg);
  background: linear-gradient(135deg, var(--amber), var(--orange)); box-shadow: 0 10px 24px -10px rgba(255, 122, 26, 0.8);
  perspective: 300px;
}
.lang-glyph span { display: inline-block; transition: transform .7s var(--ease-spring); }
.lang:hover .lang-glyph span { transform: rotateY(360deg) scale(1.1); }
.lang-text { display: grid; gap: 2px; }
.lang-text strong { font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; }
.lang-native { color: var(--amber); font-size: var(--step-0); font-weight: 600; }

/* ---------------------------------------------------------------- projects (home) */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-head .text-btn { margin: 0; }
.projects { perspective: 1400px; }
.project-feature {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
  padding: clamp(18px, 2.4vw, 28px); border-radius: 30px; text-decoration: none; color: inherit;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s;
}
.project-feature:hover { border-color: rgba(255, 122, 26, 0.55); box-shadow: 0 40px 80px -36px rgba(255, 122, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16); transition: transform .12s linear, border-color .3s, box-shadow .4s; }
.browser {
  border-radius: 16px; overflow: hidden; background: #0f0c0a; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8); transform-origin: 50% 100%;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.browser-bar span:first-child { background: var(--orange); }
.browser-bar p { margin-left: 10px; font-size: 0.75rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { aspect-ratio: 16 / 10.5; overflow: hidden; container-type: size; }
.browser-shot { width: 100%; height: auto; display: block; will-change: transform; }
/* projects page: the preview scrolls down the site while hovered */
.browser.scrolly .browser-shot { transition: transform 7s cubic-bezier(.45, 0, .55, 1); }
.browser.scrolly:hover .browser-shot, .case:focus-within .browser.scrolly .browser-shot { transform: translateY(calc(-100% + 100cqh)); transition-duration: 9s; }
.project-info { display: grid; align-content: center; gap: 12px; }
.project-info h3 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); letter-spacing: -0.035em; line-height: 1; font-weight: 900; }
.status-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; color: var(--amber); background: rgba(255, 122, 26, 0.1); border: 1px solid rgba(255, 122, 26, 0.3);
}
.project-tag { color: var(--amber); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.project-desc { color: var(--text-2); font-size: var(--step--1); line-height: 1.55; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags li {
  padding: 6px 12px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 122, 26, 0.35);
}
.project-cta { justify-self: start; position: relative; font-weight: 800; color: var(--orange); padding-bottom: 3px; margin-top: 4px; }
.project-cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(.35); transform-origin: left; transition: transform .45s var(--ease-out);
}
.project-feature:hover .project-cta::after, .project-feature:focus-visible .project-cta::after { transform: scaleX(1); }
.project-links { margin-top: 16px; font-size: var(--step--1); }
.project-links a { color: var(--amber); text-underline-offset: 4px; text-decoration-color: rgba(255, 179, 122, 0.4); }

/* ---------------------------------------------------------------- projects page */
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--step--1); justify-self: start; }
.crumb svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.crumb:hover { color: var(--orange); }
.crumb:hover svg { transform: translateX(-4px); }
.proj-hero { min-height: auto !important; padding-top: calc(var(--header) + var(--header-top) + 56px) !important; padding-bottom: 40px !important; display: grid; gap: 22px; }
.proj-hero .display { max-width: 14ch; }
.count-row { display: flex; flex-wrap: wrap; gap: 10px; }
.count { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: var(--step--1); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); }
.count b { color: var(--orange); }
.group-title { font-size: var(--step-2); letter-spacing: -0.02em; margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.case { border-radius: 32px; padding: clamp(20px, 3vw, 40px); display: grid; gap: clamp(28px, 4vw, 44px); scroll-margin-top: calc(var(--header) + var(--header-top) + 24px); }
.case-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.case-top .browser-view { aspect-ratio: 16 / 12; }
.case-summary { display: grid; gap: 14px; }
.case-summary h2 { font-size: clamp(2.4rem, 1.4rem + 3vw, 3.8rem); letter-spacing: -0.04em; line-height: .95; font-weight: 900; }
.case-summary .hint { color: var(--text-3); font-size: 0.8125rem; }
.case-block h3 { font-size: var(--step-1); margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; perspective: 1000px; }
.step { padding: 20px; border-radius: 18px; display: grid; gap: 8px; align-content: start; transition: translate .4s var(--ease-spring), border-color .3s; }
.step:hover { translate: 0 -5px; border-color: rgba(255, 122, 26, 0.5); }
.step-no { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: transparent; background: linear-gradient(90deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; }
.step h4 { font-size: var(--step-0); font-weight: 800; }
.step p { color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.point { padding: 20px; border-radius: 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; overflow: hidden; }
.point .icon-badge { grid-row: span 2; width: 44px; height: 44px; }
.point h4 { font-size: var(--step-0); font-weight: 800; }
.point p { color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }
.upcoming {
  position: relative; border-radius: 28px; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  border: 1.5px dashed rgba(255, 179, 122, 0.45);
}
.upcoming::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, rgba(255, 122, 26, 0.9) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 5s linear infinite;
}
.skeleton { display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--hair); }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 20%, rgba(255, 179, 122, 0.22) 40%, rgba(255, 255, 255, 0.06) 60%); background-size: 300% 100%; animation: shimmer 2.2s linear infinite; }
.sk-title { height: 26px; width: 60%; }
.sk-w80 { width: 80%; } .sk-w55 { width: 55%; } .sk-w70 { width: 70%; }
.sk-row { display: flex; gap: 8px; } .sk-row .sk { width: 70px; height: 24px; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.upcoming-copy { display: grid; gap: 14px; justify-items: start; }
.upcoming-copy h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.upcoming-copy p { color: var(--text-2); }

/* ---------------------------------------------------------------- 8 · contact */
.contact { min-height: 80dvh; display: grid; align-items: center; }
.contact-panel {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: center;
  padding: clamp(26px, 4vw, 48px); border-radius: 32px;
}
/* a light that circles the border */
.contact-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, rgba(255, 122, 26, 0.95) 80%, rgba(255, 179, 122, 0.9) 84%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 7s linear infinite;
}
@keyframes orbit { to { --ang: 360deg; } }
.filed { margin: 0; position: relative; }
.paper { background: #F2E9DF; padding: 12px 12px 14px; border-radius: 6px; transform: rotate(-2.5deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75); }
.paper img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.paper figcaption { color: var(--bg); font-size: 0.8125rem; font-weight: 600; padding-top: 10px; }
.stamp {
  position: absolute; right: -26px; bottom: -20px; padding: 8px 14px; border-radius: 8px;
  border: 3px solid var(--orange-deep); color: var(--orange-deep); background: rgba(242, 233, 223, 0.94);
  font-weight: 900; font-size: 1.3125rem; letter-spacing: -0.01em; white-space: nowrap; transform: rotate(-9deg);
  box-shadow: inset 0 0 0 2px rgba(232, 89, 12, 0.25), 0 10px 24px -10px rgba(0, 0, 0, 0.6);
}
.contact-copy .h2 { margin-bottom: 14px; }
.contact-copy > p { color: var(--text-2); font-size: var(--step-1); line-height: 1.5; margin-bottom: 26px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: var(--step--1); }
.email-row a { color: var(--amber); text-decoration-color: rgba(255, 179, 122, 0.4); text-underline-offset: 4px; }
.copy-btn {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 0.875rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--glass-border); color: var(--text);
}
.copy-btn:hover { border-color: var(--orange); }
.copy-status { color: var(--orange); font-weight: 700; font-size: 0.875rem; }

.site-footer { max-width: 58rem; padding: 32px 0 56px; color: var(--text-3); font-size: var(--step--1); border-top: 1px solid var(--hair); }

/* ---------------------------------------------------------------- medium screens */
@media (max-width: 1240px) {
  :root { --rail: 36vw; }
  .nav a { padding: 8px 10px; }
  .flip-grid { grid-template-columns: 1fr; }
  .flip-card { grid-template-columns: auto 1fr; column-gap: 18px; }
  .flip-card .icon-badge { grid-row: span 2; }
  .card-body { grid-template-columns: 1fr; gap: 18px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-wide { grid-column: span 1; grid-row: auto; }
  .tile-xl { grid-column: span 2; grid-row: auto; }
  .tile-tall { grid-row: auto; }
  .awards { grid-template-columns: 1fr; }
  .project-feature, .case-top, .upcoming { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { grid-template-columns: 1fr; }
  .filed { max-width: 15rem; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .bar { justify-content: space-between; }
}

/* ---------------------------------------------------------------- phones and small tablets */
@media (max-width: 860px) {
  :root { --header: 56px; --header-top: 10px; }
  .layout { grid-template-columns: 1fr; }
  .bar { gap: 12px; padding: 0 6px 0 16px; }
  main > section { padding-block: 68px; }
  .hero { min-height: auto; padding-top: calc(var(--header) + var(--header-top) + 36px) !important; }
  .hero-card { border-radius: 26px; }

  /* the avatar becomes a small companion in the corner */
  .stage {
    position: fixed; top: auto; right: 16px; bottom: 16px; z-index: 40;
    width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
    border: 1px solid var(--glass-hi);
    background: radial-gradient(circle at 55% 60%, rgba(255, 122, 26, 0.6), rgba(26, 21, 18, 0.9) 75%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    transform-origin: 100% 100%; transition: transform .5s var(--ease-out), opacity .5s;
  }
  .stage.is-tucked { transform: scale(0.5); opacity: 0.7; }
  .glow, .halo { display: none; }
  .rig, .rig-fallback {
    width: 270px; height: auto; transform: none;
    left: calc(56px - 270px * 0.501); top: calc(56px - 270px * 1.2414 * 0.243); bottom: auto;
  }

  /* stacking needs viewport-height cards; on phones they simply follow each other */
  .stack-card { position: relative; top: auto; }
  .card-head { grid-template-columns: auto 1fr; }
  .when-pill { grid-column: 1 / -1; justify-self: start; }
  .bento { grid-template-columns: 1fr; }
  .tile-xl { grid-column: auto; }

  .path-line { left: 10px; translate: 0 0; }
  .milestone { grid-template-columns: 1fr; }
  .milestone .ms-card, .milestone[data-side] .ms-card { grid-column: 1; margin: 0 0 0 40px; }
  .node { left: 11px; top: 26px; }
  .stamp { right: -12px; }
  .steps, .points { grid-template-columns: 1fr; }
  .lang { min-width: 0; flex: 1 1 100%; }
  .bubble:nth-child(n) { margin: 0; }
  .site-footer { padding-bottom: 150px; }
}
@media (max-width: 420px) {
  .mark { font-size: 0.95rem; }
  .mark-dot { display: none; }
  .btn-small { padding: 0 14px; }
  .figures { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* projects page: closing panel has no photo column; nav marks the current page */
.closing-panel { grid-template-columns: 1fr; }
.closing { min-height: auto; }
.nav a[aria-current="page"] { color: var(--bg); background: var(--orange); }


/* ---------------------------------------------------------------- hover highlights */
/* experience cards light up under the cursor (and un-dim if they're stacked behind) */
.stack-card { transition: border-color .3s, box-shadow .4s, translate .45s var(--ease-spring); }
.stack-card:hover {
  border-color: rgba(255, 122, 26, 0.6); translate: 0 -4px;
  box-shadow: 0 34px 70px -30px rgba(255, 122, 26, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.stack-card:hover::after { opacity: 0; }
.stack-card::after { transition: opacity .3s; }
.stack-card:hover .mono { transform: rotate(-6deg) scale(1.06); }
.mono { transition: transform .5s var(--ease-spring); }
.stack-card:hover .card-head h3 { color: #fff; }
/* small tags and tax engine pills */
.tags li, .tools span { cursor: default; transition: background-color .2s, border-color .2s, color .2s, translate .3s var(--ease-spring), box-shadow .3s; }
.tags li:hover, .tools span:hover {
  color: var(--bg); background: var(--orange); border-color: var(--orange); translate: 0 -2px;
  box-shadow: 0 8px 20px -8px rgba(255, 122, 26, 0.8);
}

/* project card: the whole card opens the project page; the live-site button sits above that link */
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
/* the link must stay unpositioned so its ::before can stretch over the whole card;
   its underline is drawn with a background instead of ::after */
.card-link.project-cta {
  position: static; text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 35% 2px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.card-link.project-cta::after { display: none; }
.card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.project-feature:hover .card-link.project-cta, .card-link.project-cta:focus-visible { background-size: 100% 2px; }
.live-link { position: relative; z-index: 2; }

/* responsibilities window: wide, three columns, no scrolling on laptop screens */
.dialog-wide { width: min(1180px, calc(100vw - 32px)); max-height: 94vh; }
.dialog-wide .dialog-head { padding: 18px 26px; }
.resp-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px;
  max-height: calc(94vh - 80px); padding: 6px 26px 24px; font-size: 0.875rem;
}
.resp-grid h3 { margin-top: 14px; }
.resp-grid li { padding: 4px 0 4px 18px; }
@media (max-width: 1000px) { .resp-grid { grid-template-columns: 1fr; } }

/* "Get in touch" window */
.contact-dialog { width: min(560px, calc(100vw - 32px)); }
.contact-dialog-body { padding: 22px 26px 28px; display: grid; gap: 18px; color: var(--text-2); }
.big-email {
  display: block; font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; word-break: break-all;
  padding: 16px 18px; border-radius: 16px; background: rgba(255, 122, 26, 0.1); border: 1px solid rgba(255, 122, 26, 0.35);
  transition: background-color .25s, border-color .25s;
}
.big-email:hover { background: rgba(255, 122, 26, 0.18); border-color: var(--orange); }
.contact-dialog .copy-status { align-self: center; }
