/* ==========================================================================
   MAHER DHAMI — PERSONAL BRAND SITE
   Palette: #FFFFFF · #F8F9FC · #F5F8FF · #EAF1FF · #315EFB · #2449D8 · #60A5FA · #172033
   Type:    Space Grotesk (display) · Inter (body) · JetBrains Mono (labels)
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --off: #F8F9FC;
  --blue-soft: #F5F8FF;
  --blue-light: #EAF1FF;
  --blue: #315EFB;
  --blue-dark: #2449D8;
  --blue-accent: #60A5FA;
  --ink: #172033;
  --muted: #718096;

  --line: rgba(23, 32, 51, 0.1);
  --blue-06: rgba(49, 94, 251, 0.06);
  --blue-12: rgba(49, 94, 251, 0.12);
  --blue-20: rgba(49, 94, 251, 0.2);
  --blue-30: rgba(49, 94, 251, 0.3);
  --blue-acc-30: rgba(96, 165, 250, 0.35);

  --f-head: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 30px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
  --grad: linear-gradient(135deg, #315EFB, #60A5FA);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 8px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--off);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { /* quiet dot texture */
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(23, 32, 51, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--blue-light); color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Type helpers ---------- */
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--grad); }
.display { font-family: var(--f-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
mark { background: linear-gradient(transparent 60%, var(--blue-light) 60%); color: inherit; padding: 0 .08em; }

.sec-head { position: relative; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-num {
  position: absolute; right: 0; top: -.35em;
  font-family: var(--f-head); font-weight: 700; font-size: clamp(6rem, 17vw, 14rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue-30); opacity: .55; pointer-events: none; user-select: none;
}
.sec-title { font-size: clamp(2.6rem, 6.6vw, 5.6rem); margin-top: 18px; max-width: 14ch; position: relative; }
.sec-lede { max-width: 54ch; color: var(--muted); margin-top: 22px; font-size: 1.1rem; position: relative; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translate(3px, -3px); }
.btn--solid { background: var(--ink); color: #fff; box-shadow: 0 10px 28px -10px rgba(23, 32, 51, .55); }
.btn--solid::before { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .4s; z-index: -1; }
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px var(--blue-30); }
.btn--solid:hover::before { opacity: 1; }
.btn--ghost { border: 1.5px solid var(--line); background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); background: #fff; }
.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 12px 28px -10px var(--blue-30); }
.btn--blue:hover { transform: translateY(-3px); background: var(--blue-dark); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; position: relative; padding-bottom: 3px; }
.link-arrow::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--grad); transform: scaleX(.35); transform-origin: left; transition: transform .45s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

.tag { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--blue-light); color: var(--blue-dark); border: 1px solid rgba(49, 94, 251, .2); white-space: nowrap; }
.tag--feat { background: var(--blue-light); color: var(--blue-dark); border-color: rgba(49, 94, 251, .35); font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ---------- Reveal system ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal--scale { transform: scale(.94); }

/* ---------- Cursor (desktop only) ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--blue); }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--blue); }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor.is-active { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--blue-06); border-color: var(--blue); }
@media (pointer: coarse), (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; transition: background .4s, box-shadow .4s, height .4s var(--ease); }
.nav.is-scrolled { background: rgba(248, 249, 252, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); height: 66px; }
.nav__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 10px; }
.wordmark__mark { width: 34px; height: 34px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 8px 18px -8px var(--blue-30), 0 0 0 1.5px rgba(49, 94, 251, .25); transition: transform .5s var(--ease), box-shadow .5s; flex-shrink: 0; background: var(--blue-light); }
.wordmark__mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; }
.wordmark:hover .wordmark__mark { transform: rotate(-8deg) scale(1.08); box-shadow: 0 10px 22px -6px var(--blue-30), 0 0 0 2px var(--blue); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; padding: 9px 15px; font-size: .92rem; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .3s; }
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease); }
.nav__link.is-active::after { transform: translateX(-50%) scale(1); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; place-items: center; }
.menu-btn .icon { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded='true'] .i-menu { display: none; }
.menu-btn[aria-expanded='true'] .i-close { display: block; }

.drawer { position: fixed; inset: 0; z-index: 90; background: var(--white); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .7s var(--ease); visibility: hidden; }
.drawer.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.drawer__links a { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.03em; padding: 8px 0; border-bottom: 1px solid var(--line); }
.drawer__links a span { font-family: var(--f-mono); font-size: .75rem; color: var(--blue); font-weight: 500; letter-spacing: .1em; }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1020px) {
  .nav__links, .nav__cta .btn { display: none; }
  .menu-btn { display: grid; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 90px; overflow: hidden; isolation: isolate; }
.mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .62; animation: drift 18s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; background: var(--blue); opacity: .22; top: -12%; right: -8%; }
.mesh i:nth-child(2) { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; background: var(--blue-accent); opacity: .28; bottom: -14%; left: 28%; animation-duration: 22s; animation-delay: -6s; }
.mesh i:nth-child(3) { width: 26vw; height: 26vw; max-width: 340px; max-height: 340px; background: var(--blue-soft); opacity: 1; top: 8%; left: -6%; animation-duration: 26s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, -34px, 0) scale(1.14); } }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(10px); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; }
.status__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.status__dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--blue); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

.hero__title { font-size: clamp(4.4rem, 12.5vw, 11rem); line-height: .86; letter-spacing: -.05em; margin: 28px 0 30px -.04em; }
.hero__title .ln { display: block; overflow: hidden; padding: .06em 0 .1em; }
.hero__title .ln > span { display: inline-block; transform: translateY(112%); animation: rise 1.2s var(--ease) forwards; }
.hero__title .ln:nth-child(2) > span { animation-delay: .14s; }
@keyframes rise { to { transform: none; } }
.hero__intro { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; max-width: 30ch; color: var(--ink); font-weight: 500; letter-spacing: -.015em; }
.hero__intro em { font-style: normal; color: var(--blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__socials { display: flex; align-items: center; gap: 12px; margin-top: 40px; }
.hero__socials > span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.social { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
.social .icon { width: 19px; height: 19px; }
.social:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-4px) rotate(-6deg); }

.hero__visual { position: relative; display: grid; place-items: center; }
.portrait { position: relative; width: min(100%, 440px); aspect-ratio: 4 / 5; }
.portrait__frame { position: absolute; inset: 0; border-radius: 999px 999px 32px 32px; overflow: hidden; background: var(--blue-soft); box-shadow: 0 50px 90px -40px rgba(49, 94, 251, .55), 0 0 0 10px rgba(255, 255, 255, .7), 0 0 0 11px var(--line); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.portrait:hover .portrait__frame img { transform: scale(1.12) translateY(-1%); }
.portrait__back { position: absolute; inset: 24px -26px -26px 26px; border-radius: 999px 999px 32px 32px; background: var(--grad); opacity: .22; z-index: -1; }
.ring { position: absolute; top: -54px; right: -58px; width: 150px; height: 150px; z-index: 3; }
.ring svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.ring text { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; fill: var(--ink); }
.ring__core { position: absolute; inset: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 12px 26px -12px var(--blue-30); }
.ring__core .icon { color: var(--blue); width: 26px; height: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-tag { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 16px 36px -14px rgba(23, 32, 51, .28); font-size: .82rem; font-weight: 600; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.float-tag--1 { left: -64px; top: 16%; }
.float-tag--2 { right: -44px; top: 52%; animation-delay: -2s; }
.float-tag--3 { left: -30px; bottom: 9%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1.5px; height: 44px; background: linear-gradient(var(--blue), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: 70px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 8px; }
  .portrait { width: min(78%, 330px); }
  .float-tag--1 { left: -6%; } .float-tag--2 { right: -8%; } .float-tag--3 { left: 0; }
  .ring { width: 112px; height: 112px; top: -34px; right: -26px; } .ring__core { inset: 28px; }
  .scroll-cue { display: none; }
}

/* ---------- Identity strip ---------- */
.strip { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); padding: 22px 0; }
.strip__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -.03em; white-space: nowrap; }
.strip__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.strip__item svg { width: 26px; height: 26px; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.section { position: relative; padding: clamp(90px, 12vw, 170px) 0; }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.collage { position: sticky; top: 110px; min-height: 520px; }
.polaroid { position: relative; width: min(100%, 340px); background: #fff; padding: 14px 14px 56px; border-radius: 14px; box-shadow: 0 40px 70px -30px rgba(23, 32, 51, .45), 0 0 0 1px var(--line); transform: rotate(-4deg); transition: transform .8s var(--ease); }
.polaroid:hover { transform: rotate(-1deg) translateY(-6px); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 6px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); letter-spacing: .06em; }
.orb { position: absolute; right: 0; bottom: 0; width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px -24px var(--blue-30), 0 0 0 8px var(--white); transform: rotate(6deg); }
.orb img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; left: 150px; top: 24px; padding: 10px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; transform: rotate(8deg); box-shadow: 0 14px 26px -12px var(--blue-30); }
.statement { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.2; letter-spacing: -.028em; }
.statement b { font-weight: 700; color: var(--blue); }
.edu { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: baseline; margin-top: 56px; padding: 26px 0; border-block: 1px solid var(--line); }
.edu__yrs { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1; grid-row: span 2; }
.edu strong { font-family: var(--f-head); font-size: 1.3rem; letter-spacing: -.02em; }
.edu span { color: var(--muted); font-size: .95rem; }
.edu .mono { font-family: var(--f-mono); font-size: .76rem; color: var(--blue); letter-spacing: .06em; }

.loop { margin-top: 64px; }
.loop__label { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.loop__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.loop__steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 29px; border-top: 2px dashed var(--blue-30); z-index: 0; animation: dash 1.4s linear infinite; }
.loop__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 4px; text-align: center; }
.loop__node { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); transition: all .5s var(--ease); box-shadow: 0 8px 20px -10px rgba(23, 32, 51, .25); }
.loop__step span { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; color: var(--muted); transition: color .3s; }
.loop__step:hover .loop__node { border-color: var(--blue); color: var(--blue); transform: translateY(-4px); }
.loop__step.is-active .loop__node { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.12); box-shadow: 0 16px 30px -12px var(--blue-30); }
.loop__step.is-active span { color: var(--ink); }
.loop__detail { margin-top: 28px; min-height: 5.2em; padding: 22px 26px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); position: relative; font-size: 1.02rem; }
.loop__detail::before { content: ''; position: absolute; left: var(--pointer, 12.5%); top: -8px; width: 14px; height: 14px; background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); transition: left .5s var(--ease); }
.loop__detail p { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dash { to { background-position: 14px 0; } }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .collage { position: relative; top: 0; min-height: 440px; max-width: 420px; margin-bottom: 16px; }
  .sticker { left: 52%; }
  .loop__steps::before { display: none; }
}
@media (max-width: 520px) { .edu { grid-template-columns: 1fr; } .edu__yrs { grid-row: auto; } .loop__steps { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; } }

/* ==========================================================================
   EXPERTISE — CONSTELLATION
   ========================================================================== */
.expertise { background: var(--blue-soft); border-radius: clamp(36px, 6vw, 80px) clamp(36px, 6vw, 80px) 0 0; margin-top: -1px; overflow: hidden; }
.expertise::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -160px; background: radial-gradient(circle, rgba(49, 94, 251, .14), transparent 70%); pointer-events: none; }
.exp__grid { display: grid; grid-template-columns: 4.4fr 7.6fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.cats { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cat { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; text-align: left; padding: 20px 4px; border-bottom: 1px solid var(--line); font-family: var(--f-head); font-weight: 600; font-size: clamp(1.4rem, 2.5vw, 2.1rem); letter-spacing: -.03em; color: rgba(23, 32, 51, .38); transition: color .4s, padding .5s var(--ease); }
.cat small { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; font-weight: 500; }
.cat .icon { opacity: 0; transform: translateX(-10px); transition: all .5s var(--ease); width: 26px; height: 26px; }
.cat:hover { color: var(--ink); }
.cat.is-active { color: var(--ink); padding-left: 16px; }
.cat.is-active small { color: var(--blue); }
.cat.is-active .icon { opacity: 1; transform: none; color: var(--blue); }
.cats__hint { margin-top: 20px; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; }

.stage { position: relative; aspect-ratio: 1 / .92; width: 100%; }
.stage__rings { position: absolute; inset: 0; }
.stage__rings svg { width: 100%; height: 100%; overflow: visible; }
.stage__rings circle { fill: none; stroke: var(--blue-12); stroke-width: 1; stroke-dasharray: 3 7; }
.stage__rings circle:nth-child(2) { animation: spin 90s linear infinite reverse; transform-origin: center; }
.stage__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage__lines line { stroke: var(--blue); stroke-opacity: .28; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
.core { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; text-align: center; padding: 10px; font-family: var(--f-head); font-weight: 700; font-size: clamp(.8rem, 1.7vw, 1.2rem); line-height: 1.1; letter-spacing: -.02em; box-shadow: 0 30px 60px -24px var(--blue-30), 0 0 0 14px rgba(255, 255, 255, .5), 0 0 0 15px rgba(49, 94, 251, .15); z-index: 2; }
.node { position: absolute; z-index: 3; transform: translate(-50%, -50%); animation: nodeIn .7s var(--ease) both; animation-delay: calc(var(--i) * .06s); }
.node__chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 28px -14px rgba(23, 32, 51, .3); font-size: .86rem; font-weight: 600; white-space: nowrap; animation: bob 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.node__chip:hover { transform: scale(1.1); border-color: var(--blue); box-shadow: 0 20px 36px -14px var(--blue-30); }
.node__chip img, .node__chip .glyph { width: 20px; height: 20px; flex-shrink: 0; }
.node__chip .glyph { color: var(--blue); }
@keyframes nodeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

@media (max-width: 900px) {
  .exp__grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 10px 0; }
  .stage__rings, .stage__lines { display: none; }
  .core { position: relative; left: auto; top: auto; transform: none; width: 140px; font-size: 1rem; }
  .nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .node { position: static; transform: none; animation: none; }
}

/* ==========================================================================
   PROJECTS — EDITORIAL GALLERY
   ========================================================================== */
.projects { background: var(--white); }
.proj { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px clamp(20px, 3vw, 48px); align-items: center; margin-bottom: clamp(90px, 12vw, 170px); }
.proj__media { grid-column: 1 / span 7; position: relative; }
.proj__body { grid-column: 8 / span 5; }
.proj--flip .proj__media { grid-column: 6 / span 7; grid-row: 1; }
.proj--flip .proj__body { grid-column: 1 / span 5; grid-row: 1; }
.proj--wide .proj__media { grid-column: 1 / -1; }
.proj--wide .proj__body { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: end; margin-top: 12px; }
.proj__idx { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.proj__idx b { font-family: var(--f-head); font-size: 3.6rem; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--blue-30); font-weight: 700; }
.proj__title { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: .98; margin-bottom: 20px; }
.proj__desc { color: var(--muted); max-width: 46ch; margin-bottom: 24px; }
.proj__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.proj__links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

.browser { position: relative; border-radius: 18px; background: #fff; box-shadow: 0 60px 100px -50px rgba(49, 94, 251, .5), 0 0 0 1px var(--line); overflow: hidden; transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease), box-shadow .5s; will-change: transform; }
.proj--flip .browser { --base: 3deg; }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--off); border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser__dots i:nth-child(1) { background: var(--blue); } .browser__dots i:nth-child(2) { background: var(--blue-accent); }
.browser__url { flex: 1; max-width: 460px; margin-inline: auto; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--f-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.browser__url .icon { width: 12px; height: 12px; color: var(--blue); }
.browser__body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.browser--wide .browser__body { aspect-ratio: 21 / 9; }
.browser__body > img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.02)) translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform .6s var(--ease); }
.browser__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.browser:hover .browser__body > img { --zoom: 1.08; }
.preview-btn { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 16px); opacity: 0; display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px; background: rgba(23, 32, 51, .92); color: #fff; font-size: .86rem; font-weight: 600; backdrop-filter: blur(8px); transition: all .5s var(--ease); }
.browser:hover .preview-btn, .preview-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.preview-btn:hover { background: var(--blue); }
.art-note { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); backdrop-filter: blur(6px); }
.proj__float { position: absolute; z-index: 3; right: -22px; bottom: -26px; padding: 14px 20px; border-radius: 18px; background: #fff; box-shadow: 0 26px 50px -20px rgba(23, 32, 51, .35); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .72rem; color: var(--muted); animation: bob 7s ease-in-out infinite; }
.proj__float b { display: block; font-family: var(--f-head); font-size: 1.7rem; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }

.mini-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; margin-bottom: clamp(70px, 9vw, 130px); }
.mini:nth-child(2) { margin-top: clamp(40px, 7vw, 110px); }
.mini:nth-child(3) { margin-top: clamp(20px, 3.5vw, 56px); }
.viz { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--blue-soft), #fff 70%); border: 1px solid var(--line); margin-bottom: 26px; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.mini:hover .viz { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 40px 70px -36px var(--blue-30); }
.mini:nth-child(1) .viz { aspect-ratio: 4 / 5; }
.mini:nth-child(2) .viz { aspect-ratio: 1 / 1; background: linear-gradient(160deg, #fff, var(--blue-soft)); }
.mini:nth-child(3) .viz { aspect-ratio: 5 / 6; }
.viz svg { width: 100%; height: 100%; }
.viz .art-note { z-index: 2; }
.mini .proj__title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.mini .proj__desc { margin-bottom: 18px; }
.mini .proj__tags { margin-bottom: 20px; }
.viz-stat { position: absolute; right: 18px; bottom: 18px; padding: 12px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 34px -18px rgba(23, 32, 51, .3); font-family: var(--f-mono); font-size: .68rem; color: var(--muted); }
.viz-stat b { display: block; font-family: var(--f-head); font-size: 1.9rem; line-height: 1.05; letter-spacing: -.04em; color: var(--blue); }

.archive { border-top: 1px solid var(--line); }
.archive__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; }
.archive__head h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.repo { display: grid; grid-template-columns: 1fr 1.4fr auto auto; gap: 8px 24px; align-items: center; padding: 18px 8px; border-top: 1px solid var(--line); transition: background .4s, padding .5s var(--ease); }
.repo:hover { background: linear-gradient(90deg, var(--blue-soft), transparent); padding-left: 22px; }
.repo__name { font-family: var(--f-head); font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; }
.repo__desc { color: var(--muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.repo__lang { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); white-space: nowrap; }
.repo .icon { transition: transform .4s var(--ease); }
.repo:hover .icon { transform: translate(4px, -4px); color: var(--blue); }

@media (max-width: 960px) {
  .proj, .proj--flip { display: flex; flex-direction: column; align-items: stretch; gap: 36px; }
  .proj--wide .proj__body { display: block; }
  .proj__float { right: 8px; bottom: -22px; }
  .mini-grid { grid-template-columns: 1fr; }
  .mini:nth-child(n) { margin-top: 0; }
  .mini:nth-child(n) .viz { aspect-ratio: 4 / 3; }
  .repo { grid-template-columns: 1fr auto; } .repo__desc { grid-column: 1 / -1; order: 3; } .repo__lang { display: none; }
  .browser { transform: none !important; }
  .preview-btn { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   THE YOUNG FOUNDER SHOW
   ========================================================================== */
.tyf { overflow: hidden; background: linear-gradient(180deg, var(--off) 0%, var(--blue-soft) 22%, var(--blue-soft) 78%, var(--off) 100%); }
.tyf__rings { position: absolute; left: -22%; top: 4%; width: 74vw; max-width: 940px; aspect-ratio: 1; pointer-events: none; }
.tyf__rings i { position: absolute; inset: calc(var(--k) * 11%); border-radius: 50%; border: 1px solid rgba(49, 94, 251, calc(.2 - var(--k) * .028)); }
.tyf__grid { position: relative; display: grid; grid-template-columns: 5.2fr 6.8fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.tyf__brand { position: sticky; top: 110px; }
.tyf__logo { width: min(100%, 420px); background: #fff; border-radius: var(--r-lg); padding: 38px 34px; box-shadow: 0 50px 90px -40px rgba(49, 94, 251, .5), 0 0 0 1px var(--line); transform: rotate(-3deg); transition: transform .8s var(--ease); }
.tyf__logo:hover { transform: rotate(0deg) scale(1.03); }
.tyf__logo img { width: 100%; height: auto; }
.tyf__host { display: flex; align-items: center; gap: 14px; margin: 38px 0 0 6px; }
.tyf__host img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--blue); }
.tyf__host strong { display: block; font-family: var(--f-head); font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.2; }
.tyf__host span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
.tyf__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: .98; margin: 18px 0 22px; }
.tyf__copy { color: var(--muted); max-width: 52ch; font-size: 1.08rem; }
.wave { display: flex; align-items: center; gap: 4px; height: 96px; margin: 34px 0 10px; }
.wave i { flex: 1; max-width: 7px; min-width: 3px; height: 100%; border-radius: 6px; background: var(--grad); transform-origin: center; transform: scaleY(var(--h)); animation: wave 1.5s ease-in-out infinite; animation-delay: calc(var(--n) * -.09s); opacity: .9; }
@keyframes wave { 0%, 100% { transform: scaleY(calc(var(--h) * .35)); } 50% { transform: scaleY(var(--h)); } }
.wave-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 40px; }
.roster { margin-top: clamp(64px, 9vw, 110px); padding-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.roster__head { margin-bottom: clamp(28px, 4vw, 44px); }
.roster__tag { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.roster__head h3 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.035em; line-height: 1.05; }
.roster__subtitle { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); margin-top: 14px; max-width: 62ch; line-height: 1.55; }

.conv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}

.conv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 2.8vw, 32px);
  box-shadow: 0 12px 30px -18px rgba(23, 32, 51, .06);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
}

.conv-card:hover {
  transform: translateY(-5px);
  border-color: rgba(49, 94, 251, .35);
  box-shadow: 0 24px 48px -20px rgba(49, 94, 251, .2);
}

.conv-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.conv-card__no {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(49, 94, 251, .16);
  font-weight: 600;
}

.conv-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 94, 251, .16);
  transition: transform .4s var(--ease), background .35s, color .35s, border-color .35s;
  flex-shrink: 0;
}

.conv-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.conv-card:hover .conv-card__icon {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  transform: scale(1.08) rotate(-4deg);
}

.conv-card__title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.6vw, 1.35rem);
  letter-spacing: -.025em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}

.conv-card__desc {
  font-family: var(--f-body);
  font-size: .93rem;
  line-height: 1.58;
  color: var(--muted);
  margin-top: auto;
}

.tyf__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

@media (max-width: 1040px) {
  .conv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .conv-grid { grid-template-columns: 1fr; }
  .conv-card { padding: 22px 18px; }
}

@media (max-width: 900px) {
  .tyf__grid { grid-template-columns: 1fr; }
  .tyf__brand { position: relative; top: 0; }
  .tyf__logo { width: min(100%, 360px); }
}

/* ==========================================================================
   JOURNEY — TIMELINE
   ========================================================================== */
.journey { background: var(--off); }
.timeline { position: relative; }
.tl__rail { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: var(--line); transform: translateX(-50%); }
.tl__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--grad); transform: scaleY(var(--fill, 0)); transform-origin: top; border-radius: 2px; }
.tl__item { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: start; margin-bottom: clamp(44px, 7vw, 92px); }
.tl__dot { grid-column: 2; grid-row: 1; justify-self: center; width: 22px; height: 22px; margin-top: 12px; border-radius: 50%; background: var(--off); border: 2px solid var(--blue-30); z-index: 2; transition: all .6s var(--ease); }
.tl__item.in .tl__dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 8px var(--blue-12); }
.tl__date { grid-row: 1; font-family: var(--f-head); font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .95; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.tl__date small { display: block; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; -webkit-text-stroke: 0; color: var(--blue); margin-top: 10px; font-weight: 500; text-transform: uppercase; }
.tl__card { grid-row: 1; max-width: 460px; }
.tl__card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 4px; }
.tl__card .org { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: var(--blue); display: block; margin-bottom: 12px; }
.tl__card p { color: var(--muted); font-size: 1rem; }
.tl__item:nth-child(odd) .tl__date { grid-column: 1; text-align: right; }
.tl__item:nth-child(odd) .tl__card { grid-column: 3; }
.tl__item:nth-child(even) .tl__date { grid-column: 3; }
.tl__item:nth-child(even) .tl__card { grid-column: 1; justify-self: end; text-align: right; }
.tl__now { display: flex; align-items: center; justify-content: center; margin-top: -10px; }
.tl__now img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; box-shadow: 0 0 0 4px var(--off), 0 0 0 6px var(--blue), 0 0 0 16px var(--blue-12); animation: pulseRing 2.8s var(--ease) infinite; position: relative; z-index: 2; }
@keyframes pulseRing { 0%, 100% { box-shadow: 0 0 0 4px var(--off), 0 0 0 6px var(--blue), 0 0 0 14px var(--blue-12); } 50% { box-shadow: 0 0 0 4px var(--off), 0 0 0 6px var(--blue), 0 0 0 26px rgba(49, 94, 251, 0); } }
.certs { margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: 4fr 8fr; gap: 36px; align-items: start; }
.certs h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.certs ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.certs li { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--line); font-size: .96rem; }
.certs li .icon { color: var(--blue); margin-top: 3px; }
.certs li span { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; }

@media (max-width: 820px) {
  .tl__rail { left: 15px; transform: none; }
  .tl__item { grid-template-columns: 32px 1fr; column-gap: 18px; }
  .tl__dot { grid-column: 1 !important; grid-row: 1 / span 2; margin-top: 8px; justify-self: start; }
  .tl__item .tl__date, .tl__item:nth-child(n) .tl__date { grid-column: 2 !important; grid-row: 1; text-align: left; font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .tl__item .tl__card, .tl__item:nth-child(n) .tl__card { grid-column: 2 !important; grid-row: 2; text-align: left; justify-self: start; margin-top: 12px; }
  .tl__now { justify-content: flex-start; margin-left: -8px; }
  .certs { grid-template-columns: 1fr; } .certs ul { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--white); overflow: hidden; }
.contact::before { content: ''; position: absolute; width: 640px; height: 640px; right: -220px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(49, 94, 251, .15), transparent 68%); pointer-events: none; }
.contact__title { font-size: clamp(2.6rem, 8vw, 7.8rem); line-height: .92; letter-spacing: -.05em; margin: 22px 0 56px; word-break: normal; overflow-wrap: normal; }
.contact__title .outline { -webkit-text-stroke-color: var(--blue); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; position: relative; }
.mail-link { display: inline-block; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.05rem, 1.95vw, 1.85rem); letter-spacing: -.02em; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; max-width: 100%; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; padding-bottom: 6px; }
.mail-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform-origin: left; transition: transform .5s var(--ease); }
.mail-link:hover::after { transform: scaleX(.3); }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 40px; }
.chan { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 16px 6px; border-top: 1px solid var(--line); transition: padding .5s var(--ease), background .4s; }
.chan:last-of-type { border-bottom: 1px solid var(--line); }
.chan:hover { padding-left: 20px; background: linear-gradient(90deg, var(--blue-soft), transparent); }
.chan__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); }
.chan strong { font-family: var(--f-head); font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; display: block; line-height: 1.2; }
.chan span { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.chan .icon { transition: transform .4s var(--ease); }
.chan:hover .icon.go { transform: translate(4px, -4px); color: var(--blue); }

.panel { background: var(--off); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 30px); box-shadow: 0 50px 90px -60px rgba(49, 94, 251, .5); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.panel__title { font-family: var(--f-head); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.panel__title .icon { color: var(--blue); }
.panel__hint { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.calendly-inline-widget { border-radius: var(--r-md); overflow: hidden; background: #fff; min-height: 700px; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .mail-link { font-size: clamp(1.05rem, 3.8vw, 1.85rem); }
}

@media (max-width: 480px) {
  .mail-link { font-size: clamp(.88rem, 4.6vw, 1.1rem); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(60px, 8vw, 100px) 0 28px; isolation: isolate; }
.footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 75%); }
.footer::after { content: ''; position: absolute; width: 560px; height: 560px; left: 50%; bottom: -380px; transform: translateX(-50%); border-radius: 50%; background: var(--grad); filter: blur(120px); opacity: .5; z-index: -1; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__tag { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.025em; line-height: 1.2; max-width: 24ch; }
.footer__tag span { color: var(--blue-accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer__links a { font-size: .95rem; color: rgba(255, 255, 255, .72); display: inline-flex; align-items: center; gap: 6px; transition: color .3s; }
.footer__links a:hover { color: #fff; }
.footer__mark { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.2rem, 9.5vw, 9.4rem); line-height: .88; letter-spacing: -.04em; white-space: nowrap; margin: clamp(36px, 5vw, 68px) 0 20px 0; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28); transition: -webkit-text-stroke-color .5s; user-select: none; max-width: 100%; box-sizing: border-box; }
.footer__mark:hover { -webkit-text-stroke-color: var(--blue); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }

.to-top { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 18px 36px -14px rgba(23, 32, 51, .6); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all .5s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); transform: translateY(-4px); }
.to-top svg.ring-p { position: absolute; inset: -4px; width: 62px; height: 62px; transform: rotate(-90deg); }
.to-top svg.ring-p circle { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 176; stroke-dashoffset: calc(176 - 176 * var(--progress, 0)); stroke-linecap: round; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 250; transform: translate(-50%, 30px); opacity: 0; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500; box-shadow: 0 24px 48px -16px rgba(23, 32, 51, .6); transition: all .5s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   INTRO VIDEO & MODAL
   ========================================================================== */
.portrait__play {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 16px 36px -10px rgba(23, 32, 51, .5), 0 0 0 4px rgba(255, 255, 255, .9);
  cursor: pointer;
  font-family: var(--f-head);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, box-shadow .3s;
}
.portrait__play:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.04);
  background: var(--blue);
  box-shadow: 0 20px 42px -10px var(--blue-30), 0 0 0 4px #fff;
}
.portrait__play-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .3s, color .3s, transform .3s;
}
.portrait__play:hover .portrait__play-icon {
  background: #fff;
  color: var(--blue);
  transform: scale(1.1);
}
.portrait__play-icon .icon { width: 11px; height: 11px; }
.portrait__play-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  animation: play-ring 2.6s infinite;
  pointer-events: none;
}
@keyframes play-ring {
  0% { transform: scale(1); opacity: .75; }
  100% { transform: scale(1.12, 1.35); opacity: 0; }
}

.polaroid__play {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid var(--blue-30);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.polaroid__play:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.polaroid__play .icon { width: 11px; height: 11px; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.video-modal__box {
  position: relative;
  z-index: 2;
  width: min(92vw, 400px);
  background: #0f172a;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
  transform: scale(.92) translateY(16px);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.video-modal.is-open .video-modal__box {
  transform: scale(1) translateY(0);
}
.video-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(30, 41, 59, .75);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.video-modal__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
}
.video-modal__title strong {
  font-family: var(--f-head);
  font-weight: 600;
}
.video-modal__sub {
  font-family: var(--f-mono);
  font-size: .75rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, .08);
  padding: 2px 8px;
  border-radius: 999px;
}
.video-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.video-modal__close:hover {
  background: rgba(255, 255, 255, .22);
  transform: rotate(90deg);
}
.video-modal__close .icon {
  width: 16px;
  height: 16px;
}
.video-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(78vh, 660px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal__player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
  background: #000;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title .ln > span { transform: none; }
  .strip__track { animation: none; }
}
