/* ==========================================================================
   aserour.com — Ahmed Adel Serour
   Design system: graphite + clinker-amber + lab-teal · Fraunces / Manrope
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090e18;
  --bg-2: #0d1422;
  --bg-3: #121b2d;
  --text: #edf0f6;
  --text-2: #b9c2d3;
  --muted: #8892a6;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --glass: rgba(20, 29, 48, .52);
  --glass-2: rgba(26, 37, 60, .7);
  --glass-hi: rgba(255, 255, 255, .06);
  --accent: #e8a94a;
  --accent-2: #f3c77d;
  --accent-ink: #1b1204;
  --teal: #4fc1c9;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .65);
  --shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --lattice: 232, 169, 74;
  --lattice-2: 79, 193, 201;
  --portrait-bg: radial-gradient(circle at 50% 38%, #24324f 0%, #121a2c 55%, transparent 72%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-2: #ece7dd;
  --bg-3: #e3ddd0;
  --text: #121826;
  --text-2: #34405a;
  --muted: #646e82;
  --line: rgba(18, 24, 38, .09);
  --line-2: rgba(18, 24, 38, .16);
  --glass: rgba(255, 255, 255, .58);
  --glass-2: rgba(255, 255, 255, .78);
  --glass-hi: rgba(255, 255, 255, .7);
  --accent: #b46d12;
  --accent-2: #d08a2c;
  --accent-ink: #fffaf1;
  --teal: #157a85;
  --shadow: 0 30px 70px -32px rgba(60, 45, 20, .35);
  --shadow-sm: 0 10px 28px -14px rgba(60, 45, 20, .3);
  --lattice: 180, 109, 18;
  --lattice-2: 21, 122, 133;
  --portrait-bg: radial-gradient(circle at 50% 38%, #ffffff 0%, #ece4d4 55%, transparent 72%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body::before { /* film grain for depth */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  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");
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: .78em; letter-spacing: .02em; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic .fill, .ic use { }
svg .fill { fill: currentColor; stroke: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-hi);
}

/* ---------- Buttons ---------- */
.btn {
  --bg-b: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.55em; border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
  will-change: transform; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 12px 30px -12px var(--accent); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 18px 40px -12px var(--accent); }
.btn--ghost { border-color: var(--line-2); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: .6em 1.1em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .3s, color .3s, transform .3s var(--ease), background .3s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Scroll progress + cursor glow ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 210; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--accent)); }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, rgba(var(--lattice), .10), transparent 65%);
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.on { opacity: 1; } }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h); display: flex; align-items: center; transition: background .4s, box-shadow .4s, height .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { --nav-h: 64px; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark svg { width: 40px; height: 40px; display: block; transition: transform .8s var(--ease); }
.brand:hover .brand__mark svg { transform: rotate(60deg); }
.brand__mark polygon { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.brand__mark text { font: 600 13px var(--font-display); fill: var(--text); letter-spacing: .5px; }
.brand:hover .brand__mark text { transform-origin: 20px 20px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__text strong { font: 600 1rem var(--font-display); letter-spacing: .01em; white-space: nowrap; }
.brand__text small { font: 500 .66rem var(--font-mono); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--text-2); transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: var(--accent-ink); background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle .ic { position: absolute; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle { position: relative; }
[data-theme="dark"] .theme-toggle .sun { transform: rotate(90deg) scale(.4); opacity: 0; }
[data-theme="light"] .theme-toggle .moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.mobile-menu.open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 clamp(1.6rem, 7vw, 2.2rem)/1.1 var(--font-display); transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu nav a span { font: 500 .75rem var(--font-mono); color: var(--accent); }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .04s } .mobile-menu.open nav a:nth-child(3) { transition-delay: .08s }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .12s } .mobile-menu.open nav a:nth-child(5) { transition-delay: .16s }
.mobile-menu.open nav a:nth-child(6) { transition-delay: .2s } .mobile-menu.open nav a:nth-child(7) { transition-delay: .24s }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 30px) 0 90px; overflow: hidden; isolation: isolate; }
.hero__lattice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 45% at 78% 40%, rgba(var(--lattice), .22), transparent 70%),
    radial-gradient(35% 40% at 15% 20%, rgba(var(--lattice-2), .16), transparent 70%),
    radial-gradient(50% 50% at 50% 110%, rgba(var(--lattice), .10), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(-3%, 4%, 0) scale(1.08); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(30px, 5vw, 70px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); font: 500 .74rem var(--font-mono); letter-spacing: .06em; color: var(--text-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ad29f; box-shadow: 0 0 0 0 rgba(58, 210, 159, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(58, 210, 159, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 210, 159, 0); } }
.hero__title { margin: 22px 0 14px; font: 400 clamp(3rem, 8.4vw, 6.9rem)/.95 var(--font-display); letter-spacing: -.035em; font-variation-settings: "opsz" 144; }
.hero__title .line { display: block; }
.hero__title em { font-style: italic; font-weight: 300; background: linear-gradient(100deg, var(--accent-2), var(--accent) 45%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero__role { display: flex; align-items: center; gap: 10px; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; color: var(--text); min-height: 1.8em; }
.hero__role .mono { color: var(--accent); font-size: 1em; }
.caret { width: 2px; height: 1.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { max-width: 560px; margin-top: 16px; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 34px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__stats dt { font: 400 clamp(1.8rem, 3.2vw, 2.5rem)/1 var(--font-display); color: var(--text); }
.hero__stats dd { margin: 6px 0 0; font: 500 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.hero__visual { position: relative; display: flex; justify-content: center; }
.portrait { position: relative; width: min(100%, 470px); aspect-ratio: 4 / 5.2; }
.portrait::before { content: ""; position: absolute; inset: 4% 0 0; background: var(--portrait-bg); border-radius: 50%; z-index: 0; }
.portrait img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
.portrait__ring { position: absolute; inset: 6% 2% 8%; border-radius: 50%; border: 1px dashed rgba(var(--lattice), .45); z-index: 1; animation: spin 60s linear infinite; }
.portrait__ring::before, .portrait__ring::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); top: 50%; left: -5px; }
.portrait__ring::after { left: auto; right: -5px; top: 20%; background: var(--teal); box-shadow: 0 0 18px var(--teal); }
.portrait__hex { position: absolute; inset: 14% 10% 16%; z-index: 1; opacity: .5;
  background: conic-gradient(from 0deg, transparent, rgba(var(--lattice), .5), transparent 30%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1.5px;
  animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: .78rem; line-height: 1.3; color: var(--text-2); }
.chip strong { display: block; color: var(--text); font-size: .86rem; }
.chip .ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(var(--lattice), .16); color: var(--accent); }
.chip--a { left: -6%; top: 22%; }
.chip--b { right: -8%; top: 48%; }
.chip--c { left: -2%; bottom: 14%; }
.float { animation: float 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes float { 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid var(--line-2); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 400 clamp(1.1rem, 2vw, 1.5rem) var(--font-display); color: var(--text-2); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.kicker { display: flex; align-items: center; gap: 12px; font: 500 .74rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.kicker span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(var(--lattice), .45); font-size: .7rem; letter-spacing: 0; }
.kicker::after { content: ""; width: 50px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.h2 { font: 400 clamp(2rem, 4.6vw, 3.5rem)/1.06 var(--font-display); letter-spacing: -.025em; }
.h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.section-lead { margin-top: 18px; color: var(--text-2); font-size: 1.06rem; max-width: 620px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (min-width: 921px) { .about__photo { position: sticky; top: calc(var(--nav-h) + 30px); } }
.about__photo { position: relative; margin: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.04); }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 15, .55), transparent 45%); }
.about__photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; padding: 18px 20px; border-radius: 16px; color: #fff; background: rgba(15, 22, 38, .45); border-color: rgba(255, 255, 255, .14); }
.about__photo figcaption .mono { color: var(--accent-2); display: block; margin-bottom: 4px; }
.about__photo figcaption strong { font: 400 1.25rem/1.25 var(--font-display); }
.prose { display: grid; gap: 16px; margin-top: 24px; color: var(--text-2); font-size: 1.04rem; }
.prose strong { color: var(--text); font-weight: 600; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 30px; border-radius: var(--radius); overflow: hidden; background: var(--line); padding: 0; }
.glance div { padding: 16px 20px; background: var(--glass-2); }
.glance span { display: block; font: 500 .68rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.glance strong { font-size: .93rem; font-weight: 600; }
.mission { position: relative; margin: 28px 0 0; padding: 4px 0 4px 54px; font: italic 300 1.15rem/1.55 var(--font-display); color: var(--text); }
.mission .ic { position: absolute; left: 0; top: 4px; width: 36px; height: 36px; color: var(--accent); opacity: .8; }

/* ---------- Expertise ---------- */
.expertise { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.xrd { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 30px; padding: 28px 30px; border-radius: var(--radius); margin-bottom: 30px; overflow: hidden; }
.xrd__text .mono { color: var(--teal); }
.xrd__text p { margin-top: 10px; color: var(--text-2); font-size: .98rem; }
.xrd__svg { width: 100%; height: 200px; overflow: visible; }
.xrd__grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xrd__grid text { fill: var(--muted); font: 10px var(--font-mono); }
.xrd__line { fill: none; stroke: var(--accent); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.xrd__area { fill: url(#xrdFill); opacity: 0; transition: opacity 1.2s .9s; }
.xrd.in .xrd__area { opacity: 1; }
.xrd__labels text { fill: var(--text); font: 600 11px var(--font-mono); opacity: 0; transition: opacity .6s; }
.xrd__labels line { stroke: var(--teal); stroke-dasharray: 2 3; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .6s; }
.xrd.in .xrd__labels text, .xrd.in .xrd__labels line { opacity: 1; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; padding: 28px 26px 24px; border-radius: var(--radius); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); transform-style: preserve-3d; }
.card::before { /* pointer-follow sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--lattice), .14), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(var(--lattice), .45); }
.card__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--lattice), .22), rgba(var(--lattice-2), .14)); color: var(--accent); border: 1px solid rgba(var(--lattice), .3); }
.card__icon .ic { width: 24px; height: 24px; }
.card__num { position: absolute; top: 24px; right: 24px; color: var(--muted); }
.card h3 { margin: 20px 0 10px; font: 500 1.28rem/1.25 var(--font-display); }
.card p { color: var(--text-2); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 .7rem var(--font-mono); color: var(--text-2); }

/* ---------- Impact ---------- */
.impact { overflow: hidden; }
.impact__bg { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric { position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden; }
.metric__ring { position: absolute; right: 22px; top: 22px; width: 78px; height: 78px; transform: rotate(-90deg); }
.metric__ring circle { fill: none; stroke-width: 7; }
.metric__ring .track { stroke: var(--line); }
.metric__ring .bar { stroke: url(#none); stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 2s var(--ease) .2s; }
.metric.in .metric__ring .bar { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
.metric:nth-child(even) .metric__ring .bar { stroke: var(--teal); }
.metric__value { display: flex; align-items: baseline; font: 400 clamp(3rem, 6vw, 4.4rem)/1 var(--font-display); letter-spacing: -.03em; }
.metric__value .sign, .metric__value .unit { font-size: .55em; color: var(--accent); margin-inline: 2px; }
.metric h3 { margin-top: 14px; font: 600 1rem var(--font-body); }
.metric p { margin-top: 6px; color: var(--muted); font-size: .9rem; max-width: 30ch; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: clamp(50px, 7vw, 80px); }
.case { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.case:hover { padding-left: 8px; }
.case__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(var(--lattice), .4); color: var(--accent); transition: background .4s, color .4s; }
.case:hover .case__icon { background: var(--accent); color: var(--accent-ink); }
.case__where { color: var(--teal); }
.case h3 { margin: 4px 0 6px; font: 500 1.2rem var(--font-display); }
.case p { color: var(--text-2); font-size: .95rem; }

/* ---------- Timeline ---------- */
.journey { background: var(--bg-2); }
.timeline { position: relative; display: grid; gap: 16px; padding-left: 44px; }
.timeline__rail { position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--fill, 0)); background: linear-gradient(to bottom, var(--accent), var(--teal)); border-radius: 2px; }
.tl { position: relative; }
.tl__dot { position: absolute; left: -38px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); transition: background .4s; }
.tl.open .tl__dot { background: var(--accent); }
.tl__dot.is-current::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--accent); animation: ripple 2s infinite; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.tl__card { border-radius: var(--radius); overflow: hidden; transition: border-color .4s; }
.tl.open .tl__card, .tl__card:hover { border-color: rgba(var(--lattice), .4); }
.tl__head { position: relative; display: grid; width: 100%; text-align: left; gap: 4px; padding: 22px 64px 22px 26px; }
.tl__date { color: var(--accent); display: flex; align-items: center; gap: 10px; }
.live { font-style: normal; padding: 2px 8px; border-radius: 999px; background: rgba(58, 210, 159, .15); color: #3ad29f; font-size: .9em; }
.tl__role { font: 500 clamp(1.1rem, 2vw, 1.38rem)/1.3 var(--font-display); }
.tl__co { color: var(--text-2); font-size: .93rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl__loc { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.tl__loc .ic { width: 14px; height: 14px; }
.tl__co .dot { color: var(--muted); }
.tl__chev { position: absolute; right: 24px; top: 50%; margin-top: -11px; width: 22px; height: 22px; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
.tl.open .tl__chev { transform: rotate(180deg); color: var(--accent); }
.tl__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.tl.open .tl__body { grid-template-rows: 1fr; }
.tl__inner { overflow: hidden; padding: 0 26px; }
.tl.open .tl__inner { padding-bottom: 24px; }
.tl__inner p { color: var(--text-2); padding-top: 14px; border-top: 1px solid var(--line); }
.tl__inner ul { display: grid; gap: 10px; margin-top: 14px; }
.tl__inner li { display: flex; gap: 10px; font-size: .95rem; color: var(--text-2); }
.tl__inner li .ic { margin-top: 4px; color: var(--teal); width: 16px; height: 16px; }

/* ---------- Credentials ---------- */
.cred__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 60px); }
.sub { display: flex; align-items: center; gap: 10px; font: 500 1.3rem var(--font-display); margin-bottom: 20px; }
.sub .ic { color: var(--accent); }
.sub small { margin-left: auto; font: 500 .7rem var(--font-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.edu { display: grid; align-content: start; }
.edu__item { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.edu__yr { color: var(--accent); padding-top: 3px; }
.edu__item strong { display: block; font-weight: 600; font-size: 1rem; }
.edu__item span:not(.mono) { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; }
.cert__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cert { display: flex; flex-direction: column; text-align: left; padding: 10px 10px 14px; border-radius: 16px; transition: transform .45s var(--ease), border-color .3s; }
.cert:hover { transform: translateY(-5px); border-color: rgba(var(--lattice), .45); }
.cert__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 12px; }
.cert__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.cert:hover .cert__img img { transform: scale(1.06); }
.cert strong { font-size: .86rem; line-height: 1.35; font-weight: 600; padding-inline: 4px; }
.cert .mono { margin-top: 4px; padding-inline: 4px; color: var(--muted); font-size: .68rem; }
.more-certs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 24px; }
.more-certs li { display: flex; gap: 8px; font-size: .88rem; color: var(--text-2); }
.more-certs .ic { color: var(--teal); width: 16px; height: 16px; margin-top: 4px; }
.toolkit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); }
.toolkit > .mono { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; }
.toolkit ul { display: flex; flex-wrap: wrap; gap: 8px; }
.toolkit li { padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .84rem; transition: border-color .3s, color .3s, transform .3s var(--ease); }
.toolkit li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Recognition ---------- */
.recognition { background: linear-gradient(to bottom, var(--bg), var(--bg-2)); }
.award { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; }
.award__media { border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.award__media img { width: 100%; height: 100%; object-fit: cover; }
.award__copy { margin-left: -90px; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius); position: relative; z-index: 2; background: var(--glass-2); }
.award__copy .h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.award__copy > p:not(.kicker) { margin-top: 16px; color: var(--text-2); }
.award__badge { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--lattice), .35); background: rgba(var(--lattice), .08); font-size: .85rem; color: var(--text-2); }
.award__badge strong { display: block; color: var(--text); }
.award__badge .ic { width: 34px; height: 34px; color: var(--accent); }

.testi { margin-top: clamp(60px, 8vw, 100px); }
.testi__track { display: grid; }
.testi__item { grid-area: 1 / 1; margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.testi__item.active { opacity: 1; transform: none; pointer-events: auto; }
.testi__q { width: 46px; height: 46px; color: var(--accent); opacity: .7; }
.testi__item blockquote { margin: 16px 0 26px; font: 300 clamp(1.15rem, 2.2vw, 1.6rem)/1.5 var(--font-display); color: var(--text); }
.testi__item figcaption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .88rem; }
.testi__item figcaption strong { display: block; color: var(--text); font-size: 1rem; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff; font: 500 1.2rem var(--font-display); }
.testi__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.testi__dots { display: flex; gap: 8px; }
.testi__dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--line-2); transition: width .4s var(--ease), background .3s; }
.testi__dots button.on { width: 28px; background: var(--accent); }

.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: clamp(60px, 8vw, 100px); margin-bottom: 24px; }
.gallery-head h3 { font: 400 clamp(1.6rem, 3vw, 2.2rem) var(--font-display); }
.gallery-head h3 em { color: var(--accent); font-weight: 300; }
.gallery-head p { color: var(--muted); font-size: .9rem; max-width: 360px; }
.gallery { columns: 3 240px; column-gap: 12px; }
.gallery__item { position: relative; display: block; width: 100%; margin-bottom: 12px; break-inside: avoid; border-radius: 16px; overflow: hidden; background: var(--bg-3); }
.gallery__item img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__cap { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: #fff; font-size: .8rem; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); transform: translateY(100%); transition: transform .5s var(--ease); }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { transform: none; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--lattice), .14), transparent 65%); z-index: -1; }
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.channel { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; font-size: .82rem; color: var(--muted); transition: transform .4s var(--ease), border-color .3s; min-width: 0; }
.channel span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.channel strong { display: block; color: var(--text); font-size: .95rem; }
.channel .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(var(--lattice), .14); color: var(--accent); transition: background .3s, color .3s; }
.channel:hover { transform: translateY(-3px); border-color: rgba(var(--lattice), .5); }
.channel:hover .ic { background: var(--accent); color: var(--accent-ink); }
.contact__card { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 14px; border-radius: var(--radius); }
.contact__card img { width: 86px; height: 86px; border-radius: 16px; object-fit: cover; object-position: center 12%; }
.contact__card strong { display: block; font: 500 1.15rem var(--font-display); }
.contact__card span { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.contact__card .loc .ic { width: 14px; height: 14px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: #3ad29f; box-shadow: 0 0 10px #3ad29f; }

.form { padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) + 4px); }
.form__title { font: 500 1.5rem var(--font-display); margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2);
  color: var(--text); font: 500 .98rem var(--font-body); transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field textarea { min-height: 150px; }
.field label { position: absolute; left: 17px; top: 16px; color: var(--muted); font-size: .95rem; pointer-events: none; transition: transform .3s var(--ease), font-size .3s, color .3s, top .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--lattice), .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: .7rem; color: var(--accent); letter-spacing: .04em; }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.err-msg { display: block; min-height: 0; color: #e5484d; font-size: .78rem; margin-top: 4px; }
.err-msg:empty { display: none; }
.counter { position: absolute; right: 14px; bottom: 12px; color: var(--muted); font-size: .68rem; }
.field--area .err-msg ~ .counter { bottom: 12px; }
.topics { border: 0; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { width: 100%; padding: 0; margin-bottom: 10px; font: 500 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .84rem; cursor: pointer; transition: all .3s var(--ease); }
.topic input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.topic span:hover { border-color: var(--accent); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; }
.form__status.show { display: block; }
.form__status.ok { background: rgba(58, 210, 159, .12); color: #2fb487; border: 1px solid rgba(58, 210, 159, .3); }
.form__status.err { background: rgba(229, 72, 77, .1); color: #e5484d; border: 1px solid rgba(229, 72, 77, .3); }
.form__note { margin-top: 12px; text-align: center; font-size: .78rem; color: var(--muted); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .ic, .btn.loading .btn__label { opacity: .5; }
.btn.loading .ic { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: center; }
.footer__brand strong { display: block; font: 500 1.3rem var(--font-display); }
.footer__brand span { color: var(--muted); font-size: .85rem; }
.footer__social { display: flex; gap: 10px; }
.footer__copy { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; font-family: var(--font-mono); }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 150; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), border-color .3s, color .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 70px 70px 40px; background: rgba(5, 8, 15, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .4s; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-height: calc(100svh - 160px); width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox figcaption { color: #dfe4ee; font-size: .9rem; text-align: center; }
.lightbox .icon-btn { position: absolute; color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -21px; }
.lb-next { right: 18px; top: 50%; margin-top: -21px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translate(-50%, 140%); max-width: min(92vw, 520px); padding: 14px 20px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: .92rem; box-shadow: var(--shadow); transition: transform .5s var(--ease), visibility .5s; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s } .hero .reveal:nth-child(3) { transition-delay: .16s }
.hero .reveal:nth-child(4) { transition-delay: .24s } .hero .reveal:nth-child(5) { transition-delay: .32s } .hero .reveal:nth-child(6) { transition-delay: .4s }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .burger { display: inline-flex; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .chip--b { right: -2%; }
}
@media (max-width: 920px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 30px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .portrait { width: min(78%, 360px); }
  .chip { font-size: .7rem; padding: 8px 10px; }
  .chip strong { font-size: .78rem; }
  .chip .ic { width: 26px; height: 26px; }
  .chip--a { left: -16%; } .chip--b { right: -16%; } .chip--c { left: -12%; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .scroll-cue { display: none; }
  .about__grid, .cred__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 520px; aspect-ratio: 4 / 4.4; }
  .xrd { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
  .award { grid-template-columns: 1fr; }
  .award__copy { margin: -60px 16px 0; }
  .gallery { columns: 2; }
  .gallery-head { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  body { font-size: 15.5px; }
  .hide-sm { display: none; }
  .brand__text small { display: none; }
  .brand__text strong { font-size: .95rem; }
  .hero__title { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero__cta .btn { flex: 1 1 100%; }
  .chip--c { display: none; }
  .chip--a { left: -12%; top: 44%; } .chip--b { right: -12%; top: 66%; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .portrait { width: min(74%, 300px); }
  .cards, .metrics { grid-template-columns: 1fr; }
  .xrd { padding: 20px; }
  .xrd__svg { height: 150px; }
  .glance { grid-template-columns: 1fr; }
  .edu__item { grid-template-columns: 1fr; gap: 4px; }
  .cert__grid { grid-template-columns: 1fr 1fr; }
  .more-certs { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .timeline { padding-left: 30px; }
  .timeline__rail { left: 6px; }
  .tl__dot { left: -31px; width: 14px; height: 14px; }
  .tl__head { padding: 18px 50px 18px 18px; }
  .tl__chev { right: 16px; }
  .tl__co { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tl__co .dot { display: none; }
  .tl__inner { padding: 0 18px; }
  .gallery { column-gap: 8px; }
  .gallery__item { margin-bottom: 8px; border-radius: 12px; }
  .gallery__cap { transform: none; font-size: .7rem; padding: 20px 10px 8px; }
  .award__copy { margin: -40px 10px 0; }
  .lightbox { padding: 64px 12px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; }
  .lb-prev { left: calc(50% - 52px); } .lb-next { right: calc(50% - 52px); }
  .lightbox img { max-height: calc(100svh - 190px); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .progress, .cursor-glow, .hero__lattice, .to-top, .lightbox, .toast, .form, .marquee, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
