/* ===========================================================
   Aman Parate — Portfolio
   "Original Series" — cinematic streaming theme
   =========================================================== */

:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --panel: #181818;
  --panel-2: #1f1f1f;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #f4f4f4;
  --text-2: #cfcfcf;
  --muted: #9a9a9a;
  --muted-2: #6f6f6f;

  /* accent — Salesforce-style blue */
  --accent: #1b96ff;          /* highlights, headings, glows */
  --accent-2: #0176d3;        /* buttons, solid fills */
  --accent-3: #014486;        /* pressed / deep fills */
  --accent-glow: rgba(27, 150, 255, 0.45);
  --accent-tint: rgba(27, 150, 255, 0.12);

  --teal: #2bb3a3;
  --violet: #8b7bff;
  --amber: #f0a637;
  --green: #3fbf6f;

  --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 6px;
  --radius-lg: 12px;
  --topbar-h: 68px;
  --maxw: 1240px;
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
dl, dd, dt { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
svg { display: inline-block; }
.accent { color: var(--accent); }
.sep { color: var(--muted-2); margin: 0 0.5em; }
.text-muted { color: var(--muted); font-weight: 400; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent-2); color: #fff; padding: 0.5rem 1rem; z-index: 5000; }
.skip-link:focus { left: 0; }

.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.04em;
  color: #fff; background: var(--accent-2);
  border-radius: 4px;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 44px; padding: 0 1.4rem;
  border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { font-size: 0.8em; }
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: #e6e6e6; }
.btn-info { background: rgba(109,109,110,0.55); color: #fff; }
.btn-info:hover { background: rgba(109,109,110,0.8); }
.btn-accent { background: var(--accent-2); color: #fff; }
.btn-accent:hover { background: var(--accent-3); box-shadow: 0 0 22px var(--accent-glow); }
.btn-brand { background: var(--accent-2); color: #fff; }
.btn-brand:hover { background: var(--accent-3); box-shadow: 0 0 22px var(--accent-glow); }
.btn-outline-light, .btn-neutral { background: transparent; color: #fff; border-color: var(--line-2); }
.btn-outline-light:hover, .btn-neutral:hover { border-color: #fff; }
.btn-sm { height: 36px; padding: 0 1rem; font-size: 0.85rem; }
.link-accent { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.link-accent:hover { text-decoration: underline; }
.link-btn { background: none; border: none; color: var(--accent); font-size: 0.875rem; font-weight: 600; margin-left: auto; padding: 0; }
.link-btn:hover { text-decoration: underline; }

.badge {
  display: inline-block; padding: 0.18rem 0.55rem; border-radius: 3px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--panel-2); color: var(--text-2); vertical-align: middle;
}
.badge-success { background: rgba(63,191,111,0.15); color: #7fdc9f; }
.badge-brand { background: var(--accent-tint); color: #5eb4ff; }
.tag-accent { color: var(--accent); font-weight: 700; }

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  display: inline-flex; align-items: center; padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.8rem; color: var(--text-2); background: rgba(255,255,255,0.02);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pill:hover { border-color: var(--accent); color: #fff; }

/* object icons (from content fragments) */
.obj-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center; color: #fff; background: var(--panel-2);
  border: 1px solid var(--line-2);
}
.obj-icon svg { width: 58%; height: 58%; }
.obj-icon-xs { width: 28px; height: 28px; border-radius: 6px; }
.obj-icon-blue { background: rgba(27,150,255,0.18); border-color: rgba(27,150,255,0.5); }
.obj-icon-teal { background: rgba(43,179,163,0.15); border-color: rgba(43,179,163,0.45); }
.obj-icon-purple { background: rgba(139,123,255,0.15); border-color: rgba(139,123,255,0.45); }
.obj-icon-orange { background: rgba(240,166,55,0.15); border-color: rgba(240,166,55,0.45); }
.obj-icon-green { background: rgba(63,191,111,0.15); border-color: rgba(63,191,111,0.45); }
.obj-icon-pink { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.45); }

/* ---------- Who's watching? ---------- */
.profiles {
  position: fixed; inset: 0; z-index: 4000;
  background: radial-gradient(900px 500px at 50% 0%, rgba(27,150,255,0.18), transparent 60%), var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  opacity: 1; transition: opacity 0.45s ease;
}
.profiles.is-leaving { opacity: 0; pointer-events: none; }
.profiles[hidden] { display: none; }
.profiles-inner { text-align: center; max-width: 900px; width: 100%; }
.profiles-brand { margin-bottom: 1.5rem; }
.profiles h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: 0.02em; font-weight: 400; }
.profiles-sub { color: var(--muted); margin: 0.5rem 0 2.5rem; }
.profile-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.profile {
  background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--muted); width: 160px;
}
.profile-avatar {
  width: 120px; height: 120px; border-radius: 8px;
  display: grid; place-items: center;
  border: 3px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-avatar svg { width: 52%; height: 52%; }
.av-accent { background: linear-gradient(135deg, #1b96ff, #0b4a8a); }
.av-violet { background: linear-gradient(135deg, #8b7bff, #3b2f8a); }
.av-green { background: linear-gradient(135deg, #3fbf6f, #1a6b3c); }
.av-grey { background: linear-gradient(135deg, #6e6e6e, #333); }
.profile:hover .profile-avatar, .profile:focus-visible .profile-avatar { border-color: #fff; transform: scale(1.05); box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.profile:focus-visible { outline: none; }
.profile-name { font-size: 1.1rem; color: var(--text-2); }
.profile:hover .profile-name { color: #fff; }
.profile-hint { font-size: 0.78rem; color: var(--muted-2); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 1000;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
  transition: background 0.3s ease;
}
.topbar.scrolled { background: rgba(11,11,11,0.96); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; }
.brand-name { font-size: 1rem; letter-spacing: 0.01em; }
.topnav { display: flex; gap: 1.4rem; }
.topnav a { font-size: 0.9rem; color: var(--text-2); position: relative; padding: 0.35rem 0; transition: color 0.15s ease; }
.topnav a:hover, .topnav a.active { color: #fff; }
.topnav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.8rem; }
.profile-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid transparent; padding: 0.25rem 0.5rem 0.25rem 0.25rem; border-radius: 6px;
  color: var(--text-2); font-size: 0.85rem;
}
.profile-chip .profile-avatar { width: 30px; height: 30px; border-radius: 4px; border-width: 0; }
.profile-chip:hover { border-color: var(--line-2); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- episodes layout ---------- */
.episodes { display: flex; flex-direction: column; }
.episode { padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3.5rem); max-width: var(--maxw); margin: 0 auto; width: 100%; }
.episode-wide { max-width: 1400px; }
.ep-head { margin-bottom: 2rem; }
.ep-label {
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.9rem;
}
.ep-label .ep-num { color: var(--accent); font-weight: 800; }
.ep-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: 0.02em; line-height: 0.98;
}
.ep-lead { color: var(--muted); margin-top: 1rem; max-width: 62ch; }
.side-title { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; font-weight: 700; }
.side-title + .side-title { margin-top: 1.2rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--topbar-h) + 2rem) clamp(1rem, 4vw, 3.5rem) 2rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 600px at 80% 30%, rgba(27,150,255,0.22), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(27,150,255,0.10), transparent 60%),
    linear-gradient(180deg, #0b0b0b 0%, #0e0e0e 60%, #0b0b0b 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 3rem; align-items: center;
}
.show-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.2rem, 11vw, 9.5rem); line-height: 0.9; letter-spacing: 0.01em;
  margin: 0.4rem 0 0.6rem;
  text-shadow: 0 10px 50px rgba(0,0,0,0.6);
}
.show-title .accent { text-shadow: 0 0 40px var(--accent-glow); }
.show-sub { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: 0.14em; color: var(--text-2); }
.genres { display: flex; flex-wrap: wrap; gap: 0.35rem 0; margin: 0.9rem 0 1.2rem; font-size: 0.9rem; color: var(--text-2); }
.genres li::after { content: "•"; color: var(--accent); margin: 0 0.6rem; }
.genres li:last-child::after { content: ""; margin: 0; }
.hero-desc { color: var(--text-2); font-size: 1.1rem; max-width: 56ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.hero-meta { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }

.poster { margin: 0; justify-self: end; width: min(100%, 340px); }
.poster-frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #0b1a2e, #141414);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 60px var(--accent-glow);
  transform: perspective(1000px) rotateY(-6deg);
  transition: transform 0.5s ease;
}
.poster-frame:hover { transform: perspective(1000px) rotateY(0deg); }
.poster-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar { position: relative; display: grid; place-items: center; }
.avatar-initials { font-family: var(--font-display); font-size: 6rem; color: rgba(255,255,255,0.25); }
.poster-frame img + .avatar-initials { display: none; }
.poster-tag {
  position: absolute; left: 12px; top: 12px;
  background: var(--accent-2); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.55rem; border-radius: 3px;
}
.poster figcaption { margin-top: 0.8rem; font-size: 0.82rem; color: var(--muted); text-align: right; letter-spacing: 0.04em; }
.hero-foot {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 2.5rem auto 0; width: 100%;
  display: flex; justify-content: space-between;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2);
}

/* ---------- streaming row ---------- */
.row-section { padding: 1rem clamp(1rem, 4vw, 3.5rem) 2rem; max-width: 1400px; margin: 0 auto; width: 100%; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.row-title { font-size: 1.25rem; font-weight: 700; }
.row-nav button {
  width: 36px; height: 36px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-2); color: #fff; font-size: 1.2rem; line-height: 1; margin-left: 0.4rem;
}
.row-nav button:hover { border-color: #fff; }
.row-scroller {
  display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.6rem 0.2rem 1.4rem;
  scrollbar-width: none;
}
.row-scroller::-webkit-scrollbar { display: none; }
.ep-card {
  flex: 0 0 300px; scroll-snap-align: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ep-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 24px 50px rgba(0,0,0,0.6); border-color: var(--line-2); z-index: 2; }
.ep-art {
  height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
  position: relative;
}
.ep-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%); }
.ep-art > * { position: relative; z-index: 1; }
.ep-big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: #fff; }
.ep-small { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.art-billing { background: linear-gradient(135deg, #0b3a6b, #1a1a1a); }
.art-portal { background: linear-gradient(135deg, #1f5c54, #141414); }
.art-edi { background: linear-gradient(135deg, #3d2a7a, #141414); }
.art-apex { background: linear-gradient(135deg, #0f4c8a, #0b1a2e 60%, #141414); }
.art-story { background: linear-gradient(135deg, #4a3a10, #141414); }
.art-awards { background: linear-gradient(135deg, #6b1a4a, #141414); }
.ep-body { padding: 0.9rem 1rem 1rem; }
.ep-meta { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.3rem; }
.ep-body h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.ep-body p { font-size: 0.85rem; color: var(--muted); min-height: 2.6em; }
.ep-progress { display: block; height: 3px; background: var(--line-2); margin-top: 0.8rem; border-radius: 2px; position: relative; overflow: hidden; }
.ep-progress::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--accent); }
.ep-card-feature { border-color: rgba(27,150,255,0.45); }

/* ---------- story ---------- */
.ep-grid { display: grid; gap: 2.5rem; }
.story-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
.story-text p { color: var(--text-2); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }
.story-text strong { color: #fff; }
.story-side { border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.now-list { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.now-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.6rem; font-size: 0.9rem; color: var(--text-2); }
.now-label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(27,150,255,0.5); border-radius: 3px; padding: 0.2rem 0.4rem; text-align: center; height: fit-content; }
.facts { display: flex; flex-direction: column; gap: 0.45rem; }
.facts li { font-size: 0.88rem; color: var(--text-2); padding-left: 1rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.detail-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-grid .field { background: var(--bg-2); padding: 1rem 1.1rem; }
.field-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.field-value { font-size: 0.95rem; color: var(--text); }

/* ---------- 3D carousel ---------- */
#skills { overflow-x: clip; }
.carousel { position: relative; height: 500px; perspective: 2000px; margin-top: 1rem; touch-action: pan-y; user-select: none; }
.carousel-stage {
  position: absolute; inset: 0; margin: auto; width: 300px; height: 350px;
  transform-style: preserve-3d;
}
.car-card {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1d1d1d, #111);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  /* JS positions each card on the ring: rotateY(a) translateZ(r) rotateY(-a) so every card faces the viewer */
  transform: translateZ(var(--r, 440px));
  transition: transform 0.75s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; gap: 0.9rem;
  cursor: grab;
}
.car-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: rgba(11,11,11, var(--dim, 0)); transition: background 0.75s ease;
}
.car-card.is-front { border-color: rgba(27,150,255,0.6); box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 50px var(--accent-glow); }
.car-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); border-radius: 12px 12px 0 0; }
.car-head { display: flex; align-items: center; gap: 0.7rem; }
.car-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.car-card .pills { gap: 0.35rem; }
.car-card .pill { font-size: 0.75rem; padding: 0.25rem 0.55rem; }
.car-foot { margin-top: auto; font-size: 0.8rem; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.7rem; }
.carousel-nav { position: absolute; left: 0; right: 0; bottom: -8px; display: flex; justify-content: center; align-items: center; gap: 1rem; }
.carousel-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: #fff; font-size: 1.3rem; line-height: 1; }
.carousel-nav button:hover { border-color: #fff; }
.carousel-dots { display: inline-flex; gap: 0.4rem; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.carousel-dots span.is-active { background: var(--accent); }

/* ---------- how I work ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.principle { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; position: relative; overflow: hidden; }
.principle::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent-tint); }
.principle-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); letter-spacing: 0.05em; }
.principle h3 { font-size: 1.05rem; margin: 0.4rem 0 0.6rem; }
.principle p { font-size: 0.88rem; color: var(--muted); }
.lead-value { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; }
.value-grid li { display: flex; flex-direction: column; gap: 0.25rem; padding-left: 1.1rem; position: relative; }
.value-grid li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.value-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.value-grid strong { font-size: 0.98rem; }
.value-grid span { font-size: 0.88rem; color: var(--muted); }

/* ---------- diagrams (dark) ---------- */
.landscape { margin-bottom: 2rem; }
.landscape-head h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.landscape-head p { color: var(--muted); font-size: 0.92rem; max-width: 72ch; margin-bottom: 0.8rem; }
.landscape .diagram { max-width: 960px; margin: 0 auto; }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram { width: 100%; height: auto; display: block; color: var(--muted); font-family: var(--font); }
.dg-node rect { fill: #161616; stroke: var(--line-2); stroke-width: 1.25; }
.dg-node text { fill: var(--text); font-size: 13px; font-weight: 600; }
.dg-node .dg-sub { fill: var(--muted); font-size: 11px; font-weight: 400; }
.dg-sf rect { fill: #0b1a2e; stroke: var(--accent); stroke-width: 1.5; }
.dg-sf text { fill: #fff; }
.dg-mid rect { fill: #101a18; stroke: var(--teal); }
.dg-ext rect { fill: #161616; stroke: var(--line-2); }
.dg-tool rect { fill: #161616; stroke: var(--violet); stroke-dasharray: 4 3; }
.dg-wip rect { stroke-dasharray: 5 3; }
.dg-edge { fill: none; stroke: #7a7a7a; stroke-width: 1.5; }
.dg-edge-dashed { stroke-dasharray: 4 3; }
.dg-label { fill: var(--muted); font-size: 11px; }
.dg-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.6rem; font-size: 0.75rem; color: var(--muted); justify-content: center; }
.dg-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.dg-swatch { width: 14px; height: 10px; border-radius: 2px; border: 1.5px solid var(--line-2); background: #161616; }
.dg-swatch-sf { background: #0b1a2e; border-color: var(--accent); }
.dg-swatch-mid { background: #101a18; border-color: var(--teal); }
.dg-swatch-tool { border-color: var(--violet); border-style: dashed; }
.dg-swatch-wip { border-style: dashed; border-color: var(--teal); }

/* ---------- case tabs ---------- */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tab { background: none; border: none; padding: 0.7rem 1rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }
.cs { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: start; }
.cs-title { font-size: 1.35rem; }
.cs-meta { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0 1rem; }
.cs-text h4 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 1rem 0 0.4rem; font-weight: 800; }
.cs-text p, .cs-text li { font-size: 0.93rem; color: var(--text-2); }
.cs-text ul { display: flex; flex-direction: column; gap: 0.4rem; }
.cs-text li { padding-left: 1rem; position: relative; }
.cs-text li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cs-text li strong { color: #fff; }
.cs-visual { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.outcomes dt { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.outcomes dd { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.02em; line-height: 1.1; margin-top: 0.15rem; }
.outcomes dd span { display: block; font-family: var(--font); font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; letter-spacing: 0; }

/* ---------- seasons ---------- */
.seasons { display: grid; gap: 1rem; }
.season { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; position: relative; }
.season.is-airing { border-color: rgba(27,150,255,0.6); box-shadow: 0 0 40px rgba(27,150,255,0.12); }
.season-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.4rem; }
.season-num { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.08em; color: var(--accent); }
.season-badge { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: 3px; background: var(--accent-2); color: #fff; }
.season-badge-muted { background: var(--panel-2); color: var(--muted); }
.season-title { font-size: 1.5rem; }
.season-meta { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 1rem; }
.season-eps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 2rem; }
.season-eps li { font-size: 0.92rem; color: var(--text-2); padding-left: 1.1rem; position: relative; }
.season-eps li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ---------- feature film (Apex Doctor) ---------- */
.feature-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.showcase {
  background: radial-gradient(900px 420px at 85% 15%, rgba(27,150,255,0.28), transparent 60%), linear-gradient(135deg, #0b0b0b 0%, #0a1220 55%, #0d1a30 100%);
  color: #f4f4f4; border-bottom: 1px solid var(--line);
}
.showcase-hero { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; padding: 2rem 1.6rem 1.4rem; }
.app-badge { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.app-icon {
  width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-2), #0f4c8a); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5), 0 0 30px var(--accent-glow);
}
.app-icon svg { width: 34px; height: 34px; }
.app-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.app-icon.has-logo { background: rgba(255,255,255,0.06); }
.app-icon.has-logo .app-icon-fallback { display: none; }
.showcase-title { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.03em; color: #fff; }
.showcase-sub { font-size: 0.8rem; color: var(--muted); }
.showcase-tagline { font-size: 1.02rem; color: var(--text-2); max-width: 46ch; margin-bottom: 1.2rem; line-height: 1.55; }
.showcase-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.showcase-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.showcase-meta li { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); background: rgba(255,255,255,0.06); border: 1px solid var(--line-2); padding: 0.2rem 0.55rem; border-radius: 999px; }
.showcase-shot { margin: 0; position: relative; }
.shot-frame {
  display: block; width: 100%; padding: 0; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  background: #1e1e1e; overflow: hidden; cursor: zoom-in; position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 0 60px rgba(27,150,255,0.18);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.shot-frame:hover, .shot-frame:focus-visible { transform: none; outline: none; box-shadow: 0 30px 70px rgba(0,0,0,0.7), 0 0 80px rgba(27,150,255,0.28); }
.shot-bar { display: flex; gap: 6px; padding: 8px 10px; background: #2b2b2c; border-bottom: 1px solid #111; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.shot-bar span:nth-child(2) { background: #febc2e; } .shot-bar span:nth-child(3) { background: #28c840; }
.shot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 865; object-fit: cover; object-position: top; }
.shot-zoom { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 8px; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s ease; }
.shot-zoom svg { width: 18px; height: 18px; }
.shot-frame:hover .shot-zoom { opacity: 1; }
.showcase-shot figcaption { margin-top: 0.7rem; font-size: 0.8rem; color: var(--muted); text-align: center; }
.showcase-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(0,0,0,0.35); }
.showcase-stats > div { padding: 0.8rem 1rem; border-right: 1px solid var(--line); }
.showcase-stats > div:last-child { border-right: none; }
.showcase-stats dt { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.showcase-stats dd { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.03em; color: #fff; margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-card .card-body { padding: 1.4rem 1.6rem 1.6rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.thumb { width: 100%; padding: 0; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease; }
.thumb img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: top; display: block; }
.thumb span { padding: 0.45rem 0.65rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.thumb:hover { border-color: var(--line-2); transform: translateY(-2px); }
.thumb.is-active { border-color: var(--accent); }
.thumb.is-active span { color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 1.4rem 0; }
.feature { display: flex; gap: 0.75rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 0.95rem; }
.feature h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature p { font-size: 0.84rem; color: var(--muted); }
.project-foot { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: center; }
.quote { font-size: 0.98rem; color: var(--text-2); font-style: italic; border-left: 3px solid var(--accent); padding: 0.3rem 0 0.3rem 1rem; margin: 0; }
.live-note { font-size: 0.75rem; color: var(--muted); text-align: right; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.8); }
.lightbox-cap { color: var(--text-2); font-size: 0.9rem; margin-top: 1rem; text-align: center; max-width: 80ch; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,0.06); color: #fff; font-size: 1.5rem; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,0.16); }

/* ---------- awards ---------- */
.cert-tracks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cert-track { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; }
.cert-track-title { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin-bottom: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 0.5rem; }
.cert { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.cert-name { font-size: 0.78rem; line-height: 1.25; color: var(--text-2); text-wrap: balance; }
.hex {
  --hex-shape: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  position: relative; width: 66px; height: 66px; display: grid; place-items: center; isolation: isolate;
  clip-path: var(--hex-shape); background: var(--accent);
  color: #fff; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.06em;
  transition: transform 0.15s ease;
}
.hex::before { content: ""; position: absolute; inset: 3px; clip-path: var(--hex-shape); background: linear-gradient(160deg, #262626, #121212); z-index: -1; }
.cert:hover .hex { transform: translateY(-2px) scale(1.05); }
.hex-consult { background: var(--teal); } .hex-ai { background: var(--violet); } .hex-admin { background: var(--amber); }
.trail { margin-top: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; display: grid; gap: 1rem; }
.trail-head { display: flex; align-items: center; justify-content: space-between; }
.trail-head h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.04em; }
.th-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.th-stats > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 0.9rem; }
.th-stats dt { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.th-stats dd { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.03em; }
.th-superbadges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.th-superbadges::before { content: "Superbadges"; display: block; width: 100%; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.community-list:empty { display: none; }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3.5rem); text-align: center; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 50% 60%, rgba(27,150,255,0.22), transparent 65%); z-index: 0; }
.contact > * { position: relative; z-index: 1; }
.giant {
  font-family: var(--font-display); font-weight: 400; color: var(--accent);
  font-size: clamp(5rem, 22vw, 18rem); line-height: 0.85; letter-spacing: 0.01em;
  text-shadow: 0 0 80px var(--accent-glow);
}
.contact-lead { color: var(--text-2); max-width: 60ch; margin: 1.5rem auto 2rem; }
.contact-body { max-width: 900px; margin: 0 auto; }
.contact-body .detail-grid { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
.contact-grid .field-value { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.contact-grid a { color: #fff; }
.contact-grid a:hover { color: var(--accent); }
.copy-btn { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); display: inline-grid; place-items: center; }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { color: #fff; border-color: #fff; }
.contact-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }

/* ---------- footer ---------- */
.site-footer { padding: 2rem clamp(1rem, 4vw, 3.5rem) 2.5rem; text-align: center; color: var(--muted-2); font-size: 0.8rem; border-top: 1px solid var(--line); }
.footer-note { margin-top: 0.3rem; font-size: 0.72rem; }

/* ---------- toasts ---------- */
.toast-region { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 0.5rem; z-index: 3500; pointer-events: none; width: min(92vw, 520px); }
.toast { display: flex; align-items: center; gap: 0.7rem; background: #fff; color: #000; padding: 0.8rem 1rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; box-shadow: 0 10px 40px rgba(0,0,0,0.6); animation: toast-in 0.25s ease both; }
.toast.is-leaving { animation: toast-out 0.25s ease both; }
.toast svg { width: 18px; height: 18px; color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }

/* ---------- recommendations ---------- */
.rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rec-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1.2rem; position: relative; display: flex; flex-direction: column; gap: 1.1rem; }
.rec-card::before { content: "\201C"; position: absolute; right: 1rem; top: -0.2rem; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--accent); opacity: 0.35; }
.rec-card blockquote { margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--text-2); flex: 1; }
.rec-who { display: flex; align-items: center; gap: 0.8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.rec-who > div { display: flex; flex-direction: column; font-size: 0.82rem; color: var(--muted); }
.rec-who strong { color: #fff; font-size: 0.92rem; }
.rec-who a:hover strong { color: var(--accent); }
.rec-rel { font-size: 0.74rem; color: var(--muted-2); }
.rec-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--accent-tint); border: 1px solid rgba(27,150,255,0.4); color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }
.rec-more { margin-top: 1.4rem; text-align: right; }
.contact-lead strong { color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs { grid-template-columns: 1fr; }
  .showcase-hero { grid-template-columns: 1fr; }
  .showcase-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase-stats > div:nth-child(3) { border-right: none; }
  .showcase-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-foot { grid-template-columns: 1fr; }
  .live-note { text-align: left; }
  .shot-frame { transform: none; }
}
@media (max-width: 860px) {
  .topnav { display: none; position: fixed; top: var(--topbar-h); left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11,11,11,0.98); border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
  .topnav.open { display: flex; }
  .topnav a { padding: 0.9rem clamp(1rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
  .topnav a.active::after { display: none; }
  .hamburger { display: flex; }
  .brand-name, .profile-chip span:last-child { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .poster { justify-self: start; width: min(100%, 280px); }
  .poster-frame { transform: none; }
  .hero-foot { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
  .carousel { height: 470px; perspective: 1200px; }
  .carousel-stage { width: 260px; height: 350px; }
  .car-card { padding: 1rem; }
  .landscape .diagram { min-width: 680px; }
  .diagram-scroll::after { content: "swipe to see the full landscape \2192"; display: block; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); padding: 0.4rem 0 0; position: sticky; left: 0; }
  .season-eps { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .cert-tracks { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-body .detail-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .showcase-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-stats > div:nth-child(3) { border-right: 1px solid var(--line); }
  .showcase-stats > div:nth-child(even) { border-right: none; }
  .showcase-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ep-card { flex-basis: 260px; }
  .profile { width: 130px; }
  .profile-avatar { width: 96px; height: 96px; }
  .profiles { align-items: flex-start; overflow-y: auto; padding: 3rem 1rem; }
  .profiles-sub { margin-bottom: 1.6rem; }
  .profile-list { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .car-card { transition: none; }
  .poster-frame, .shot-frame { transform: none; }
}
