/* NeutronTech portfolio — macOS 27 / Liquid Glass inspired. */
:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(28, 28, 32, 0.62);
  --card-solid: #141416;
  --glass: rgba(30, 30, 34, 0.5);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --a1: #2b3cff;
  --a2: #8a2be2;
  --a3: #00b3a4;
  --a4: #ff375f;
  --aurora-o: 0.55;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f7;
    --bg-2: #ffffff;
    --fg: #1d1d1f;
    --fg-2: #515154;
    --fg-3: #86868b;
    --line: rgba(0, 0, 0, 0.08);
    --card: rgba(255, 255, 255, 0.72);
    --card-solid: #ffffff;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-edge: rgba(255, 255, 255, 0.9);
    --glass-hi: rgba(255, 255, 255, 0.9);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
    --aurora-o: 0.32;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #515154;
  --fg-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
  --aurora-o: 0.32;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { fill: currentColor; }

/* ---------- aurora ---------- */
.aurora { position: fixed; inset: -20vmax; z-index: -1; filter: blur(80px) saturate(140%); opacity: var(--aurora-o); pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; mix-blend-mode: screen; animation: drift 38s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--a1), transparent 62%); left: 0; top: 0; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--a2), transparent 62%); right: 0; top: 10vmax; animation-duration: 46s; animation-delay: -10s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--a3), transparent 62%); left: 18vmax; bottom: 0; animation-duration: 52s; animation-delay: -20s; }
.aurora i:nth-child(4) { background: radial-gradient(circle, var(--a4), transparent 62%); right: 10vmax; bottom: 6vmax; width: 40vmax; height: 40vmax; opacity: 0.6; animation-duration: 60s; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .aurora i { mix-blend-mode: multiply; } }
:root[data-theme="light"] .aurora i { mix-blend-mode: multiply; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); }
  100% { transform: translate3d(-5vmax, 5vmax, 0) scale(0.95); }
}

/* ---------- glass ---------- */
.glass, .nav, .pill.ghost, .tile, .link-card, .player-shell, .theme {
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  height: 52px; padding: 0 8px 0 18px; border-radius: 999px;
  width: min(720px, calc(100% - 32px));
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin-right: auto; }
.brand img { filter: var(--mark-filter, none); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --mark-filter: invert(1); } }
:root[data-theme="light"] { --mark-filter: invert(1); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-2); padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { color: var(--fg); background: var(--line); }
.theme { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: none; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- type ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.04; font-weight: 700; }
.dim { color: var(--fg-3); }
.shine {
  background: linear-gradient(100deg, #4fb2ff 0%, #a78bfa 30%, #ff375f 55%, #4cc2ae 80%, #4fb2ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s linear infinite;
  padding-bottom: 0.06em;
}
@keyframes shine { to { background-position: -200% 0; } }

/* ---------- hero ---------- */
.hero { min-height: 100vh; padding: 150px 16px 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(56px, 11vw, 148px); font-weight: 800; letter-spacing: -0.05em; }
.hero-sub { max-width: 680px; margin: 28px auto 0; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.4; color: var(--fg-2); letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 17px; font-weight: 600; transition: transform 0.3s cubic-bezier(.22,1,.36,1), background 0.2s; }
.pill:hover { transform: scale(1.03); }
.pill:active { transform: scale(0.98); }
.pill svg { width: 18px; height: 18px; }
.pill.solid { background: var(--fg); color: var(--bg); }
.pill.ghost { box-shadow: inset 0 1px 0 var(--glass-hi); }

.stage { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 8.2; margin: 70px auto 0; perspective: 1800px; }
.win { position: absolute; border-radius: 16px; overflow: hidden; background: var(--card-solid); border: 1px solid var(--glass-edge); box-shadow: 0 40px 120px rgba(0,0,0,0.5); transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.win .bar { height: 26px; display: flex; gap: 7px; align-items: center; padding: 0 12px; background: rgba(40,40,44,0.9); }
.win .bar b { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.win .bar b:nth-child(2) { background: #febc2e; }
.win .bar b:nth-child(3) { background: #28c840; }
.win img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.w2 { width: 62%; left: 19%; top: 0; z-index: 3; transform: translateZ(60px); }
.w1 { width: 46%; left: 0; top: 18%; z-index: 2; transform: rotateY(18deg) translateZ(-40px); opacity: 0.9; }
.w3 { width: 46%; right: 0; top: 18%; z-index: 2; transform: rotateY(-18deg) translateZ(-40px); opacity: 0.9; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: min(980px, 100%); margin: 70px auto 0; }
.numbers div { padding: 22px 12px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.numbers dt { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.04em; }
.numbers dd { margin: 4px 0 0; font-size: 14px; color: var(--fg-2); }

/* ---------- sections ---------- */
section { scroll-margin-top: 90px; }
.section-head { text-align: center; max-width: 980px; margin: 0 auto 48px; padding: 0 16px; }
.section-head h2 { font-size: clamp(40px, 6.4vw, 80px); }
.work, .films, .elsewhere { padding: 110px 16px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; max-width: 1240px; margin: 0 auto; }
.tile { grid-column: span 2; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.5s cubic-bezier(.22,1,.36,1), box-shadow 0.5s; position: relative; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); opacity: 0.7; pointer-events: none; }
.tile:hover { transform: translateY(-6px); }
.tile-xl { grid-column: span 3; }
.tile-xl:first-child { grid-column: span 6; }
.tile-xl:first-child .tile-media img { aspect-ratio: 21 / 9; }
.tile-media { position: relative; display: block; margin: 10px 10px 0; border-radius: 22px; overflow: hidden; background: #000; }
.tile-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,0.35); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border: 1px solid rgba(255,255,255,0.3); transition: transform 0.4s cubic-bezier(.22,1,.36,1); }
.tile-play svg { width: 24px; height: 24px; margin-left: 3px; }
.tile:hover .tile-play { transform: scale(1.12); }
.tile-len { position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 600; color: #fff; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.tile-body { padding: 18px 22px 22px; position: relative; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.appicon { border-radius: 23%; box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.08); flex: none; background: #111; }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tile h3 { font-size: 26px; letter-spacing: -0.03em; }
.tile-xl h3 { font-size: 32px; }
.tagline { margin: 0; color: var(--fg-2); font-size: 16px; line-height: 1.4; }
.status { margin: auto 0 0; padding-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }

/* ---------- chapters ---------- */
.chapter { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 70px 0; }
.chapter.flip .chapter-film { order: 2; }
.frame { position: relative; display: block; width: 100%; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid var(--glass-edge); box-shadow: 0 50px 140px color-mix(in srgb, var(--accent) 22%, rgba(0,0,0,0.55)), 0 0 0 1px rgba(255,255,255,0.04); transition: transform 0.8s cubic-bezier(.22,1,.36,1); }
.frame:hover { transform: scale(1.015); }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,0.35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); transition: transform 0.4s cubic-bezier(.22,1,.36,1); }
.frame-play svg { width: 30px; height: 30px; margin-left: 4px; }
.frame:hover .frame-play { transform: scale(1.1); }
.chapter-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.chapter h2 { font-size: clamp(40px, 5vw, 64px); }
.lede { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin: 14px 0 0; color: var(--fg); }
.body { color: var(--fg-2); margin: 18px 0 0; max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 0; }
.stats div { padding: 14px 14px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stats dt { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats dd { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--fg-2); }
.chapter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.play { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; transition: transform 0.3s cubic-bezier(.22,1,.36,1), filter 0.2s; }
.play:hover { transform: scale(1.03); filter: brightness(1.08); }
.play-glyph { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.22); display: grid; place-items: center; }
.play-glyph svg { width: 15px; height: 15px; margin-left: 2px; }
.play .len { opacity: 0.75; font-weight: 500; font-variant-numeric: tabular-nums; }
.chapter .pill.ghost { height: 46px; font-size: 16px; }
.chapter .status { margin-top: 22px; }
.credit { font-size: 12px; color: var(--fg-3); margin: 10px 0 0; max-width: 560px; }

/* ---------- links ---------- */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto; }
.link-card { padding: 26px 24px; border-radius: 24px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.4s cubic-bezier(.22,1,.36,1); }
.link-card:hover { transform: translateY(-4px); }
.link-card span { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.link-card small { font-size: 14px; color: var(--fg-2); }

/* ---------- footer ---------- */
.foot { max-width: 980px; margin: 0 auto; padding: 60px 16px 80px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13px; line-height: 1.55; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 17px; margin-bottom: 18px; }
.foot-brand img { filter: var(--mark-filter, none); }
.foot p { margin: 0 0 12px; }

/* ---------- player ---------- */
.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; display: none; align-items: center; justify-content: center; }
.player[open] { display: flex; }
.player::backdrop { background: rgba(0,0,0,0.72); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.player-shell { width: min(1280px, 94vw); border-radius: 22px; overflow: hidden; background: rgba(20,20,22,0.7); animation: pop 0.5s cubic-bezier(.22,1,.36,1); box-shadow: 0 60px 160px color-mix(in srgb, var(--player-accent, #4fb2ff) 30%, rgba(0,0,0,0.7)); }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(20px); } }
.player-bar { height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 16px; color: #f5f5f7; }
.lights { display: flex; gap: 8px; }
.lights b { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights b:nth-child(2) { background: #febc2e; }
.lights b:nth-child(3) { background: #28c840; }
.player-title { flex: 1; text-align: center; font-size: 14px; font-weight: 600; margin-right: 52px; }
.close { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.1); }
.close svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1), filter 1s; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .aurora i, .shine { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-xl { grid-column: span 1; }
  .tile-xl:first-child { grid-column: span 2; }
  .chapter { grid-template-columns: 1fr; gap: 32px; padding: 50px 0; }
  .chapter.flip .chapter-film { order: 0; }
  .links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding-left: 14px; }
  .nav-links a { padding: 8px 9px; }
  .brand span { display: none; }
  .hero { padding-top: 120px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .stage { aspect-ratio: 16 / 10; }
  .w1, .w3 { display: none; }
  .w2 { width: 100%; left: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-xl, .tile-xl:first-child { grid-column: span 1; }
  .tile-xl:first-child .tile-media img { aspect-ratio: 16 / 9; }
  .work, .films, .elsewhere { padding: 80px 16px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats dt { font-size: 18px; }
  .links { grid-template-columns: 1fr; }
}

/* ---------- founder ---------- */
.hero-sub .by { color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.hero-sub .by:hover { text-decoration-color: var(--fg-2); }
.founder { padding: 40px 16px 110px; }
.founder-card { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 30px 32px; border-radius: 32px; background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow); }
.founder-mono { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: #fff; background: conic-gradient(from 210deg, #4fb2ff, #a78bfa, #ff375f, #4cc2ae, #4fb2ff); box-shadow: 0 12px 40px rgba(79,178,255,0.25); }
.founder-text { flex: 1; min-width: 0; }
.founder-text .eyebrow { margin-bottom: 6px; }
.founder-text h2 { font-size: clamp(30px, 4vw, 44px); }
.founder-text p:last-child { margin: 8px 0 0; color: var(--fg-2); }
.founder-link { flex: none; }
.founder-link svg { width: 18px; height: 18px; }
.foot .copy a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .founder-card { flex-direction: column; text-align: center; padding: 28px 22px; }
}
