/* =========================================================================
   FRAMEHAUS48 — Editorial Photography Studio
   Design system aligned with Jim's tokens:
   - Burnt sienna accent (light + dark variants)
   - Inter + JetBrains Mono typography
   - Light/dark theme system
   - Pure white / pure black backgrounds
   - F-stop style scrollbar
   - Italic em + accent span typography
   ========================================================================= */

:root {
  /* Colors — light mode */
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-tint: #F5F5F5;
  --fg: #0A0A0A;
  --fg-soft: #2B2B2B;
  --fg-mute: #6B6B6B;
  --fg-faint: #B0B0B0;
  --line: #ECECEC;
  --line-strong: #D8D8D8;

  /* Brand accent — Framehaus48 burnt sienna */
  --accent: #B85128;
  --accent-soft: rgba(184, 81, 40, 0.12);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale */
  --t-display: clamp(56px, 9.5vw, 132px);
  --t-h1: clamp(40px, 6vw, 84px);
  --t-h2: clamp(34px, 4.5vw, 64px);
  --t-h3: clamp(24px, 3vw, 36px);
  --t-body: clamp(15px, 1.05vw, 17px);
  --t-small: 13px;
  --t-eyebrow: 11px;

  /* Spacing — gutters scale with viewport */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 180px);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadows — Apple-style */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.5, 1.6, 0.4, 1);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #0A0A0A;
  --bg-tint: #141414;
  --fg: #F5F5F5;
  --fg-soft: #D8D8D8;
  --fg-mute: #888888;
  --fg-faint: #555555;
  --line: #1F1F1F;
  --line-strong: #2B2B2B;
  --accent: #D4704F;
  --accent-soft: rgba(212, 112, 79, 0.14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: 'ss01', 'cv11';
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: #FFFFFF; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }
.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: var(--t-small); letter-spacing: 0.02em; }

/* F-stop style scrollbar (desktop only) */
@media (hover: hover) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: var(--r-pill);
    border: 2px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--fg-mute); }
}

/* =========================================================================
   TYPOGRAPHY HELPERS
   ========================================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.accent-text { color: var(--accent); }

/* =========================================================================
   NAV
   ========================================================================= */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), padding 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.site-nav.is-scrolled { border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px; }

.brand {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
}
.brand-aperture {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.6s var(--ease-out);
}
.brand:hover .brand-aperture { transform: rotate(60deg); }
.brand-name { display: inline-flex; align-items: flex-start; gap: 0; }
.brand-name sup {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-left: 4px;
  align-self: flex-start;
  padding-top: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--fg-soft);
  transition: color 0.2s var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset: auto 50% 2px 50%;
  height: 1px;
  background: currentColor;
  transition: inset 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { inset: auto 0 2px 0; }
.nav-links a.is-active,
.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.nav-link-ig {
  font-size: 13px;
  color: var(--fg-mute);
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.nav-link-ig:hover { color: var(--fg); }

.theme-toggle {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 2px;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.theme-toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fg);
  transform: translateX(0);
  transition: transform 0.3s var(--ease-snap), background 0.3s var(--ease-out);
}
[data-theme="dark"] .theme-toggle-knob { transform: translateX(16px); }

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
  padding: 0;
}
.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out), opacity 0.2s linear;
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 21px; }
.hamburger.is-open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-link-ig { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu-meta {
  position: absolute;
  bottom: var(--gutter);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* =========================================================================
   HERO — Editorial layout (Jim's pattern) with brand aperture in meta
   ========================================================================= */
.hero {
  padding: calc(var(--section-y) + 60px) var(--gutter) var(--section-y);
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-meta-aperture {
  width: 22px;
  height: 22px;
  color: var(--accent);
  animation: aperture-spin 24s linear infinite;
}
@keyframes aperture-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-meta-right {
  display: flex;
  gap: 32px;
  align-items: center;
}
.hero-meta-right span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.hero-title {
  font-size: var(--t-display);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 60px;
  color: var(--fg);
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-mute);
}
.hero-title .accent { color: var(--accent); font-style: normal; font-weight: 700; }

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-tint);
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.hero:hover .hero-image img { transform: scale(1.02); }

.hero-image-meta {
  position: absolute;
  inset: auto var(--gutter) var(--gutter) var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  pointer-events: none;
  gap: 24px;
}

/* =========================================================================
   SECTION HEADERS (used across pages)
   ========================================================================= */
.section-head {
  padding: var(--section-y) 0 clamp(40px, 5vw, 64px);
  max-width: 880px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 1px; background: var(--accent);
}
.section-title {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 22px;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-mute);
}
.section-title .accent { color: var(--accent); font-style: normal; }
.section-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-soft);
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 640px;
}
.section-lede em { font-style: italic; color: var(--fg-mute); }

/* =========================================================================
   WORK GRID (Selected Work + Arbeiten page)
   ========================================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.w-item {
  background: var(--bg-tint);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--r-md);
}
.w-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}
.w-item:hover img { transform: scale(1.025); }
.w-item .w-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.w-item:hover .w-overlay { opacity: 1; transform: none; }
.w-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.w-title {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Asymmetric grid pattern */
.w-1 { grid-column: span 4; aspect-ratio: 3/2; }
.w-2 { grid-column: span 2; aspect-ratio: 2/3; }
.w-3 { grid-column: span 2; aspect-ratio: 2/3; }
.w-4 { grid-column: span 2; aspect-ratio: 2/3; }
.w-5 { grid-column: span 2; aspect-ratio: 3/2; }
.w-6 { grid-column: span 2; aspect-ratio: 3/2; }
.w-7 { grid-column: span 4; aspect-ratio: 3/2; }
.w-8 { grid-column: span 3; aspect-ratio: 3/2; }
.w-9 { grid-column: span 3; aspect-ratio: 3/2; }

.work-foot {
  padding: 60px 0 var(--section-y);
}
.work-foot a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.work-foot a::after {
  content: '→';
  font-family: var(--font-sans);
  font-size: 14px;
  transition: transform 0.3s var(--ease-out);
}
.work-foot a:hover::after { transform: translateX(4px); }

/* =========================================================================
   EDITORIAL PROJECT LAYOUTS (Homepage — split / wide / stacked / trio)
   Each project gets its own full-width stage with rotating composition.
   Note: scoped under .project parent to avoid collision with single-project page.
   ========================================================================= */
.project {
  padding: 0 var(--gutter);
  margin-bottom: var(--section-y);
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}
.project:last-of-type { margin-bottom: var(--section-y); }

.project .project-meta { display: flex; flex-direction: column; gap: 18px; }
.project .project-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  gap: 12px;
  align-items: center;
}
.project .project-eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }
.project .project-title {
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 0;
}
.project .project-title em { font-style: italic; font-weight: 300; color: var(--fg-mute); }

.project .project-blurb {
  color: var(--fg-soft);
  max-width: 38ch;
  line-height: 1.6;
  font-size: 15px;
}

.project .project-credits {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 14px;
  color: var(--fg-soft);
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.project .project-credits dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  align-self: center;
}
.project .project-credits dd { font-weight: 500; }

.project .project-cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
}
.project .project-cta::after {
  content: '→';
  font-family: var(--font-sans);
  font-size: 14px;
  transition: transform 0.3s var(--ease-out);
}
.project:hover .project-cta::after { transform: translateX(4px); }

.project .project-image {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-tint);
}
.project .project-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.project:hover .project-image img { transform: scale(1.02); }

/* SPLIT layout: image | meta | image (centered, symmetrical) */
.project--split {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.project--split .project-image { aspect-ratio: 3 / 4; }
.project--split .project-meta { padding: 0 8px; text-align: center; align-items: center; }
.project--split .project-credits { width: 100%; max-width: 280px; }

/* WIDE layout: meta sidebar | big landscape image */
.project--wide {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 40px;
  align-items: start;
}
.project--wide .project-meta { padding-top: 20px; }
.project--wide .project-image { aspect-ratio: 16 / 9; }

/* STACKED layout: meta on left, 3 images asymmetric overlap on right */
.project--stacked {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: center;
}
.project--stacked .stacked-images {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.project--stacked .stacked-images > *:nth-child(1) { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 3/4; }
.project--stacked .stacked-images > *:nth-child(2) { grid-column: 2; grid-row: 1; aspect-ratio: 4/3; margin-top: 40px; }
.project--stacked .stacked-images > *:nth-child(3) { grid-column: 2; grid-row: 2; aspect-ratio: 4/3; margin-bottom: 40px; }

/* TRIO layout: 3 portraits row + meta below */
.project--trio {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.project--trio .trio-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.project--trio .trio-images > * { aspect-ratio: 3/4; }
.project--trio .project-meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.project--trio .project-credits { border-top: none; padding-top: 0; }

@media (max-width: 900px) {
  .project--split, .project--wide, .project--stacked {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project--split .project-image { aspect-ratio: 4/5; }
  .project--split .project-meta { text-align: left; align-items: flex-start; padding: 0; }
  .project--stacked .stacked-images { grid-template-columns: 1fr 1fr; }
  .project--stacked .stacked-images > *:nth-child(1) { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16/9; }
  .project--stacked .stacked-images > *:nth-child(2) { grid-column: 1; grid-row: 2; margin: 0; }
  .project--stacked .stacked-images > *:nth-child(3) { grid-column: 2; grid-row: 2; margin: 0; }
  .project--trio .trio-images { grid-template-columns: 1fr 1fr; }
  .project--trio .trio-images > *:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .project--trio .project-meta { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   ARBEITEN PAGE (filter)
   ========================================================================= */
.work-page-hero {
  padding: calc(var(--section-y) + 60px) var(--gutter) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.work-page-hero-inner { max-width: 920px; }

.filter-bar {
  padding: clamp(28px, 3vw, 36px) var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
}
.filter-bar .filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-right: 4px;
}
.filter-tab {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--fg-mute);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s var(--ease-out);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.filter-tab:hover { color: var(--fg); }
.filter-tab.active { color: var(--accent); font-weight: 500; }
.filter-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  font-feature-settings: "tnum" 1;
}
.filter-tab.active .filter-count { color: var(--accent); }

.work-page-grid {
  padding: clamp(40px, 5vw, 72px) var(--gutter) var(--section-y);
}
.work-page-grid .w-item.is-hidden { display: none; }

/* =========================================================================
   TWO-LANE FLUENT (Events & Portraits on home)
   ========================================================================= */
.two-lane {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tl-header { max-width: 880px; margin-bottom: 48px; }
.tl-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-rows: 1.4fr 1fr;
  gap: 14px;
  min-height: 540px;
}
.tl-text { grid-column: 1; grid-row: 1; padding-right: 24px; display: flex; flex-direction: column; justify-content: center; }
.tl-img {
  background: var(--bg-tint);
  overflow: hidden;
  position: relative;
  border-radius: var(--r-md);
}
.tl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease-out); }
.tl-img:hover img { transform: scale(1.025); }
.tl-img-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.tl-1 { grid-column: 2; grid-row: 1; }
.tl-2 { grid-column: 1; grid-row: 2; }
.tl-3 { grid-column: 2; grid-row: 2; }
.tl-cta-row { display: flex; flex-direction: column; gap: 18px; }
.tl-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tl-cta::after {
  content: '↗';
  transition: transform 0.25s var(--ease-out);
}
.tl-cta:hover::after { transform: translate(2px, -2px); }

/* =========================================================================
   STUDIO PAGE
   ========================================================================= */
.studio-hero {
  padding: calc(var(--section-y) + 60px) var(--gutter) var(--section-y);
  border-bottom: 1px solid var(--line);
}
.studio-hero-inner { max-width: 1100px; }
.studio-statement {
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 36px;
}
.studio-statement em { font-style: italic; font-weight: 300; color: var(--fg-mute); }
.studio-statement .accent { color: var(--accent); font-style: normal; }
.studio-lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--fg-soft);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 720px;
}
.studio-lede em { font-style: italic; color: var(--fg-mute); }

.team-section { padding: var(--section-y) var(--gutter); border-bottom: 1px solid var(--line); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.team-member { display: flex; flex-direction: column; gap: 18px; }
.member-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  display: grid;
  place-items: center;
}
.member-portrait::before {
  content: '';
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-soft), transparent 60%);
  filter: blur(28px);
}
.member-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: transform 0.8s var(--ease-out); }
.team-member:hover .member-portrait img { transform: scale(1.03); }
.member-portrait .initial {
  position: relative;
  z-index: 1;
  font-size: clamp(96px, 14vw, 200px);
  font-weight: 200;
  letter-spacing: -0.06em;
  color: var(--fg-faint);
  line-height: 1;
}
.member-portrait .placeholder-tag {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--fg-faint);
  text-transform: uppercase;
  z-index: 3;
}
.member-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.member-name {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.member-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.member-bio {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 50ch;
}
.member-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.member-link::after {
  content: '↗';
  transition: transform 0.25s var(--ease-out);
}
.member-link:hover::after { transform: translate(2px, -2px); }

.approach-section { padding: var(--section-y) var(--gutter); border-bottom: 1px solid var(--line); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 48px;
}
.principle { border-top: 1px solid var(--line); padding-top: 28px; }
.principle-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.principle-word {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 14px;
  line-height: 1.05;
}
.principle-text {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 320px;
}

/* =========================================================================
   SINGLE PROJECT PAGE
   ========================================================================= */
.project-header {
  padding: calc(var(--section-y) + 60px) var(--gutter) clamp(40px, 5vw, 64px);
  max-width: 880px;
  margin: 0 auto;
}
.project-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.project-eyebrow .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.project-title {
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 22px;
}
.project-title em { font-style: italic; font-weight: 300; color: var(--fg-mute); }
.project-subtitle {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--fg-soft);
  line-height: 1.5;
  max-width: 640px;
}

.project-hero {
  margin: 0 var(--gutter);
  width: calc(100% - calc(var(--gutter) * 2));
  aspect-ratio: 16/9;
  background: var(--bg-tint);
  overflow: hidden;
  border-radius: var(--r-md);
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: clamp(40px, 5vw, 72px) var(--gutter);
  max-width: 1320px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
}
.meta-value { font-size: 15px; color: var(--fg); font-weight: 500; }

.project-gallery { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; max-width: 1320px; margin: 0 auto; }
.gallery-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.gallery-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.g-item {
  background: var(--bg-tint);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: var(--r-md);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.g-item:hover img { transform: scale(1.025); }
.g-1 { grid-column: span 4; aspect-ratio: 3/2; }
.g-2 { grid-column: span 2; aspect-ratio: 2/3; }
.g-3 { grid-column: span 2; aspect-ratio: 2/3; }
.g-4 { grid-column: span 2; aspect-ratio: 2/3; }
.g-5 { grid-column: span 2; aspect-ratio: 2/3; }
.g-6 { grid-column: span 4; aspect-ratio: 3/2; }
.g-7 { grid-column: span 2; aspect-ratio: 3/2; }
.g-8 { grid-column: span 3; aspect-ratio: 3/2; }
.g-9 { grid-column: span 3; aspect-ratio: 3/2; }

.project-footer {
  padding: var(--section-y) var(--gutter) clamp(40px, 5vw, 64px);
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.back-link::before {
  content: '←';
  font-family: var(--font-sans);
  font-size: 14px;
  transition: transform 0.25s var(--ease-out);
}
.back-link:hover::before { transform: translateX(-3px); }
.next-project {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  color: var(--fg);
}
.next-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.next-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.next-title::after {
  content: '→';
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
}
.next-project:hover .next-title::after { transform: translateX(4px); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact {
  padding: var(--section-y) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-eyebrow::before, .contact-eyebrow::after {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.contact-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg-mute);
  line-height: 1.15;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.contact-headline em { font-style: italic; color: var(--fg); font-weight: 600; }
.contact-email {
  display: inline-block;
  font-size: clamp(36px, 7vw, 110px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  position: relative;
  padding: 0 8px;
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}
.contact-email::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.contact-email:hover { color: var(--accent); }
.contact-email:hover::after { transform: scaleX(1); }
.contact-email.copied { color: var(--accent); }
.contact-email.copied::after { transform: scaleX(1); }
.contact-hint {
  display: block;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.contact-hint a { color: var(--fg-mute); transition: color 0.2s var(--ease-out); }
.contact-hint a:hover { color: var(--accent); }

.inquiry-form-wrap { max-width: 560px; margin: 80px auto 0; text-align: left; }

/* =========================================================================
   SITE FOOTER
   ========================================================================= */
.site-footer {
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gutter);
  font-size: 13px;
  color: var(--fg-soft);
}
.footer-col-title {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.footer-brand .brand { font-size: 18px; margin-bottom: 14px; }
.footer-brand p { color: var(--fg-mute); max-width: 30ch; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { transition: color 0.2s var(--ease-out); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .tl-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; min-height: 0; }
  .tl-text, .tl-1, .tl-2, .tl-3 { grid-column: 1; }
  .tl-text { grid-row: 1; padding-right: 0; padding-bottom: 8px; }
  .tl-1 { grid-row: 2; aspect-ratio: 16/9; }
  .tl-2 { grid-row: 3; aspect-ratio: 16/9; }
  .tl-3 { grid-row: 4; aspect-ratio: 16/9; }
  .team-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-meta { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .w-1, .w-5, .w-6, .w-7 { grid-column: span 2; aspect-ratio: 3/2; }
  .w-2, .w-3, .w-4 { grid-column: span 1; aspect-ratio: 2/3; }
  .w-8, .w-9 { grid-column: span 2; aspect-ratio: 3/2; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .g-1, .g-6, .g-7, .g-8, .g-9 { grid-column: span 2; aspect-ratio: 3/2; }
  .g-2, .g-3, .g-4, .g-5 { grid-column: span 1; aspect-ratio: 2/3; }
  .filter-bar { gap: 18px; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .hero-meta-right { gap: 16px; }
}

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