/* ============================================
   CREATEXODUS — Project Page Styles
   Same frame as the homepage: black page,
   rounded cards, nav tab, three typefaces.
   ============================================ */

:root {
  --black: #000000;
  --inset: 15px;
  --radius: 40px;

  --hero-0: #05090f;
  --hero-1: #0b1a2c;
  --hero-2: #163a5c;
  --hero-text: #f2f4f8;

  --card: #eceef2;
  --card-hi: #f7f8fa;
  --card-lo: #e3e6eb;
  --tile: #dfe2e7;
  --ink: #424242;
  --ink-2: #6b6b6b;
  --ink-3: #888888;
  --ink-4: #b4b8c0;
  --rule: rgba(0, 0, 0, 0.09);

  --dark-text: #f2f4f8;
  --dark-muted: #8d9199;

  --sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Hedvig Letters Serif', Georgia, 'Times New Roman', serif;
  --display: 'Playfair Display', 'Hedvig Letters Serif', Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(24px, 5vw, 80px);
  --gap: clamp(12px, 1.6vw, 20px);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
  background: #171a21;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.4;
  padding: var(--inset);
  background: transparent;
}
/* Glass frame: a blurred ambient loop of the hero footage (js/glass.js adds a
   tiny <video class="ambient">) sits behind the page; the frame is a lit glass
   sheet over it, the same material as the nav tab. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("../assets/ambient.jpg") center / cover no-repeat;
  filter: brightness(0.66) saturate(1.15);
}
.ambient {
  position: fixed;
  top: -10vh; left: -10vw;
  width: 120vw; height: 120vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  filter: brightness(0.66) saturate(1.15);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.04) 50%, transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 50%, rgba(0,0,0,0.05) 100%),
    rgba(20,22,28,0.26);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; color: inherit; font-family: inherit; }
ul { list-style: none; }
::selection { background: #1a3550; color: #fff; }

.container { width: 100%; }

/* ============================================
   NAV TAB (same as homepage)
   ============================================ */
.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition: opacity 0.4s ease 0s, transform 0.5s var(--ease), visibility 0s linear 0.4s;
  white-space: nowrap;
  overflow: hidden;
}
.nav-group--l { justify-content: flex-end; }
.nav-group--r { justify-content: flex-start; }
.nav-group { min-width: 0; padding: 0; }
.nav-link {
  font-family: 'Inter', var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: opacity 0.3s;
}
.nav-link { position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); opacity: 0.8; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-logo { display: block; height: 22px; width: auto; justify-self: center; margin-top: -6px; }
.nav-logo img { height: 100%; width: auto; }
.nav-toggle { position: absolute; inset: 0; display: none; }

/* ============================================
   CARDS
   ============================================ */
.proj-hero,
.proj-media,
.gfx-stack,
.proj-nav-bottom {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 0 1px rgba(255,255,255,0.09),
    0 1px 0 1px rgba(0,0,0,0.35),
    0 24px 70px rgba(0,0,0,0.45);
}
.proj-media, .gfx-stack, .proj-nav-bottom { margin-top: var(--inset); }

/* Light card */
.proj-media, .gfx-stack {
  background: linear-gradient(160deg, var(--card-lo) 0%, var(--card-hi) 34%, var(--card) 52%, var(--card-hi) 78%, var(--card-lo) 100%);
  padding: clamp(40px, 6vh, 80px) var(--gutter) clamp(56px, 8vh, 100px);
}
.proj-media::before, .gfx-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 85% 12%, rgba(255,255,255,0.7), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255,255,255,0.45), transparent 70%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
}
.proj-media > *, .gfx-stack > * { position: relative; }

/* ============================================
   HERO (dark card)
   ============================================ */
.proj-hero {
  min-height: min(72vh, 720px);
  background:
    radial-gradient(ellipse 70% 80% at 15% 10%, var(--hero-2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 90%, #123456 0%, transparent 60%),
    radial-gradient(ellipse 80% 70% at 50% 50%, var(--hero-1), var(--hero-0) 100%);
  color: var(--hero-text);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px var(--gutter) clamp(40px, 6vh, 64px);
}
.proj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.proj-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.5) 100%);
}
.proj-hero .container { position: relative; z-index: 1; }

.proj-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proj-hero-label span:nth-child(1) {
  font-family: var(--serif);
  font-weight: 400;
  color: rgba(242,244,248,0.6);
}
.proj-hero-label span:nth-child(1)::before { content: '( '; }
.proj-hero-label span:nth-child(1)::after { content: ' )'; }
.proj-hero-label span:nth-child(2) { display: none; }
.proj-hero-label span:nth-child(3) { color: var(--hero-text); }

.proj-hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(56px, 10vw, 148px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--hero-text);
  margin-bottom: 28px;
  max-width: 14ch;
}

.proj-ig-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.55);
  margin: -8px 0 22px;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.proj-ig-link:hover { color: #fff; transform: scale(1.08); }

.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-tag {
  padding: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242,244,248,0.85);
}
.proj-tag + .proj-tag::before { content: '·'; margin: 0 12px 0 4px; color: rgba(242,244,248,0.4); }

.proj-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 64px);
  margin-top: clamp(36px, 5vh, 56px);
  padding-top: clamp(22px, 3vh, 32px);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.proj-details--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proj-detail-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242,244,248,0.55);
  margin-bottom: 8px;
}
.proj-detail-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--hero-text);
}

/* ============================================
   MEDIA GRID (light card)
   ============================================ */
.proj-media-grid { display: grid; gap: var(--gap); }
.proj-media-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.proj-media-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.proj-media-full,
.proj-media-half,
.proj-media-third,
.proj-media-vertical {
  border-radius: 20px;
  overflow: hidden;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-media-full { width: 100%; aspect-ratio: 16 / 9; }
.proj-media-half { aspect-ratio: 3 / 4; }
.proj-media-third { aspect-ratio: 4 / 5; }
.proj-media-vertical { aspect-ratio: 9 / 16; border-radius: 16px; }

.proj-media-full img, .proj-media-full video,
.proj-media-half img, .proj-media-half video,
.proj-media-third img, .proj-media-third video,
.proj-media-vertical img, .proj-media-vertical video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-media-full img, .proj-media-half img, .proj-media-third img, .proj-video-preview video {
  height: 114%;
  margin-top: -7%;
}

.proj-vertical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  max-width: 900px;
  margin: 0 auto;
}
.proj-media-grid > .proj-vertical-grid { width: 100%; }

.media-placeholder {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Section headings inside a gallery (Real Estate) */
.proj-media-heading {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: clamp(32px, 5vh, 56px) 0 6px;
}
.proj-media-grid > .proj-media-heading:first-child { margin-top: 0; }

.proj-media-section-label {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 0 6px;
  border-top: 1px solid var(--rule);
  margin-top: clamp(16px, 2vw, 28px);
}
.proj-media-section-label:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* Video preview with play button */
.proj-video-preview { position: relative; cursor: pointer; }
.proj-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  z-index: 2;
}
.proj-video-preview:hover .proj-play-btn { background: rgba(0,0,0,0.1); }
.proj-play-btn svg { opacity: 0.9; transition: transform 0.4s var(--ease); }
.proj-video-preview:hover .proj-play-btn svg { transform: scale(1.08); }

/* Tabs */
.proj-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.proj-tabs { gap: 24px; border-bottom: 1px solid var(--rule); }
.proj-tab {
  position: relative;
  padding: 10px 0 14px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.3s;
}
.proj-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.proj-tab:hover { color: var(--ink); }
.proj-tab.active { color: var(--ink); }
.proj-tab.active::after { transform: scaleX(1); }
.proj-tab-content { display: none; }
.proj-tab-content.active { display: block; }

/* ============================================
   VIDEO LIGHTBOX
   ============================================ */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.video-lightbox.active { opacity: 1; visibility: visible; }
.video-lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 2001;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.video-lightbox-close:hover { background: rgba(255,255,255,0.15); transform: scale(1.05); }
.video-lightbox-inner {
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.5s var(--ease);
}
.video-lightbox.active .video-lightbox-inner { transform: none; }
.video-lightbox-inner video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ============================================
   PREV / NEXT (dark card)
   ============================================ */
.proj-nav-bottom {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,0.09), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 60%, rgba(0,0,0,0.04) 100%),
    rgba(20,22,28,0.26);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 10px 30px rgba(0,0,0,0.22),
    0 2px 6px rgba(0,0,0,0.12);
  color: var(--dark-text);
  padding: clamp(40px, 6vh, 72px) var(--gutter);
}
.proj-nav-bottom .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.proj-nav-item { display: flex; flex-direction: column; min-width: 0; }
.proj-nav-bottom .container { gap: clamp(24px, 4vw, 64px); align-items: start; }
.proj-nav-item--next { align-items: flex-end; text-align: right; }
.proj-nav-item--prev { align-items: flex-start; text-align: left; }
.proj-next-label, .proj-prev-label {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 14px;
}
.proj-next-title, .proj-prev-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  transition: opacity 0.3s;
}
.proj-next-title:hover, .proj-prev-title:hover { opacity: 0.65; }
.proj-next-title svg, .proj-prev-title svg { flex-shrink: 0; width: 26px; height: 26px; transition: transform 0.5s var(--ease); }
.proj-next-title:hover svg { transform: translateX(6px); }
.proj-prev-title:hover svg { transform: translateX(-6px); }

/* ============================================
   FOOTER (same as homepage)
   ============================================ */
.footer {
  padding: clamp(48px, 7vh, 80px) clamp(10px, 3vw, 50px) 0;
  color: var(--dark-text);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px clamp(40px, 8vw, 160px);
  align-items: start;
}
.footer-logo { display: block; height: 26px; width: auto; margin-bottom: 28px; }
.footer-logo img { height: 100%; width: auto; }
.footer-name {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin: -14px 0 20px;
}
.footer-blurb {
  max-width: 520px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--dark-muted);
}
.footer-social { display: flex; gap: 18px; margin-top: 32px; }
.footer-social a { color: var(--dark-muted); transition: color 0.3s; display: block; }
.footer-social a:hover { color: #fff; }
.footer-cols { display: grid; gap: 34px; padding-top: 6px; }
.eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.footer-col .eyebrow { display: block; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 3vw, 40px); }
.footer-col a {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8b8b8;
  transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }
.footer-bar {
  margin-top: clamp(48px, 7vh, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 36px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,0.09), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 60%, rgba(0,0,0,0.04) 100%),
    rgba(20,22,28,0.26);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 10px 30px rgba(0,0,0,0.22),
    0 2px 6px rgba(0,0,0,0.12);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-bar .serif { font-family: var(--serif); font-weight: 400; }
.footer-bar-l { display: flex; align-items: center; gap: 12px; }
.footer-bar .hero-mark { height: 12px; width: auto; opacity: 0.9; }
.footer-bar-r { text-align: right; display: flex; justify-content: flex-end; gap: 14px; }

/* ============================================
   REVEALS
   ============================================ */
.proj-tags,
.proj-details,
.proj-media-full,
.proj-media-half,
.proj-media-third,
.proj-media-vertical,
.proj-nav-item,
.gfx-tile,
.gfx-feature-aside {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}
.revealed { opacity: 1 !important; transform: translateY(0) !important; }

/* ============================================
   GRAPHIC DESIGN — editorial showcase (body.gfx-page)
   ============================================ */
.gfx-page .gfx-stack > .container { max-width: 1080px; margin: 0 auto; }
.gfx-page .gfx-chapter { margin-top: clamp(56px, 7vw, 104px); display: grid; gap: clamp(20px, 3vw, 40px); }
.gfx-page .gfx-chapter:first-child { margin-top: 0; }

.gfx-page .gfx-chapter-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 8px;
  align-items: baseline;
  padding-bottom: clamp(14px, 1.6vw, 20px);
  border-bottom: 1px solid var(--rule);
}
.gfx-page .gfx-chapter-num {
  grid-row: 1;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  line-height: 1;
}
.gfx-page .gfx-chapter-title {
  grid-row: 1;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.gfx-page .gfx-chapter-sub {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

.gfx-page .gfx-pair { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.gfx-page .gfx-pair-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.gfx-page .gfx-pair-label span { font-family: var(--serif); color: var(--ink-3); }

.gfx-page .gfx-row { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.gfx-page .gfx-row--two { grid-template-columns: 1fr 1fr; }
.gfx-page .gfx-row--three { grid-template-columns: repeat(3, 1fr); }
.gfx-page .gfx-row--lead { grid-template-columns: 7fr 4fr; align-items: end; }

.gfx-page .gfx-tile {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tile);
  display: flex;
  flex-direction: column;
  position: relative;
}
.gfx-page .gfx-tile img { width: 100%; height: auto; display: block; }
.gfx-page .gfx-tile figcaption {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 14px 18px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.gfx-page .gfx-tile figcaption span { font-family: var(--serif); color: var(--ink-3); }

.gfx-page .gfx-tile--ink { background: linear-gradient(135deg, #faf6ed 0%, #ece5d2 100%); }
.gfx-page .gfx-tile--ink img { mix-blend-mode: multiply; padding: clamp(22px, 4vw, 56px); }
.gfx-page .gfx-tile--ink figcaption { color: rgba(20,24,40,0.6); border-top: 1px solid rgba(20,24,40,0.08); }

.gfx-page .gfx-tile--soft { background: linear-gradient(160deg, #1a2038 0%, #14182a 100%); }
.gfx-page .gfx-tile--soft img { padding: clamp(24px, 4vw, 56px); }
.gfx-page .gfx-tile--soft figcaption { color: rgba(255,255,255,0.6); }
.gfx-page .gfx-tile--soft figcaption span { color: rgba(255,255,255,0.4); }

.gfx-page .gfx-tile--print img { padding: 0; }
.gfx-page .gfx-tile--lead { align-self: stretch; }
.gfx-page .gfx-tile--mono { align-self: end; }

.gfx-page .gfx-feature {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3vw, 40px) 0;
}
.gfx-page .gfx-tile--phone { max-width: 320px; width: 100%; border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,0.18); }
.gfx-page .gfx-tile--phone img { padding: 0; }
.gfx-page .gfx-tile--phone figcaption { position: absolute; bottom: -28px; left: 0; padding: 0; }

.gfx-page .gfx-feature-aside { display: grid; gap: 16px; max-width: 44ch; }
.gfx-page .gfx-feature-tag { font-family: var(--serif); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.gfx-page .gfx-feature-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
}
.gfx-page .gfx-feature-list { display: grid; gap: 8px; border-top: 1px solid var(--rule); padding-top: 16px; }
.gfx-page .gfx-feature-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-2);
}
.gfx-page .gfx-feature-list li span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .proj-details, .proj-details--4 { grid-template-columns: 1fr 1fr; }
  .proj-media-trio { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --radius: 28px; --inset: 10px; }
  body { padding: var(--inset); }

  .nav-logo { height: 20px; }
  .nav-toggle { display: block; }

  .proj-hero { min-height: 0; padding: 110px 22px 36px; }
  .proj-hero-title { font-size: clamp(40px, 12vw, 64px); margin-bottom: 20px; }
  .proj-hero-label { font-size: 10px; }
  .proj-tag { font-size: 9px; }
  .proj-details, .proj-details--4 { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .proj-detail-label { font-size: 9.5px; margin-bottom: 5px; }
  .proj-detail-value { font-size: 13px; }
  .proj-tab { font-size: 10px; }
  .proj-media-heading { font-size: 20px; }
  .proj-next-label, .proj-prev-label { font-size: 10px; }
  .footer-blurb { font-size: 13.5px; }
  .footer-col a { font-size: 9.5px; padding: 8px 12px; }
  .footer-bar { font-size: 10.5px; }
  .eyebrow { font-size: 10px; }
  .wk-intro { font-size: 13.5px; }
  .wk-filter { font-size: 10px; padding: 10px 14px; }
  .proj-media, .gfx-stack { padding: 32px 14px 48px; }
  .proj-video-preview video { height: 100%; margin-top: 0; }
  .proj-video-preview.is-inline .proj-play-btn { display: none; }
  .proj-media-full, .proj-media-half, .proj-media-third { border-radius: 14px; }
  .proj-media-row, .proj-media-trio { grid-template-columns: 1fr; }
  .proj-media-half { aspect-ratio: 4 / 5; }
  .proj-nav-bottom { padding: 36px 22px; }
  .proj-nav-bottom .container { grid-template-columns: 1fr; gap: 28px; }
  .proj-nav-item--next { align-items: flex-start; text-align: left; }
  .proj-next-title, .proj-prev-title { font-size: clamp(24px, 7.5vw, 34px); }

  .footer { padding: 48px 4px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bar { grid-template-columns: 1fr; text-align: center; gap: 10px; padding: 18px 20px; border-radius: 24px; }
  .footer-bar-l, .footer-bar-r { justify-content: center; }
  .footer-bar-r { text-align: center; }

  .video-lightbox-inner { width: 95vw; border-radius: 10px; }
  .video-lightbox-close { top: 16px; right: 16px; }
  .proj-play-btn svg { width: 48px; height: 48px; }

  .gfx-page .gfx-row--lead, .gfx-page .gfx-row--two { grid-template-columns: 1fr; }
  .gfx-page .gfx-row--three { grid-template-columns: 1fr 1fr; }
  .gfx-page .gfx-feature { grid-template-columns: 1fr; justify-items: center; }
  .gfx-page .gfx-tile--phone { max-width: 260px; }
  .gfx-page .gfx-feature-aside { max-width: 100%; }
}
@media (max-width: 480px) {
  .gfx-page .gfx-row--three { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .proj-hero-title, .proj-hero-label, .proj-tags, .proj-details,
  .proj-media-full, .proj-media-half, .proj-media-third, .proj-media-vertical,
  .proj-media-heading, .proj-nav-item, .gfx-chapter-head, .gfx-tile, .gfx-feature-aside {
    transition-duration: 0.4s;
  }
}


/* ---- Liquid glass: lensing + adaptive tint ---- */
.has-lens .footer-bar {
  -webkit-backdrop-filter: blur(14px) saturate(1.8) url(#lg-lens-pill);
  backdrop-filter: blur(14px) saturate(1.8) url(#lg-lens-pill);
}

/* ---- Text motion masks (js/motion.js) ---- */
.mw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.14em 0.04em 0.16em; margin: -0.14em -0.04em -0.16em; }
.mi { display: inline-block; will-change: transform; }
.ms { display: inline; white-space: normal; }
.mword { display: inline-block; white-space: nowrap; }
.cs-l1 .ms, .cs-l2 .ms { white-space: nowrap; }

/* ---- Links and buttons: no bubbles. Text + animated underline, squared primaries ---- */
.footer-col ul { gap: 12px clamp(22px, 3vw, 36px); }
.footer-col a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #d0d0d0;
  transition: color 0.3s;
}
.footer-col a::after, .u-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-col a:hover::after { transform: scaleX(1); }
.footer-social a {
  width: auto; height: auto;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--dark-muted);
  transition: color 0.3s, transform 0.5s var(--ease);
}
.footer-social a:hover { color: #fff; transform: translateY(-2px); }
.footer-bar-l, .footer-bar-c, .footer-bar-r { color: #eaeaea; }
a:focus-visible, button:focus-visible, .row:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
  border-radius: 6px;
}
.card a:focus-visible, .card button:focus-visible { outline-color: rgba(0,0,0,0.6); }

/* ---- Compact footer on phones ---- */
@media (max-width: 768px) {
  .footer { padding: 30px 6px 0; }
  .footer-grid { gap: 22px; }
  .footer-logo { height: 20px; margin-bottom: 16px; }
  .footer-name { font-size: 11px; margin: -6px 0 10px; }
  .footer-blurb { font-size: 12.5px; line-height: 1.5; max-width: 36ch; }
  .footer-social { margin-top: 16px; gap: 10px; }
  .footer-social a { width: 32px; height: 32px; }
  .footer-social svg { width: 15px; height: 15px; }
  .footer-cols { gap: 16px; padding-top: 0; }
  .footer-col .eyebrow { margin-bottom: 8px; font-size: 9.5px; }
  .footer-col ul { gap: 6px; }
  .footer-col a { font-size: 9px; padding: 7px 10px; }
  .footer-bar { margin-top: 26px; padding: 12px 16px; gap: 3px; border-radius: 18px; font-size: 9.5px; line-height: 1.5; }
  .footer-bar-c { order: -1; font-size: 10.5px; letter-spacing: 0.06em; }
  .footer-bar-l { gap: 8px; }
  .footer-bar .hero-mark { height: 9px; }
  .footer-bar-r { gap: 10px; }
}

/* Open mobile menu: always dark glass, whatever sits behind it */
@media (max-width: 768px) {
}

.nav-toggle { left: calc(50% - var(--nav-w) / 2); width: var(--nav-w); }

/* Over light cards: light glass, dark text */

@media (max-width: 768px) {
}

/* ============================================
   NAV TAB — one continuous glass shape.
   The element is the tab plus its two shoulders; js/glass.js keeps a single
   clip-path (shoulders + rounded bottom) in step with the element's size, so
   blur, tint and inner light run unbroken around the whole outline.
   ============================================ */
.nav {
  --nav-r: 25px;
  position: fixed;
  top: 0; left: 0; right: 0;
  margin-inline: auto;
  z-index: 1000;
  width: 230px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: calc(var(--nav-r) + 22px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 55%, rgba(0,0,0,0.04) 100%),
    rgba(20,22,28,0.30);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow:
    inset 0 -16px 24px -16px rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.10);
  transition: width 0.7s var(--ease), background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}
.nav:hover { width: 820px; column-gap: clamp(28px, 4vw, 64px); }
.nav-logo { min-width: max-content; }
.nav:hover .nav-group {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.15s, transform 0.6s var(--ease) 0.1s, visibility 0s;
}
.nav-toggle { left: var(--nav-r); right: var(--nav-r); width: auto; }

/* Over light cards: light glass, dark text */
.nav.on-light {
  color: #151515;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.40) 100%),
    rgba(240,242,246,0.30);
  box-shadow:
    inset 0 -16px 24px -16px rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(255,255,255,0.7);
}
.nav.on-light .nav-link { color: #151515; text-shadow: none; }
.nav.on-light .nav-logo img { filter: brightness(0); opacity: 0.85; }

@media (max-width: 768px) {
  .nav { width: 190px; height: 46px; padding-inline: calc(var(--nav-r) + 12px); transition: background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease; }
  .nav:hover { width: 190px; }
  .nav:hover .nav-group { opacity: 0; visibility: hidden; }
}

/* ---- Phones: keep the look, drop the per-frame blur work that makes menus stutter ---- */
@media (max-width: 768px) {
  .ambient { display: none; }
  body::before { filter: brightness(0.62) saturate(1.15) blur(14px); transform: scale(1.08); }
  body::after {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 50%, rgba(0,0,0,0.05) 100%),
      rgba(20,22,28,0.34);
  }
  .nav { -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
  .footer-bar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

/* ---- Phone menu: a glass panel that slides down from behind the tab (transform only) ---- */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 980;
  background: rgba(6,8,12,0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.menu-open .menu-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.5s ease, visibility 0s; }
.menu-sheet {
  position: fixed;
  top: 0; left: 10px; right: 10px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 70px 24px 30px;
  max-height: calc(100vh - 20px);
  overflow: auto;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%),
    rgba(12,14,20,0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.14), 0 24px 60px rgba(0,0,0,0.45);
  transform: translateY(-102%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.65s var(--ease), visibility 0s linear 0.65s;
}
.menu-open .menu-sheet {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.65s var(--ease), visibility 0s;
}
.menu-sheet a {
  font-family: 'Inter', var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 10px 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
  transition-delay: 0s;
}
.menu-open .menu-sheet a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.18s + var(--i, 0) * 0.045s);
}
.menu-sheet-rule {
  width: 44px;
  height: 1px;
  background: rgba(255,255,255,0.28);
  margin: 8px 0 10px;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease) 0.25s;
}
.menu-open .menu-sheet-rule { transform: scaleX(1); }
.menu-sheet::before {
  content: '';
  position: absolute;
  top: 56px; left: 24px; right: 24px;
  height: 1px;
  background: rgba(255,255,255,0.14);
}
@media (min-width: 769px) { .menu-sheet, .menu-scrim { display: none; } }
