:root {
  --bg: #05060a;
  --bg-soft: #0a0d14;
  --bg-elev: rgba(255, 255, 255, 0.04);
  --bg-elev-strong: rgba(255, 255, 255, 0.08);
  --panel: rgba(10, 14, 24, 0.88);
  --panel-2: rgba(13, 18, 32, 0.88);
  --text: #f5f7ff;
  --muted: #99a5c6;
  --muted-strong: #c5d0ee;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(103, 232, 249, 0.22);
  --cyan: #67e8f9;
  --cyan-strong: #22d3ee;
  --pink: #ff5fd2;
  --violet: #8b5cf6;
  --green: #74f0b5;
  --warning: #ffd36b;
  --max-width: 1180px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 95, 210, 0.16), transparent 24%),
    radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.1), transparent 30%),
    linear-gradient(180deg, #090b10 0%, #05060a 46%, #040509 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(5, 6, 10, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-kicker,
.eyebrow,
.micro-label,
.label-row {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--muted);
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 160ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.page {
  padding: 42px 0 84px;
}

.hero {
  padding: 38px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.kicker,
.banner,
.inline-pill,
.status-pill,
.meta-pill,
.project-badge,
.focus-chip,
.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
}

.kicker,
.banner,
.inline-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.banner {
  margin-bottom: 22px;
}

.kicker {
  margin-bottom: 24px;
}

.inline-pill {
  font-size: 12px;
}

.status-pill {
  border: 1px solid rgba(116, 240, 181, 0.24);
  background: rgba(116, 240, 181, 0.1);
  color: #d5ffee;
  font-size: 12px;
}

.project-badge,
.meta-pill,
.focus-chip,
.signal-chip {
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
}

h1 {
  font-size: clamp(56px, 9vw, 122px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.page-intro h1,
.section-heading h2,
.section-intro h2 {
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -0.045em;
}

.hero-subtitle {
  margin-top: 22px;
  max-width: 760px;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.4;
  color: #e2e8ff;
}

.hero-copy,
.page-intro p,
.section-heading p,
.section-intro p,
.card p,
.panel p,
.resume-item p,
.contact-card p,
.project-hero p,
.case-section p,
.timeline-item p,
.note-card p,
.callout p {
  color: var(--muted);
  line-height: 1.78;
}

.hero-copy {
  margin-top: 18px;
  max-width: 640px;
  font-size: 15px;
}

.cta-row,
.link-row,
.meta-row,
.focus-row,
.signal-row,
.listing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row {
  margin-top: 28px;
}

.focus-row,
.signal-row {
  margin-top: 24px;
}

.button,
.button-secondary,
.button-ghost {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 160ms ease;
}

.button {
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.24), rgba(255, 95, 210, 0.22));
  border: 1px solid rgba(103, 232, 249, 0.3);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.13);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover,
.button-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.button-ghost {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: transparent;
}

.hero-panel,
.panel,
.card,
.stat,
.project-hero,
.resume-item,
.contact-card,
.callout,
.note-card,
.timeline-item,
.case-section,
.hero-stack {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.hero-stack,
.hero-panel,
.project-hero,
.case-section,
.callout {
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.92), rgba(8, 11, 20, 0.88));
}

.hero-stack {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.hero-panel {
  padding: 28px;
}

.hero-panel-grid,
.grid-2,
.grid-3,
.stats-grid,
.project-grid,
.contact-grid,
.detail-grid,
.case-grid,
.timeline,
.note-grid {
  display: grid;
  gap: 18px;
}

.hero-panel-grid,
.grid-2,
.contact-grid,
.case-grid,
.detail-grid,
.note-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.project-grid,
.stats-grid,
.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-panel .big-number {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  margin-top: 10px;
}

.hero-panel p,
.hero-stack p {
  color: var(--muted);
}

.section,
.section-tight {
  padding: 40px 0;
}

.section-heading,
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.page-intro {
  display: grid;
  gap: 14px;
}

.page-intro p,
.section-heading p,
.section-intro p {
  max-width: 700px;
}

.card,
.panel,
.stat,
.resume-item,
.contact-card,
.note-card,
.timeline-item,
.case-section {
  padding: 24px;
}

.card h3,
.panel h3,
.project-hero h2,
.resume-item h3,
.contact-card h3,
.note-card h3,
.timeline-item h3,
.case-section h3,
.callout h3,
.hero-stack h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.project-hero {
  padding: 30px;
}

.callout {
  padding: 26px;
}

.case-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.case-list,
.list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.case-list li,
.list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe3fb;
}

.case-list li:first-child,
.list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.signal-chip {
  border-color: rgba(255, 255, 255, 0.14);
}

.meta-row {
  margin-top: 16px;
}

.project-hero .link-row,
.card .link-row,
.contact-card .link-row,
.callout .link-row {
  margin-top: 22px;
}

.resume-stack {
  display: grid;
  gap: 18px;
}

.resume-item strong,
.card strong,
.panel strong,
.timeline-item strong,
.case-section strong {
  color: var(--text);
}

.compact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-list div {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.code-line {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: rgba(103, 232, 249, 0.05);
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 13px;
  color: #dff9ff;
  word-break: break-word;
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  margin: 8px 0 0;
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 211, 107, 0.2);
  background: rgba(255, 211, 107, 0.08);
  color: #ffe7a8;
  line-height: 1.65;
}

.quote {
  font-size: 18px;
  line-height: 1.7;
  color: #e7eeff;
}

.muted-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.muted-list span {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .hero-panel-grid,
  .grid-2,
  .grid-3,
  .project-grid,
  .stats-grid,
  .contact-grid,
  .detail-grid,
  .case-grid,
  .timeline,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .section-intro {
    align-items: start;
    flex-direction: column;
  }
}

.hero-stat-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.motion-band-wrap {
  padding: 6px 0 18px;
}

.page-band {
  padding-top: 10px;
}

.motion-band {
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.08), rgba(255, 95, 210, 0.08), rgba(139, 92, 246, 0.08));
}

.motion-track {
  width: max-content;
  display: flex;
  gap: 28px;
  padding: 12px 18px;
  min-width: 100%;
  animation: marquee-slide 26s linear infinite;
}

.motion-track span {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted-strong);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dailysoup-story {
  --story-progress: 0;
}

.dailysoup-story-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.story-stage {
  min-height: 950px;
}

.story-stage-inner {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
}

.story-stack-head,
.story-band-mini {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.story-stack-head strong,
.story-band-mini strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.story-band-mini span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.story-media-stack {
  position: relative;
  min-height: 520px;
}

.story-media-card {
  position: absolute;
  inset: 0;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.96), rgba(8, 11, 20, 0.9));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transition: transform 260ms ease, opacity 260ms ease, border-color 260ms ease;
  transform: translate3d(calc(var(--card-index) * 16px), calc(var(--card-index) * 28px), 0) scale(calc(1 - (var(--card-index) * 0.05)));
  opacity: calc(0.52 + ((3 - var(--card-index)) * 0.12));
}

.story-media-card.is-landed {
  transform: translate3d(calc(var(--card-index) * 10px), calc(var(--card-index) * 14px), 0) scale(calc(1 - (var(--card-index) * 0.02)));
  opacity: 0.86;
}

.story-media-card.is-active {
  transform: translate3d(0, 0, 0) scale(1.01);
  opacity: 1;
}

.story-media-card.accent-cyan {
  border-color: rgba(103, 232, 249, 0.28);
}

.story-media-card.accent-pink {
  border-color: rgba(255, 95, 210, 0.28);
}

.story-media-card.accent-violet {
  border-color: rgba(139, 92, 246, 0.28);
}

.story-window-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.story-window-body {
  margin-top: 18px;
  min-height: 100%;
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-window-label {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted-strong);
  font-size: 12px;
}

.story-window-body h3 {
  margin-top: 18px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.05em;
}

.story-window-body p {
  margin-top: 12px;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.72;
}

.story-window-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.story-window-grid span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted-strong);
  font-size: 12px;
}

.story-copy {
  display: grid;
  gap: 18px;
}

.story-intro {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  line-height: 1.82;
}

.story-steps {
  display: grid;
  gap: 16px;
}

.story-step {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 240ms ease, transform 240ms ease, background 240ms ease;
}

.story-step.is-active {
  border-color: rgba(103, 232, 249, 0.22);
  background: rgba(103, 232, 249, 0.08);
  transform: translateX(4px);
}

.story-step p {
  margin-top: 12px;
}

@keyframes marquee-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.studio-sidebar {
  display: grid;
  gap: 22px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.studio-editor {
  width: 100%;
  min-height: 620px;
  resize: vertical;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 16, 0.92);
  color: var(--text);
  font: 500 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.studio-status[data-kind='ok'] {
  border-color: rgba(103, 232, 249, 0.28);
  background: rgba(103, 232, 249, 0.08);
}

.studio-status[data-kind='warn'] {
  border-color: rgba(255, 178, 102, 0.3);
  background: rgba(255, 178, 102, 0.08);
}

.project-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-media-frame {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(103, 232, 249, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.project-media-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-relaunch-panel {
  display: grid;
  gap: 14px;
}

@media (max-width: 1040px) {
  .dailysoup-story-grid {
    grid-template-columns: 1fr;
  }

  .project-media-grid {
    grid-template-columns: 1fr;
  }

  .story-stage {
    min-height: auto;
  }

  .story-stage-inner {
    position: relative;
    top: auto;
  }

  .story-media-stack {
    min-height: 420px;
  }

  .studio-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 12px 0;
    align-items: start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 28px;
  }

  .page {
    padding-top: 26px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 74px);
  }

  .story-media-stack {
    min-height: 360px;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}
