:root {
  --bg: #131826;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: rgba(245, 247, 255, 0.92);
  --fg-2: rgba(245, 247, 255, 0.62);
  --fg-3: rgba(245, 247, 255, 0.42);
  --accent: oklch(0.78 0.08 240);
  --accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);
  --radius: 14px;
  --gap: clamp(72px, 11vw, 128px);
  --pad-x: clamp(20px, 5vw, 40px);
  --content: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
html { background: var(--bg) }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: var(--accent-soft); color: #fff }

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

/* ── Layout shell ──────────────────────────────────────────────────────── */
.page {
  max-width: calc(var(--content) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding-block: var(--gap) }
section + section { border-top: 1px solid var(--line) }

/* ── Type ──────────────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance }
h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 300 }
h2 { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3) }
h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.005em }
p { margin: 0; text-wrap: pretty }
/* ── Top mini-nav ──────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.top.scrolled { border-bottom-color: var(--line) }
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
}
.nav { display: flex; gap: 22px }
.nav a { font-size: 13px; color: var(--fg-2); transition: color .15s ease }
.nav a:hover { color: var(--fg) }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(96px, 14vw, 160px) clamp(72px, 11vw, 120px) }
.hero .role {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--fg-2);
}
.hero .role .sep {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--fg-3); margin: 0 12px 3px; vertical-align: middle;
}

/* ── Section heading w/ count or label ────────────────────────────────── */
.sect-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.sect-head .num { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: 0.06em }

/* ── About ─────────────────────────────────────────────────────────────── */
.about p {
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.55;
  color: var(--fg);
  max-width: 60ch;
  text-wrap: pretty;
}
.socials { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.social:hover {
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line-strong));
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.social svg { width: 16px; height: 16px; opacity: .9 }
.social .arrow { margin-left: 2px; opacity: .5; transition: transform .2s ease, opacity .2s ease }
.social:hover .arrow { transform: translate(2px, -2px); opacity: 1 }

/* ── Experience sections ─────────────────────────────────────────────────── */
.exp-tag { color: var(--fg-2); margin-top: 6px; font-size: 14px }
.exp-pills { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap }

.exp-hero {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 640px) {
  .exp-hero { grid-template-columns: 200px 1fr; gap: 44px }
}

.exp-img {
  width: 200px;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

.exp-caption p { color: var(--fg-2); font-size: 15px; line-height: 1.65 }

/* ── Pepsi / logistics scene ─────────────────────────────────────────────── */
.pepsi-scene {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 640px) {
  .pepsi-scene { grid-template-columns: 1fr auto }
}

.pepsi-text p { color: var(--fg-2); font-size: 15px; line-height: 1.65 }

.pepsi-truck {
  color: var(--fg-3);
  width: clamp(160px, 28vw, 220px);
  opacity: 0.55;
  justify-self: center;
  flex-shrink: 0;
}
.pepsi-truck img { width: 100%; height: auto; display: block }

/* ── Studio section ────────────────────────────────────────────────────── */
.studio-desc { color: var(--fg-2); font-size: 15px; margin-top: 16px }

/* Screen showcase */
.screen-showcase { width: 100%; margin-top: 32px }
.screen-frame {
  background: #0d1117;
  border-radius: 12px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 2px 0 rgba(255, 255, 255, 0.03) inset,
    0 24px 48px -16px rgba(0, 0, 0, 0.55);
}
.screen-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 220px;
  align-items: stretch;
}
.screen-track::-webkit-scrollbar { display: none }
.screen-card {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.screen-card > img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
}
.screen-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.screen-badge img { width: 100%; height: 100%; object-fit: cover; display: block }
.screen-divider {
  flex-shrink: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 4px;
  align-self: stretch;
}

/* App icon grid */
.apps-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}
@media (min-width: 560px) {
  .apps-grid { grid-template-columns: repeat(4, 1fr) }
}
.apps-group + .apps-group { margin-top: 32px }
.apps-group-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3);
  display: flex; align-items: center; gap: 12px;
}
.apps-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.app-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 4px 0;
}
.app-icon {
  width: 56px; height: 56px; border-radius: 14px;
  position: relative; overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 6px 14px -6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.app-icon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block }
.app-name { font-size: 13.5px; color: var(--fg); letter-spacing: -0.005em }
.app-kind { font-size: 11.5px; color: var(--fg-3); margin-top: -8px }


/* ── Projects list ─────────────────────────────────────────────────────── */
.projects { display: flex; flex-direction: column; border-top: 1px solid var(--line) }
.project {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  transition: padding .2s ease;
}
.project:hover { padding-left: 8px }
.project .idx { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em }
.project .body { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.project .title {
  font-size: 17px; font-weight: 500; letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 10px;
}
.project .desc {
  color: var(--fg-2); font-size: 14px; max-width: 52ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pill {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 999px; font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-3); border: 1px solid var(--line-strong);
}
.pill.live { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, var(--line-strong)) }
.project .arrow {
  color: var(--fg-3); transition: color .15s ease, transform .2s ease;
  font-size: 18px; line-height: 1;
}
.project:hover .arrow { color: var(--fg); transform: translate(3px, -3px) }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  padding: 48px 0 64px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--fg-3); font-size: 12.5px;
  flex-wrap: wrap; gap: 12px;
}

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s ease }
  .reveal.in { opacity: 1; transform: none }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 559px) {
  .nav { display: none }
  .project { grid-template-columns: 22px 1fr auto; gap: 14px }
  .project .desc { display: none }
}
