/* ============================================================
   Portfolio — Atharva Hambir
   Fonts: Sora (headlines), Inter (body), DM Mono (labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@200;400;500;600&family=Inter:wght@400;500&family=DM+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #F8F8F6;
  --surface: #FFFFFF;
  --text:    #111111;
  --muted:   #555555;
  --green:   #82B989;
  --border:  #E0E0DC;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ── Centered content container ── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

/* ── Typography helpers ── */
.sora   { font-family: 'Sora', sans-serif; }
.mono   { font-family: 'DM Mono', monospace; }
.muted  { color: var(--muted); }

/* ── Section label ── */
.sec-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.sec-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--green);
  flex-shrink: 0;
}

/* ── Body text ── */
.body-p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 660px;
}
.body-p + .body-p { margin-top: 18px; }

/* ── Pull quote style ── */
.pull {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  max-width: 640px;
  margin-bottom: 24px;
}

/* ── Sections ── */
.sec {
  padding: 96px 0;
}
.sec.surface {
  background: var(--surface);
}
.sec.tight {
  padding: 64px 0;
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-bottom 0.3s;
}
#nav.scrolled {
  background: rgba(248,248,246,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav-name {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#nav.past-hero .nav-name { opacity: 1; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  color: rgba(130,185,137,0.88);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: rgba(130,185,137,1); }
#nav.scrolled .nav-name { color: #2e5435; }
#nav.scrolled .nav-links a { color: #2e5435; }
#nav.scrolled .nav-links a:hover { color: #1a3220; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 64px;
  background: #141810;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, #0b120c 0%, #080908 28%, #060606 58%, #050505 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 72%, rgba(5,5,5,0.50) 100%);
}
.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: stretch;
}
.hero-photo img {
  height: 100%;
  width: auto;
  display: block;
  filter: saturate(0.7) brightness(1.15) contrast(1.12);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.45) 10%, black 26%, black 100%),
    linear-gradient(to bottom, transparent 0%, black 9%, black 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.45) 10%, black 26%, black 100%),
    linear-gradient(to bottom, transparent 0%, black 9%, black 84%, transparent 100%);
  mask-composite: intersect;
}
.hero-spacer { height: 80px; }
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-name {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(130,185,137,0.88);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 600;
  color: #f0f5f1;
  line-height: 1.08;
  max-width: 680px;
  margin-bottom: 24px;
}
.hero-content .sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(210,230,212,0.60);
  line-height: 1.75;
  max-width: 440px;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}
.hero-scroll-line {
  width: 28px;
  height: 1px;
  background: var(--green);
}
.hero-scroll-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   THE BRIEF
   ============================================================ */
#brief .pull {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 20px;
}
.brief-curve {
  margin-top: 44px;
  max-width: 660px;
}
.brief-curve svg {
  width: 100%;
  height: auto;
  display: block;
}
.approach-radial {
  margin-top: 48px;
  max-width: 660px;
}
.approach-radial svg {
  width: 100%;
  height: auto;
  display: block;
}
.model-scene {
  margin-top: 44px;
  margin-bottom: 8px;
  max-width: 660px;
}
.model-scene svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   THE MODEL — CONSTRUCTS
   ============================================================ */
.constructs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 620px;
  margin-top: 48px;
}
.construct-item {
  padding: 28px 24px 28px 0;
  border-top: 1.5px solid var(--text);
}
.construct-item:nth-child(2),
.construct-item:nth-child(4) {
  padding-left: 32px;
  border-left: 0.5px solid var(--border);
}
.construct-item:nth-child(3),
.construct-item:nth-child(4) {
  border-top: 1.5px solid var(--text);
}
.construct-icon {
  font-size: 18px;
  color: var(--green);
  margin-bottom: 14px;
}
.construct-name {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.construct-alias {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.construct-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   THE WORK
   ============================================================ */
.work-intro {
  font-family: 'Sora', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  max-width: 600px;
  margin-bottom: 64px;
}

.domain {
  padding-bottom: 72px;
  margin-bottom: 72px;
  border-bottom: 0.5px solid var(--border);
}
.domain:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.domain-num {
  font-family: 'Sora', sans-serif;
  font-size: 64px;
  font-weight: 200;
  color: rgba(130,185,137,0.18);
  line-height: 1;
  margin-bottom: -12px;
  user-select: none;
}
.domain h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.domain-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Impact */
.impact-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 12px;
  opacity: 0.7;
}
.stats-row {
  display: flex;
  max-width: 560px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.stat {
  flex: 1;
  padding: 20px 0;
  border-right: 0.5px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  padding: 0 20px;
  margin-bottom: 6px;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
  padding: 0 20px;
  line-height: 1.55;
}

/* Quote */
.quote-block {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--green);
  max-width: 520px;
}
.quote-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
}
.quote-attr {
  margin-top: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Screenshot */
.screenshot-wrap {
  margin-top: 36px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.screenshot-wrap img {
  width: 100%;
  display: block;
  filter: saturate(0.6) brightness(0.86);
  transition: filter 0.45s ease, transform 0.45s ease;
}
.screenshot-placeholder {
  width: 100%;
  display: block;
  border-radius: 10px;
  height: 320px;
  background: #EDECEA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.08em;
}
.screenshot-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62%;
  background: linear-gradient(to bottom, transparent 0%, rgba(5,7,5,0.80) 60%, rgba(5,7,5,0.95) 100%);
  pointer-events: none;
}
.screenshot-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(5,7,5,0.32) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
a.screenshot-wrap {
  display: block;
  text-decoration: none;
}
a.screenshot-wrap:hover img {
  filter: saturate(0.78) brightness(0.94);
  transform: scale(1.016);
}
a.screenshot-wrap:hover .cover-cta {
  background: #BFE0C4;
  border-color: #BFE0C4;
  color: #0c1a0f;
}

/* Cover overlay: context + stats + CTA sitting on the dark gradient */
.cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.cover-left {
  flex: 1;
  min-width: 0;
}
.cover-context {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244,247,244,0.92);
  margin: 0 0 20px;
  max-width: 520px;
}
.cover-stats {
  display: flex;
  gap: 32px;
}
.cover-stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.cover-stat-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #A8D4AE;
  border: 1px solid #A8D4AE;
  border-radius: 6px;
  color: #0c1a0f;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cover-cta:hover {
  background: #BFE0C4;
  border-color: #BFE0C4;
  color: #0c1a0f;
}

/* Full case study CTA */
.case-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #111111;
  color: #F8F8F6;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.case-cta:hover { opacity: 0.8; }

/* ============================================================
   SPEAKING / LECTURE
   ============================================================ */
.lecture-photos {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
  max-width: 980px;
  height: 580px;
}
.lecture-photo {
  border-radius: 10px;
  background: #EDECEA;
  overflow: hidden;
  position: relative;
}
.lecture-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.5) brightness(0.92);
  transform: scale(1);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.lecture-photo:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.04);
}
.lp-hall { grid-column: 1; grid-row: 1; }
.lp-hall img { object-position: 25% center; }
.lp-portrait { grid-column: 2; grid-row: 1 / 3; }
.lp-portrait img { object-position: right top; }
.lp-group { grid-column: 1; grid-row: 2; }
.lp-group img { object-position: center 72%; }
@media (max-width: 768px) {
  .lecture-photos {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .lp-hall, .lp-group, .lp-portrait {
    grid-column: 1;
    grid-row: auto;
  }
  .lp-hall, .lp-group { aspect-ratio: 16/9; }
  .lp-portrait { aspect-ratio: 4/5; }
}

/* ============================================================
   WHAT'S NEXT
   ============================================================ */
.wn-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  max-width: 600px;
  margin-bottom: 20px;
}

/* ============================================================
   OUTSIDE WORK
   ============================================================ */
.outside-photos {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
  max-width: 980px;
  height: 580px;
}
.op-cell {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #EDECEA;
}
.op-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.98);
  transform: scale(1);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.op-cell:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.04);
}
.op-a { grid-column: 1; grid-row: 1; }
.op-a img { object-position: center 60%; }
.op-b { grid-column: 2; grid-row: 1 / 3; }
.op-b img { object-position: center; }
.op-c { grid-column: 1; grid-row: 2; }
.op-c img { object-position: center 30%; }
@media (max-width: 768px) {
  .outside-photos {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .op-a, .op-b, .op-c { grid-column: 1; grid-row: auto; }
  .op-a, .op-c { aspect-ratio: 16/9; }
  .op-b { aspect-ratio: 4/5; }
}
.vsco-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 14px 22px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #111;
  text-decoration: none;
  background: #fff;
  border: 1px solid #E0E0DC;
  border-radius: 8px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.vsco-link i { font-size: 14px; }
.vsco-link:hover {
  background: #82B989;
  border-color: #82B989;
  color: #fff;
  box-shadow: 0 4px 16px rgba(130,185,137,0.2);
  transform: translateY(-2px);
}
.vsco-link:hover i { color: #fff; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: stretch;
}
.about-body {
  display: flex;
  flex-direction: column;
}
.about-body .timeline {
  margin-top: 36px;
  flex: 1;
}
.about-body .vsco-link {
  margin-top: 32px;
  align-self: flex-start;
}
.about-photo {
  width: 380px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #E8E6E2;
  position: relative;
}
.about-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, #F8F8F6);
  pointer-events: none;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-placeholder-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #aaa;
  text-align: center;
  letter-spacing: 0.06em;
}
.about-intro {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 660px;
}
.about-intro + .about-intro { margin-top: 18px; }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}
.tl-row {
  display: flex;
  gap: 24px;
}
.tl-year {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.06em;
  width: 52px;
  flex-shrink: 0;
  padding-top: 3px;
}
.tl-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tl-logo {
  display: block;
  width: auto;
  margin-bottom: 6px;
  opacity: 0.85;
}
.tl-logo-amura      { height: 14px; }
.tl-logo-pineapple  { height: 22px; }
.tl-logo-persistent { height: 22px; }
.tl-logo-intuit     { height: 16px; }
.tl-org {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.tl-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.tl-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: var(--green);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.tl-link:hover { opacity: 1; }

/* ============================================================
   CHATBOT
   ============================================================ */
.chat-wrap {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  margin-top: 16px;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 100px;
}
.chat-bubble {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.65;
  max-width: 420px;
  word-break: break-word;
}
.chat-bubble.bot {
  background: var(--bg);
  color: var(--text);
  align-self: flex-start;
}
.chat-bubble.user {
  background: #111111;
  color: #F8F8F6;
  align-self: flex-end;
}
.chat-bubble.typing {
  background: var(--bg);
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}
.chat-input-row {
  display: flex;
  gap: 10px;
  border-top: 0.5px solid var(--border);
  padding-top: 18px;
}
.chat-input {
  flex: 1;
  height: 40px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--green); }
.chat-input::placeholder { color: #aaa; }
.chat-send {
  width: 40px;
  height: 40px;
  background: #111111;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.chat-send:hover { opacity: 0.8; }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-email {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.04em;
  margin: 32px 0 24px;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--green); }
.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.s-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid #D0D0CC;
  border-radius: 7px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.s-btn:hover { border-color: var(--text); }
.s-btn svg {
  width: 15px;
  height: 15px;
  fill: var(--text);
  flex-shrink: 0;
}
.s-btn span {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 0.5px solid var(--border);
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
footer span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   CASE STUDY OVERLAY
   ============================================================ */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.overlay-backdrop.open {
  pointer-events: all;
  opacity: 1;
}
.overlay-panel {
  position: absolute;
  inset: 0;
  background: var(--surface);
  transform: translateY(100%);
  transition: transform 0.48s cubic-bezier(0.32, 0, 0.15, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.overlay-backdrop.open .overlay-panel {
  transform: translateY(0);
}
.overlay-bar {
  border-bottom: 0.5px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.overlay-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.overlay-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #111111;
  color: #F8F8F6;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.overlay-back:hover { opacity: 0.8; }
.overlay-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.overlay-content {
  overflow-y: auto;
  flex: 1;
  padding: 64px 80px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}
.overlay-block {
  margin-bottom: 48px;
}
.overlay-block-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.overlay-block-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--green);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container,
  .nav-inner,
  .footer-inner,
  .overlay-bar-inner { padding-left: 32px; padding-right: 32px; }
  .overlay-content { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  .container,
  .nav-inner,
  .footer-inner,
  .overlay-bar-inner { padding-left: 24px; padding-right: 24px; }
  .sec, .sec.tight { padding: 64px 0; }
  #hero { padding: 0 0 48px; }
  .nav-links { gap: 20px; }
  .overlay-content { padding: 40px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; align-items: flex-start; }
  .about-photo { width: 100%; aspect-ratio: 3/4; }
  .about-body .timeline { flex: none; }
  .about-body .vsco-link { margin-top: 24px; }
  .constructs-grid { grid-template-columns: 1fr; }
  .construct-item:nth-child(2),
  .construct-item:nth-child(4) { padding-left: 0; border-left: none; }
  .stats-row { flex-wrap: wrap; }
  .stat { min-width: 50%; }
  .footer-inner { padding-top: 20px; padding-bottom: 20px; }
  .case-covers { flex-direction: column; gap: 16px; }
  .cover-frame  { height: 420px; }
  .domain-num { font-size: 48px; margin-bottom: -8px; }

  /* Hero photo: top image band that fades into the dark gradient, instead of a side panel */
  .hero-photo {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: 50vh;
    align-items: flex-start;
    justify-content: center;
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
    filter: saturate(0.68) brightness(0.95) contrast(1.12);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  }

  /* Cover overlay: image no longer sized by its own aspect ratio, so overlay content can't get clipped */
  .screenshot-wrap { height: 420px; }
  .screenshot-wrap img { height: 100%; object-fit: cover; }
  .cover-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px 22px;
  }
  .cover-context {
    font-size: 12.5px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cover-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cover-stat-num { font-size: 17px; }
  .cover-stat-label { font-size: 8.5px; line-height: 1.4; }
  .work-intro { margin-bottom: 48px; }
}

/* ============================================================
   CASE STUDY COVERS — full-screen portrait, clickable
   ============================================================ */

.case-covers {
  display: flex;
  gap: 20px;
  margin-top: 44px;
}

.cover-card {
  flex: 1;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  outline: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.cover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(17,17,17,0.16);
}
.cover-card:focus-visible {
  box-shadow: 0 0 0 2px var(--green), 0 0 0 4px rgba(130,185,137,0.2);
}

.cover-frame {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 16px;
  background: #e8efe9;
}

.cover-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Annotation dots */
.cover-annot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 2;
  pointer-events: none;
}

.annot-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(130,185,137,0.22);
}

.annot-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  background: rgba(8,12,8,0.52);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Gradient fade: transparent → near-black */
.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent       0%,
    transparent       28%,
    rgba(8,12,8,0.48) 54%,
    rgba(8,12,8,0.96) 100%
  );
  pointer-events: none;
}

/* Bottom meta */
.cover-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 22px 26px;
}

.cover-tag {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 9px;
}

.cover-headline {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 14px;
}

.cover-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s ease;
}
.cover-card:hover .cover-open {
  color: rgba(255,255,255,0.7);
}

.screen-dash {
  color: var(--green);
  margin-right: 8px;
}
