/* ─── RESET & VARIABLES ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:  #F5F0E8;
  --ink:    #1A1714;
  --deep:   #CFC4B6;
  --mid:    #6B6560;
  --accent: #C4622D;
  --line:   rgba(26,23,20,0.12);
  --serif:  Georgia, 'Times New Roman', serif;
  --sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --nav-h:  60px;
  --marquee-h: 40px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: .4;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  z-index: 100;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(245,240,232,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem; font-style: italic;
  text-decoration: none; color: var(--ink);
  letter-spacing: -.01em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--mid);
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1px; background: var(--accent);
  transition: right .25s ease;
}
@media (hover: hover) {
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { right: 0; }
}
.nav-links a.active { color: var(--accent); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 2.5rem; font-style: italic;
  text-decoration: none; color: var(--ink);
}

/* ─── PAGE WRAPPER ──────────────────────────────────────────── */

/* ─── HERO WRAP ─────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  width: 100vw;
  left: 0;
  height: calc(100svh - var(--nav-h) - var(--marquee-h));
  margin-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* animated mesh gradient */
.hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 65% at 12% 18%, rgba(196,98,45,.14) 0%, transparent 68%),
    radial-gradient(ellipse 55% 60% at 88% 75%, rgba(59,91,219,.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 55% 52%, rgba(196,98,45,.06) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 75% 20%, rgba(196,98,45,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 25% 80%, rgba(196,98,45,.06) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}


.hero {
  position: relative; z-index: 1;
  width: 100%; max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
}

.hero-scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  opacity: 0; animation: fadeIn 1s 1.3s forwards; z-index: 2;
}
.hero-scroll-cue span {
  font-size: .625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mid);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--mid), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .35; transform: scaleY(1); transform-origin: top; }
  50%     { opacity: .9;  transform: scaleY(1.2); transform-origin: top; }
}

/* ─── HERO TEXT ─────────────────────────────────────────────── */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .6s .15s forwards;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--accent);
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 6.5rem);
  line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 1.75rem;
  white-space: nowrap;
  opacity: 0; animation: fadeUp .7s .25s forwards;
}
.hero-name em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: clamp(.9375rem, 1.2vw, 1.0625rem);
  color: var(--mid); line-height: 1.7;
  max-width: 560px; margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0; animation: fadeUp .7s .4s forwards;
}
.hero-location {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8125rem; color: var(--mid);
  opacity: 0; animation: fadeUp .7s .5s forwards;
}

/* ─── MARQUEE ───────────────────────────────────────────────── */
.marquee-bar {
  height: var(--marquee-h);
  overflow: hidden; background: var(--ink);
  display: flex; align-items: center;
  border-top: 1px solid rgba(255,255,255,.04);
}
.marquee-track {
  display: flex; gap: 3.5rem;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee-track span {
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5); white-space: nowrap;
}
.marquee-track span.dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ────────────────────────────────────────── */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mid); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--accent);
}

/* ─── WORK GRID ─────────────────────────────────────────────── */
.work-section { background: white; }
.work-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.work-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.02em; line-height: 1.05; margin-top: .5rem;
}
.work-count { font-size: .75rem; color: var(--mid); letter-spacing: .06em; padding-bottom: .25rem; }

.work-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

.work-card {
  background: white;
  display: grid; grid-template-columns: 2fr 3fr;
  cursor: pointer; text-decoration: none; color: inherit;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background .2s, box-shadow .3s;
  min-height: 340px;
}
@media (hover: hover) {
  .work-card:hover {
    background: #FAFAFA;
    box-shadow: 0 12px 48px rgba(26,23,20,.08);
    z-index: 2; position: relative;
  }
  .work-card:hover .card-arrow { transform: translate(3px,-3px); }
  .work-card:hover .card-img-inner { transform: scale(1.04); }
}

.card-content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-company {
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.25; letter-spacing: -.01em; margin-bottom: 1rem;
}
.card-desc {
  font-size: .875rem; color: var(--mid);
  line-height: 1.65; font-weight: 300; flex: 1; margin-bottom: 1.5rem;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.card-cta {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.card-arrow {
  width: 32px; height: 32px; border: 1px solid var(--line);
  border-radius: 50%; display: grid; place-items: center;
  transition: transform .2s; flex-shrink: 0;
}

/* CSS placeholder "images" — colored blocks with inner content */
.card-img {
  overflow: hidden; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.card-img-inner {
  width: 100%; height: 100%;
  transition: transform .45s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.card-img-inner:has(img) {
  padding: 0;
}
.card-img-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Each card gets a distinct palette */
.work-card:nth-child(1) .card-img { background: #DDE4F0; }
.work-card:nth-child(2) .card-img { background: #D8EBD8; }
.work-card:nth-child(3) .card-img { background: #F0E4DA; }
.work-card:nth-child(4) .card-img { background: #E4DAF0; }

/* Decorative screen mockup shapes inside each card */
.card-mockup {
  width: 100%; max-width: 200px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: .7;
}
.mock-bar {
  height: 10px; border-radius: 3px;
  background: rgba(26,23,20,.15);
}
.mock-bar.wide  { width: 90%; }
.mock-bar.med   { width: 65%; }
.mock-bar.short { width: 40%; }
.mock-box {
  height: 70px; border-radius: 4px;
  background: rgba(26,23,20,.1);
  margin: 4px 0;
}
.mock-box.tall { height: 100px; }
.mock-row { display: flex; gap: 6px; }
.mock-pill {
  height: 24px; border-radius: 12px; flex: 1;
  background: rgba(26,23,20,.12);
}

/* ─── HOBBIES ───────────────────────────────────────────────── */
.hobbies-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.hobby-card { display: flex; flex-direction: column; gap: .75rem; }
.hobby-img {
  aspect-ratio: 1/1; overflow: hidden;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s ease;
  position: relative;
}
.hobby-card:hover .hobby-img { transform: scale(1.02); }

/* placeholder colors per hobby */
.hobby-img.c1 { background: #F0D8C8; }
.hobby-img.c2 { background: linear-gradient(135deg, #F5EDD8, #ECD8B8); }
.hobby-img.c3 { background: linear-gradient(135deg, #EBD8F5, #D4B8EC); }
.hobby-img.c4 { background: linear-gradient(135deg, #D8F5E4, #B8ECD0); }
.hobby-img.c5 { background: linear-gradient(135deg, #F5D8D8, #ECB8B8); }
.hobby-img.c6 { background: linear-gradient(135deg, #F5F0D8, #ECE4B8); }

.hobby-img img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 0; left: 0;
}
.hobby-img video {
  width: 100%; height: 100%; object-fit: contain;
  position: absolute; top: 0; left: 0;
}
.hobby-icon {
  font-size: 2rem; opacity: .45;
  position: absolute; z-index: 1;
}
.hobby-name {
  font-family: var(--serif); font-size: 1.0625rem; font-style: italic;
  letter-spacing: -.01em;
}
.hobby-desc { font-size: .8125rem; color: var(--mid); font-weight: 300; line-height: 1.55; }

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(4rem, 7vw, 6rem);
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.about-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05; letter-spacing: -.02em; margin-bottom: 2rem;
}
.about-headline em { font-style: italic; color: var(--accent); }
.about-body {
  display: flex; flex-direction: column; gap: 1rem;
  font-size: clamp(.9375rem, 1.1vw, 1rem);
  color: var(--mid); font-weight: 300; line-height: 1.75;
}
.about-img-col {
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
/* CSS placeholder portrait */
.about-portrait {
  width: 100%; aspect-ratio: 3/4; border-radius: 4px;
  background: linear-gradient(160deg, #D8E8F5 0%, #C4D8EC 40%, #B8CCDD 100%);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; position: relative;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 0; left: 0;
}
.about-portrait::before {
  /* abstract person silhouette suggestion */
  content: '';
  position: absolute; bottom: 0;
  width: 55%; height: 70%;
  background: rgba(26,23,20,.08);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.about-portrait::after {
  content: '';
  position: absolute; bottom: 65%;
  width: 30%; height: 30%;
  background: rgba(26,23,20,.1);
  border-radius: 50%;
}

.divider { height: 1px; background: var(--line); max-width: 1200px; margin: 0 auto; }

/* ─── CASE STUDY ────────────────────────────────────────────── */

/* ── Back link ── */
.cs-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  transition: color .2s, gap .2s;
}
.cs-back:hover { color: var(--accent); gap: .75rem; }
.cs-back::before { content: '←'; }

/* ── Hero — full-bleed with mesh gradient like homepage ── */
.cs-hero-wrap {
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--cream);
}
.cs-hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(59,91,219,.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 10% 70%, rgba(196,98,45,.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 50%, rgba(196,98,45,.05) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}
/* SVG mockup background layer — sits between gradient and text */
.cs-hero-bg-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn .8s .3s forwards;
}
.cs-hero-bg-svg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-hero {
  position: relative; z-index: 2;
  padding: clamp(2rem,4vw,3.5rem) clamp(1.5rem,5vw,4rem) clamp(3rem,6vw,5rem);
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.cs-company {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .6rem;
}
.cs-company::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
.cs-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: 2rem;
}
.cs-meta {
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .8125rem; color: var(--mid); font-weight: 300;
  border-top: 1px solid var(--line); padding-top: 1.25rem;
}
.cs-meta-row { display: flex; gap: .75rem; align-items: baseline; }
.cs-meta-label {
  font-weight: 500; color: var(--ink); min-width: 80px;
  font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
}

/* Hero mockup panel */
.cs-hero-visual {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 320px; justify-content: center;
  box-shadow: 0 8px 40px rgba(26,23,20,.07), 0 2px 8px rgba(26,23,20,.04);
}
.cs-hero-visual:has(.cs-img-placeholder),
.cs-hero-visual:has(.cs-video-placeholder) {
  background: transparent;
  border: none;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  gap: 0;
  display: block;
}
.cs-hero-visual .cs-img-placeholder {
  max-height: 480px;
}
.cs-hero-visual .cs-img-placeholder img {
  width: auto;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto;
}
.cs-hero-screen {
  background: #F8F9FF; border-radius: 8px;
  padding: 1.125rem; display: flex; flex-direction: column; gap: 9px;
  border: 1px solid rgba(59,91,219,.1);
}
.cs-screen-bar { height: 7px; border-radius: 3px; background: #E2E7F5; }
.cs-screen-bar.w90 { width: 90%; }
.cs-screen-bar.w60 { width: 60%; }
.cs-screen-bar.w40 { width: 40%; }
.cs-screen-pill {
  height: 26px; border-radius: 13px; background: #3B5BDB; width: 110px;
}
.cs-screen-box { height: 48px; border-radius: 5px; background: #EEF1FF; }

/* ── Summary strip ── */
.cs-summary {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,5vw,4rem);
}
.cs-summary-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; align-items: start;
}
.cs-summary-text {
  font-size: .9375rem; color: var(--mid); font-weight: 300; line-height: 1.8;
  border-right: 1px solid var(--line); padding-right: 3rem;
}
.cs-stat { display: flex; flex-direction: column; gap: .35rem; }
.cs-stat-num {
  font-family: var(--serif); font-size: clamp(2.25rem,4vw,3.25rem);
  letter-spacing: -.04em; line-height: 1; color: var(--ink);
}
.cs-stat-num em { font-style: normal; color: var(--accent); }
.cs-stat-label { font-size: .775rem; color: var(--mid); font-weight: 300; line-height: 1.45; }

/* ── Numbered section heading ── */
.cs-section {
  padding: clamp(3.5rem,7vw,6rem) clamp(1.5rem,5vw,4rem);
  max-width: 1200px; margin: 0 auto;
}
.cs-section-num {
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
  display: flex; align-items: center; gap: .6rem;
}
.cs-section-num::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
.cs-h2 {
  font-family: var(--serif);
  font-size: clamp(1.625rem,3vw,2.5rem);
  letter-spacing: -.025em; line-height: 1.12; margin-bottom: 1.75rem;
}
.cs-body {
  font-size: .9375rem; color: var(--mid); font-weight: 300;
  line-height: 1.8; max-width: 680px;
}
.cs-body p + p { margin-top: 1rem; }

/* ── Two-col layout ── */
.cs-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,4vw,4.5rem); align-items: stretch;
  margin-top: 2.5rem;
}
.cs-col-label {
  font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: .85rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.cs-list {
  list-style: none; display: flex; flex-direction: column; gap: .75rem;
  font-size: .9rem; color: var(--mid); font-weight: 300; line-height: 1.65;
}
.cs-list li { padding-left: 1.25rem; position: relative; }
.cs-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-size: .7rem; top: .2em;
}

/* ── Flow diagram ── */
.cs-flow {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: .6rem 0;
  margin: 2rem 0;
  background: #F8F6F2; border-radius: 8px; padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
}
.cs-flow-box {
  background: white; border: 1px solid var(--line);
  border-radius: 20px; padding: .45rem 1rem;
  font-size: .75rem; font-weight: 500; color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(26,23,20,.06);
}
.cs-flow-box.highlight {
  background: var(--accent); color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(196,98,45,.25);
}
.cs-flow-arrow {
  font-size: .65rem; color: rgba(26,23,20,.3); padding: 0 .5rem; flex-shrink: 0;
}

/* ── Callout banner ── */
.cs-banner {
  padding: clamp(2rem,4vw,3rem) clamp(1.5rem,5vw,4rem);
  margin: 0;
}
.cs-banner-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  background: var(--deep);
  border-radius: 10px;
  padding: clamp(3rem,6vw,5rem) clamp(2rem,5vw,4rem);
  text-align: center;
  overflow: hidden;
  color: var(--ink);
}
.cs-banner-inner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(196,98,45,.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(59,91,219,.08) 0%, transparent 60%);
  pointer-events: none;
}
.cs-banner-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.625rem,3.5vw,2.75rem);
  line-height: 1.25; letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.cs-banner-sub {
  font-size: .8125rem; color: rgba(26,23,20,.5);
  font-weight: 300; letter-spacing: .04em;
  margin-bottom: 1.25rem;
}

/* ── Design change block ── */
.cs-change {
  padding: clamp(3rem,5vw,4.5rem) clamp(1.5rem,5vw,4rem);
  max-width: 1200px; margin: 0 auto;
}
.cs-change + .cs-change { padding-top: 0; }
.cs-change-label {
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
  display: flex; align-items: center; gap: .6rem;
}
.cs-change-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
.cs-change-h3 {
  font-family: var(--serif);
  font-size: clamp(1.375rem,2.5vw,2rem);
  letter-spacing: -.025em; line-height: 1.15; margin-bottom: 1rem;
}
.cs-change-desc {
  font-size: .9rem; color: var(--mid); font-weight: 300; line-height: 1.8;
  max-width: 620px; margin-bottom: 2rem;
}

/* ── Before / After panels ── */
.cs-before-after {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin: 1.5rem 0;
}
.cs-ba-panel {
  border-radius: 8px; border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,23,20,.05);
  transition: box-shadow .25s;
}
.cs-ba-panel:hover { box-shadow: 0 6px 24px rgba(26,23,20,.09); }
.cs-ba-label {
  font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .7rem 1.125rem; background: #F5F0E8; color: var(--mid);
  border-bottom: 1px solid var(--line);
}
.cs-ba-label.after {
  background: #EEF1FF; color: #3B5BDB;
}
.cs-ba-body {
  background: white; padding: 1.375rem;
  display: flex; flex-direction: column; gap: 9px; min-height: 130px;
}
.cs-ba-bar { height: 7px; border-radius: 3px; background: #E8EDF5; }
.cs-ba-bar.w80 { width: 80%; }
.cs-ba-bar.w55 { width: 55%; }
.cs-ba-bar.w35 { width: 35%; }
.cs-ba-box { height: 34px; border-radius: 5px; background: #F0F3FF; }
.cs-ba-box.active { background: rgba(59,91,219,.12); }
.cs-ba-pill { height: 24px; width: 96px; border-radius: 12px; background: #3B5BDB; }

/* ── Media placeholders ── */
.cs-media {
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,23,20,.04);
  transition: box-shadow .3s, transform .3s;
}
.cs-media:hover {
  box-shadow: 0 8px 32px rgba(26,23,20,.1);
  transform: translateY(-2px);
}
.cs-media.clickable { cursor: zoom-in; }

.cs-video-placeholder {
  background: #F0EDE8;
  border: 2px dashed rgba(26,23,20,.15);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  color: var(--mid);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.cs-video-placeholder.cs-media {
  border: 1px solid var(--line);
  background: #F0EDE8;
}
.cs-video-placeholder video {
  width: 100%; height: auto;
  display: block;
}
.cs-video-placeholder .placeholder-icon { font-size: 2rem; opacity: .4; }
.cs-video-placeholder .placeholder-label {
  font-size: .75rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; opacity: .5;
}

.cs-img-placeholder {
  background: #F0EDE8;
  border: 2px dashed rgba(26,23,20,.15);
  border-radius: 10px;
  aspect-ratio: 4/3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  color: var(--mid);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.cs-img-placeholder.cs-media {
  border: 1px solid var(--line);
  background: #F0EDE8;
}
.cs-img-placeholder img {
  width: 100%; height: auto;
  display: block;
  border-radius: inherit;
}
.cs-img-placeholder:has(img) {
  aspect-ratio: auto !important;
  background: transparent !important;
  border: 2px dashed transparent;
  min-height: 0 !important;
  display: block;
  padding: 0;
  gap: 0;
}
.cs-img-placeholder.cs-media:has(img) {
  border: 1px solid var(--line);
  background: transparent !important;
}
.cs-img-placeholder.cs-media.transparent:has(img) {
  border: none;
  box-shadow: none;
}
#page-case-driver .cs-img-placeholder:has(img),
#page-case-driver .cs-video-placeholder:has(video) { max-width: 320px; margin-left: auto; margin-right: auto; }
#page-case-driver .cs-img-gallery .cs-img-placeholder:has(img) { max-width: none; margin-left: 0; margin-right: 0; }
#page-case-driver .cs-img-placeholder.transparent:has(img) { max-width: none; margin-left: 0; margin-right: 0; }
#page-case-driver .cs-img-gallery.gallery-small .cs-img-placeholder:has(img) { max-width: 320px; margin-left: auto; margin-right: auto; }
.cs-img-placeholder .placeholder-icon { font-size: 1.75rem; opacity: .4; }
.cs-img-placeholder .placeholder-label {
  font-size: .7rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; opacity: .5;
}

.cs-img-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; margin-top: 1.5rem;
}
.cs-img-gallery .cs-img-placeholder { aspect-ratio: 4/3; }
.cs-img-gallery .cs-img-placeholder:has(img) { aspect-ratio: auto !important; }

/* ── Lightbox ── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(26,23,20,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  cursor: zoom-out;
  padding: clamp(1.5rem,4vw,3rem);
}
.lightbox-overlay.open { display: flex; }
.lightbox-content {
  max-width: 90vw; max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(26,23,20,.4);
  animation: lightboxIn .25s ease;
}
.lightbox-content img,
.lightbox-content video {
  display: block;
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: white; font-size: 1.25rem;
  display: grid; place-items: center;
  cursor: pointer; z-index: 301;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Impact strips ── */
.cs-impact {
  padding: clamp(1.5rem,3vw,2.5rem) clamp(1.5rem,5vw,4rem);
  margin: 0;
}
.cs-impact-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  background: var(--deep);
  border-radius: 10px;
  padding: clamp(2.5rem,5vw,4rem) clamp(2rem,4vw,3rem);
  overflow: hidden;
}
.cs-impact-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 100% at 0% 50%, rgba(196,98,45,.1) 0%, transparent 65%);
  pointer-events: none;
}
.cs-impact-label {
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(26,23,20,.65); margin-bottom: 2rem;
  display: flex; align-items: center; gap: .6rem;
}
.cs-impact-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
.cs-impact-stats { display: flex; gap: clamp(2.5rem,6vw,6rem); flex-wrap: wrap; }
.cs-impact-stat { display: flex; flex-direction: column; gap: .4rem; }
.cs-impact-num {
  font-family: var(--serif); color: var(--ink);
  font-size: clamp(2.25rem,5vw,4rem); letter-spacing: -.04em; line-height: 1;
}
.cs-impact-num em { font-style: normal; color: var(--accent); }
.cs-impact-desc {
  font-size: .775rem; color: rgba(26,23,20,.75);
  font-weight: 300; max-width: 180px; line-height: 1.5;
}

/* ── Insight cards ── */
.cs-insights {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-top: 1.75rem;
}
.cs-insight-card {
  background: white; border: 1px solid var(--line);
  border-radius: 8px; padding: 1.75rem;
  transition: box-shadow .25s, transform .25s;
}
.cs-insight-card:hover {
  box-shadow: 0 6px 28px rgba(26,23,20,.08);
  transform: translateY(-2px);
}
.cs-insight-tag {
  font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .85rem;
}
.cs-insight-text { font-size: .875rem; color: var(--mid); font-weight: 300; line-height: 1.7; }

/* ── Constraints grid ── */
.cs-constraints {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem; margin-top: 1.75rem;
}
.cs-constraint {
  background: white;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 6px 6px;
  padding: 1.25rem;
  font-size: .875rem; color: var(--mid); font-weight: 300; line-height: 1.65;
  transition: box-shadow .2s;
}
.cs-constraint:hover { box-shadow: 0 4px 16px rgba(26,23,20,.07); }
.cs-constraint strong {
  display: block; color: var(--ink); font-weight: 600;
  margin-bottom: .4rem; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ── Reflection ── */
.cs-reflection {
  background: var(--cream);
  padding: clamp(3.5rem,7vw,6rem) clamp(1.5rem,5vw,4rem);
  max-width: 1200px; margin: 0 auto;
}
.cs-reflection-inner {
  margin: 0 auto;
}


/* ─── PASSWORD MODAL ────────────────────────────────────────── */
.pw-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,23,20,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.pw-overlay.open { display: flex; }
.pw-modal {
  background: var(--cream);
  border-radius: 10px;
  padding: 2.5rem;
  width: min(420px, calc(100vw - 3rem));
  box-shadow: 0 24px 80px rgba(26,23,20,.25);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.pw-eyebrow {
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: .5rem;
}
.pw-eyebrow::before { content: ''; display: block; width: 16px; height: 1px; background: var(--accent); }
.pw-title {
  font-family: var(--serif); font-size: 1.5rem;
  letter-spacing: -.02em; line-height: 1.2;
}
.pw-desc { font-size: .875rem; color: var(--mid); font-weight: 300; line-height: 1.6; }
.pw-input-wrap { position: relative; }
.pw-input {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--sans); font-size: .9375rem;
  background: white; color: var(--ink);
  outline: none; transition: border-color .2s;
  letter-spacing: .04em;
}
.pw-input:focus { border-color: var(--accent); }
.pw-input.error { border-color: #C4622D; animation: shake .3s ease; }
.pw-error {
  font-size: .775rem; color: var(--accent);
  display: none; margin-top: -.5rem;
}
.pw-error.show { display: block; }
.pw-actions { display: flex; gap: .75rem; }
.pw-submit {
  flex: 1; padding: .75rem 1.25rem;
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 6px;
  font-family: var(--sans); font-size: .8125rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
.pw-submit:hover { background: var(--accent); }
.pw-cancel {
  padding: .75rem 1.25rem;
  background: none; color: var(--mid);
  border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--sans); font-size: .8125rem;
  cursor: pointer; transition: color .2s, border-color .2s;
}
.pw-cancel:hover { color: var(--ink); border-color: var(--ink); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--ink); color: white;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.footer-name {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -.01em; margin-bottom: 1rem;
}
.footer-linkedin {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.6); font-size: .8125rem;
  text-decoration: none; margin-bottom: 2rem; transition: color .2s;
}
@media (hover: hover) {
  .footer-linkedin:hover { color: white; }
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.45); letter-spacing: .05em; }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── CURSOR ────────────────────────────────────────────────── */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  transition: width .18s, height .18s, opacity .18s;
  mix-blend-mode: multiply;
}
.cursor.expanded { width: 30px; height: 30px; opacity: .28; }
@media (hover: none) { .cursor { display: none; } }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { align-items: center; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-location { justify-content: center; }
  .hero-desc { max-width: 100%; }
  .hero-name { white-space: normal; font-size: clamp(2.25rem, 8vw, 3.5rem); }

  .work-card { grid-template-columns: 1fr; min-height: auto; }
  .card-img { aspect-ratio: 16/9; height: auto; }

  .about-hero { grid-template-columns: 1fr; }
  .about-img-col { position: static; max-width: 300px; margin: 0 auto; }
  .about-text-col { text-align: center; }
  .hobbies-grid { grid-template-columns: repeat(2, 1fr); }

  .cs-hero { grid-template-columns: 1fr; gap: 2rem; }
  .cs-hero-visual { display: none; }
  .cs-hero-bg-svg { display: none; }
  .cs-summary-inner { grid-template-columns: 1fr 1fr; }
  .cs-summary-text { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 2rem; grid-column: 1 / -1; }
  .cs-two-col { grid-template-columns: 1fr; }
  .cs-before-after { grid-template-columns: 1fr; }
  .cs-insights { grid-template-columns: 1fr; }
  .cs-constraints { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --marquee-h: 36px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hobbies-grid { grid-template-columns: 1fr; }

  .cs-summary-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cs-impact-stats { flex-direction: column; gap: 2rem; }
  .cs-constraints { grid-template-columns: 1fr; }
  .cs-img-gallery { grid-template-columns: 1fr; }
}