/* =========================================
   ARTISEMBLE — Styles
   2ix-inspired layout · Black-based theme
   ========================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors (Monochrome only) */
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;

  --text: #f5f5f5;
  --text-soft: #b8b8b8;
  --text-dim: #6a6a6a;
  --text-faint: #3d3d3d;

  --line: #1e1e1e;
  --line-soft: #2a2a2a;
  --line-strong: #3a3a3a;

  --white: #ffffff;

  /* Typography */
  --font-display: 'Unbounded', 'Pretendard Variable', sans-serif;
  --font-body: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;

  /* Sizing */
  --container-max: 1440px;
  --container-pad: clamp(24px, 5vw, 80px);
  --section-pad-y: clamp(100px, 14vh, 180px);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--white);
  color: var(--bg);
}

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

/* ---------- Custom Cursor ---------- */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--white);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid var(--white);
  transition: transform 0.15s var(--ease-out), width 0.4s var(--ease), height 0.4s var(--ease);
}

.cursor.is-hover {
  width: 0;
  height: 0;
  opacity: 0;
}

.cursor-follower.is-hover {
  width: 64px;
  height: 64px;
  background: var(--white);
  mix-blend-mode: difference;
}

@media (hover: none) {
  .cursor,
  .cursor-follower {
    display: none;
  }
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--container-pad);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.logo-slot {
  display: flex;
  align-items: center;
  height: 32px;
  min-width: 160px;
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--text);
}

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

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.4s var(--ease-out);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text);
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--container-pad);
  padding-bottom: clamp(40px, 6vh, 80px);
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.13) 0%, rgba(10,10,10,0.03) 30%, rgba(10,10,10,0.2) 70%, rgba(10,10,10,0.32) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.17) 0%, rgba(10,10,10,0) 50%);
}

/* Fallback background when no video present */
.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(40,40,40,0.8) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(30,30,30,0.6) 0%, transparent 50%),
  var(--bg);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 36px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: riseUp 1.1s var(--ease-out) forwards;
}

/* Interactive word: entrance animation stays on the WORD, individual chars are JS-controlled */
.hero-title .word.interactive-text {
  transform: translateY(110%);
  animation: riseUp 1.1s var(--ease-out) forwards;
}

.hero-title .word.interactive-text .char {
  display: inline-block;
  position: relative;
  /* No CSS animation here — JS sets transform on mousemove */
  transition: none;
}

.hero-title .line:nth-child(1) .word { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) .word { animation-delay: 0.5s; }

@keyframes riseUp {
  to { transform: translateY(0); }
}

/* ---------- General Interactive Text (anywhere, not just hero) ---------- */
/* Adds the mouse-repel effect to any text wrapped with .interactive-text */
.interactive-text {
  display: inline-block;
}

.interactive-text .char {
  display: inline-block;
  position: relative;
  transition: none;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.9s forwards;
}
.hero-sub em {
  font-style: normal;
  color: var(--white);
  font-weight: 600;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-bottom {
  position: absolute;
  bottom: clamp(32px, 5vh, 48px);
  left: var(--container-pad);
  right: var(--container-pad);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-soft);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.2s forwards;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--text-soft), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  animation: scrollSweep 2.5s ease-in-out infinite;
}

@keyframes scrollSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-meta {
  position: absolute;
  right: var(--container-pad);
  bottom: clamp(32px, 5vh, 48px);
  display: flex;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.2s forwards;
  z-index: 2;
}

/* ---------- Generic Section ---------- */
.section {
  position: relative;
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-num {
  color: var(--white);
  font-weight: 500;
}

.section-name {
  position: relative;
  padding-left: 20px;
}

.section-name::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--text-dim);
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 60px;
}

/* ---------- § 02 EMPATHY ---------- */
.empathy {
  padding: calc(var(--section-pad-y) * 0.7) 0;
}

/* Helper: line breaks that only appear on mobile */
.mobile-br { display: none; }
@media (max-width: 720px) {
  .mobile-br { display: inline; }
}

.empathy-lines {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.empathy-line {
  font-family: var(--font-body);
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 1.24;
  letter-spacing: -0.04em;
  color: var(--text-faint);
  font-weight: 800;
  padding: 18px 0;
  transition: color 1s var(--ease);
}

.empathy-line em {
  font-style: normal;
  color: var(--text-faint);
  transition: color 1s var(--ease);
}

.empathy-line.is-revealed {
  color: var(--text-soft);
}

.empathy-line.is-revealed em {
  color: var(--white);
  font-weight: 800;
}

.empathy-footer {
  margin-top: 48px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.empathy-footer.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.empathy-divider {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  margin: 0 auto 32px;
}

.empathy-footer p {
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

/* ---------- § 02 HOW IT WORKS ---------- */
.how-it-works {
  /* Use the same vertical rhythm as Why and other sections for consistency */
}

.how-it-works .section-title {
  margin-bottom: 90px;
  max-width: 1100px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Reuse the exact card styles from Why for visual consistency */
.how-card {
  position: relative;
  padding: 56px 48px 48px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  cursor: pointer;
  overflow: hidden;
}

.how-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.06) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.how-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.how-card:hover::before {
  opacity: 1;
}

.how-card .card-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 78%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.how-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.8) 32%, black 50%, black 100%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.8) 32%, black 50%, black 100%);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease-out);
  transform: scale(1.02);
}

.how-card:hover .card-media img {
  opacity: 1;
  transform: scale(1.05);
}

.how-card .card-num,
.how-card .card-title,
.how-card .card-desc {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .how-card {
    padding: 40px 28px 32px;
    min-height: 280px;
  }
  .how-card .card-media {
    width: 100%;
  }
}

/* ---------- § 03 WHY ---------- */
.why-headline {
  font-family: var(--font-body);
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.24;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text-soft);
  margin-bottom: 90px;
  max-width: 1100px;
}

.why-headline .emphasis {
  color: var(--white);
  font-weight: 800;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  position: relative;
  padding: 56px 48px 48px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  cursor: pointer;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.06) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.why-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.why-card:hover::before {
  opacity: 1;
}

.card-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.card-desc strong {
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* WHY CARD ONLY — Right-side decorative image with gradient fade into card bg.
   IMPORTANT: namespaced under .why-card so it does NOT leak into .service-card or .how-card,
   which need the image to fill the entire card (not just 78% on the right). */
.why-card .card-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 78%;           /* wider area for image */
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.why-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;        /* much more visible */
  /* Mask: fade only the leftmost portion so image shows clearly on right */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.8) 32%, black 50%, black 100%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.8) 32%, black 50%, black 100%);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease-out);
  transform: scale(1.02);
}

.why-card:hover .card-media img {
  opacity: 1;
  transform: scale(1.06);
}

/* Additional overlay: ONLY darkens leftmost area for text contrast, image stays clear on right */
.why-card .card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--bg-card) 0%,
    var(--bg-card) 10%,
    rgba(20,20,20,0.75) 20%,
    rgba(20,20,20,0.3) 35%,
    transparent 50%
  );
  pointer-events: none;
}

.why-card:hover .card-media::after {
  background: linear-gradient(to right,
    var(--bg-card-hover) 0%,
    var(--bg-card-hover) 10%,
    rgba(24,24,24,0.7) 20%,
    rgba(24,24,24,0.25) 35%,
    transparent 50%
  );
}

/* ---------- § 04 WORKS ---------- */
.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}

.works-header .section-title {
  margin-bottom: 0;
}

/* Video Portfolio title — keep on one row so filter stays on the right */
.works-title-video {
  white-space: nowrap;
  flex-shrink: 0;
}

.works-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

.filter-btn:hover {
  border-color: var(--text-soft);
  color: var(--white);
}

.filter-btn.is-active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-item {
  display: block;
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
  cursor: pointer;
}

.work-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.work-thumb.no-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 24px, rgba(255,255,255,0.02) 24px, rgba(255,255,255,0.02) 25px),
    linear-gradient(135deg, #151515, #1f1f1f);
}

.work-thumb.no-image::after {
  content: 'WORK IMAGE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-faint);
}

.work-item:hover .work-thumb img {
  transform: scale(1.06);
}

.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 14px 26px;
  background: rgba(245,245,245,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-out);
  pointer-events: none;
}

.work-item:hover .work-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- AI Patch (top-right corner badge on thumbnails) ---------- */
.ai-patch {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out), background 0.3s ease;
}
.work-item:hover .ai-patch,
.related-item:hover .ai-patch {
  background: rgba(0, 0, 0, 0.92);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .ai-patch {
    top: 8px;
    right: 8px;
    padding: 4px 9px;
    font-size: 9px;
    letter-spacing: 0.15em;
  }
}

.works-grid {
  /* hover dim removed — keep all cards at full opacity */
}

.work-info {
  padding-top: 4px;
}

.work-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.work-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.work-item.is-hidden {
  display: none;
}

.works-cta {
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text);
  border-bottom: 1px solid var(--text-dim);
  transition: border-color 0.3s var(--ease);
}

.link-arrow:hover {
  border-color: var(--white);
}

.link-arrow .arrow {
  transition: transform 0.4s var(--ease-out);
}

.link-arrow:hover .arrow {
  transform: translateX(8px);
}

/* ---------- § 05 CLIENTS ---------- */
.clients-headline {
  font-family: var(--font-body);
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 100px;
  max-width: 1100px;
}

.clients-headline em {
  font-style: normal;
  color: var(--text-soft);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.client-logo {
  position: relative;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
  overflow: hidden;
}

.client-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-smooth);
  z-index: 0;
}

.client-logo:hover::before {
  transform: translateY(0);
}

.client-logo img,
.client-fallback {
  position: relative;
  z-index: 1;
  max-width: 60%;
  max-height: 50%;
  object-fit: contain;
  filter: grayscale(1) brightness(2) contrast(0.5);
  opacity: 0.6;
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease), color 0.5s var(--ease);
}

.client-fallback {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  filter: none;
  opacity: 0.5;
}

.client-logo:hover img {
  filter: grayscale(0) brightness(0) invert(0);
  opacity: 1;
}

.client-logo:hover .client-fallback {
  color: var(--bg);
  opacity: 1;
}

.clients-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- § 06 TESTIMONIALS ---------- */
.testimonials .section-title {
  margin-bottom: 40px;
}

.testimonials {
  /* Reduce bottom padding specifically for testimonials */
  padding-bottom: calc(var(--section-pad-y) * 0.45);
  /* Allow cards to bleed beyond container edges */
  overflow: hidden;
}

.testimonial-carousel {
  position: relative;
  /* Extend beyond container for full-bleed arrangement */
  margin: 16px -40px 0;
  padding: 0 40px;
}

.testimonial-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 60px 0 40px;
  /* 3D perspective for coverflow depth */
  perspective: 1800px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Center the active card by adding padding equal to half of (viewport - card width) */
  /* Calc will be applied via JS or via ::before/::after spacers */
}

.testimonial-track::before,
.testimonial-track::after {
  content: '';
  flex: 0 0 calc(50vw - 230px); /* Half viewport minus half card width (460/2) */
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testi-card {
  position: relative;
  flex: 0 0 auto;
  width: 460px;
  scroll-snap-align: center;
  padding: 32px 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

/* Safeguard: nuke any quote-mark pseudo-element from older versions */
.testi-card::before,
.testi-card::after,
.testi-text::before,
.testi-text::after {
  content: none !important;
  display: none !important;
}

.testi-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.testi-text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 400;
}

.testi-text em {
  font-style: normal;
  color: var(--white);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 70%, rgba(255,255,255,0.08) 70%);
  padding: 0 2px;
}

.testi-meta {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: -0.005em;
}

/* ---------- Side Arrows ---------- */
.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              color 0.3s var(--ease), transform 0.3s var(--ease),
              opacity 0.3s var(--ease);
  padding: 0;
}

.testi-arrow-prev {
  left: 24px;
}

.testi-arrow-next {
  right: 24px;
}

.testi-arrow:hover:not(:disabled) {
  background: var(--white);
  border-color: var(--white);
  color: var(--bg);
  transform: translateY(-50%) scale(1.08);
}

.testi-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.testi-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.testi-arrow svg {
  display: block;
}

/* Legacy progress (hidden in new layout) */
.testi-nav {
  display: none;
}
.testi-progress { display: none; }

/* ---------- § 07 SERVICES ---------- */
.services-grid {
  display: grid;
  /* 6-column track: 6 cards × 2 cols each = 2 rows × 3 cards */
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/* All 6 cards span 2 columns → 2 rows × 3 cards */
.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3),
.service-card:nth-child(4),
.service-card:nth-child(5),
.service-card:nth-child(6) {
  grid-column: span 2;
}

.service-card {
  position: relative;
  padding: 44px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  transition: background 0.5s var(--ease);
  cursor: pointer;
  overflow: hidden;
}

/* Left column: number + title + desc */
.service-card .service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* Background image slot — same pattern as how-card / why-card */
/* Background image: COVER guarantees the card is fully filled, image preserves aspect ratio, shorter side crops */
/* IMPORTANT: explicitly set width/left/right/top/bottom to 100%/0 to guarantee full coverage,
   preventing any leak from the (now namespaced) .why-card .card-media rule that uses width:78% */
.service-card .card-media {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease-out);
  transform: scale(1.02);
}

/* Strong dark gradient on the LEFT — text sits on the dark side */
.service-card .card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.78) 30%,
    rgba(10,10,10,0.45) 60%,
    rgba(10,10,10,0.15) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.service-card:hover .card-media {
  opacity: 1;
  transform: scale(1.06);
}

/* Make sure all text content sits above the image */
.service-card .service-num,
.service-card .service-title,
.service-card .service-desc,
.service-card .service-cta,
.service-card .service-body {
  position: relative;
  z-index: 2;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
  z-index: 3;
}

.service-card:hover {
  background: var(--bg-card);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.service-title {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

.service-cta {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease-out);
}

.service-card:hover .service-cta {
  color: var(--white);
  transform: translateX(6px);
}

/* ---------- § 08 CTA ---------- */
.cta {
  padding: calc(var(--section-pad-y) * 1.3) 0;
  background: var(--bg-soft);
  text-align: center;
  overflow: hidden;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.cta-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 36px;
}

.cta-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-soft);
  display: inline;
}

.interactive-text {
  position: relative;
  display: inline;
}

.interactive-text .char {
  display: inline-block;
  position: relative;
  will-change: transform;
  transform: translateY(0);
}

.cta-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 56px;
}

.magnetic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 48px;
  background: var(--white);
  color: var(--bg);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease), color 0.4s var(--ease);
  will-change: transform;
}

.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--bg);
  transform: scale(0);
  transition: transform 0.5s var(--ease-smooth);
  z-index: 0;
}

.magnetic-btn:hover::before {
  transform: scale(1);
}

.magnetic-btn:hover {
  color: var(--white);
}

.btn-text,
.btn-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-out);
}

.magnetic-btn:hover .btn-arrow {
  transform: translateX(8px);
}

.cta-channels {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-soft);
}

.cta-channels a {
  transition: color 0.3s var(--ease);
}

.cta-channels a:hover {
  color: var(--white);
}

.cta-channels .dot {
  color: var(--text-faint);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo-slot {
  display: flex;
  align-items: center;
  height: 36px;
}

.footer-logo-slot img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer-logo-slot .logo-text {
  display: none;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.24em;
  color: var(--white);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  font-weight: 300;
}

.footer-info {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer-links,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-legal a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.back-top a:hover {
  color: var(--white);
}

/* ---------- Reveal Animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-card {
    width: 400px;
    min-height: 220px;
  }

  .testimonial-track::before,
  .testimonial-track::after {
    flex: 0 0 calc(50vw - 200px);
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(2),
  .services-grid .service-card:nth-child(3),
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5),
  .services-grid .service-card:nth-child(6) {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad-y: 80px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-bottom {
    display: none;
  }

  .hero-meta {
    display: none;
  }

  .works-grid,
  .clients-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(2),
  .services-grid .service-card:nth-child(3),
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5),
  .services-grid .service-card:nth-child(6) {
    grid-column: auto;
  }
  /* Vertical stack inside each card on mobile */
  .service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 28px;
    aspect-ratio: auto;
    min-height: 240px;
  }
  .service-card .service-cta {
    align-self: flex-end;
  }
  /* Mobile stacked layout: rotate the gradient overlay to fade top-to-bottom instead */
  .service-card .card-media::after {
    background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.75) 60%, rgba(10,10,10,0.92) 100%);
  }

  /* Mobile: shrink card body text + collapse forced line breaks for natural flow */
  .how-card .card-desc,
  .why-card .card-desc {
    font-size: 13px;
    line-height: 1.65;
  }
  .how-card .card-desc br,
  .why-card .card-desc br {
    display: none;
  }

  .testi-card {
    width: 82vw;
    min-height: 200px;
    padding: 26px 28px 24px;
  }

  .testimonial-track::before,
  .testimonial-track::after {
    flex: 0 0 9vw;
  }

  .testi-arrow {
    width: 36px;
    height: 36px;
  }

  .testi-arrow svg {
    width: 14px;
    height: 14px;
  }

  .testi-arrow-prev {
    left: 6px;
  }

  .testi-arrow-next {
    right: 6px;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .why-card,
  .testi-card,
  .service-card {
    padding: 40px 28px 32px;
    min-height: auto;
  }

  .card-arrow {
    top: 32px;
    right: 28px;
  }

  .card-num {
    margin-bottom: 48px;
  }

  .cta-headline {
    font-size: clamp(40px, 10vw, 72px);
  }

  .magnetic-btn {
    padding: 18px 36px;
  }
}

/* Mobile hover fallback — disable tilt effects */
@media (hover: none) {
  .why-card,
  .testi-card,
  .service-card,
  .work-item {
    transform: none !important;
  }
}

/* ============================================
   WORKS PAGE (works.html)
   ============================================ */

.page-works {
  background: var(--bg);
}

/* Always solid header on works page (no hero video behind it) */
.header.is-works-page {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-link.is-current {
  color: var(--white);
}

.nav-link.is-current::after {
  width: 100%;
}

/* ---------- Works Hero ---------- */
.works-hero {
  padding: calc(var(--section-pad-y) * 1.1) 0 calc(var(--section-pad-y) * 0.8);
  padding-top: calc(var(--section-pad-y) * 1.1 + 80px); /* account for fixed header */
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.works-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}

.works-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .sep {
  color: var(--text-faint);
}

.breadcrumb .current {
  color: var(--white);
}

.works-hero-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
}

.count-num {
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
}

.count-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.works-page-title {
  font-family: var(--font-body);
  font-size: clamp(76px, 15vw, 240px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 80px;
}

.works-page-title .line {
  display: block;
}

.works-page-title em {
  font-style: normal;
  color: var(--text-dim);
  font-weight: 300;
}

/* "Works" interactive letters */
.works-page-title .line-works {
  display: block;
}
.works-page-title .word-works {
  display: inline-block;
  /* Small baseline offset so upward hover doesn't clip above */
  padding-top: 0.04em;
}
.works-page-title .word-works .char {
  display: inline-block;
  transition:
    transform 0.55s cubic-bezier(.16,1,.3,1),
    color 0.35s ease,
    font-style 0.35s ease,
    text-shadow 0.4s ease;
  cursor: default;
  color: var(--white);
  position: relative;
  will-change: transform;
}
.works-page-title .word-works .char:hover {
  transform: translateY(-0.09em) rotate(-2.5deg);
  font-style: italic;
  color: var(--white);
  text-shadow: 0 0.05em 0.4em rgba(255,255,255,0.12);
}
/* Ripple: adjacent letters pulled slightly */
.works-page-title .word-works .char:hover + .char,
.works-page-title .word-works .char:has(+ .char:hover) {
  transform: translateY(-0.03em);
  opacity: 0.85;
}
/* Calm down everything else when ANY char is hovered */
.works-page-title .word-works:hover .char:not(:hover):not(:hover + .char):not(:has(+ .char:hover)) {
  opacity: 0.55;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .works-page-title .word-works .char {
    transition: none;
  }
  .works-page-title .word-works .char:hover {
    transform: none;
    font-style: italic;
  }
}

.works-hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.works-lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 520px;
  letter-spacing: -0.005em;
}

.works-lead em {
  font-style: normal;
  color: var(--white);
  font-weight: 600;
}

.works-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.03em;
}

.meta-label {
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Marquee ---------- */
.works-marquee {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.marquee-inner span {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--text-soft);
  text-transform: uppercase;
  font-weight: 400;
}

.marquee-inner .sep {
  color: var(--text-faint);
  font-size: 10px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Works Page Section ---------- */
.works-page-section {
  padding: var(--section-pad-y) 0;
}

.works-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  flex-wrap: wrap;
}

.works-page-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.works-page-filter .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
}

.filter-count {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  opacity: 0.7;
  font-weight: 400;
}

.filter-btn.is-active .filter-count {
  color: var(--bg);
  opacity: 0.45;
}

.works-page-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.sort-label {
  color: var(--text-dim);
}

/* ---------- Works Page Grid ---------- */
.works-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 24px;
}

.works-page-grid .work-item {
  display: block;
}

.works-page-grid .work-thumb {
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
}

.works-page-grid .work-info {
  padding-top: 4px;
}

.work-info-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.work-number {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.work-year {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.works-page-grid .work-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.3s var(--ease);
}

.works-page-grid .work-item:hover .work-title {
  color: var(--white);
}

.works-page-grid .work-cat {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* hover dim removed — keep all cards at full opacity on works page too */

/* ---------- Archive Note ---------- */
.works-archive-note {
  margin-top: 120px;
  padding-top: 60px;
  text-align: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.line-short {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text-dim);
}

.works-archive-note p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  letter-spacing: -0.005em;
}

/* ---------- Works Page Responsive ---------- */
@media (max-width: 1100px) {
  .works-hero-foot {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .works-meta {
    padding-left: 0;
    border-left: none;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }

  .works-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}

@media (max-width: 720px) {
  .works-hero {
    padding-top: calc(var(--section-pad-y) + 80px);
  }

  .works-hero-top {
    margin-bottom: 40px;
  }

  .works-page-title {
    margin-bottom: 56px;
  }

  .works-meta {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .meta-item:last-child {
    grid-column: 1 / -1;
  }

  .works-page-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .works-page-filter .filter-btn {
    padding: 9px 14px;
    font-size: 10px;
  }

  .works-page-filter .filter-count {
    font-size: 9px;
  }

  .works-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .works-page-grid .work-thumb {
    aspect-ratio: 16 / 10;
  }

  .works-archive-note {
    margin-top: 80px;
  }
}


/* ============================================
   CONTACT PAGE (contact.html)
   ============================================ */

.page-contact {
  background: var(--bg);
}

.contact-hero {
  padding: calc(var(--section-pad-y) * 1.1) 0 var(--section-pad-y);
  padding-top: calc(var(--section-pad-y) * 1.1 + 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.025) 0%, transparent 70%);
  pointer-events: none;
}

.contact-page-title {
  font-family: var(--font-body);
  font-size: clamp(96px, 19vw, 320px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 64px;
  overflow: visible;
}

.contact-page-title .interactive-text {
  display: inline-block;
  line-height: 1;
}

.contact-page-title .char {
  display: inline-block;
  will-change: transform;
}

.contact-hero-foot {
  max-width: 680px;
}

.contact-lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--text-soft);
  letter-spacing: -0.005em;
}

.contact-lead em {
  font-style: normal;
  color: var(--white);
  font-weight: 600;
}

/* ---------- Contact Section ---------- */
.contact-section {
  padding: var(--section-pad-y) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}

/* Sidebar */
.contact-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.contact-block:first-child {
  padding-top: 0;
}

.contact-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.block-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.contact-value {
  display: inline-block;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
  position: relative;
}

.contact-value::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.4s var(--ease-out);
}

a.contact-value:hover::after {
  width: 100%;
}

.channel-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-links a {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: -0.005em;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease-out);
  display: inline-block;
}

.channel-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.contact-address,
.contact-hours {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  letter-spacing: -0.005em;
}

/* ---------- Form ---------- */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.form-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}

.form-title {
  font-family: var(--font-body);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.1;
}

.form-sub {
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: -0.005em;
  line-height: 1.55;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}

.form-field .req {
  color: var(--white);
  margin-left: 3px;
  font-weight: 600;
}

.form-field .label-opt {
  color: var(--text-dim);
  margin-left: 6px;
  font-size: 12px;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  transition: border-color 0.4s var(--ease);
  width: 100%;
  letter-spacing: -0.01em;
  border-radius: 0;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--white);
}

.form-field input::placeholder {
  color: var(--text-faint);
  letter-spacing: -0.005em;
}

.form-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23b8b8b8' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 12px;
  padding-right: 28px;
}

.form-field select option {
  background: var(--bg-soft);
  color: var(--white);
  padding: 8px;
}

.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 18px 20px;
  resize: vertical;
  min-height: 160px;
  width: 100%;
  letter-spacing: -0.005em;
  line-height: 1.6;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.form-field textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(0,0,0,0.4);
}

.form-field textarea::placeholder {
  color: var(--text-faint);
}

/* File input */
.file-field .file-note {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: -0.005em;
  margin-top: -2px;
}

.form-field input[type="file"] {
  padding: 16px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 13px;
  background: rgba(0,0,0,0.25);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
  width: 100%;
}

.form-field input[type="file"]:hover {
  border-color: var(--text-soft);
  background: rgba(0,0,0,0.4);
}

.form-field input[type="file"]::file-selector-button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-right: 16px;
  transition: all 0.3s var(--ease);
  font-weight: 500;
}

.form-field input[type="file"]::file-selector-button:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* Consent */
.form-consent {
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  letter-spacing: -0.005em;
  font-family: var(--font-body);
  text-transform: none;
  color: var(--text-soft);
  font-size: 14px;
}

.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s var(--ease);
}

.form-consent input[type="checkbox"]:hover {
  border-color: var(--text-soft);
}

.form-consent input[type="checkbox"]:checked {
  background: var(--white);
  border-color: var(--white);
}

.form-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-label {
  line-height: 1.5;
}

.consent-label strong {
  color: var(--white);
  font-weight: 600;
}

.consent-label a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  font-size: 13px;
}

.consent-label a:hover {
  text-decoration: none;
}

/* Actions */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.form-submit {
  padding: 20px 44px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.form-helper {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: -0.005em;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.form-success {
  margin-top: 32px;
  padding: 40px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  text-align: center;
  animation: successIn 0.6s var(--ease-out);
}

@keyframes successIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--bg);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.form-success p {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: -0.005em;
}

/* ---------- FAQ ---------- */
.contact-faq {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.faq-header .section-title {
  margin-bottom: 0;
}

.faq-helper {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: -0.005em;
  max-width: 320px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.faq-item:hover {
  background: rgba(255,255,255,0.015);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  cursor: pointer;
  user-select: none;
}

.faq-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  min-width: 32px;
}

.faq-q-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.faq-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
  transition: all 0.4s var(--ease-smooth);
}

.faq-item:hover .faq-toggle {
  border-color: var(--text-soft);
}

.faq-item.is-open .faq-toggle {
  background: var(--white);
  color: var(--bg);
  transform: rotate(45deg);
  border-color: var(--white);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-smooth), padding 0.4s var(--ease);
  color: var(--text-soft);
  padding-left: 64px;
  max-width: 900px;
}

.faq-a p {
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  color: var(--text-soft);
}

.faq-a strong {
  color: var(--white);
  font-weight: 600;
}

.faq-item.is-open .faq-a {
  max-height: 400px;
  padding-bottom: 36px;
}

/* ---------- Contact Responsive ---------- */
@media (max-width: 1100px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
  }

  .contact-block {
    padding: 24px 0;
  }

  .contact-block:first-child,
  .contact-block:nth-child(2) {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .contact-hero {
    padding-top: calc(var(--section-pad-y) + 80px);
  }

  .contact-page-title {
    margin-bottom: 40px;
  }

  .contact-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-wrap {
    padding: 36px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .form-submit {
    width: 100%;
    justify-content: center;
    padding: 18px;
  }

  .faq-q {
    gap: 16px;
    padding: 24px 0;
  }

  .faq-num {
    min-width: 24px;
    font-size: 10px;
  }

  .faq-a {
    padding-left: 40px;
  }
}


/* ============================================
   LEGAL / PRIVACY PAGES
   ============================================ */

.page-legal {
  background: var(--bg);
}

.legal-hero {
  padding: calc(var(--section-pad-y) * 0.8) 0 calc(var(--section-pad-y) * 0.8);
  padding-top: calc(var(--section-pad-y) * 0.8 + 80px);
  border-bottom: 1px solid var(--line);
}

.legal-title {
  font-family: var(--font-body);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--white);
  margin: 40px 0 28px;
}

.legal-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--text-soft);
  letter-spacing: -0.005em;
  max-width: 680px;
}

.legal-sub a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content-wrap {
  padding: calc(var(--section-pad-y) * 0.9) 0;
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
}

.legal-intro {
  padding: 0 0 48px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.legal-intro p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
  letter-spacing: -0.005em;
}

.legal-intro strong {
  color: var(--white);
  font-weight: 600;
}

.legal-section {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.legal-section-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.legal-section h2 {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.legal-section h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 24px 0 10px;
  letter-spacing: -0.015em;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: var(--white);
  font-weight: 600;
}

.legal-section ul {
  padding-left: 20px;
  margin: 12px 0 16px;
}

.legal-section li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.legal-section li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.legal-section li strong {
  color: var(--white);
  font-weight: 600;
}

.legal-section a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact card inside legal section */
.legal-contact-card {
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lcc-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.lcc-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.lcc-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: -0.005em;
}

.legal-dates {
  display: flex;
  gap: 48px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.date-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.date-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
}

.legal-back {
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.legal-back .link-arrow .arrow {
  margin-right: 0;
}

.legal-back .link-arrow:hover .arrow {
  transform: translateX(-8px);
}

/* Footer legal current state */
.footer-legal a.is-current {
  color: var(--white);
}

@media (max-width: 720px) {
  .legal-title {
    margin: 28px 0 20px;
  }

  .legal-section {
    padding: 32px 0 28px;
  }

  .legal-contact-card {
    padding: 24px;
  }

  .legal-dates {
    gap: 24px;
  }
}

/* ==========================================================
   WORK DETAIL PAGE — individual project page (work.html)
   ========================================================== */

.page-work {
  background: var(--bg);
  color: var(--text);
}

.page-work .container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Intro / Title Area ---------- */
.page-work .work-intro {
  padding-top: calc(var(--section-pad-y) + 60px);
  padding-bottom: 48px;
}

.page-work .work-breadcrumb {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.page-work .work-breadcrumb .breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  transition: color 0.3s;
}

.page-work .work-breadcrumb .breadcrumb-back:hover {
  color: var(--white);
}

.page-work .work-breadcrumb .breadcrumb-back .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.page-work .work-breadcrumb .breadcrumb-back:hover .arrow {
  transform: translateX(-4px);
}

.page-work .breadcrumb-sep {
  color: var(--text-dim);
  opacity: 0.5;
}

.page-work .breadcrumb-cat {
  color: var(--text-soft);
}

.page-work .work-title {
  font-family: var(--font-body);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 1280px;
}

.page-work .work-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-work .meta-item {
  display: inline-block;
}

.page-work .meta-dot {
  color: var(--text-dim);
  opacity: 0.5;
}

.page-work .meta-year {
  color: var(--white);
  font-weight: 500;
}

.page-work .meta-client {
  color: var(--text-soft);
}

.page-work .work-description {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 780px;
  letter-spacing: -0.005em;
  margin-bottom: 0;
  margin-top: 12px;
}

/* ---------- Media Gallery ---------- */
/* ---------- Work Media (video/image) ---------- */
.page-work .work-media {
  padding: 40px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;  /* center all media items horizontally */
  gap: 32px;
}

/* Each media item: max 1200px, centered, consistent 16:9 aspect */
.page-work .work-media .media-item {
  margin: 0;
  width: 100%;
  max-width: 1200px;
  padding: 0 32px;
  position: relative;
  box-sizing: border-box;
}

/* Inner wrapper that actually enforces aspect ratio */
.page-work .work-media .media-item > * {
  display: block;
  width: 100%;
}

.page-work .work-media .media-item img,
.page-work .work-media .media-item video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-card);
}

/* Hero (image only, when no video) — enforce 16:9 */
.page-work .work-media .media-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}

/* Vimeo / generic iframe embed */
.page-work .work-media .media-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
}

.page-work .work-media .media-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* YouTube click-to-open preview — avoids Error 153 / embed restrictions */
.page-work .work-media .media-youtube {
  /* container inherits .media-item rules */
}
.page-work .work-media .yt-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.page-work .work-media .yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1), filter 0.3s ease;
}
.page-work .work-media .yt-preview:hover .yt-thumb {
  transform: scale(1.03);
  filter: brightness(0.78);
}
.page-work .work-media .yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(.16,1,.3,1);
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.5));
}
.page-work .work-media .yt-play-btn svg {
  width: 88px;
  height: 62px;
}
.page-work .work-media .yt-preview:hover .yt-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
.page-work .work-media .yt-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.page-work .work-media .yt-preview:hover .yt-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder when image fails to load or missing */
.page-work .work-media .media-item.no-image {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0.02) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--bg-card);
  position: relative;
  border-radius: 2px;
}

.page-work .work-media .media-item.no-image::after {
  content: 'No media available';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
}

.page-work .work-media .media-item.no-image img {
  display: none;
}

/* Video-pending placeholder — thumbnail + inactive play button.
   When work.video_url gets added later, this auto-switches to real player. */
.page-work .work-media .media-placeholder .placeholder-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  overflow: hidden;
  border-radius: 2px;
  cursor: default;
}
.page-work .work-media .placeholder-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.55) saturate(0.85);
}
.page-work .work-media .placeholder-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.35) 100%
  );
  pointer-events: none;
}
.page-work .work-media .placeholder-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.75;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.3));
}
.page-work .work-media .placeholder-play svg {
  width: 72px;
  height: 50px;
}
.page-work .work-media .placeholder-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.1);
}

/* When placeholder has no thumbnail — show diagonal pattern bg */
.page-work .work-media .media-placeholder .placeholder-wrap:has(img[style*="display: none"]),
.page-work .work-media .media-placeholder:not(:has(img)) .placeholder-wrap {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0.02) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--bg-card);
}

/* ---------- Credits ---------- */
.page-work .work-credits {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
}

.page-work .credits-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.page-work .credits-label .section-num {
  color: var(--text-soft);
  font-weight: 500;
}

.page-work .credits-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-work .credit-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.page-work .credit-row:last-child {
  border-bottom: none;
}

.page-work .credit-key {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

.page-work .credit-val {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Related Works ---------- */
.page-work .work-related {
  padding: 100px 0 var(--section-pad-y);
  border-top: 1px solid var(--line);
}

.page-work .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
  margin-top: 48px;
  margin-bottom: 60px;
}

.page-work .related-item {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
}

.page-work .related-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0.02) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--bg-card);
  margin-bottom: 16px;
}

.page-work .related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
}

.page-work .related-thumb.no-image img {
  opacity: 0;
}

.page-work .related-item:hover .related-thumb img {
  transform: scale(1.04);
}

.page-work .related-thumb .work-play {
  position: absolute;
  /* explicitly reset global .work-play rule (top:50%, left:50%, transform, border, border-radius) */
  top: auto;
  left: auto;
  transform: none;
  border: 0;
  border-radius: 2px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  bottom: 16px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--white);
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  opacity: 0;
  transition: opacity 0.3s;
  text-transform: uppercase;
}

.page-work .related-item:hover .related-thumb .work-play {
  opacity: 1;
  transform: none;   /* override global hover scale(1) */
}

.page-work .related-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-work .related-cat {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.page-work .related-title {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  transition: color 0.3s;
}

.page-work .related-item:hover .related-title {
  color: var(--text-soft);
}

/* ---------- Work Detail Responsive ---------- */
@media (max-width: 1100px) {
  .page-work .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-work .credit-row {
    grid-template-columns: 160px 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .page-work .work-intro {
    padding-top: calc(var(--section-pad-y) + 40px);
    padding-bottom: 32px;
  }

  .page-work .work-breadcrumb {
    margin-bottom: 32px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .page-work .work-title {
    margin-bottom: 24px;
  }

  .page-work .work-media {
    padding: 24px 0 60px;
    gap: 20px;
  }

  .page-work .work-media .media-item {
    padding: 0 16px;
  }

  /* Smaller YouTube play button on mobile */
  .page-work .work-media .yt-play-btn svg {
    width: 64px;
    height: 44px;
  }

  /* Smaller placeholder play button on mobile */
  .page-work .work-media .placeholder-play svg {
    width: 52px;
    height: 36px;
  }
  .page-work .work-media .placeholder-label {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    font-size: 9px;
  }

  /* Show hint always on mobile (no hover) */
  .page-work .work-media .yt-hint {
    opacity: 1;
    transform: none;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Disable hover-only transforms on touch */
  .page-work .work-media .yt-preview:hover .yt-thumb {
    transform: none;
    filter: brightness(0.9);
  }
  .page-work .work-media .yt-preview:hover .yt-play-btn {
    transform: translate(-50%, -50%);
  }

  .page-work .work-credits {
    padding: 60px 0 60px;
  }

  .page-work .credits-list {
    gap: 0;
  }

  .page-work .credit-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .page-work .credit-key {
    font-size: 10px;
  }

  .page-work .credit-val {
    font-size: 15px;
  }

  .page-work .work-related {
    padding: 60px 0;
  }

  .page-work .related-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================
   ABOUT PAGE
   ========================================================== */

.page-about {
  background: var(--bg);
  color: var(--text);
}

/* ---------- § 01 Hero / Philosophy ---------- */
.about-hero {
  padding-top: calc(var(--section-pad-y) + 80px);
  padding-bottom: var(--section-pad-y);
  border-bottom: 1px solid var(--line);
}

.about-headline {
  font-family: var(--font-body);
  font-size: clamp(40px, 6.4vw, 94px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--white);
  margin: 32px 0 48px;
}

.about-headline .line {
  display: block;
}

.about-lead {
  max-width: 720px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--text-soft);
  letter-spacing: -0.005em;
  margin-bottom: 80px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-body);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--white);
}

.stat-num em {
  font-style: normal;
  font-size: 0.5em;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 4px;
  vertical-align: middle;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- § 02 Founder ---------- */
.about-founder {
  padding: var(--section-pad-y) 0;
  border-bottom: 1px solid var(--line);
}

.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.founder-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 12px, transparent 12px, transparent 24px),
    var(--bg-card);
}

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

.founder-image.no-image::after {
  content: 'Founder Portrait';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.5;
}

.founder-image.no-image img {
  display: none;
}

.founder-name {
  font-family: var(--font-body);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
  margin: 28px 0 8px;
}

.founder-role {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.founder-bio p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
  max-width: 620px;
}

.founder-credits {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.founder-credits li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.founder-credits li span:first-child {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  align-self: center;
}

.founder-credits li span:last-child {
  color: var(--text);
  line-height: 1.5;
}

/* ---------- § 03 Values ---------- */
.about-values {
  padding: var(--section-pad-y) 0;
  border-bottom: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.value-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 48px 36px 40px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-origin: center center;
  transition:
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease);
}

.value-card:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.05);
  z-index: 5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.value-card:hover .value-num {
  color: rgba(0, 0, 0, 0.45);
}

.value-card:hover .value-title {
  color: #0a0a0a;
}

.value-card:hover .value-desc {
  color: rgba(10, 10, 10, 0.78);
}

.value-card:hover .value-note {
  color: rgba(10, 10, 10, 0.55);
  border-top-color: rgba(10, 10, 10, 0.12);
}

.value-num,
.value-title,
.value-desc,
.value-note {
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.value-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 64px;
}

.value-title {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.value-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}

.value-note {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: -0.005em;
}

/* ---------- § 04 Process ---------- */
.about-process {
  padding: var(--section-pad-y) 0;
  border-bottom: 1px solid var(--line);
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 80px 0 0;
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: 120px 260px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.process-step:last-child {
  border-bottom: 1px solid var(--line);
}

.process-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}

.process-title {
  font-family: var(--font-body);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}

.process-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0;
  letter-spacing: -0.005em;
  max-width: 640px;
}

/* ---------- § 05 Partners (reuses .clients-grid) ---------- */
.about-partners {
  padding: var(--section-pad-y) 0;
  border-bottom: 1px solid var(--line);
}

.about-partners .clients-grid {
  margin-top: 80px;
}

/* ---------- § 06 Vision / Commitment ---------- */
.about-vision {
  padding: var(--section-pad-y) 0 calc(var(--section-pad-y) * 1.4);
  text-align: center;
}

.about-vision-headline {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.8vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--white);
  margin: 48px auto 64px;
  max-width: 1100px;
}

.about-vision-body {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 28px;
  letter-spacing: -0.005em;
}

.about-vision-body strong {
  color: var(--white);
  font-weight: 700;
}

.about-vision-cta {
  margin-top: 72px;
  display: flex;
  justify-content: center;
}

/* ---------- About Responsive ---------- */
@media (max-width: 1100px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .founder-grid {
    grid-template-columns: 320px 1fr;
    gap: 56px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-step {
    grid-template-columns: 100px 200px 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .about-hero {
    padding-top: calc(var(--section-pad-y) + 40px);
  }

  .about-headline {
    margin: 28px 0 32px;
  }

  .about-lead {
    margin-bottom: 56px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-image {
    max-width: 360px;
  }

  .founder-credits li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .value-card {
    padding: 36px 28px 32px;
    min-height: auto;
  }

  .value-num {
    margin-bottom: 40px;
  }

  .process-list {
    margin-top: 48px;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .about-vision-headline {
    margin: 32px 0 40px;
  }
}

/* ==========================================================
   MOBILE MENU
   ========================================================== */

/* Hamburger icon animation */
.menu-toggle {
  position: relative;
  z-index: 150;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}

body.is-menu-open .menu-toggle span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

body.is-menu-open .menu-toggle span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Full-screen mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  padding: 120px 32px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  visibility: hidden;
  pointer-events: none;
}

body.is-menu-open .mobile-menu {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.mobile-menu-nav a {
  font-family: var(--font-body);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.035em;
  text-decoration: none;
  padding: 14px 0;
  display: block;
  border-bottom: 1px solid var(--line);
  line-height: 1.1;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  opacity: 0.6;
}

.mobile-menu-nav a.is-current {
  color: var(--text-dim);
}

.mobile-menu-footer {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.mobile-menu-tagline {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.mobile-menu-contact {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: -0.005em;
  line-height: 1.5;
  word-break: keep-all;
}

/* Prevent body scroll when menu is open */
body.is-menu-open {
  overflow: hidden;
}

/* Show toggle only at mobile breakpoint */
@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }
}

/* ==========================================================
   MOBILE TUNING — form inputs, carousel arrows, etc
   ========================================================== */

/* iOS won't zoom if font-size ≥ 16px on focus */
@media (max-width: 720px) {
  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="tel"],
  .form-field input[type="number"],
  .form-field select,
  .form-field textarea {
    font-size: 16px !important;
  }

  /* Better tel input: trigger numeric keyboard */
  input[type="tel"] {
    /* applied via inputmode in HTML for older browsers */
  }

  /* Testimonial carousel mobile tuning */
  .testimonial-track {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .testi-card {
    min-height: 220px;
    padding: 28px 26px 24px;
  }

  .testi-text {
    font-size: 15px;
    line-height: 1.65;
  }

  /* Reduce carousel 3D effect intensity on small screens */
  /* (JS will apply transforms, but we can dampen via a class) */
  .testimonial-carousel {
    margin: 24px -20px 0;
    padding: 0 20px;
  }
}
