/* === BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fbfaf6;
  --bg-deep: #e8e5de;
  --butter: #f3e7c1;
  --ink: #202a22;
  --ink-soft: #575450;
  --accent: #3f5341;
  --rule: #dedbd4;
  --display: 'Playfair Display', 'Georgia', serif;
  --sans: 'Satoshi', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --lines: #A2A2A2;

  /* How much of the viewport bottom the fixed floating nav permanently covers,
     plus room to breathe. Anything pinned to the bottom — the footer at the end
     of the document, the hero copy at the foot of a full-height hero — must
     reserve this much or it sits behind the glass.
     22px inset + ~70px pill + 24px breathing room. */
  --nav-clearance: 116px;
}

/* The nav shrinks on small screens: 14px inset and a 34px logo, so it covers
   about 70px instead of 92. One token, so every user of it follows. */
@media (max-width: 900px) {
  :root { --nav-clearance: 92px; }
}

html { scroll-behavior: smooth; }

/* Lenis smooth-scroll baseline — mirrors the homepage.
   Lenis drives scrolling itself, so native smooth behaviour must be off. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; }

/* === CURSOR === */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor.grow {
  width: 48px; height: 48px;
  background: var(--bg);
}

@media (hover: none) {
  .cursor { display: none; }
  body { cursor: auto; }
}

/* === LOADER === */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1) 0.4s;
}

.loader.done { transform: translateY(-100%); }

.loader-text {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(32px, 5vw, 64px);
  color: var(--bg);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Rich loader (homepage) */
.loader-rich {
  display: block;
  padding: 32px 40px;
}

.loader-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.55;
}

.loader-tl { top: 32px; left: 40px; }
.loader-tr { top: 32px; right: 40px; }
.loader-bl { bottom: 48px; left: 40px; }
.loader-br { bottom: 48px; right: 40px; }

/* Animated key visual */
.loader-key {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(240px, 32vw, 460px);
  height: auto;
  color: var(--accent);
}

.loader-key circle,
.loader-key line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  opacity: 0;
  animation: drawStroke 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loader-key .lk-bow    { animation-delay: 0.05s; }
.loader-key .lk-hole   { animation-delay: 0.45s; animation-duration: 0.4s; }
.loader-key .lk-shaft  { animation-delay: 0.55s; animation-duration: 0.55s; }
.loader-key .lk-tooth1 { animation-delay: 0.95s; animation-duration: 0.25s; }
.loader-key .lk-tooth2 { animation-delay: 1.05s; animation-duration: 0.25s; }
.loader-key .lk-tooth3 { animation-delay: 1.15s; animation-duration: 0.25s; }

@keyframes drawStroke {
  0%   { stroke-dashoffset: 320; opacity: 0; }
  10%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.loader-progress {
  position: absolute;
  bottom: 32px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: rgba(245, 245, 243, 0.12);
  overflow: hidden;
}

.loader-progress span {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.5s linear;
}

.loader-progress.fill span { width: 100%; }

@media (max-width: 700px) {
  .loader-rich { padding: 20px 20px; }
  .loader-tl { top: 20px; left: 20px; }
  .loader-tr { top: 20px; right: 20px; }
  .loader-bl { bottom: 36px; left: 20px; }
  .loader-br { bottom: 36px; right: 20px; }
  .loader-progress { left: 20px; right: 20px; bottom: 20px; }
  .loader-stack { min-width: 86vw; }
}

/* === NAV === */
.nav {
  position: fixed;
  top: 20px; left: 20px; right: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 10px 10px 24px;
  background: var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 100;
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(26, 37, 51, 0.25);
}

.nav a { text-decoration: none; color: var(--bg); transition: color 0.3s; }
.nav a:hover { color: var(--accent); }

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo sup {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 1px;
  opacity: 0.7;
}

.nav-pattern {
  color: rgba(245, 245, 243, 0.4);
  letter-spacing: 0.15em;
  font-family: var(--mono);
}

.nav-center {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav-cta {
  background: var(--accent);
  color: var(--ink);
  padding: 10px 6px 10px 16px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s;
  justify-self: end;
}

.nav-cta:hover { color: var(--ink); background: var(--butter); }

.nav-cta-label { font-size: 11px; letter-spacing: 0.12em; }

.nav-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  background: linear-gradient(135deg, #d5d5cf 0%, #f4f2ec 40%, #b5b5ae 100%);
  color: var(--ink);
  border-radius: 2px;
  border: 1px solid rgba(32, 42, 34, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-family: var(--sans);
  font-size: 13px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 40px 80px;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

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

.hero-headline {
  font-family: var(--display);
  font-size: clamp(44px, 6.2vw, 108px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: none;
}

.hero-headline-line {
  display: block;
  font-weight: 700;
}

.hero-headline-italic {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.hero-body {
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-cta {
  background: var(--accent);
  color: var(--ink);
  padding: 12px 8px 12px 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: background 0.3s;
  width: fit-content;
}

.hero-cta:hover { background: var(--butter); }

.hero-cta-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 26px;
  background: linear-gradient(135deg, #d5d5cf 0%, #f4f2ec 40%, #b5b5ae 100%);
  color: var(--ink);
  border-radius: 2px;
  border: 1px solid rgba(32, 42, 34, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-family: var(--sans);
  font-size: 14px;
}

.hero-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  line-height: 1.6;
}

/* === SECTION === */
section { padding: 140px 40px; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.label::before {
  content: none;
}

/* === ABOUT === */
.about-wrap { max-width: 1400px; margin: 0 auto; }

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: start;
}

.about-portrait { position: relative; width: 100%; }

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
  filter: contrast(1.02) brightness(0.98);
}

.about-portrait::after {
  content: 'Brisbane, 2024';
  position: absolute;
  bottom: -28px;
  left: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.about-content { padding-top: 8px; }

.about-headline {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 14ch;
  margin-bottom: 48px;
}

.about-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.about-text p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 52ch;
  color: var(--ink);
}

.about-text em {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
}

/* === MARQUEE === */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--butter);
}

.marquee-inner {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  color: var(--ink);
  animation: scroll 35s linear infinite;
}

.marquee-inner span {
  color: var(--accent);
  margin: 0 24px;
  font-style: normal;
}

.marquee-inner .key-icon {
  height: 0.38em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === WORK (project cards on index) === */
.work-wrap { max-width: 1400px; margin: 0 auto; }

.work-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 100px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
}

.work-intro h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.work-intro h2 em {
  font-style: italic;
  color: var(--accent);
}

.work-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px 48px;
}

.project-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0;
}

.project-card:last-child { margin-bottom: 0; }

.project-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 20px;
  letter-spacing: 0.1em;
}

.project-card-content { border-top: 1px solid var(--ink); padding-top: 24px; }

.project-visual {
  aspect-ratio: 16/10;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--rule);
  pointer-events: none;
}

.project-visual:has(img)::before { display: none; }
.project-visual:has(img) { background: transparent; border: none; }

.project-card:hover .project-visual {
  transform: translateY(-10px);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 24px;
}

.project-card h3 {
  font-family: var(--display);
  font-size: clamp(32px, 3.8vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.project-link {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 36px);
  color: var(--accent);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.project-card:hover .project-link {
  transform: translateX(12px);
}

.project-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.project-headline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.25;
  color: var(--accent);
  max-width: 26ch;
  font-weight: 400;
}

/* === CONTACT === */
.contact {
  text-align: left;
  padding-top: 180px;
  padding-bottom: 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact h2 {
  font-family: var(--display);
  font-size: clamp(64px, 12vw, 220px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 56px;
}

.contact h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.contact-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  color: var(--ink);
  max-width: 30ch;
  line-height: 1.4;
  margin-bottom: 64px;
}

.contact-links {
  display: flex;
  gap: 48px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color 0.3s, border-color 0.3s;
}

.contact-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--rule);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;

  /* Clear the floating nav. It is fixed 22px off the bottom and about 70px
     tall, so it permanently covers the last ~92px of the viewport. Mid-page
     that is fine — content is meant to slide under the glass — but the footer
     is the one thing that cannot scroll any further, so without this reserve
     its text ends up sitting behind the pill for good.
     22 inset + 70 pill + 24 breathing room. */
  padding-bottom: var(--nav-clearance, 116px);
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === CASE STUDY PAGE === */
.case-hero {
  padding: 200px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.case-meta-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 64px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.case-hero h1 {
  font-family: var(--display);
  font-size: clamp(64px, 12vw, 200px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}

.case-headline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.25;
  color: var(--accent);
  max-width: 28ch;
  margin-bottom: 80px;
  font-weight: 400;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.case-meta-grid > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.case-meta-grid > div span:last-child {
  font-family: var(--display);
  font-size: clamp(15px, 1.3vw, 19px);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
}

.case-hero-image {
  max-width: 1400px;
  margin: 0 auto 140px;
  padding: 0 40px;
}

.case-hero-image .image-block {
  aspect-ratio: 16/9;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.case-hero-image .image-block::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--rule);
}

.case-hero-image .image-block:has(img)::before { display: none; }
.case-hero-image .image-block:has(img) {
  background: transparent;
  border: none;
  aspect-ratio: auto;
  height: auto;
}

.case-hero-image .image-block img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.case-body {
  padding: 0 40px;
  margin-bottom: 140px;
}

.case-body-inner {
  max-width: 800px;
  margin: 0 auto;
}

.case-section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-section-title:first-child { margin-top: 0; }

.case-section-title::before {
  content: none;
}

.case-prose p {
  font-family: var(--sans);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--ink);
}

.case-prose em {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.case-pullquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--accent);
  margin: 80px -32px;
  padding: 56px 40px;
  background: var(--butter);
  border-radius: 4px;
  max-width: none;
}

/* === GALLERY === */
.case-gallery {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-gallery-full {
  grid-template-columns: 1fr;
}

.case-gallery-2col {
  grid-template-columns: 1fr 1fr;
}

/* Feature layout: first image wide and full-width, next two side by side */
.case-gallery.feature-top {
  grid-template-columns: 1fr 1fr;
}

.case-gallery.feature-top > .case-gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  height: auto;
}

.case-gallery.feature-top > .case-gallery-item:first-child img {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: static;
}

.case-gallery-item {
  aspect-ratio: 4/3;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.case-gallery-item::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--rule);
}

.case-gallery-item:has(img)::before { display: none; }
.case-gallery-item:has(img) { background: transparent; border: none; }

.case-gallery-item.tall { aspect-ratio: 429/863; }
.case-gallery-item.wide { aspect-ratio: 16/9; }
.case-gallery-item.square { aspect-ratio: 1/1; }

.case-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* === NEXT PROJECT === */
.next-project {
  padding: 140px 40px;
  border-top: 1px solid var(--rule);
  background: var(--bg-deep);
}

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

.next-project-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.next-project-link {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  color: var(--ink);
  transition: color 0.3s;
}

.next-project-link:hover { color: var(--accent); }

.next-project-name {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.next-project-arrow {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(40px, 6vw, 88px);
  color: var(--accent);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.next-project-link:hover .next-project-arrow {
  transform: translateX(16px);
}

/* === CURRENTLY STEEPING WIDGET === */
.currently-steeping {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  background: var(--bg);
  padding: 10px 16px 10px 12px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(32, 42, 34, 0.12);
  border: 1px solid var(--rule);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.teacup-svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}

.steeping-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.steeping-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.steeping-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1;
}

@keyframes steam-drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-1.5px) scale(1.05); opacity: 0.85; }
}

.teacup-steam-1 { animation: steam-drift 3.2s ease-in-out infinite; transform-origin: center bottom; }
.teacup-steam-2 { animation: steam-drift 3.2s ease-in-out infinite 0.8s; transform-origin: center bottom; }
.teacup-steam-3 { animation: steam-drift 3.2s ease-in-out infinite 1.6s; transform-origin: center bottom; }

/* === CHROME TYPE MOMENT (loader name) === */
.loader-name-chrome {
  background: linear-gradient(180deg,
    #f0ede2 0%,
    #d0cec3 22%,
    #7f7f75 50%,
    #d0cec3 78%,
    #f0ede2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* === MID-CENTURY GEOMETRY ACCENTS === */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.label::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-mark-geo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.section-mark-geo::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-soft);
}

.section-mark-geo::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
}

/* === KAWAII MASCOT === */
.kawaii-mascot {
  position: absolute;
  bottom: 88px;
  left: 40px;
  width: 52px;
  height: 38px;
  color: var(--butter);
  opacity: 0;
  animation: mascot-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes mascot-in {
  0% { opacity: 0; transform: translateY(10px) scale(0.85); }
  100% { opacity: 0.95; transform: translateY(0) scale(1); }
}

.footer-mascot-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.footer-mascot {
  width: 32px;
  height: 22px;
  flex-shrink: 0;
}

/* === DARK MODE (sunglasses toggle) === */
[data-theme="dark"] {
  --bg: #1e1f1a;
  --bg-deep: #2a2c25;
  --butter: #a08d5e;
  --ink: #f3ede0;
  --ink-soft: #a09c8e;
  --accent: #b8c9a3;
  --rule: #3a3d32;
}

[data-theme="dark"] .nav { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .currently-steeping { background: var(--bg-deep); }

.sunglasses-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 52px;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
  box-shadow: 0 6px 24px rgba(32, 42, 34, 0.12);
}

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

.sunglasses-svg {
  width: 26px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .sunglasses-svg { transform: translateY(2px); color: var(--accent); }

/* === TEACUP LOADER (case study pages) === */
.loader-teacup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loader-teacup-svg {
  width: 96px;
  height: 96px;
  color: var(--bg);
}

.loader-teacup-fill {
  fill: var(--accent);
  transform-origin: center bottom;
  transform: scaleY(0);
  animation: teacup-fill 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes teacup-fill {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

.loader-teacup-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--bg);
  font-weight: 400;
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.4s forwards;
}

@keyframes fade-in { to { opacity: 0.9; } }

/* === SPOTIFY EMBED === */
.spotify-embed {
  position: fixed;
  bottom: 24px;
  right: 90px;
  z-index: 90;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 6px 24px rgba(32, 42, 34, 0.12);
  max-width: 320px;
}

.spotify-embed iframe { border-radius: 8px; display: block; }

.spotify-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.spotify-vinyl {
  width: 32px;
  height: 32px;
  color: var(--ink);
  animation: spin-slow 6s linear infinite;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

/* === LETTER / ENVELOPE CONTACT FORM === */
.letter-contact { padding: 100px 40px; max-width: 900px; margin: 0 auto; }

.letter-paper {
  background: linear-gradient(180deg, #f7f2e6 0%, #f0e9d8 100%);
  padding: 60px 64px 56px;
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 8px 30px rgba(32, 42, 34, 0.12),
    inset 0 0 100px rgba(160, 130, 80, 0.05);
  position: relative;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233f5341' stroke-width='2' stroke-linecap='round'><path d='M 4 20 L 15 9 L 20 14 L 9 25 Z' fill='%233f5341'/><path d='M 15 9 L 20 4 L 20 14 Z'/><path d='M 4 20 L 3 24 L 7 21 Z' fill='%233f5341'/></svg>") 3 20, text;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.letter-paper.sending {
  animation: letter-fold 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes letter-fold {
  0% { transform: scale(1) rotate(0); opacity: 1; }
  40% { transform: scale(0.5) rotate(-2deg); opacity: 1; }
  70% { transform: scale(0.25) rotate(2deg); opacity: 0.7; }
  100% { transform: scale(0.1) translateY(-40px); opacity: 0; }
}

.letter-greeting {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 32px;
  line-height: 1.3;
}

.letter-field { margin-bottom: 24px; }

.letter-label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.letter-input,
.letter-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(63, 83, 65, 0.3);
  background: transparent;
  padding: 6px 0 8px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}

.letter-input:focus,
.letter-textarea:focus {
  border-color: var(--accent);
}

.letter-textarea { resize: vertical; min-height: 120px; line-height: 1.4; }

.letter-signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 32px;
  text-align: right;
}

.letter-send-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.letter-send {
  background: #6e2929;
  color: #f5e5c8;
  padding: 14px 28px 14px 24px;
  border-radius: 40px;
  border: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 14px rgba(110, 41, 41, 0.35);
}

.letter-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(110, 41, 41, 0.45);
}

.letter-seal-icon {
  width: 24px;
  height: 24px;
  color: #f5e5c8;
}

.letter-delivered {
  display: none;
  text-align: center;
  padding: 80px 40px;
}

.letter-delivered.active { display: block; animation: delivered-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards; opacity: 0; }

@keyframes delivered-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.letter-delivered-icon {
  width: 100px;
  height: 100px;
  color: var(--accent);
  margin: 0 auto 24px;
}

.letter-delivered-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(48px, 6vw, 88px);
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.letter-delivered-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 auto;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav {
    top: 12px; left: 12px; right: 12px;
    grid-template-columns: 1fr auto;
    padding: 8px 8px 8px 16px;
    gap: 12px;
  }
  .nav-center { display: none; }
  .nav-pattern { display: none; }
  .nav-logo { font-size: 10px; }
  .nav-cta { padding: 8px 4px 8px 12px; gap: 8px; }
  .nav-cta-label { font-size: 10px; }
  .nav-cta-arrow { width: 24px; height: 20px; font-size: 12px; }
  section { padding: 80px 20px; }
  .hero { padding: 100px 24px 100px; }
  .hero-headline { font-size: clamp(36px, 9vw, 60px); margin-bottom: 24px; }
  .hero-body { font-size: 15px; margin-bottom: 28px; }
  .hero-cta { padding: 10px 6px 10px 18px; }
  .hero-caption { bottom: 24px; font-size: 10px; }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about-portrait { max-width: 320px; }
  .about-portrait::after { bottom: -24px; }
  .project-grid { grid-template-columns: 1fr; gap: 64px; }
  .project-card { grid-template-columns: 1fr; gap: 16px; }
  .project-num { padding-top: 0; }
  .work-intro { flex-direction: column; align-items: flex-start; gap: 16px; }
  .contact { padding-top: 100px; }
  .contact-links { gap: 24px; }
  /* The padding shorthand would reset the bottom clearance set on the base
     rule, putting the footer text back under the nav. Kept explicit. */
  footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px var(--nav-clearance, 92px);
    align-items: flex-start;
  }
  .case-hero { padding: 140px 20px 60px; }
  .case-hero-image { padding: 0 20px; margin-bottom: 80px; }
  .case-body { padding: 0 20px; margin-bottom: 80px; }
  .case-gallery { padding: 0 20px; grid-template-columns: 1fr; }
  .case-meta-grid { grid-template-columns: 1fr 1fr; }
  .next-project { padding: 80px 20px; }
  body { cursor: auto; }
  .cursor, .mouse-trail { display: none; }
}

/* ============================
   FLOATING GLASS NAV (shared)
   Section-aware light/dark inversion
   ============================ */
.site-nav {
  position: fixed;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 500;
  padding: 12px 14px 12px 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: rgba(255, 247, 226, 0.10);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid #FFF7E2;
  border-radius: 6px;
  color: #FFF7E2;
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.site-nav-links {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav-links a {
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #FFF7E2;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: color 0.45s ease, opacity 0.3s ease;
}

.site-nav-links a:hover { opacity: 0.65; }

.site-nav-logo {
  justify-self: center;
  display: block;
  height: 44px;
  line-height: 0;
  transition: opacity 0.3s ease;
}

.site-nav-logo img {
  height: 100%;
  width: auto;
  display: block;
  transition: filter 0.45s ease;
}

.site-nav-logo:hover { opacity: 0.75; }

.site-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-cta {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1712;
  background: #FFF7E2;
  border-radius: 6px;
  padding: 11px 22px;
  text-decoration: none;
  letter-spacing: 0.005em;
  line-height: 1;
  transition: background 0.45s ease, color 0.45s ease, opacity 0.3s ease;
}
.site-nav-cta:hover { opacity: 0.85; }

/* Hamburger button — hidden on desktop, shown on mobile */
.site-nav-hamburger {
  display: none;
  justify-self: start;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: #FFF7E2;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.site-nav-hamburger:hover { opacity: 0.75; }
.site-nav-hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              background 0.4s ease;
}
.site-nav-hamburger[aria-expanded="true"] .site-nav-hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav-hamburger[aria-expanded="true"] .site-nav-hamburger-line:nth-child(2) {
  opacity: 0;
}
.site-nav-hamburger[aria-expanded="true"] .site-nav-hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay — sits above the floating nav */
.site-nav-menu {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 100px;
  z-index: 499;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  background: rgba(26, 23, 18, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 247, 226, 0.35);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s,
              background 0.45s ease, border-color 0.45s ease;
}
.site-nav-menu[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s,
              background 0.45s ease, border-color 0.45s ease;
}
.site-nav-menu a {
  font-family: 'Satoshi', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #FFF7E2;
  text-decoration: none;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 247, 226, 0.12);
  letter-spacing: 0.005em;
  transition: opacity 0.25s ease, color 0.4s ease, border-color 0.4s ease;
}
.site-nav-menu a:hover { opacity: 0.65; }
.site-nav-menu a:last-child { border-bottom: none; }
.site-nav-menu-cta {
  margin-top: 12px;
  background: #FFF7E2;
  color: #1a1712 !important;
  border-bottom: none !important;
  border-radius: 4px;
  text-align: center;
  padding: 14px !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  transition: opacity 0.25s ease, background 0.4s ease, color 0.4s ease;
}
.site-nav-menu-cta:hover { opacity: 0.88; }

/* Light-mode inversion — applied by the observer over cream sections */
.site-nav.on-light {
  background: rgba(26, 23, 18, 0.05);
  border-color: #1a1712;
  color: #1a1712;
}
.site-nav.on-light .site-nav-links a { color: #1a1712; }
.site-nav.on-light .site-nav-hamburger { color: #1a1712; }
.site-nav.on-light .site-nav-cta {
  background: #1a1712;
  color: #FFF7E2;
}
.site-nav.on-light .site-nav-logo img {
  filter: invert(1);
}

.site-nav-menu.on-light {
  background: rgba(255, 247, 226, 0.94);
  border-color: rgba(26, 23, 18, 0.25);
}
.site-nav-menu.on-light a {
  color: #1a1712;
  border-bottom-color: rgba(26, 23, 18, 0.12);
}
.site-nav-menu.on-light .site-nav-menu-cta {
  background: #1a1712;
  color: #FFF7E2 !important;
}

/* Mobile */
@media (max-width: 900px) {
  .site-nav {
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 10px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    grid-template-columns: none !important;
  }
  .site-nav-links { display: none !important; }
  .site-nav-right { display: none !important; }
  .site-nav-cta { display: none !important; }
  .site-nav-hamburger { display: flex !important; order: 3; margin: 0; }
  .site-nav-logo { height: 34px; order: 1; margin: 0; }
}
