/* ==========================================================================
   tutkubide.com
   Layout patterns inspired by bchiang7/v4 (MIT), cobiwave/simplefolio (MIT)
   and emilbaehr/automatic-app-landing-page (MIT). No code copied.
   ========================================================================== */

:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --surface: #13151a;
  --surface-2: #1a1d23;
  --ink: #f1f2f4;
  --ink-2: #a8adb7;
  --muted: #6d737e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --accent: #5eead4;
  --accent-ink: #04201b;
  --c: #5eead4;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shot-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: #fff; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 1000px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }
.skip { position: fixed; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 12px; }
.i { width: 16px; height: 16px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--accent:hover { box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline.is-done { border-color: var(--accent); color: var(--accent); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; font-family: var(--mono); font-weight: 500; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .2s, color .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); }
.chips--sm li { padding: 3px 10px; font-size: 12.5px; }

.app-icon { width: 56px; height: 56px; flex: none; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 16px -6px rgba(0, 0, 0, .6); background: var(--surface-2); }
.app-icon--xl { width: 132px; height: 132px; }

.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.status__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #34d399; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: transform .35s var(--ease), background-color .35s, border-color .35s, height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 64px; background: rgba(10, 11, 13, .78);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__row { height: 100%; display: flex; align-items: center; gap: 24px; max-width: none; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 14px; font-weight: 500;
  transition: background-color .25s, color .25s;
}
.brand:hover .brand__mark { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.site-nav { display: flex; gap: 6px; margin-left: auto; counter-reset: nav; }
.site-nav a { display: inline-flex; gap: 6px; padding: 8px 12px; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.site-nav a .n { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-header__tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.lang button { height: 28px; padding: 0 10px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); transition: background-color .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; left: 16px; }
.is-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.is-open .menu-btn span:last-child { left: 10px; transform: translateY(-4px) rotate(-45deg); }

/* ---------- Side rails ---------- */
.rail { position: fixed; bottom: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.rail::after { content: ""; width: 1px; height: 96px; background: var(--muted); opacity: .6; }
.rail--left { left: clamp(20px, 3vw, 40px); }
.rail--left svg { width: 20px; height: 20px; }
.rail--left a { display: block; color: var(--ink-2); transition: color .2s, transform .2s var(--ease); }
.rail--left a:hover { color: var(--accent); transform: translateY(-3px); }
.rail--right { right: clamp(20px, 3vw, 40px); }
.rail--right a { writing-mode: vertical-rl; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--ink-2); transition: color .2s, transform .2s var(--ease); }
.rail--right a:hover { color: var(--accent); transform: translateY(-3px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 32px) 0 56px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -120px; top: 4%;
  background: radial-gradient(closest-side, rgba(94, 234, 212, .13), transparent 70%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero__hi { font-family: var(--mono); color: var(--accent); font-size: clamp(14px, 1.3vw, 16px); margin-bottom: 18px; }
.hero__name { font-size: clamp(48px, 8vw, 92px); letter-spacing: -.045em; line-height: .98; font-weight: 800; }
.hero__sub { margin-top: 10px; font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; color: var(--muted); max-width: 15ch; }
.hero__lead { margin-top: 28px; max-width: 54ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .status { margin-top: 28px; }

/* Load-in sequence */
.load { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-loaded .load { opacity: 1; transform: none; }
.is-loaded .hero__text .load:nth-child(2) { transition-delay: .08s; }
.is-loaded .hero__text .load:nth-child(3) { transition-delay: .16s; }
.is-loaded .hero__text .load:nth-child(4) { transition-delay: .24s; }
.is-loaded .hero__text .load:nth-child(5) { transition-delay: .32s; }
.is-loaded .hero__text .load:nth-child(6) { transition-delay: .4s; }
.is-loaded .hero__stage.load { transition-delay: .3s; transition-duration: 1.2s; }

/* Stage — fanned screenshots with parallax */
.hero__stage { perspective: 1600px; }
.stage { --px: 0; --py: 0; position: relative; height: min(640px, 72vh); transform-style: preserve-3d; }
.stage__shot {
  position: absolute; top: 50%; left: 50%; width: min(42%, 250px); border-radius: 22px;
  box-shadow: var(--shot-shadow), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .6s var(--ease);
}
.stage__shot--c { z-index: 3; transform: translate(-50%, -50%) translate(calc(var(--px) * -26px), calc(var(--py) * -20px)) rotateY(calc(var(--px) * 10deg)); animation: float 7s ease-in-out infinite; }
.stage__shot--l { z-index: 1; transform: translate(-112%, -46%) rotate(-9deg) translate(calc(var(--px) * -12px), calc(var(--py) * -10px)); filter: brightness(.75); }
.stage__shot--r { z-index: 2; transform: translate(12%, -54%) rotate(8deg) translate(calc(var(--px) * -14px), calc(var(--py) * -12px)); filter: brightness(.8); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.stage__badge {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 16px; background: rgba(20, 22, 27, .72); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); font-size: 13px; line-height: 1.3;
  transform: translate(calc(var(--px) * 30px), calc(var(--py) * 24px)); transition: transform .6s var(--ease);
}
.stage__badge img { width: 40px; height: 40px; border-radius: 22.5%; }
.stage__badge b { display: block; font-weight: 600; font-size: 14px; }
.stage__badge span { color: var(--ink-2); }
.stage__badge--a { left: 0; bottom: 14%; animation: float 8s ease-in-out -2s infinite; }
.stage__badge--b { right: 0; top: 12%; animation: float 9s ease-in-out -4s infinite; }
.stage__big { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--ink) !important; }
.stars-txt { color: #fbbf24; letter-spacing: 1px; font-size: 12px !important; }

/* ---------- Showreel ---------- */
.reel { position: relative; padding: 24px 0 72px; overflow: hidden; }
.reel__label { display: flex; justify-content: center; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-bottom: 28px; }
.reel__track {
  transform: rotate(-2.5deg) scale(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.reel__row { display: flex; gap: 18px; width: max-content; animation: marquee 110s linear infinite; padding-block: 16px; }
.reel:hover .reel__row { animation-play-state: paused; }
.reel__item { flex: none; width: 176px; border-radius: 18px; overflow: hidden; box-shadow: var(--shot-shadow); transition: transform .4s var(--ease); background: var(--surface); }
.reel__item:hover { transform: translateY(-10px) scale(1.03); }
.reel__item img { width: 100%; aspect-ratio: 600 / 1299; object-fit: cover; object-position: top; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats + brands ---------- */
.facts-band { padding-bottom: 32px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stats > div { padding: 32px 24px 32px 0; }
.stats > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt em { font-style: normal; color: var(--accent); }
.stats dd { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 24ch; }
.brands { padding-top: 40px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 32px; }
.brands__label { font-family: var(--mono); font-size: 12.5px; color: var(--muted); max-width: 18ch; line-height: 1.5; }
.brands__track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brands__row { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.brands__row li { display: flex; align-items: center; padding-right: 44px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.03em; color: color-mix(in srgb, var(--ink) 38%, transparent); white-space: nowrap; transition: color .2s; }
.brands__row li::after { content: ""; width: 6px; height: 6px; margin-left: 44px; border-radius: 50%; background: var(--line-strong); }
.brands__row li:hover { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 140px); }
.heading {
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em;
}
.heading__n { font-family: var(--mono); font-weight: 400; font-size: .6em; color: var(--accent); letter-spacing: 0; }
.heading::after { content: ""; flex: 1; max-width: 320px; height: 1px; background: var(--line-strong); margin-left: 12px; }
.section__lead { margin-top: 18px; max-width: 64ch; font-size: 17px; color: var(--ink-2); }

/* ---------- Featured (alternating) ---------- */
.featured-list { display: grid; gap: clamp(72px, 10vw, 128px); margin-top: clamp(48px, 6vw, 80px); }
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.feature__media {
  --rx: 0deg; --ry: 0deg;
  grid-column: 1 / 8; grid-row: 1; position: relative; display: block; height: clamp(380px, 40vw, 500px);
  border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, var(--surface)) 0%, var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line));
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .4s;
}
.feature__media:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.feature__glow { position: absolute; inset: -20%; z-index: -1; background: radial-gradient(closest-side at 50% 70%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); opacity: .7; transition: opacity .4s; }
.feature__media:hover .feature__glow { opacity: 1; }
.feature__fan { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-top: 44px; }
.feature__fan img { width: 34%; max-width: 210px; border-radius: 18px; box-shadow: var(--shot-shadow); transition: transform .6s var(--ease); }
.feature__fan img:nth-child(1) { transform: translate(18%, 36px) rotate(-6deg); }
.feature__fan img:nth-child(2) { position: relative; z-index: 2; }
.feature__fan img:nth-child(3) { transform: translate(-18%, 36px) rotate(6deg); }
.feature__media:hover .feature__fan img:nth-child(1) { transform: translate(6%, 24px) rotate(-9deg); }
.feature__media:hover .feature__fan img:nth-child(2) { transform: translateY(-12px); }
.feature__media:hover .feature__fan img:nth-child(3) { transform: translate(-6%, 24px) rotate(9deg); }

.feature__content { grid-column: 7 / -1; grid-row: 1; position: relative; z-index: 2; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.feature__over { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.feature__title { margin-top: 10px; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.035em; }
.feature__title a { display: inline-flex; align-items: center; gap: 14px; transition: color .2s; }
.feature__title a:hover { color: var(--accent); }
.feature__title .app-icon { width: 52px; height: 52px; }
.feature__card {
  margin-top: 22px; padding: 24px 26px; border-radius: 16px; max-width: 520px;
  background: rgba(26, 29, 35, .86); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.feature__card > p:first-child { font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.feature__desc { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.feature__rating { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.feature__score { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.stars { display: inline-flex; color: #fbbf24; }
.feature__tech { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; margin-top: 22px; max-width: 520px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.feature__links { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.icon-link { color: var(--ink-2); transition: color .2s; }
.icon-link .i { width: 20px; height: 20px; }
.icon-link:hover { color: var(--accent); }

.feature--flip .feature__media { grid-column: 6 / -1; }
.feature--flip .feature__content { grid-column: 1 / 7; text-align: left; align-items: flex-start; }
.feature--flip .feature__tech, .feature--flip .feature__rating { justify-content: flex-start; }

/* ---------- Other apps: tiles ---------- */
.more { margin-top: clamp(96px, 12vw, 160px); }
.more__title { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; text-align: center; }
.more__lead { margin: 12px auto 0; max-width: 56ch; text-align: center; color: var(--ink-2); }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.tile-grid > li { display: flex; }
.tile {
  --mx: 50%; --my: 0px;
  position: relative; display: flex; flex-direction: column; width: 100%; padding: 24px 22px 0; overflow: hidden; isolation: isolate;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 22%, transparent), transparent 60%);
}
.tile:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.tile:hover::before { opacity: 1; }
.tile__top { display: flex; align-items: flex-start; justify-content: space-between; }
.tile__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-2); transition: all .3s var(--ease); }
.tile:hover .tile__go { background: var(--c); border-color: var(--c); color: #0a0b0d; transform: rotate(-45deg); }
.tile__name { margin-top: 20px; font-size: 19px; letter-spacing: -.02em; transition: color .2s; }
.tile__cat { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.tile__tag { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.tile__tech { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; padding-bottom: 22px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); order: 5; }
.tile__peek { order: 6; display: flex; justify-content: center; gap: 8px; height: 130px; margin: 0 -22px; padding: 18px 16px 0; overflow: hidden; background: color-mix(in srgb, var(--c) 10%, var(--bg-2)); border-top: 1px solid var(--line); margin-top: auto; }
.tile__peek img { width: 31%; border-radius: 10px; align-self: flex-start; box-shadow: var(--shot-shadow); transition: transform .5s var(--ease); }
.tile__peek img:nth-child(2) { margin-top: 14px; }
.tile:hover .tile__peek img { transform: translateY(-10px); }
.tile:hover .tile__peek img:nth-child(2) { transform: translateY(-16px); }

/* ---------- Experience tabs ---------- */
.tabs { --tab: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; margin-top: 48px; min-height: 380px; }
.tabs__list { position: relative; display: flex; flex-direction: column; align-self: start; border-left: 2px solid var(--line); }
.tabs__list button {
  height: 46px; padding: 0 20px; text-align: left; font-family: var(--mono); font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap; transition: color .2s, background-color .2s;
}
.tabs__list button:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.tabs__list button[aria-selected="true"] { color: var(--accent); }
.tabs__bar { position: absolute; left: -2px; top: 0; width: 2px; height: 46px; background: var(--accent); transform: translateY(calc(var(--tab) * 46px)); transition: transform .35s var(--ease); }
.tabs__panel { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.exp__role { font-size: 22px; letter-spacing: -.02em; line-height: 1.3; }
.exp__date { margin-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: capitalize; }
.exp__sum { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.exp__pts { margin-top: 16px; display: grid; gap: 10px; }
.exp__pts li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15.5px; }
.exp__pts li::before { content: "▹"; position: absolute; left: 0; top: 0; color: var(--accent); }
.tabs__panel .chips { margin-top: 22px; }

/* ---------- Skills ---------- */
#experience .more__title { margin-top: 96px; text-align: left; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.skills > div { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.skills > div:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.skills dt { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.skills dd { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { position: relative; text-align: center; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 40%; width: 800px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(94, 234, 212, .1), transparent); pointer-events: none; }
.contact__inner { max-width: 760px; }
.contact__next { font-family: var(--mono); font-size: 15px; color: var(--accent); }
.contact__next .heading__n { font-size: 15px; }
.contact__title { margin-top: 18px; font-size: clamp(44px, 7vw, 80px); letter-spacing: -.05em; line-height: 1; font-weight: 800; }
.contact__lead { margin: 26px auto 0; max-width: 56ch; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.contact__mail { margin-top: 28px; font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); font-family: var(--mono); }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 28px; }
.site-footer__links { display: flex; gap: 22px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.tile-grid > li.reveal:nth-child(4n+2) { transition-delay: .06s; }
.tile-grid > li.reveal:nth-child(4n+3) { transition-delay: .12s; }
.tile-grid > li.reveal:nth-child(4n+4) { transition-delay: .18s; }
.stats > .reveal:nth-child(2) { transition-delay: .08s; }
.stats > .reveal:nth-child(3) { transition-delay: .16s; }
.stats > .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- App detail ---------- */
.app-page { position: relative; padding-top: var(--header-h); padding-bottom: 40px; isolation: isolate; }
.app-glow { position: absolute; z-index: -1; left: 50%; top: -200px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 28%, transparent), transparent 75%); pointer-events: none; }
.crumbs { padding-top: 28px; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--c); }
.app-hero { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding: 40px 0 36px; }
.app-hero .app-icon--xl { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -20px color-mix(in srgb, var(--c) 60%, transparent); }
.app-hero__title { margin-top: 8px; font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -.045em; line-height: 1; font-weight: 800; }
.app-hero__tag { margin-top: 14px; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); max-width: 52ch; }
.app-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; }
.app-hero__actions .btn--primary { background: var(--accent); color: var(--accent-ink); }

.facts { display: flex; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 16px; background: rgba(19, 21, 26, .6); }
.facts::-webkit-scrollbar { display: none; }
.facts li { flex: 1 0 auto; min-width: 130px; padding: 16px 20px; text-align: center; display: grid; gap: 2px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.facts span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.shots { padding-top: 56px; }
.shots__head { display: flex; align-items: center; justify-content: space-between; }
.shots__nav { display: flex; gap: 8px; }
.h-sm { font-size: 22px; letter-spacing: -.025em; margin-bottom: 18px; }
.shots__head .h-sm { margin: 0; }
.shots__track {
  --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 24px var(--pad) 32px; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.shots__track::-webkit-scrollbar { display: none; }
.shots__track li { flex: none; scroll-snap-align: start; }
.shot { display: block; border-radius: 22px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shot-shadow), 0 0 0 1px rgba(255, 255, 255, .06); background: var(--surface); transition: transform .4s var(--ease); }
.shot:hover { transform: translateY(-8px); }
.shot img { height: clamp(440px, 62vh, 640px); width: auto; }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px 80px; padding-top: 40px; }
.app-main { display: grid; gap: 52px; align-content: start; }
.prose { color: var(--ink-2); font-size: 17px; line-height: 1.75; max-width: 66ch; }
.prose + .prose { margin-top: 16px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.features li { position: relative; padding: 16px 18px 16px 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.features li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.app-aside { align-self: start; position: sticky; top: 88px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.info > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.info > div:first-child { border-top: 0; padding-top: 0; }
.info dt { color: var(--muted); }
.info dd { text-align: right; font-weight: 500; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 88px; }
.pager__link { display: grid; gap: 12px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.pager__link:hover { border-color: var(--accent); transform: translateY(-3px); }
.pager__link > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.pager__link--next { text-align: right; }
.pager__link--next > span { justify-content: flex-end; }
.pager__app { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.pager__app .app-icon { width: 42px; height: 42px; }
.notfound { padding-block: 160px; display: grid; gap: 20px; justify-items: start; }
.app-page .btn--ghost { border: 1px solid var(--line-strong); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 6, 8, .94); color: #fff; display: none; align-items: center; justify-content: center; gap: 28px; }
.lightbox[open] { display: flex; animation: fadeUp .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: calc(100vh - 100px); max-width: calc(100vw - 180px); width: auto; border-radius: 26px; }
.lightbox figcaption { font-family: var(--mono); color: rgba(255, 255, 255, .6); }
.lightbox .icon-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.lightbox__close { position: absolute; top: 20px; right: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .reveal, .load { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .rail { display: none; } }
@media (max-width: 1080px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-body { grid-template-columns: 1fr; }
  .app-aside { position: static; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .stage { height: 460px; }
  .stage__shot { width: 200px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .brands { grid-template-columns: 1fr; gap: 16px; }

  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature__media, .feature--flip .feature__media { grid-column: 1; grid-row: 1; height: 340px; }
  .feature__content, .feature--flip .feature__content { grid-column: 1; grid-row: 2; text-align: left; align-items: flex-start; margin-top: -48px; padding-inline: 12px; }
  .feature__tech, .feature__rating { justify-content: flex-start !important; }
  .feature__over { padding: 4px 10px; border-radius: 999px; background: var(--bg); }

  .tabs { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .tabs__list { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--line); scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__list button { flex: none; width: 150px; text-align: center; padding: 0 10px; }
  .tabs__bar { left: 0; top: auto; bottom: -2px; width: 150px; height: 2px; transform: translateX(calc(var(--tab) * 150px)); }

  .menu-btn { display: block; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px); margin: 0; padding: 120px 32px 40px;
    flex-direction: column; align-items: center; gap: 8px; background: var(--surface); border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .5);
    clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .45s var(--ease), visibility .45s;
  }
  .site-nav a { flex-direction: column; align-items: center; gap: 4px; padding: 14px; font-size: 18px; color: var(--ink); }
  .is-open .site-nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .site-header.is-open { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header__tools { margin-left: auto; position: relative; z-index: 2; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .stage { height: 380px; }
  .stage__shot { width: 160px; border-radius: 16px; }
  .stage__badge { font-size: 12px; padding: 8px 12px 8px 8px; }
  .stage__badge img { width: 32px; height: 32px; }
  .reel__item { width: 130px; border-radius: 14px; }
  .tile-grid { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .heading::after { display: none; }
  .feature__media, .feature--flip .feature__media { height: 280px; }
  .feature__fan img { width: 38%; }
  .stats > div { padding: 24px 12px 24px 0; }
  .stats > div + div { padding-left: 16px; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .app-hero { flex-direction: column; align-items: flex-start; padding-top: 28px; }
  .app-icon--xl { width: 100px; height: 100px; }
  .shot img { height: 460px; }
  .features { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .lightbox { gap: 0; }
  .lightbox__prev, .lightbox__next { display: none; }
  .lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); }
  .contact__actions .btn { width: 100%; }
}
