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

:root {
  --bg: #F5F0EB;
  --text: #1A2B1A;
  --text-2: #5A6B5A;
  --lime: #C5F02A;
  --sky: #8BB8CC;
  --coral: #D4594A;
  --border: #D4CCC4;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--lime);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

a {
  color: inherit;
  transition: color 0.2s;
}

img, svg {
  display: block;
  max-width: 100%;
}


/* ────────────────────────────────────────
   PRELOADER
   ──────────────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--bg);
  letter-spacing: -1px;
}


/* ────────────────────────────────────────
   NAVIGATION
   ──────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 6vw;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-overlay.open {
  visibility: visible;
  opacity: 1;
}

.nav-overlay a {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-overlay a:hover {
  color: var(--coral);
}


/* ────────────────────────────────────────
   HERO
   ──────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 0 6vw;
  padding-top: 80px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 440px;
}

/* Word-split for GSAP text reveals */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

/* Scroll cue */
.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 3.5rem;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  50%  { top: 0; }
  100% { top: 100%; }
}

/* Hero art */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 460px;
  justify-self: end;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* ────────────────────────────────────────
   MARQUEE
   ──────────────────────────────────────── */

.marquee {
  padding: 1.8rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.marquee-dot {
  width: 6px !important;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ────────────────────────────────────────
   SECTION COMMON
   ──────────────────────────────────────── */

.section-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4rem;
}


/* ────────────────────────────────────────
   SELECTED WORK
   ──────────────────────────────────────── */

.work {
  padding: 8rem 6vw 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.project:last-child {
  border-bottom: 1px solid var(--border);
}

.project-number {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.project-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 460px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 2rem;
}

.project-tech li {
  font-size: 0.78rem;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-2);
}

.project-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.project-link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.inline-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.inline-link:hover {
  text-decoration-color: var(--text);
}


/* ── Project visuals ── */

.project-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* ── Browser window mockup ── */

.browser {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26, 43, 26, 0.12), 0 2px 8px rgba(26, 43, 26, 0.06);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s ease;
}

.project:hover .browser {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 56px rgba(26, 43, 26, 0.16), 0 4px 12px rgba(26, 43, 26, 0.08);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #EEEAE5;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.chrome-dot:nth-child(1) { background: #EC6A5E; }
.chrome-dot:nth-child(2) { background: #F4BF4F; }
.chrome-dot:nth-child(3) { background: #61C554; }

.chrome-url {
  margin-left: 12px;
  padding: 4px 14px;
  background: var(--bg);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-2);
  letter-spacing: 0.01em;
  flex: 1;
  max-width: 280px;
}

.browser-page {
  flex: 1;
  background: #fff;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

/* ── Sunny Thumbnails cover ── */

.browser-page--sunny {
  padding: 0;
  background: #11110F;
}

.browser-page--sunny img,
.browser-page--portfolio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Smart Trolley mockup ── */

.browser-page--trolley {
  background: #0D1B2A;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.st-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1B3A4B, #0D2137);
}

.st-logo-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #00C9A7;
}

.st-logo-text {
  height: 8px;
  width: 60px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
}

.st-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00E676;
  margin-left: auto;
  animation: stPulse 2s ease-in-out infinite;
}

@keyframes stPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0, 230, 118, 0); }
}

.st-nav {
  display: flex;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.st-nav-tab {
  height: 6px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.st-nav-tab--active {
  background: #00BCD4;
}

.st-bill-card {
  margin: 8px 10px;
  background: linear-gradient(145deg, #162B3D, #0F2233);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 188, 212, 0.12);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.st-bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.st-bill-title {
  height: 7px;
  width: 50px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.st-timer {
  height: 7px;
  width: 56px;
  background: rgba(0, 188, 212, 0.3);
  border-radius: 3px;
}

.st-table-head {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.st-table-head span {
  flex: 1;
  height: 6px;
  background: #00BCD4;
  border-radius: 2px;
}

.st-table-row {
  display: flex;
  gap: 4px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: stRowFade 3s ease-in-out infinite;
}

.st-table-row:nth-child(4) { animation-delay: 0.3s; }
.st-table-row:nth-child(5) { animation-delay: 0.6s; }

@keyframes stRowFade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.st-cell {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.st-cell--name { flex: 2.5; }
.st-cell--name.st-cell--short { flex: 1.6; }
.st-cell--qty { flex: 0.8; background: rgba(255, 255, 255, 0.08); }
.st-cell--price { flex: 1; }
.st-cell--total { flex: 1; background: rgba(0, 230, 118, 0.2); }

.st-bill-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 4px;
}

.st-total-label {
  height: 6px;
  width: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.st-total-amount {
  height: 8px;
  width: 45px;
  background: #00E676;
  border-radius: 3px;
  opacity: 0.8;
}

.st-checkout-btn {
  height: 22px;
  background: linear-gradient(90deg, #2E7D32, #43A047);
  border-radius: 5px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.st-checkout-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: stShimmer 3s ease-in-out infinite;
}

@keyframes stShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.st-scan-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  position: relative;
}

.st-scan-icon {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 20px;
  padding: 3px 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.st-scan-bar {
  display: block;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
}

.st-scan-bar--short {
  height: 60%;
}

.st-scan-pulse {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 188, 212, 0.25);
  animation: stScanPulse 2.5s ease-out infinite;
}

@keyframes stScanPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── Donar mockup ── */

.browser-page--donar {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}

.browser-page--donar img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.mock-topbar--blue {
  background: var(--sky);
}

.mock-hero-block {
  padding: 14px 0;
}

.mock-hero-heading {
  height: 12px;
  width: 70%;
  background: var(--text);
  opacity: 0.18;
  border-radius: 4px;
  margin-bottom: 8px;
}

.mock-hero-subtext {
  height: 7px;
  width: 50%;
  background: #E8E3DE;
  border-radius: 3px;
}

.mock-cards {
  display: flex;
  gap: 8px;
  flex: 1;
}

.mock-card {
  flex: 1;
  background: #F8F5F1;
  border: 1px solid #EDE9E4;
  border-radius: 6px;
  min-height: 48px;
}

.mock-cta {
  height: 28px;
  width: 36%;
  background: var(--sky);
  border-radius: 6px;
  margin: 0 auto;
}

/* ── Portfolio mockup ── */

.browser-page--portfolio {
  padding: 0;
  background: var(--bg);
}

.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-nav-logo {
  height: 10px;
  width: 24px;
  background: var(--text);
  opacity: 0.25;
  border-radius: 2px;
}

.mock-nav-links {
  display: flex;
  gap: 10px;
}

.mock-nav-links span {
  display: block;
  height: 6px;
  width: 36px;
  background: #E8E3DE;
  border-radius: 3px;
}

.mock-headline-lg {
  height: 14px;
  width: 80%;
  background: var(--text);
  opacity: 0.15;
  border-radius: 4px;
}

.mock-headline-sm {
  height: 8px;
  width: 55%;
  background: #E8E3DE;
  border-radius: 3px;
}

.mock-shapes-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.mock-shape {
  border-radius: 4px;
  height: 40px;
}

.mock-shape--lime {
  flex: 2;
  background: var(--lime);
  opacity: 0.6;
}

.mock-shape--sky {
  flex: 1.5;
  background: var(--sky);
  opacity: 0.5;
}

.mock-shape--coral {
  flex: 0.7;
  background: var(--coral);
  opacity: 0.55;
}


/* ── ScopeSnap project preview ── */

.browser-page--scopesnap {
  padding: 0;
  background: #F8F7F0;
  color: #171717;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.ss-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: #FDE047;
  border-bottom: 2px solid #171717;
}

.ss-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ss-mark {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #171717;
  background: #171717;
  color: #4ADE80;
  font-size: 0.52rem;
  letter-spacing: -0.04em;
}

.ss-period {
  color: #16A34A;
}

.ss-top-pill {
  border: 1px solid #171717;
  padding: 3px 6px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ss-workspace {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px;
  flex: 1;
  min-height: 0;
  padding: 10px;
}

.ss-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 5px;
  background: #FFFFFF;
  border: 1px solid #E1DED3;
}

.ss-side-heading {
  padding: 2px 4px 5px;
  font-size: 0.43rem;
  font-weight: 800;
  color: #827F75;
  letter-spacing: 0.08em;
}

.ss-side-item {
  padding: 5px 4px;
  border: 1px solid transparent;
  font-size: 0.51rem;
  font-weight: 600;
  line-height: 1.2;
  color: #57574F;
  white-space: nowrap;
}

.ss-side-item--active {
  border-color: #171717;
  background: #FEF08A;
  color: #171717;
}

.ss-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ss-main-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.ss-main-heading > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ss-eyebrow {
  color: #77766E;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.ss-main-heading strong {
  font-family: var(--font-head);
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.ss-status {
  border: 1px solid #171717;
  background: #BBF7D0;
  padding: 3px 5px;
  font-size: 0.44rem;
  font-weight: 800;
  white-space: nowrap;
}

.ss-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.ss-stat {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 6px;
  border: 1px solid #E1DED3;
  background: #FFFFFF;
}

.ss-stat > span {
  color: #77766E;
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ss-stat strong {
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.15;
}

.ss-line {
  display: block;
  height: 3px;
  width: 100%;
  margin-top: 1px;
}

.ss-line--red { background: #F87171; }
.ss-line--green { background: #4ADE80; }

.ss-live-dot {
  width: 6px;
  height: 6px;
  margin-top: 1px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px #BBF7D0;
}

.ss-release-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid #E1DED3;
  background: #FFFFFF;
}

.ss-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 6px;
}

.ss-card-heading strong {
  font-size: 0.54rem;
  font-weight: 800;
}

.ss-card-heading span {
  color: #77766E;
  font-size: 0.38rem;
  font-weight: 800;
  white-space: nowrap;
}

.ss-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px;
  height: 57px;
  padding: 3px 3px 0;
  border-bottom: 1px solid #E1DED3;
}

.ss-chart-col {
  height: 100%;
  width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.ss-chart-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
  border: 1px solid #171717;
}

.ss-chart-stack i { display: block; width: 100%; }
.ss-chart-open { background: #F87171; }
.ss-chart-fixed { background: #4ADE80; }
.ss-chart-open--one { height: 12px; }
.ss-chart-fixed--one { height: 22px; }
.ss-chart-open--two { height: 8px; }
.ss-chart-fixed--two { height: 30px; }
.ss-chart-open--three { height: 5px; }
.ss-chart-fixed--three { height: 39px; }

.ss-chart-col span {
  color: #77766E;
  font-size: 0.42rem;
  font-weight: 700;
}

.ss-chart-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  align-self: center;
  color: #77766E;
  font-size: 0.43rem;
  font-weight: 600;
}

.ss-legend-open,
.ss-legend-fixed {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-left: 4px;
}

.ss-legend-open { background: #F87171; }
.ss-legend-fixed { background: #4ADE80; }

.ss-issue-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid #E1DED3;
  background: #FFFFFF;
}

.ss-issue-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid #171717;
  background: #F87171;
}

.ss-issue-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ss-issue-row strong {
  font-size: 0.52rem;
  line-height: 1.1;
}

.ss-issue-row small {
  color: #77766E;
  font-size: 0.43rem;
  line-height: 1.2;
}

.ss-issue-tag {
  margin-left: auto;
  padding: 3px 4px;
  border: 1px solid #171717;
  background: #FEF08A;
  font-size: 0.4rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-link + .project-link {
  margin-left: 1.25rem;
}

@media (max-width: 600px) {
  .ss-workspace {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 6px;
    padding: 7px;
  }

  .ss-main {
    gap: 6px;
  }

  .ss-sidebar {
    padding: 6px 3px;
  }

  .ss-side-item {
    font-size: 0.45rem;
    padding: 5px 2px;
  }

  .ss-chart {
    gap: 8px;
  }

  .ss-chart-legend {
    font-size: 0.38rem;
  }

  .project-link + .project-link {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}


/* ────────────────────────────────────────
   APPROACH
   ──────────────────────────────────────── */

.approach {
  padding: 8rem 6vw;
}

.approach-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.approach-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.approach-item h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.approach-item p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
}


/* ────────────────────────────────────────
   TOOLS STRIP
   ──────────────────────────────────────── */

.tools-strip {
  padding: 4.5rem 6vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem 1.8rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tool-name {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
}

.tool-sep {
  font-size: 1.5rem;
  color: var(--border);
  font-weight: 300;
}


/* ────────────────────────────────────────
   ABOUT
   ──────────────────────────────────────── */

.about {
  padding: 8rem 6vw;
  background: var(--text);
  color: var(--bg);
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.about .section-label {
  color: rgba(245, 240, 235, 0.45);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
}

.about-lede {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--bg);
}

.about-text p {
  color: rgba(245, 240, 235, 0.65);
  line-height: 1.85;
  font-size: 1rem;
}

.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 2rem;
  margin-bottom: 2.5rem;
}

.detail-list dt {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 235, 0.4);
  text-transform: uppercase;
}

.detail-list dd {
  font-size: 0.95rem;
  color: var(--bg);
}

.about-links {
  display: flex;
  gap: 1.5rem;
}

.about-links a {
  color: var(--bg);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(245, 240, 235, 0.25);
  text-underline-offset: 3px;
}

.about-links a:hover {
  text-decoration-color: var(--bg);
}


/* ────────────────────────────────────────
   CONTACT
   ──────────────────────────────────────── */

.contact {
  padding: 10rem 6vw;
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-heading {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 2rem;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2.5px solid var(--lime);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}

.contact-email:hover {
  border-color: var(--coral);
}

.contact-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.contact-social a {
  color: var(--text-2);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.contact-social a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}


/* ────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────── */

.site-footer {
  padding: 2rem 6vw;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-2);
}

.footer-name {
  font-weight: 500;
}

.footer-sep {
  opacity: 0.3;
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}


/* ────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────── */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 4rem;
    gap: 3rem;
  }

  .hero-art {
    max-width: 300px;
    justify-self: start;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 0;
  }

  .project--donar .project-body {
    order: -1;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact {
    padding: 6rem 6vw;
  }
}

@media (max-width: 600px) {
  .hero-headline {
    letter-spacing: -1px;
  }

  .work {
    padding: 5rem 6vw 3rem;
  }

  .project {
    padding: 2.5rem 0;
  }

  .project-visual {
    aspect-ratio: 3 / 2;
  }

  .approach {
    padding: 5rem 6vw;
  }

  .tools-strip {
    padding: 3rem 6vw;
    gap: 0.8rem 1.2rem;
  }

  .about {
    padding: 5rem 6vw;
  }

  .contact {
    padding: 5rem 6vw;
    text-align: left;
  }

  .contact-inner {
    max-width: none;
  }

  .contact-social {
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-sep {
    display: none;
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .shape {
    opacity: 1 !important;
  }

  .marquee-track {
    animation: none;
  }

  .scroll-line::after {
    animation: none;
  }
}


.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ─────────────────────────────────────────────
   STORYTELLING REDESIGN — editorial, not ornamental
   ───────────────────────────────────────────── */

:root {
  --bg: #F5F0EB;
  --text: #1A2B1A;
  --text-2: #5A6B5A;
  --lime: #C5F02A;
  --sky: #8BB8CC;
  --coral: #D4594A;
  --border: #D4CCC4;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --section-gutter: clamp(1.25rem, 6vw, 6rem);
}

html {
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
}

a {
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(245, 240, 235, 0.92);
  border-bottom-color: rgba(26, 43, 26, 0.12);
}

#navbar {
  padding: 1.05rem var(--section-gutter);
}

.nav-logo {
  font-size: 1.3rem;
  letter-spacing: -0.08em;
}

.nav-logo-dot {
  color: var(--coral);
}

.nav-links {
  align-items: center;
  gap: clamp(1rem, 2.25vw, 2.1rem);
}

.nav-links a {
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-links .nav-contact {
  color: var(--text);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .nav-contact:hover {
  color: var(--bg);
  background: var(--text);
}

.nav-overlay {
  padding: 6rem 1.5rem 2rem;
}

.nav-overlay a {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: min(880px, 100svh);
  padding: 8.5rem var(--section-gutter) 7rem;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--coral);
}

.hero-headline {
  margin-bottom: 1.6rem;
  font-size: clamp(3.3rem, 6.1vw, 6.5rem);
  line-height: 0.99;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.hero-highlight::after {
  position: absolute;
  z-index: -1;
  content: "";
  left: 0.02em;
  right: -0.03em;
  bottom: 0.02em;
  height: 0.19em;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(0.97) rotate(-1deg);
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--text-2);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  color: var(--text);
  background: var(--lime);
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-2);
  font-size: 0.82rem;
  text-decoration-color: var(--border);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--text);
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.5rem;
  color: var(--text-2);
  font-size: 0.76rem;
}

.availability-dot,
.workflow-panel-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #538D53;
  box-shadow: 0 0 0 3px rgba(83, 141, 83, 0.14);
}

.hero-art {
  width: 100%;
  max-width: 570px;
  aspect-ratio: 0.96;
  justify-self: end;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.scene-index {
  position: absolute;
  top: 4%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.scene-orbit {
  position: absolute;
  border: 1px solid rgba(26, 43, 26, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.scene-orbit-one {
  width: 82%;
  height: 82%;
  left: 9%;
  top: 10%;
  transform: rotate(-22deg);
}

.scene-orbit-two {
  width: 62%;
  height: 96%;
  left: 19%;
  top: 3%;
  transform: rotate(36deg);
  border-color: rgba(212, 89, 74, 0.22);
}

.scene-browser {
  position: absolute;
  width: 81%;
  left: 9%;
  top: 24%;
  overflow: hidden;
  border: 1px solid rgba(26, 43, 26, 0.22);
  border-radius: 8px;
  background: #FFFCF6;
  box-shadow: 0 24px 70px rgba(26, 43, 26, 0.13), 0 4px 12px rgba(26, 43, 26, 0.07);
  transform: rotate(-2deg);
}

.scene-browser-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.8rem;
  border-bottom: 1px solid #E1DAD0;
  background: #F0EBE4;
}

.scene-browser-dots {
  display: flex;
  gap: 4px;
}

.scene-browser-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4CCC4;
}

.scene-browser-dots i:first-child { background: var(--coral); }
.scene-browser-dots i:nth-child(2) { background: #E6B64A; }
.scene-browser-dots i:last-child { background: #7EA77C; }

.scene-browser-url {
  min-width: 0;
  overflow: hidden;
  padding: 0.28rem 0.5rem;
  border-radius: 3px;
  background: #FBF8F3;
  color: var(--text-2);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-browser-menu {
  color: var(--text-2);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.scene-browser-body {
  min-height: 280px;
  padding: 1rem 1.1rem 1.1rem;
}

.scene-site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #E1DAD0;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
}

.scene-site-top b {
  font-family: var(--font-head);
  font-weight: 800;
}

.scene-site-top b span { color: var(--coral); }
.scene-site-top > span { color: var(--text-2); font-size: 0.48rem; }

.scene-site-copy {
  padding: 1.7rem 0 1rem;
}

.scene-site-eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--coral);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.scene-site-copy > strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 3.1vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.97;
}

.scene-site-copy > strong em {
  color: var(--text-2);
  font-weight: 600;
}

.scene-site-line {
  display: block;
  width: 49%;
  height: 4px;
  margin-top: 0.52rem;
  background: #D9D4C9;
}

.scene-site-line-long { width: 69%; margin-top: 1.1rem; }

.scene-site-cta {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.55rem 0.7rem;
  background: var(--lime);
  color: var(--text);
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.scene-site-shapes {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.5rem;
}

.scene-site-shapes span {
  display: block;
  height: 44px;
  border: 1px solid rgba(26, 43, 26, 0.08);
  background: #DFE5D6;
}

.scene-site-shapes span:first-child { background: var(--lime); }
.scene-site-shapes span:last-child { background: #D9E3E5; }

.scene-card {
  position: absolute;
  z-index: 2;
  padding: 1rem;
  background: #FFFCF6;
  border: 1px solid rgba(26, 43, 26, 0.22);
  box-shadow: 5px 7px 0 rgba(26, 43, 26, 0.08);
}

.scene-note {
  top: 15%;
  left: -1%;
  width: 36%;
  transform: rotate(-5deg);
}

.scene-shipped {
  right: -1%;
  bottom: 15%;
  width: 37%;
  background: var(--lime);
  transform: rotate(4deg);
}

.scene-card-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-2);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.scene-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(0.88rem, 1.7vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.scene-scribble {
  display: block;
  margin-top: 0.7rem;
  color: var(--coral);
  font-size: 1.5rem;
  line-height: 1;
}

.scene-shipped-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--lime);
  font-size: 0.9rem;
}

.scene-shipped .scene-card-label { color: rgba(26, 43, 26, 0.65); }

.scene-caption {
  position: absolute;
  right: 1%;
  bottom: 3%;
  color: var(--text-2);
  font-size: 0.65rem;
  font-style: italic;
}

.hero-scroll-cue {
  position: absolute;
  left: var(--section-gutter);
  bottom: 1.8rem;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin: 0;
  letter-spacing: 0.08em;
}

.scroll-line {
  width: 62px;
  height: 1px;
  background: var(--border);
}

.scroll-line::after {
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  animation: scrollPulseHorizontal 2s ease-in-out infinite;
}

@keyframes scrollPulseHorizontal {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

.marquee {
  padding: 1.35rem 0;
  background: var(--text);
  border: 0;
}

.marquee-track {
  gap: 1.6rem;
}

.marquee-track span {
  color: var(--bg);
  font-size: 0.75rem;
}

.marquee-dot {
  background: var(--lime);
}

.section-label {
  margin-bottom: 1.4rem;
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.story-section {
  padding: clamp(5rem, 9vw, 9rem) var(--section-gutter);
}

.journey {
  max-width: 1600px;
  margin: 0 auto;
}

.journey-header,
.ai-workflow-heading,
.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: 4rem;
}

.story-heading {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.99;
  text-wrap: balance;
}

.story-heading span {
  color: var(--text-2);
}

.journey-intro,
.work-heading > p,
.ai-workflow-heading > p {
  max-width: 450px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.85;
}

.journey-timeline {
  border-top: 1px solid var(--border);
}

.journey-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(130px, 210px);
  align-items: start;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
}

.journey-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.journey-step-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
}

.journey-step:nth-child(2) .journey-step-marker span { background: #DCE6D6; }
.journey-step:nth-child(3) .journey-step-marker span { background: var(--lime); }
.journey-step:nth-child(4) .journey-step-marker span { background: #E7D5CE; }

.journey-step-marker i {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.journey-step:last-child .journey-step-marker i { display: none; }

.journey-step-body {
  max-width: 720px;
}

.journey-step-kicker {
  margin-bottom: 0.5rem;
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.journey-step h4 {
  margin-bottom: 0.7rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.journey-step-body > p:last-child {
  max-width: 680px;
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.85;
}

.journey-side-note {
  justify-self: end;
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: right;
}

.journey-endnote {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 810px;
  margin: 2rem 0 0 54px;
}

.endnote-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: var(--lime);
  color: var(--text);
  font-size: 1rem;
}

.journey-endnote p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.8;
}

.journey-endnote strong { color: var(--text); }

.ai-workflow {
  padding: clamp(5rem, 9vw, 9rem) var(--section-gutter);
  background: var(--text);
  color: var(--bg);
}

.ai-workflow-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.ai-workflow .section-label { color: var(--lime); }
.ai-workflow .story-heading span { color: #BAC5B4; }
.ai-workflow-heading > p { color: rgba(245, 240, 235, 0.7); }

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
}

.workflow-steps {
  border-top: 1px solid rgba(245, 240, 235, 0.22);
}

.workflow-step {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(245, 240, 235, 0.22);
}

.workflow-number {
  padding-top: 0.25rem;
  color: var(--lime);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.workflow-step h4 {
  margin-bottom: 0.45rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.workflow-step p {
  color: rgba(245, 240, 235, 0.64);
  font-size: 0.88rem;
  line-height: 1.8;
}

.workflow-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(245, 240, 235, 0.25);
  background: #243724;
  box-shadow: 9px 9px 0 rgba(197, 240, 42, 0.12);
}

.workflow-panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245, 240, 235, 0.2);
  color: rgba(245, 240, 235, 0.55);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.workflow-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--lime);
}

.workflow-panel-status i {
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow: none;
}

.workflow-panel-title {
  padding: 1.15rem 0 0.9rem;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.workflow-loop {
  display: grid;
  gap: 0;
}

.workflow-loop-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(245, 240, 235, 0.18);
  background: rgba(245, 240, 235, 0.03);
}

.workflow-loop-step > span {
  color: var(--lime);
  font-size: 0.6rem;
  font-weight: 700;
}

.workflow-loop-step strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.workflow-loop-step small {
  grid-column: 2;
  margin-top: -0.2rem;
  color: rgba(245, 240, 235, 0.55);
  font-size: 0.73rem;
}

.workflow-loop-step-ai {
  color: var(--text);
  border-color: var(--lime);
  background: var(--lime);
}

.workflow-loop-step-ai > span,
.workflow-loop-step-ai small { color: rgba(26, 43, 26, 0.7); }

.workflow-loop-arrow {
  padding: 0.25rem 0;
  color: var(--lime);
  font-size: 0.75rem;
  text-align: center;
}

.workflow-panel-footnote {
  margin-top: 1rem;
  color: rgba(245, 240, 235, 0.6);
  font-size: 0.72rem;
  line-height: 1.65;
}

.work {
  padding: clamp(5rem, 9vw, 9rem) var(--section-gutter) 4rem;
  max-width: 1600px;
}

.work-heading {
  margin-bottom: 2.5rem;
}

.work-heading > p { padding-bottom: 0.35rem; }

.project {
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top-color: var(--border);
}

.project:last-child { border-bottom-color: var(--border); }

.project-number {
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.075em;
}

.project-desc {
  max-width: 510px;
  font-size: 0.96rem;
  line-height: 1.85;
}

.project-tech {
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.project-tech li {
  border-color: #D1C8BD;
  padding: 0.32rem 0.72rem;
  font-size: 0.73rem;
}

.project-link {
  margin-top: 0.4rem;
  padding-bottom: 0.25rem;
  font-size: 0.86rem;
  border-bottom-width: 1px;
  border-color: var(--coral);
}

.project-link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.project-visual {
  aspect-ratio: 1.16;
}

.browser {
  border-color: #D1C8BD;
  border-radius: 9px;
  box-shadow: 0 18px 55px rgba(26, 43, 26, 0.1), 0 2px 6px rgba(26, 43, 26, 0.04);
}

.browser-chrome {
  background: #EEEAE5;
}

.browser-page {
  min-height: 200px;
}

.approach {
  padding: clamp(5rem, 8vw, 8rem) var(--section-gutter);
  background: #EAE4DB;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.approach-inner { max-width: 1400px; }

.approach .section-label { margin-bottom: 3.5rem; }

.approach-grid {
  gap: clamp(1.5rem, 4vw, 4rem);
}

.approach-item {
  padding-top: 1.2rem;
  border-top: 1px solid #CBC1B5;
}

.approach-num {
  color: var(--coral);
  margin-bottom: 1.1rem;
}

.approach-item h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.approach-item p {
  font-size: 0.9rem;
  line-height: 1.85;
}

.tools-strip {
  padding: 3.2rem var(--section-gutter);
  gap: 1rem 1.2rem;
  border-color: var(--border);
}

.tool-name {
  font-size: clamp(1.05rem, 2.3vw, 1.9rem);
  letter-spacing: -0.06em;
}

.tool-sep { font-size: 1rem; }

.about {
  padding: clamp(5rem, 9vw, 9rem) var(--section-gutter);
}

.about-inner { max-width: 1400px; }
.about .section-label { margin-bottom: 2.5rem; }

.about-grid {
  gap: clamp(2rem, 7vw, 7rem);
}

.about-lede {
  margin-bottom: 1.4rem;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.about-text p:not(.about-lede) {
  line-height: 1.9;
}

.detail-list {
  gap: 0.8rem 1.5rem;
  margin-bottom: 2rem;
}

.detail-list dt { white-space: nowrap; }

.contact {
  position: relative;
  padding: clamp(6rem, 12vw, 11rem) var(--section-gutter);
  overflow: hidden;
  text-align: left;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0;
}

.contact-kicker { justify-content: flex-start; }

.contact-heading {
  margin-bottom: 1.75rem;
  font-size: clamp(3.5rem, 9.5vw, 8rem);
  letter-spacing: -0.085em;
  text-wrap: balance;
}

.contact-period { color: var(--coral); }

.contact-text {
  max-width: 580px;
  margin-bottom: 2.2rem;
  font-size: 1rem;
  line-height: 1.85;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  border-bottom-color: var(--lime);
  overflow-wrap: anywhere;
}

.contact-email:hover { border-color: var(--coral); }

.contact-social {
  justify-content: flex-start;
  margin-top: 2rem;
}

.site-footer {
  padding: 1.7rem var(--section-gutter);
  border-top-color: var(--border);
}

.footer-name { color: var(--text); font-weight: 600; }
.footer-note { margin-left: auto; color: var(--text-2); font-size: 0.74rem; }
.footer-links { margin-left: 1rem; gap: 1rem; }

.project-link + .project-link { margin-left: 0; }

.js-motion .reveal-up,
.js-motion .journey-step,
.js-motion .workflow-step,
.js-motion .approach-item,
.js-motion .project,
.js-motion .workflow-panel {
  will-change: transform, opacity;
}

@media (max-width: 1050px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.76rem; }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 2rem;
  }
  .scene-note { left: -2%; }
  .scene-shipped { right: -2%; }
  .scene-browser-body { min-height: 250px; }
  .journey-header,
  .ai-workflow-heading,
  .work-heading { gap: 3rem; }
}

@media (max-width: 900px) {
  #navbar { padding-top: 1rem; padding-bottom: 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
  .hero-content { max-width: 750px; }
  .hero-headline { font-size: clamp(3.4rem, 10vw, 6.2rem); }
  .hero-art {
    width: min(100%, 590px);
    justify-self: center;
    aspect-ratio: 1.08;
    margin: 0 auto 2rem;
  }
  .scene-browser-body { min-height: 290px; }
  .hero-scroll-cue { bottom: 1.6rem; }
  .journey-header,
  .ai-workflow-heading,
  .work-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.4rem;
    margin-bottom: 3rem;
  }
  .journey-step { grid-template-columns: 48px minmax(0, 1fr); }
  .journey-side-note { grid-column: 2; justify-self: start; margin-top: -0.25rem; text-align: left; }
  .workflow-layout { grid-template-columns: 1fr; }
  .workflow-panel { max-width: 640px; }
  .about-grid { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr 1fr; }
  .project--donar .project-body { order: 0; }
  .project-visual { aspect-ratio: 0.95; }
}

@media (max-width: 640px) {
  #navbar { padding-inline: 1.25rem; }
  .hero {
    padding: 7.5rem 1.25rem 5.3rem;
  }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.09em; }
  .hero-headline { font-size: clamp(3rem, 13vw, 4.8rem); letter-spacing: -0.08em; }
  .hero-sub { font-size: 1rem; line-height: 1.75; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-art { width: 100%; aspect-ratio: 0.94; margin-top: 0.5rem; }
  .scene-index { top: 2%; font-size: 0.45rem; }
  .scene-browser { width: 86%; left: 7%; top: 24%; }
  .scene-browser-bar { gap: 0.4rem; padding: 0.55rem; }
  .scene-browser-body { min-height: 235px; padding: 0.8rem; }
  .scene-site-copy { padding-top: 1.25rem; }
  .scene-note { top: 12%; left: 0; width: 39%; padding: 0.7rem; }
  .scene-shipped { right: 0; bottom: 13%; width: 40%; padding: 0.7rem; }
  .scene-card-label { font-size: 0.45rem; }
  .scene-card strong { font-size: 1rem; }
  .scene-caption { right: 0; bottom: 1%; font-size: 0.56rem; }
  .hero-scroll-cue { left: 1.25rem; bottom: 1rem; font-size: 0.62rem; }
  .story-section,
  .ai-workflow,
  .approach,
  .about,
  .contact { padding: 5rem 1.25rem; }
  .story-heading { font-size: clamp(2.5rem, 11.5vw, 4rem); }
  .journey-header,
  .ai-workflow-heading,
  .work-heading { margin-bottom: 2.5rem; }
  .journey-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.6rem 0;
  }
  .journey-step-marker span { width: 32px; height: 32px; font-size: 0.68rem; }
  .journey-step-body > p:last-child { font-size: 0.9rem; }
  .journey-side-note { font-size: 0.5rem; }
  .journey-endnote { margin-left: 0; }
  .workflow-step { grid-template-columns: 58px minmax(0, 1fr); gap: 0.7rem; }
  .workflow-panel { padding: 1rem; box-shadow: 5px 5px 0 rgba(197, 240, 42, 0.12); }
  .work { padding: 5rem 1.25rem 3rem; }
  .project {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 3rem 0;
  }
  .project-visual { aspect-ratio: 1.15; }
  .project--donar .project-body { order: -1; }
  .project--sunny .project-body { order: 0; }
  .project--scopesnap .project-body { order: 0; }
  .approach-grid { grid-template-columns: 1fr; gap: 2rem; }
  .approach .section-label { margin-bottom: 2.4rem; }
  .tools-strip { padding: 2.5rem 1.25rem; gap: 0.7rem 0.8rem; }
  .tool-name { font-size: clamp(1rem, 5vw, 1.55rem); }
  .tool-sep { display: none; }
  .about-grid { gap: 2.5rem; }
  .detail-list { grid-template-columns: 1fr; gap: 0.25rem; }
  .detail-list dd { margin-bottom: 0.7rem; }
  .contact-heading { font-size: clamp(3.25rem, 14vw, 5rem); letter-spacing: -0.085em; }
  .contact-email { font-size: 1rem; }
  .footer-note { width: 100%; margin-left: 0; }
  .footer-links { margin-left: 0; }
  .site-footer { padding: 1.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .scroll-line::after { animation: none; }
  .scene-orbit,
  .scene-browser,
  .scene-card { transform: none !important; }
  .js-motion .reveal-up,
  .js-motion .journey-step,
  .js-motion .workflow-step,
  .js-motion .approach-item,
  .js-motion .project,
  .js-motion .workflow-panel {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ─────────────────────────────────────────────
   RESPONSIVE / OVERLAP REPAIR
   Keep layout geometry independent of motion.
   ───────────────────────────────────────────── */

html {
  scroll-padding-top: 88px;
  scroll-behavior: auto;
}

body,
main,
section,
article,
header,
footer,
nav,
div,
p,
h1,
h2,
h3,
h4 {
  min-width: 0;
}

body {
  overflow-x: clip;
  overflow-wrap: break-word;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.hero {
  width: 100%;
  max-width: 1600px;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(1.75rem, 3vw, 3.25rem);
  padding-inline: clamp(1.5rem, 5vw, 5rem);
  isolation: isolate;
}

.hero-content {
  width: 100%;
  max-width: 710px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-headline {
  width: 100%;
  max-width: 100%;
  font-size: clamp(3rem, 4.7vw, 5.1rem);
  line-height: 0.99;
  letter-spacing: -0.078em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
  margin-bottom: clamp(1.25rem, 2vw, 1.8rem);
}

.hero-highlight {
  display: inline;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-highlight::after {
  bottom: 0.035em;
  height: 0.15em;
  right: -0.015em;
  left: 0.01em;
  transform: rotate(-0.6deg);
  transform-origin: center;
}

.hero-sub {
  width: 100%;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-actions {
  min-width: 0;
  row-gap: 0.9rem;
}

.hero-actions > * {
  min-width: 0;
}

.button,
.text-link,
.project-link,
.contact-email {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-art {
  width: 100%;
  max-width: 570px;
  min-width: 0;
  aspect-ratio: 1 / 1.02;
  justify-self: end;
  contain: layout;
}

.scene-index {
  left: 1%;
  right: 1%;
  gap: 0.75rem;
  font-size: clamp(0.44rem, 0.55vw, 0.58rem);
}

.scene-index > span {
  min-width: 0;
}

.scene-index > span:last-child {
  text-align: right;
}

.scene-browser {
  width: 82%;
  left: 9%;
  max-width: 100%;
}

.scene-browser-body {
  min-height: clamp(225px, 20vw, 300px);
  padding: clamp(0.75rem, 1.3vw, 1.1rem);
}

.scene-site-copy > strong {
  font-size: clamp(1.55rem, 2.7vw, 2.7rem);
  overflow-wrap: normal;
}

.scene-note {
  top: 15%;
  left: 0;
  width: clamp(120px, 35%, 190px);
  max-width: 40%;
  padding: clamp(0.7rem, 1.5vw, 1rem);
  z-index: 3;
}

.scene-shipped {
  right: 0;
  bottom: 15%;
  width: clamp(125px, 36%, 200px);
  max-width: 41%;
  padding: clamp(0.7rem, 1.5vw, 1rem);
  z-index: 3;
}

.scene-card strong {
  font-size: clamp(0.88rem, 1.5vw, 1.32rem);
  overflow-wrap: anywhere;
  word-break: normal;
}

.scene-card-label {
  font-size: clamp(0.43rem, 0.52vw, 0.52rem);
}

.scene-caption {
  right: 1%;
  bottom: 3%;
  max-width: 58%;
  text-align: right;
  line-height: 1.4;
}

.story-heading {
  max-width: 100%;
  overflow-wrap: normal;
  text-wrap: balance;
}

.journey-header,
.ai-workflow-heading,
.work-heading {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr);
}

.journey-step {
  grid-template-columns: 54px minmax(0, 1fr) minmax(0, 210px);
}

.journey-step-body,
.workflow-step > div,
.project-body,
.project-visual,
.approach-item,
.about-text,
.about-details,
.contact-inner {
  min-width: 0;
}

.journey-step-body p,
.workflow-step p,
.approach-item p,
.about-text p,
.project-desc,
.contact-text {
  overflow-wrap: anywhere;
}

.workflow-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.9fr);
}

.workflow-panel {
  min-width: 0;
}

.workflow-loop-step {
  grid-template-columns: 34px minmax(0, 1fr);
}

.workflow-loop-step strong,
.workflow-loop-step small {
  overflow-wrap: anywhere;
}

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

.project:nth-of-type(even) > .project-body {
  min-width: 0;
}

.project-visual {
  min-width: 0;
  width: 100%;
}

.browser,
.browser-page,
.browser-chrome {
  min-width: 0;
  max-width: 100%;
}

.browser-page--scopesnap {
  overflow: hidden;
}

.ss-workspace {
  grid-template-columns: minmax(68px, 0.32fr) minmax(0, 1fr);
}

.ss-main-heading,
.ss-card-heading,
.ss-issue-row {
  min-width: 0;
}

.ss-main-heading strong,
.ss-card-heading strong,
.ss-issue-row small {
  overflow-wrap: anywhere;
}

.about-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.detail-list {
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
}

.detail-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-heading {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

.contact-email {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
}

.site-footer > *,
.footer-links {
  min-width: 0;
}

.footer-note {
  overflow-wrap: anywhere;
}

@media (min-width: 1600px) {
  .hero {
    padding-inline: 5rem;
  }
}

@media (max-width: 1180px) {
  .nav-links {
    gap: clamp(0.7rem, 1.5vw, 1.25rem);
  }

  .nav-links a {
    font-size: 0.76rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    padding-inline: clamp(1.75rem, 4vw, 3rem);
  }

  .hero-headline {
    font-size: clamp(3rem, 5.3vw, 4.5rem);
  }

  .scene-browser-body {
    min-height: 240px;
  }

  .scene-card strong {
    font-size: clamp(0.82rem, 1.35vw, 1.05rem);
  }

  .work,
  .approach-inner,
  .about-inner {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  #navbar {
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding: 8.25rem clamp(1.25rem, 6vw, 4rem) 5.75rem;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-headline {
    font-size: clamp(3.25rem, 8.4vw, 5.5rem);
    max-width: 12.5ch;
  }

  .hero-sub {
    max-width: 42rem;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
  }

  .hero-art {
    width: min(100%, 590px);
    max-width: 590px;
    justify-self: center;
    aspect-ratio: 1.08;
    margin: 0 auto 0.5rem;
  }

  .scene-browser-body {
    min-height: clamp(240px, 34vw, 320px);
  }

  .scene-site-copy > strong {
    font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  }

  .scene-card strong {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
  }

  .hero-scroll-cue {
    left: clamp(1.25rem, 6vw, 4rem);
    bottom: 1rem;
  }

  .journey-header,
  .ai-workflow-heading,
  .work-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .journey-header .story-heading,
  .ai-workflow-heading .story-heading,
  .work-heading .story-heading {
    max-width: 15ch;
  }

  .workflow-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-panel {
    width: 100%;
    max-width: 720px;
  }

  .project {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .project--donar .project-body,
  .project--sunny .project-body,
  .project--scopesnap .project-body {
    order: 0;
  }

  .project-visual {
    width: 100%;
    max-width: 760px;
    aspect-ratio: 1.25;
    justify-self: start;
  }

  .project-visual .browser {
    width: 100%;
    height: 100%;
  }

  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }

  .about-text {
    max-width: 52rem;
  }

  .detail-list {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gutter: 1.25rem;
  }

  html {
    scroll-padding-top: 76px;
  }

  #navbar {
    padding: 0.85rem 1.25rem;
  }

  .nav-overlay {
    gap: clamp(1rem, 4vh, 2rem);
    padding: 5.5rem 1.25rem 2rem;
  }

  .nav-overlay a {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    text-align: center;
  }

  .hero {
    padding: 7.25rem 1.25rem 5rem;
    gap: 1.25rem;
  }

  .hero-kicker {
    max-width: 100%;
    font-size: 0.59rem;
    letter-spacing: 0.075em;
    line-height: 1.5;
  }

  .eyebrow-line {
    width: 20px;
  }

  .hero-headline {
    max-width: 100%;
    font-size: clamp(2.65rem, 12.1vw, 4.3rem);
    line-height: 0.99;
    letter-spacing: -0.078em;
    margin-bottom: 1.25rem;
  }

  .hero-highlight {
    white-space: normal;
  }

  .hero-highlight::after {
    height: 0.13em;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 0.97rem;
    line-height: 1.75;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.5rem;
  }

  .hero-footnote {
    margin-top: 1.6rem;
    font-size: 0.7rem;
  }

  .hero-art {
    width: 100%;
    aspect-ratio: 0.92;
    margin-top: 0.25rem;
    margin-bottom: 0.6rem;
  }

  .scene-index {
    top: 1%;
    font-size: 0.42rem;
    letter-spacing: 0.06em;
  }

  .scene-browser {
    top: 23%;
    left: 6%;
    width: 88%;
    transform: rotate(-1deg);
  }

  .scene-browser-body {
    min-height: 225px;
    padding: 0.7rem;
  }

  .scene-site-top {
    padding-bottom: 0.65rem;
    font-size: 0.46rem;
  }

  .scene-site-copy {
    padding: 1rem 0 0.75rem;
  }

  .scene-site-copy > strong {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .scene-site-line {
    height: 3px;
  }

  .scene-site-shapes span {
    height: 31px;
  }

  .scene-site-cta {
    font-size: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.45rem 0.55rem;
  }

  .scene-note {
    top: 10%;
    left: 0;
    width: 38%;
    max-width: 38%;
    padding: 0.65rem;
    transform: rotate(-3deg);
  }

  .scene-shipped {
    right: 0;
    bottom: 12%;
    width: 39%;
    max-width: 39%;
    padding: 0.65rem;
    transform: rotate(2deg);
  }

  .scene-card-label {
    font-size: 0.4rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.08em;
  }

  .scene-card strong {
    font-size: clamp(0.82rem, 4vw, 1rem);
    line-height: 1.08;
  }

  .scene-scribble {
    margin-top: 0.4rem;
    font-size: 1.1rem;
  }

  .scene-shipped-mark {
    width: 20px;
    height: 20px;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
  }

  .scene-caption {
    right: 0;
    bottom: 0;
    max-width: 62%;
    font-size: 0.5rem;
  }

  .hero-scroll-cue {
    position: static;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.1rem;
    font-size: 0.57rem;
    letter-spacing: 0.08em;
  }

  .scroll-line {
    width: 38px;
  }

  .marquee {
    padding: 1rem 0;
  }

  .marquee-track {
    gap: 1rem;
  }

  .marquee-track span {
    font-size: 0.65rem;
  }

  .story-section,
  .ai-workflow,
  .about {
    padding: 4.25rem 1.25rem;
  }

  .section-label {
    margin-bottom: 1.25rem;
    font-size: 0.63rem;
  }

  .story-heading {
    font-size: clamp(2.25rem, 10.5vw, 3.5rem);
    line-height: 1.03;
    letter-spacing: -0.075em;
  }

  .journey-header,
  .ai-workflow-heading,
  .work-heading {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .journey-intro,
  .work-heading > p,
  .ai-workflow-heading > p {
    font-size: 0.93rem;
    line-height: 1.8;
  }

  .journey-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1.45rem 0;
  }

  .journey-step-marker span {
    width: 30px;
    height: 30px;
    font-size: 0.62rem;
  }

  .journey-step-marker i {
    height: 18px;
  }

  .journey-step h4 {
    font-size: clamp(1.15rem, 5.6vw, 1.5rem);
    line-height: 1.2;
  }

  .journey-step-body > p:last-child {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .journey-side-note {
    grid-column: 2;
    justify-self: start;
    margin-top: 0;
    font-size: 0.48rem;
    text-align: left;
  }

  .journey-endnote {
    margin: 1.4rem 0 0;
    gap: 0.75rem;
  }

  .journey-endnote p {
    font-size: 0.88rem;
  }

  .workflow-step {
    grid-template-columns: 53px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 1.2rem 0;
  }

  .workflow-number {
    font-size: 0.57rem;
  }

  .workflow-step h4 {
    font-size: 1.04rem;
  }

  .workflow-step p {
    font-size: 0.85rem;
    line-height: 1.75;
  }

  .workflow-panel {
    padding: 1rem;
    box-shadow: 5px 5px 0 rgba(197, 240, 42, 0.12);
  }

  .workflow-panel-top {
    font-size: 0.5rem;
    gap: 0.6rem;
  }

  .workflow-panel-title {
    font-size: 1.25rem;
  }

  .workflow-loop-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.75rem 0.65rem;
  }

  .workflow-loop-step strong {
    font-size: 0.78rem;
  }

  .workflow-loop-step small {
    font-size: 0.68rem;
  }

  .work {
    padding: 4.25rem 1.25rem 2rem;
  }

  .project {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    padding: 2.4rem 0;
  }

  .project-number {
    font-size: 0.6rem;
  }

  .project-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
    margin: 0.35rem 0 0.85rem;
    line-height: 1.04;
  }

  .project-desc {
    font-size: 0.91rem;
    line-height: 1.8;
  }

  .project-tech {
    gap: 0.4rem;
    margin: 1.1rem 0 1.3rem;
  }

  .project-tech li {
    font-size: 0.68rem;
    padding: 0.28rem 0.6rem;
  }

  .project-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.83rem;
  }

  .project-visual {
    width: 100%;
    aspect-ratio: 1.15;
  }

  .browser-chrome {
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
  }

  .chrome-url {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .browser-page--scopesnap .ss-workspace {
    grid-template-columns: minmax(54px, 0.3fr) minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
  }

  .browser-page--scopesnap .ss-sidebar {
    gap: 4px;
    padding: 5px 2px;
  }

  .browser-page--scopesnap .ss-side-heading {
    font-size: 0.36rem;
    letter-spacing: 0.04em;
  }

  .browser-page--scopesnap .ss-side-item {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.43rem;
  }

  .browser-page--scopesnap .ss-stat-row {
    gap: 3px;
  }

  .browser-page--scopesnap .ss-stat {
    min-height: 40px;
    padding: 4px;
  }

  .browser-page--scopesnap .ss-stat > span {
    font-size: 0.34rem;
  }

  .browser-page--scopesnap .ss-stat strong {
    font-size: 0.43rem;
    overflow-wrap: anywhere;
  }

  .browser-page--scopesnap .ss-chart {
    gap: 6px;
  }

  .browser-page--scopesnap .ss-chart-legend {
    flex-wrap: wrap;
    font-size: 0.34rem;
  }

  .approach {
    padding: 4.25rem 1.25rem;
  }

  .approach .section-label {
    margin-bottom: 2rem;
  }

  .approach-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .approach-item {
    padding-top: 1rem;
  }

  .approach-num {
    margin-bottom: 0.75rem;
  }

  .approach-item h3 {
    font-size: 1.16rem;
    margin-bottom: 0.5rem;
  }

  .approach-item p {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .tools-strip {
    justify-content: flex-start;
    padding: 2.2rem 1.25rem;
    gap: 0.65rem 0.85rem;
  }

  .tool-name {
    font-size: clamp(0.95rem, 4.7vw, 1.3rem);
    letter-spacing: -0.055em;
  }

  .tool-sep {
    display: none;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .about-lede {
    font-size: 1.2rem;
    line-height: 1.55;
  }

  .about-text p:not(.about-lede) {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .detail-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    margin-bottom: 1.5rem;
  }

  .detail-list dt {
    font-size: 0.62rem;
  }

  .detail-list dd {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
  }

  .contact {
    padding: 4.75rem 1.25rem;
    text-align: left;
  }

  .contact-heading {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.08em;
    margin-bottom: 1.2rem;
  }

  .contact-text {
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
  }

  .contact-email {
    font-size: clamp(0.94rem, 4.6vw, 1.15rem);
  }

  .contact-social {
    gap: 1.2rem;
    margin-top: 1.7rem;
  }

  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    padding: 1.5rem 1.25rem;
  }

  .footer-links {
    margin-left: 0;
    gap: 1.1rem;
    flex-wrap: wrap;
  }

  .footer-note {
    width: auto;
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .hero-headline {
    font-size: clamp(2.45rem, 11.8vw, 2.85rem);
  }

  .scene-browser {
    top: 25%;
  }

  .scene-browser-body {
    min-height: 200px;
  }

  .scene-card strong {
    font-size: 0.78rem;
  }

  .scene-card-label {
    font-size: 0.36rem;
  }

  .scene-caption {
    max-width: 70%;
    font-size: 0.45rem;
  }

  .workflow-panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-visual {
    aspect-ratio: 1.05;
  }
}

@media (max-height: 640px) and (min-width: 961px) {
  .hero {
    min-height: 760px;
    padding-top: 7.5rem;
    padding-bottom: 5rem;
  }

  .hero-scroll-cue {
    bottom: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Final headline wrapping guard: spans may wrap inside, never over the artwork. */
.hero-line {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
}

.hero-highlight {
  display: inline;
  white-space: normal;
  background-image: linear-gradient(transparent 75%, var(--lime) 75%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-highlight::after {
  content: none;
}

@media (min-width: 961px) {
  .hero-headline {
    font-size: clamp(3rem, 4.4vw, 5rem);
  }
}

@media (min-width: 1181px) {
  .hero-headline {
    font-size: clamp(3.2rem, 4.5vw, 5rem);
  }
}

@media (max-width: 960px) {
  .hero-headline {
    font-size: clamp(3rem, 7.8vw, 5rem);
    max-width: 13ch;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: clamp(2.6rem, 11.7vw, 4.1rem);
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .hero-headline {
    font-size: clamp(2.35rem, 11.1vw, 2.7rem);
    letter-spacing: -0.075em;
  }
}
