/* ============================================================
   HK CONTENT STUDIO — Shared Stylesheet
   Light editorial palette: warm cream base, near-black text, amber accent
   Minimalist sans-serif typography
   ============================================================ */

:root {
  --bg:        #f4f1ea;   /* warm cream base */
  --bg-soft:   #fbf9f4;   /* raised surfaces / cards (lighter) */
  --bg-softer: #ffffff;   /* hover surfaces / pure white */
  --bg-dark:   #1a1a1a;   /* dark sections for contrast */
  --line:      #ddd8cc;   /* hairline borders */
  --line-dark: #c9c3b4;   /* stronger borders */
  --text:      #1a1a1a;   /* near-black primary text */
  --text-dim:  #4a4843;   /* secondary text (still high contrast) */
  --text-faint:#75726a;   /* faintest captions (passes AA) */
  --amber:     #c8791a;   /* warm amber accent (darkened for contrast on light) */
  --amber-deep:#a8610f;   /* deeper amber for hovers */
  --maxw:      1180px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: "Hanken Grotesk", -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.mono { font-family: "Hanken Grotesk", sans-serif; font-weight: 500; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; z-index: 2; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  white-space: nowrap;
}
.brand .dot { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.25s ease;
  position: relative;
  padding-block: 0.2rem;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--amber); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.28s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem var(--gutter);
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
  }
}

/* ============================================================
   PAGE HERO (interior pages) — compact
   ============================================================ */
.page-hero {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.8rem, 4vw, 2.8rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-top: 0.8rem;
  max-width: 16ch;
}
.page-hero h1.nowrap { max-width: none; white-space: nowrap; font-size: clamp(2rem, 5.5vw, 3.8rem); }
.page-hero .lede {
  margin-top: 1.1rem;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-dark); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   VIDEO GRID + EMBEDS
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.video-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame.vertical { aspect-ratio: 9 / 16; max-height: 600px; margin-inline: auto; }
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-meta { padding: 1.1rem 1.3rem 1.4rem; }
.video-meta h3 { font-size: 1.18rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.video-meta p { font-size: 0.94rem; color: var(--text-dim); line-height: 1.5; }
.video-tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

/* Section heading block */
.sec-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); max-width: 64ch; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 0.6rem; }
.sec-head p { margin-top: 0.8rem; color: var(--text-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  background: var(--bg-dark);
  color: #e8e4da;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer h3 { font-size: 1.6rem; margin-bottom: 0.6rem; color: #fff; }
.footer .tagline {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber);
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a857a;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  color: #c4bfb4;
  font-size: 0.94rem;
  margin-bottom: 0.55rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #8a857a;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
.home-hero {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 50% 70% at 88% 30%, rgba(200,121,26,0.10), transparent 60%);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 75% 75% at 35% 45%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 35% 45%, #000 10%, transparent 70%);
}
.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: 64vh;
}
.home-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  margin: 1rem 0 0;
  letter-spacing: -0.03em;
}
.eyebrow-lg { font-size: 0.92rem; letter-spacing: 0.18em; }
.amber-word { color: var(--amber); }
.hero-lede {
  margin-top: 1.4rem;
  max-width: 38ch;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-dim);
}
.hero-actions { margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Discipline cards (homepage right column = 2x2 grid) */
.home-hero-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.disc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.8rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem 1.4rem 1.3rem;
  min-height: 160px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.disc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--amber);
  transition: width 0.4s ease;
}
.disc-card:hover { border-color: var(--amber); transform: translateY(-4px); background: var(--bg-softer); box-shadow: 0 12px 30px rgba(0,0,0,0.07); }
.disc-card:hover::before { width: 100%; }
.disc-num { color: var(--text-faint); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; }
.disc-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.disc-go { color: var(--amber); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }

/* staggered reveal */
.home-hero-left .reveal:nth-child(1) { transition-delay: 0.05s; }
.home-hero-left .reveal:nth-child(2) { transition-delay: 0.13s; }
.home-hero-left .reveal:nth-child(3) { transition-delay: 0.21s; }
.home-hero-left .reveal:nth-child(4) { transition-delay: 0.29s; }
.home-hero-right .disc-card:nth-child(1) { transition-delay: 0.18s; }
.home-hero-right .disc-card:nth-child(2) { transition-delay: 0.26s; }
.home-hero-right .disc-card:nth-child(3) { transition-delay: 0.34s; }
.home-hero-right .disc-card:nth-child(4) { transition-delay: 0.42s; }

/* Featured section */
.featured { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.featured-video .video-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.featured-text h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0.6rem 0 1rem; }
.featured-text p { color: var(--text-dim); margin-bottom: 1.6rem; }

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-video { order: 2; }
}
@media (max-width: 480px) {
  .home-hero-right { grid-template-columns: 1fr 1fr; }
  .disc-card { min-height: 130px; padding: 1.2rem 1rem 1rem; }
  .disc-card h3 { font-size: 1.2rem; }
}

/* ============================================================
   VIDEO PAGE
   ============================================================ */
.video-hero {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
  background: radial-gradient(ellipse 50% 80% at 90% 20%, rgba(200,121,26,0.08), transparent 60%);
}
.video-h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  margin-top: 0.6rem;
  font-weight: 700;
}
.video-hero .lede { margin-top: 1rem; color: var(--text-dim); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 52ch; }
.video-jump {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.video-jump a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1.5px solid var(--amber);
  border-radius: 100px;
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  display: inline-block;
}
.video-jump a:hover { transform: scale(1.08); background: rgba(200,121,26,0.08); }

/* Bold section titles (Corporate / Entertainment / Passion Projects) */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}
.section-sub { margin-top: 0.5rem; color: var(--text-dim); font-size: 1.05rem; }

/* Collapsible section header with toggle arrow + full-width divider */
.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 0 0 1.4rem;
  margin-bottom: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.section-arrow {
  font-size: 1.4rem;
  color: var(--amber);
  transition: transform 0.3s ease;
  line-height: 1;
}
.section-toggle[aria-expanded="false"] .section-arrow { transform: rotate(-90deg); }
.section-body {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
  padding-top: 2.2rem;
}
.section-body.collapsed {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0;
  margin-top: 0;
}
.section-tight-top { padding-top: 2.2rem; }

/* Company titles — left-aligned, fitted padded box, brand-colored */
.company-title {
  display: inline-block;
  width: auto;
  text-align: left;
  color: #fff;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  margin: 0 0 1.2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
/* A company group: thin divider line to the page margins, then the title */
.company-group {
  border-top: 1px solid var(--line-dark);
  padding-top: 2.2rem;
  margin-top: 2.4rem;
}
.company-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.section-body > .company-group:first-child,
.section-body > .section-sub:first-child + .company-group { border-top: 0; padding-top: 0; margin-top: 0; }

/* Brand colors matched to each company's logo */
.brand-envlights { background: #7ab648; }            /* Environmental Lights light green */
.brand-umn       { background: #7a0019; }            /* University of Minnesota maroon */
.brand-jsg       { background: #5b9bd5; }            /* John Schuster Group light blue */
.brand-ameritek  { background: #1f3a5f; }            /* Ameritek dark blue */
.brand-daolabs   { background: #d6679a; }            /* Dao Labs pink */

.company-sub-inline { font-weight: 500; }
.company-title-sm { font-size: clamp(1.05rem, 2.4vw, 1.35rem); }

.subsec {
  font-size: 1.3rem;
  margin: 2.4rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}
.subsec:first-of-type { margin-top: 0; }
.subsec-dim { color: var(--text-faint); font-weight: 500; }
.subsec-note { color: var(--text-dim); max-width: 64ch; margin-bottom: 1.2rem; margin-top: -0.4rem; }

/* Two-column video grid — large enough that Vimeo shows fullscreen toggle */
.video-grid.two-col { grid-template-columns: repeat(2, 1fr); }

/* Formats block (relocated under U of M) */
.formats-block {
  margin: 2.8rem 0;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.formats-block .sec-head { margin-bottom: 1.8rem; }
.formats-h { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-top: 0.5rem; }
.formats-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.format-col .video-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.format-label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--amber); margin-bottom: 0.7rem; }
.format-note { margin-top: 0.7rem; font-size: 0.92rem; color: var(--text-dim); }

/* John Schuster Group: landscape + 2 verticals centered alongside */
.jsg-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.4rem;
  align-items: center;
}
.jsg-verticals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.jsg-verticals .video-frame.vertical { max-height: 520px; }

/* Two clients side by side (Ameritek + Dao Labs) with divider */
.two-client-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(1.5rem, 4vw, 2.6rem);
  margin-top: 0;
  align-items: start;
}
.client-divider { background: var(--line-dark); width: 1px; align-self: stretch; }
.client-block .subsec { margin-top: 0; }

/* 48 Hour Film Project feature */
.film-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 2rem;
}
.film-text h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0.4rem 0 0.9rem; letter-spacing: -0.01em; }
.film-text p { color: var(--text-dim); margin-bottom: 1rem; }
.film-text strong { color: var(--text); font-weight: 700; }

/* Passion Projects: vertical alongside a stack of two landscape */
.passion-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: center;
}
.passion-stack { display: grid; gap: 1.4rem; }

@media (max-width: 900px) {
  .video-grid.two-col { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .formats-grid .format-col:last-child .video-frame { max-width: 340px; }
  .jsg-grid { grid-template-columns: 1fr; }
  .jsg-verticals .video-frame.vertical { max-height: 600px; }
  .two-client-grid { grid-template-columns: 1fr; }
  .client-divider { display: none; }
  .film-feature { grid-template-columns: 1fr; }
  .passion-grid { grid-template-columns: 1fr; }
  .passion-vertical .video-frame.vertical { max-width: 340px; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.bio-photo { position: sticky; top: 90px; }
.bio-photo img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.bio-photo-cap { margin-top: 0.8rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.bio-text p { margin-bottom: 1.1rem; color: var(--text-dim); }
.bio-lead {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--text) !important;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem !important;
}
.bio-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column; gap: 0.25rem; }
.fact-k { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.fact-v { color: var(--text); font-size: 1.02rem; font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.07); }
.contact-k { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.contact-v { font-size: 1.06rem; color: var(--text); word-break: break-word; font-weight: 500; }

/* Equipment */
.equip-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.equip-note { color: var(--text-dim); margin: 0.8rem 0 1.8rem; max-width: 48ch; }
.equip-cat { margin-bottom: 1.4rem; }
.equip-cat h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.5rem; font-weight: 600; }
.equip-cat ul { list-style: none; }
.equip-cat li { padding: 0.32rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.98rem; }
.equip-cat li:last-child { border-bottom: 0; }
.dim { color: var(--text-faint); }
.equip-photo { position: sticky; top: 90px; }
.equip-photo img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }

@media (max-width: 860px) {
  .bio-grid, .equip-grid { grid-template-columns: 1fr; }
  .bio-photo, .equip-photo { position: static; }
  .bio-photo { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PHOTO & DESIGN PAGE — category tiles + lightbox + viewer
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
/* Category tiles must never be stuck invisible, even if JS reveal misfires */
.cat-tile.reveal { opacity: 1; transform: none; }
.cat-tile.reveal:not(.in) { opacity: 0; transform: translateY(20px); }
.cat-tile.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cat-tile.reveal { opacity: 1 !important; transform: none !important; } }
.cat-tile {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.cat-media { position: absolute; inset: 0; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-tile:hover .cat-media img { transform: scale(1.05); }
.cat-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.05) 55%, transparent);
}
.cat-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  color: #fff;
}
.cat-label > span:first-child { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; }
.cat-go { font-size: 0.82rem; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.cat-tile:hover .cat-go { opacity: 1; transform: none; }

@media (max-width: 680px) { .cat-grid { grid-template-columns: 1fr; } }

/* Lightbox (subcategory popup) */
.lb[hidden], .viewer[hidden] { display: none !important; }
.lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); }
.lb-overlay { position: absolute; inset: 0; background: rgba(20,18,14,0.7); backdrop-filter: blur(4px); }
.lb-panel {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.lb-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -0.5rem -0.5rem 0 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  z-index: 3;
}
.lb-close:hover { background: var(--amber); color: #fff; border-color: var(--amber); }
.lb-cat-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.6rem; }
.lb-sub { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.lb-sub:first-of-type { border-top: 0; padding-top: 0; }
.lb-sub-name { font-size: 1.25rem; margin-bottom: 0.4rem; }
.lb-sub-desc { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 1rem; max-width: 70ch; }
.lb-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.7rem;
}
.lb-thumb {
  border: 0; padding: 0; cursor: pointer;
  border-radius: 6px; overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.2s ease; }
.lb-thumb:hover img { transform: scale(1.06); opacity: 0.92; }

/* Fullscreen single-image viewer */
.viewer { position: fixed; inset: 0; z-index: 1100; background: rgba(10,9,7,0.94); display: flex; align-items: center; justify-content: center; }
.viewer-img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 50px rgba(0,0,0,0.6); }
.viewer-close { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: 0.8; }
.viewer-close:hover { opacity: 1; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 0; color: #fff;
  width: 54px; height: 54px; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background 0.2s ease;
}
.viewer-nav:hover { background: var(--amber); }
.viewer-prev { left: clamp(0.8rem, 3vw, 2.5rem); }
.viewer-next { right: clamp(0.8rem, 3vw, 2.5rem); }
.viewer-count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; opacity: 0.85; }

@media (max-width: 560px) {
  .viewer-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb-thumbs { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

/* ============================================================
   WRITING PAGE — link rows
   ============================================================ */
.write-list { display: grid; gap: 0; }
.write-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}
.write-row:last-child { border-bottom: 1px solid var(--line); }
.write-row:hover { padding-left: 0.6rem; }
.wr-tag { display: inline-block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.45rem; font-weight: 600; }
.write-row:hover .wr-tag { color: var(--amber); }
.wr-main h3 { font-size: 1.3rem; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.wr-main p { color: var(--text-dim); font-size: 0.96rem; max-width: 60ch; }
.wr-arrow { flex-shrink: 0; font-size: 0.78rem; font-weight: 600; color: var(--amber); transition: transform 0.25s ease; }
.write-row:hover .wr-arrow { transform: translateX(5px); }

@media (max-width: 620px) {
  .write-row { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}

/* ============================================================
   CAMPAIGNS PAGE — case studies
   ============================================================ */
.case-narrow { max-width: 760px; }
.case-head { max-width: 70ch; margin-bottom: 2.5rem; }
.case-kicker { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.case-title { font-size: clamp(2.2rem, 6vw, 3.8rem); margin: 0.8rem 0 1rem; }
.case-sub { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--text-dim); max-width: 60ch; }
.case-feature .video-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.case-feature { margin-bottom: 2.2rem; }
.case-feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-bottom: 2.2rem;
}
.case-feature-pair .case-feature { margin-bottom: 0; }
@media (max-width: 760px) {
  .case-feature-pair { grid-template-columns: 1fr; }
}

.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.case-stats.inline { border-top: 0; padding-top: 0; margin: 1.6rem 0; gap: 1rem; }
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-n { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--amber); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat-l { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); line-height: 1.5; font-weight: 600; }

.case-block { margin-bottom: 2.4rem; }
.case-block:last-child { margin-bottom: 0; }
.case-h3 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin-bottom: 0.9rem; display: flex; align-items: baseline; gap: 0.8rem; }
.case-num { color: var(--amber); font-size: 0.95rem; font-weight: 700; }
.case-block p { color: var(--text-dim); }
.case-ul { list-style: none; margin-top: 0.5rem; }
.case-ul li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.case-ul li::before { content: "→"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.case-ul li:last-child { border-bottom: 0; }

.deliv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.deliv { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem; transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.deliv:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.07); }
.deliv-k { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.deliv h4 { font-size: 1.16rem; margin: 0.5rem 0 0.5rem; letter-spacing: -0.01em; }
.deliv p { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 0.9rem; }
.deliv-link { font-size: 0.74rem; font-weight: 600; color: var(--text); transition: color 0.2s ease; }
.deliv-link:hover { color: var(--amber); }

.case-results { background: var(--bg-soft); border-block: 1px solid var(--line); }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
.result-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1.1rem 1.3rem; background: var(--bg-softer); border: 1px solid var(--line); border-radius: 8px; }
.result-icon { color: var(--amber); font-size: 1.1rem; flex-shrink: 0; font-weight: 700; }
.result-item p { color: var(--text-dim); font-size: 0.96rem; }
.result-item strong { color: var(--text); font-weight: 700; }

.kyr-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kyr-text p { color: var(--text-dim); margin-bottom: 1.2rem; }

.cta-sec { text-align: center; }
.cta { max-width: 60ch; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.9rem; }
.cta p { color: var(--text-dim); margin-bottom: 1.8rem; font-size: 1.12rem; }

@media (max-width: 860px) {
  .case-stats { grid-template-columns: 1fr; gap: 1.1rem; }
  .deliv-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .kyr-grid { grid-template-columns: 1fr; }
  .kyr-grid .case-feature { max-width: 340px; margin-inline: auto; }
}
