/* =====================================================================
   Christiana Kellari - Creative & Video Designer
   Portfolio - shared stylesheet
   --------------------------------------------------------------------
   Warm off-white background, charcoal text, dusty-mauve accent.
   Type: Fraunces (display) + Inter (body), designer-led and modern.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --bg:            #f4efe9;   /* warm off-white / soft beige */
  --bg-alt:        #ece4da;   /* deeper beige for alt sections */
  --surface:       #faf7f2;   /* card / raised surface */
  --ink:           #1e1a17;   /* charcoal text */
  --ink-soft:      #443d36;   /* secondary text */
  --ink-faint:     #6d635a;   /* muted captions / small labels */
  --line:          #cfc2b2;   /* hairlines / borders */
  --line-soft:     #ddd2c5;   /* very light dividers */
  --accent:        #a9787e;   /* dusty mauve / muted rose */
  --accent-deep:   #82545a;   /* hover / deeper rose (links, labels) */
  --accent-soft:   #e7d4d2;   /* tint backgrounds */

  /* Type */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Spacing */
  --maxw: 1300px;
  --gutter: clamp(1.4rem, 5vw, 5.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: 4px; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 460;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 460;
  font-size: clamp(2.9rem, 7.6vw, 6.4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.display em, .h-section em { font-style: italic; font-weight: 420; color: var(--accent-deep); }

.h-section {
  font-size: clamp(2.05rem, 4.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 460;
}

.h-sub { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 480; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.eyebrow.no-rule::before { display: none; }
.center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.62; color: var(--ink-soft); font-weight: 400; }
.muted { color: var(--ink-faint); }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 11vw, 10rem); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled {
  background: rgba(244, 239, 233, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: 1rem; box-shadow: 0 1px 0 var(--line);
}
.brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 540; letter-spacing: -0.01em; }
.brand span { color: var(--accent-deep); }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.nav a {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.3s var(--ease);
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent-deep); transition: width 0.4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 1.9rem; border-radius: 100px; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow .arrow { transition: transform 0.4s var(--ease); }
.link-arrow:hover { color: var(--accent-deep); border-color: var(--accent); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- 7. Placeholder media ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(176,132,138,0.20), rgba(33,28,25,0.05)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0 14px, transparent 14px 28px),
    var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--ink-faint);
}
.media::after {
  content: attr(data-label); position: absolute; bottom: 1rem; left: 1.1rem;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint);
}
.media .play {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ink-soft);
  display: grid; place-items: center; background: rgba(250,247,242,0.55); color: var(--ink);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
}
.media .play svg { width: 18px; height: 18px; margin-left: 3px; }
/* real images/video/embeds dropped inside .media cover the block */
.media > img, .media > video, .media > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media:has(> img), .media:has(> video), .media:has(> iframe) { background: var(--bg-alt); }
.media:has(> img)::after, .media:has(> video)::after, .media:has(> iframe)::after { display: none; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-3x4  { aspect-ratio: 3 / 4; }
.ratio-4x5  { aspect-ratio: 4 / 5; }
.ratio-21x9 { aspect-ratio: 21 / 9; }

/* ---------- utility ---------- */
.nowrap { white-space: nowrap; }

/* ---------- 8. Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 6rem; overflow: hidden; }
.hero .wrap { width: 100%; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { margin-block: 1.5rem 1.9rem; }
.hero .lead { max-width: 52ch; margin-bottom: 2.4rem; }
.hero-visual { position: relative; }
.hero-visual .media { aspect-ratio: 16 / 9; box-shadow: 0 44px 90px -45px rgba(33,28,25,0.5); }

/* centred, cinematic hero variant */
.hero-center {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: clamp(7rem, 14vw, 9rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden;
}
.hero-center .wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-tagline {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-deep); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.7rem;
}
.hero-tagline i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; opacity: 0.8; }
.hero-center h1 { max-width: 16ch; margin: clamp(1.4rem, 3vw, 2rem) auto clamp(1.3rem, 2.5vw, 1.7rem); }
.hero-center .lead { max-width: 54ch; margin: 0 auto; }
.hero-center .btn-row { justify-content: center; margin-top: clamp(2rem, 4vw, 2.6rem); }
.hero-center .hero-visual { width: 100%; margin-top: clamp(3rem, 7vw, 5.5rem); }
.hero-center .hero-visual .media { aspect-ratio: 21 / 9; }
.hero-center .scroll-cue { margin-top: clamp(2.2rem, 5vw, 3.2rem); }
.hero-tag {
  position: absolute; top: -1.2rem; right: -0.5rem; z-index: 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.6rem 1.2rem; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-deep); box-shadow: 0 14px 30px -18px rgba(33,28,25,0.45);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 3rem; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.scroll-cue i { display: block; width: 40px; height: 1px; background: var(--ink-faint); position: relative; overflow: hidden; }
.scroll-cue i::after { content:""; position:absolute; inset:0; width:40%; background: var(--accent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(280%)} }

/* ---------- 9. Section heading block ---------- */
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 60ch; }
.section-head.center { margin-inline: auto; text-align: center; max-width: 64ch; }
.section-head .lead { margin-top: 0.2rem; }

/* ---------- 10. Work / project grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.8rem, 3.8vw, 3.4rem); }
.project-card { display: block; cursor: pointer; }
.project-card .media { aspect-ratio: 16 / 9; }
.project-card .media .ph { position:absolute; inset:0; transition: transform 0.9s var(--ease); }
.project-card:hover .media .ph { transform: scale(1.05); }
.project-card .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.project-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); transition: color 0.4s var(--ease); }
.project-card:hover h3 { color: var(--accent-deep); }
.project-card .cat { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; white-space: nowrap; }
.project-card p { color: var(--ink-soft); margin-top: 0.6rem; max-width: 46ch; font-size: 0.98rem; }
.project-card .view { margin-top: 1.1rem; }

/* date + timeframe */
.card-when { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--ink-faint); }
.tf-badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
}
.tf-badge svg { width: 12px; height: 12px; flex: none; }
.cs-when { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: -0.2rem; font-size: 0.98rem; color: var(--ink-soft); }
.cs-when:empty { display: none; }
.cs-when .tf-badge { font-size: 0.86rem; padding: 0.42rem 0.95rem; gap: 0.45rem; }
.cs-when .tf-badge svg { width: 15px; height: 15px; }
.cs-tfnote { color: var(--ink-faint); font-size: 0.92rem; }

/* subtle CTA block beneath the work grid */
.behance-cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1.6rem, 3vw, 2.4rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.behance-cta:hover { border-color: var(--accent); box-shadow: 0 24px 50px -38px rgba(33,28,25,0.4); }
.behance-cta p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; max-width: 48ch; }
.behance-cta .btn { flex: none; }
@media (max-width: 600px) {
  .behance-cta { flex-direction: column; align-items: flex-start; }
  .behance-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- 11. Editorial process / workflow ---------- */
.process { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); }
.process-aside .lead { margin-top: 1.2rem; }
.process-list { display: grid; }
.process-item {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1rem, 4vw, 3rem);
  align-items: baseline; padding-block: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line); transition: padding-left 0.5s var(--ease);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-item:hover { padding-left: 0.6rem; }
.process-item .p-name { font-family: var(--font-display); font-weight: 480; font-size: clamp(1.4rem, 2.4vw, 1.95rem); letter-spacing: -0.015em; }
.process-item:hover .p-name { color: var(--accent-deep); }
.process-item .p-desc { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- 12. About preview / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.start { align-items: start; }
.split .media { aspect-ratio: 4/5; }
.prose p + p { margin-top: 1.3rem; }
.prose p { color: var(--ink-soft); }

/* ---------- 13. Toolkit (editorial stacked rows) ---------- */
.toolkit { border-top: 1px solid var(--line); }
.toolkit-row {
  display: grid; grid-template-columns: minmax(210px, 0.85fr) 1.7fr;
  gap: clamp(0.9rem, 3.5vw, 3rem); align-items: start;
  padding: clamp(1.15rem, 2.2vw, 1.55rem) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.toolkit-row:hover { padding-left: 0.55rem; }
.toolkit-cat { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.15rem; }
.toolkit-mark {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.toolkit-row:hover .toolkit-mark { transform: scale(1.08) rotate(-4deg); }
.toolkit-mark svg { width: 14px; height: 14px; }
.toolkit-cat h3 { font-family: var(--font-display); font-size: clamp(1.02rem, 1.5vw, 1.22rem); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.toolkit-cat h3 .amp { font-family: var(--font-body); font-weight: 400; font-style: normal; font-size: 0.92em; }
.toolkit-tools { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.toolkit-tools span {
  font-size: 0.8rem; font-weight: 500; color: var(--ink);
  background: var(--bg-alt); padding: 0.28rem 0.66rem; border-radius: 5px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.toolkit-tools span:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- 14. Expertise list ---------- */
.expertise { border-top: 1px solid var(--line); }
.expertise li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(1.15rem,2vw,1.45rem); font-weight: 460; letter-spacing: -0.01em; transition: padding-left 0.4s var(--ease), color 0.4s var(--ease); }
.expertise li:hover { padding-left: 0.5rem; color: var(--accent-deep); }

/* ---------- 15. CTA ---------- */
.cta { background: var(--ink); color: var(--bg); }
.cta .eyebrow { color: var(--accent); }
.cta .eyebrow::before { background: var(--accent); }
.cta h2 { color: var(--bg); }
.cta p { color: rgba(244,239,233,0.74); }
.cta .btn-primary { background: var(--bg); color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent); color: #fff; }
.cta .btn-ghost { color: var(--bg); border-color: rgba(244,239,233,0.4); }
.cta .btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--bg-alt); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; align-items: flex-start; }
.footer-top .brand { font-size: 2rem; }
.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-deep); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- 17. Page hero (interior) ---------- */
.page-hero { padding-top: clamp(8rem, 16vw, 12rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { margin-block: 1.3rem 1.5rem; }
.page-hero .lead { max-width: 60ch; }


/* ---------- 18. Case-study pages ---------- */
.cs-hero .media { aspect-ratio: 21/9; }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-block: clamp(2.5rem,5vw,4rem); }
.cs-meta dt { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 0.6rem; }
.cs-meta dd { color: var(--ink-soft); font-size: 0.96rem; }
.cs-meta dd span { display:block; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem,2.5vw,2rem); }
.gallery .media:first-child { grid-column: 1 / -1; }
.gallery .media { aspect-ratio: 16/10; }
.gallery .media.tall { aspect-ratio: 3/4; }

/* case-study stage block (AI project pages) */
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.stage.flip .stage-media { order: -1; }
.stage + .stage { margin-top: clamp(3rem, 7vw, 6rem); }
.stage .stage-media .media { aspect-ratio: 4/3; }
.stage .stage-copy .eyebrow { margin-bottom: 1rem; }
.stage .stage-copy h3 { font-size: clamp(1.6rem,3vw,2.3rem); margin-bottom: 1rem; }
.stage .stage-copy p { color: var(--ink-soft); }
.stage-row { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(0.8rem,2vw,1.4rem); margin-top: 1.6rem; }
.stage-row .media { aspect-ratio: 3/4; }

/* ---------- 18b. Stage screenshots: uncropped, expandable ---------- */
.shot { margin: 0; }
.shot-main {
  position: relative; display: block; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt);
  box-shadow: 0 30px 60px -44px rgba(30,26,23,0.5);
}
.shot-main img, .shot-main video { display: block; width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.shot-main:hover img { transform: scale(1.015); }
.shot-main.is-video { cursor: default; }
.zoom-hint {
  position: absolute; right: 0.75rem; bottom: 0.75rem; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(250,247,242,0.92); color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(30,26,23,0.5); opacity: 0.85; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.zoom-hint svg { width: 16px; height: 16px; }
.shot-main:hover .zoom-hint, .shot-main:focus-visible .zoom-hint { opacity: 1; transform: scale(1.06); }
.shot-caption { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-faint); }
.shot-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.7rem; }
.shot-thumb {
  position: relative; padding: 0; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 4px; background: var(--bg-alt);
  transition: border-color 0.3s var(--ease);
}
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease), opacity 0.3s; }
.shot-thumb:hover { border-color: var(--accent); }
.shot-thumb:hover img { transform: scale(1.06); }
.shot-main:focus-visible, .shot-thumb:focus-visible, .zoom-tile:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.stage-count { display: block; margin-top: 1.2rem; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); }

/* full-width side-by-side video comparison under a stage */
.stage-compare { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.4rem, 3vw, 2rem); border-top: 1px solid var(--line); }
.stage-compare + .stage { margin-top: clamp(3rem, 7vw, 6rem); }
.stage-compare-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin-bottom: 1.2rem; }
.stage-compare-head h4 { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; }
.stage-compare-head span { font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.2rem); }
.compare-grid:has(> :only-child) { max-width: 720px; }
.compare-item { margin: 0; }
.compare-item video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #111; border-radius: var(--radius); border: 1px solid var(--line); }
.compare-item figcaption { margin-top: 0.6rem; font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); }
.compare-item figcaption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

/* work gallery tiles become expandable too */
.zoom-tile { cursor: zoom-in; }
.zoom-tile img { transition: transform 0.8s var(--ease); }
.zoom-tile:hover img { transform: scale(1.03); }

/* ---------- 18c. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(24,20,18,0.94); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
  padding: 4.5rem 5rem 2rem;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lb-img {
  max-width: 100%; max-height: calc(100vh - 10rem); object-fit: contain; border-radius: 4px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8); background: #111;
}
.lb-cap { margin-top: 1rem; color: rgba(244,239,233,0.82); font-size: 0.92rem; text-align: center; max-width: 70ch; line-height: 1.5; }
.lb-count { display: block; margin-top: 0.35rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,233,0.5); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(244,239,233,0.08); color: #f4efe9; border: 1px solid rgba(244,239,233,0.22); cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lb-btn:hover { background: rgba(244,239,233,0.18); border-color: rgba(244,239,233,0.5); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 760px) {
  .lightbox { padding: 4.5rem 0.8rem 1.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-img { max-height: calc(100vh - 13rem); }
  .shot-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 19. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list a { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease), color 0.4s var(--ease); }
.contact-list a:hover { padding-left: 0.8rem; color: var(--accent-deep); }
.contact-list .label { font-family: var(--font-display); font-size: 1.7rem; font-weight: 460; }
.contact-list .val { font-size: 0.86rem; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ---------- 20. Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }
[data-reveal][data-delay="6"] { transition-delay: 0.48s; }
[data-parallax] { will-change: transform; }

/* ---------- 21. Responsive ---------- */
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .process { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .process-aside { position: sticky; top: 7rem; }
  /* About: text left, portrait right (slightly narrower, sticky) */
  .about-split { grid-template-columns: 1.3fr 0.7fr; gap: clamp(3rem, 6vw, 6rem); }
  .about-split .about-portrait { position: sticky; top: 7rem; }
}

/* ----- About portrait card (editorial treatment) ----- */
.about-portrait { margin: 0; display: block; }
.portrait-card { position: relative; width: 100%; max-width: 330px; margin-inline: auto; }
/* soft dusty-mauve backing block, offset behind the image */
.portrait-card::before {
  content: ""; position: absolute; left: 20px; top: 20px; right: -20px; bottom: -20px;
  background: var(--accent-soft); border-radius: 10px; z-index: 0;
}
.portrait-card .media {
  position: relative; z-index: 1; border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 34px 64px -40px rgba(33,28,25,0.5);
}
.portrait-cap {
  margin-top: 2.4rem; text-align: center;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-faint);
}
.portrait-cap span { color: var(--accent); margin: 0 0.4em; }

/* accent name treatment (mirrors "AI-powered" on the homepage) */
.accent-text { color: var(--accent-deep); font-style: italic; font-weight: 420; }

/* subtle warm tone over the portrait so it reads as designed, not stock */
.portrait-tone {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(176,132,138,0.12), rgba(33,28,25,0.06));
  mix-blend-mode: multiply;
}

/* editorial pull quote */
.pullquote {
  font-family: var(--font-display); font-weight: 440;
  font-size: clamp(1.65rem, 3.6vw, 2.7rem); line-height: 1.2; letter-spacing: -0.018em;
  color: var(--ink); max-width: 22ch; margin: 0;
}
.pullquote::before { content: ""; display: block; width: 46px; height: 2px; background: var(--accent); margin-bottom: 1.5rem; }

/* footer tagline: one line on desktop, may wrap on mobile */
.footer-tagline { white-space: nowrap; }
@media (max-width: 760px) { .footer-tagline { white-space: normal; max-width: 34ch; } }

@media (max-width: 760px) {
  .about-portrait { margin-top: 3rem; }
  .portrait-card { max-width: 300px; }
  /* keep the offset block from causing horizontal overflow on small screens */
  .portrait-card::before { left: 14px; top: 14px; right: -14px; bottom: -14px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
    background: var(--surface); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem; padding: 3rem; transform: translateX(100%); transition: transform 0.5s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(33,28,25,0.4); z-index: 99;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; z-index: 100; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .work-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .media { aspect-ratio: 4/3; }
  .toolkit-row { grid-template-columns: 1fr; gap: 0.9rem; }
  .toolkit-row:hover { padding-left: 0; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery .media:first-child { grid-column: auto; }
  .process-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .stage { grid-template-columns: 1fr; }
  .stage.flip .stage-media { order: 0; }
  .stage-row { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .hero-center .hero-visual .media { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Hero images show whole, never cropped */
.media.natural { aspect-ratio: auto !important; }
.media.natural > img { position: static; display: block; width: 100%; height: auto; object-fit: contain; }

/* Homepage featured AI film */
.hero-center .hero-visual .media.ratio-16x9 { aspect-ratio: 16 / 9; }
.media#home-showreel > video { object-fit: contain; background: #111; }
.home-feature-cap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.8rem 2rem; margin-top: 1.1rem; text-align: left; }
.home-feature-cap .hf-title { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; letter-spacing: -0.01em; margin-top: 0.35rem; color: var(--ink); }
.work-grid.three { grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
@media (max-width: 900px) { .work-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .work-grid.three { grid-template-columns: 1fr; } }
#home-showreel > video, #home-showreel > iframe { object-fit: contain; background: #111; }

/* Homepage selected work header */
.home-work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.4rem 3rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.home-work-head .h-section { margin-top: 1.1rem; }
.home-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem; }
.home-more > span { width: 100%; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
#selected-work { scroll-margin-top: 5rem; }

/* Square and vertical videos in compare rows keep their own shape */
.compare-item video.tall { aspect-ratio: auto; width: auto; height: auto; max-width: 100%; max-height: min(62vh, 560px); margin: 0 auto; background: transparent; }
.compare-grid:has(video.tall) { align-items: end; }

/* About: career list + education */
.career { border-top: 1px solid var(--line); }
.career-row { display: grid; grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1fr) 1.6fr; gap: clamp(0.6rem, 3vw, 2.6rem); padding: clamp(1.1rem, 2.2vw, 1.5rem) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.career-when { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.career-what h3 { font-family: var(--font-display); font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.career-co { display: block; margin-top: 0.2rem; font-size: 0.9rem; font-weight: 500; color: var(--accent-deep); }
.career-row p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.edu { display: grid; grid-template-columns: minmax(150px, 0.55fr) 2.6fr; gap: clamp(0.6rem, 3vw, 2.6rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.edu-list p { margin: 0 0 0.9rem; color: var(--ink); }
.edu-list strong { font-weight: 600; display: block; }
.edu-list span { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 860px) { .career-row { grid-template-columns: 1fr; gap: 0.35rem; } .edu { grid-template-columns: 1fr; } }

/* Project stats row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(1.2rem, 2.6vw, 1.8rem) clamp(0.4rem, 2vw, 1.6rem) clamp(1.2rem, 2.6vw, 1.8rem) 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2.4vw, 1.8rem); }
.stat-v { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--accent-deep); }
.stat-l { display: block; margin-top: 0.6rem; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); max-width: 30ch; }
.stats-note { margin-top: 0.8rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 700px) { .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* Project hero that plays the film */
.media.natural.hero-film > video { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #111; }
.media.natural.hero-film .play { display: none; }

/* Closing reflection lessons */
.lessons { counter-reset: l; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.lessons li { counter-increment: l; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); line-height: 1.55; }
.lessons li::before { content: counter(l, decimal-leading-zero); font-family: var(--font-display); color: var(--accent-deep); }

/* Homepage showreel caption */
.showreel-cap { margin-top: 1rem; text-align: center; font-size: 0.78rem; letter-spacing: 0.06em; }

/* Highlight with no media: text only */
.stage.text-only { grid-template-columns: 1fr; }
.stage.text-only .stage-copy { max-width: 68ch; }
