/* ══════════════════════════════════════════════════════════════════
   HAL 9000 — 2001: A Space Odyssey
   Clinical. Precise. Inevitable.
   ══════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
  --h-bg:        #F8F8F5;
  --h-bg-alt:    #F2F2EE;
  --h-white:     #FFFFFF;
  --h-red:       #CC1100;
  --h-red-dim:   rgba(204,17,0,.15);
  --h-black:     #0D0D0D;
  --h-dark:      #080808;
  --h-text:      #1A1A1A;
  --h-muted:     #888;
  --h-faint:     #BBBBB8;
  --h-line:      rgba(0,0,0,.07);
  --h-mono:      'Space Mono', monospace;
  --h-sans:      'Inter', sans-serif;
  --h-ease:      cubic-bezier(.2,.8,.4,1);
  --h-dur:       .7s;
}

/* ── RESET ───────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.theme-hal {
  font-family: var(--h-sans);
  background: var(--h-bg);
  color: var(--h-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.theme-hal a { text-decoration: none; color: inherit; }
body.theme-hal img { display: block; max-width: 100%; }

/* ── SCROLL PROGRESS ─────────────────────────────────────────────── */
.h-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(248,248,245,.92);
  z-index: 9999;
  pointer-events: none;
}
.h-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--h-red);
  transition: width .1s linear;
}

/* ── NAV ─────────────────────────────────────────────────────────── */
.h-nav {
  position: fixed;
  top: 2px; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
  transition: background .5s var(--h-ease), backdrop-filter .5s, padding .4s, border-color .5s;
  border-bottom: 1px solid transparent;
}

.h-nav.scrolled {
  background: rgba(248,248,245,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 52px;
  border-bottom-color: var(--h-line);
}

.h-nav-logo {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  transition: color .4s;
}
.h-nav.scrolled .h-nav-logo { color: var(--h-black); }

.h-nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.h-nav-links a {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  transition: color .3s;
}

.h-nav-links a:hover,
.h-nav-links a.active {
  color: #fff;
}

.h-nav.scrolled .h-nav-links a { color: var(--h-text); }
.h-nav.scrolled .h-nav-links a:hover,
.h-nav.scrolled .h-nav-links a.active { color: var(--h-black); }

/* Theme switcher */
.h-nav-theme { position: relative; }

#theme-btn {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(255,255,255,.55);
  color: rgba(255,255,255,.88);
  padding: 7px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .3s, color .3s;
}

.h-nav.scrolled #theme-btn {
  border-color: rgba(0,0,0,.2);
  color: var(--h-text);
}

#theme-btn:hover { border-color: var(--h-red); color: var(--h-red); }

#theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--h-white);
  border: 1px solid var(--h-line);
  min-width: 190px;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  z-index: 100;
}

#theme-dropdown.open { display: flex; }

#theme-dropdown a {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 13px 18px;
  color: var(--h-muted);
  border-bottom: 1px solid var(--h-line);
  transition: background .2s, color .2s;
}

#theme-dropdown a:last-child { border-bottom: none; }
#theme-dropdown a:hover { background: var(--h-bg); color: var(--h-red); }

/* Mobile hamburger */
.h-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.h-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,.7);
  transition: background .4s;
}

.h-nav.scrolled .h-hamburger span { background: var(--h-black); }

/* Mobile nav menu */
#nav-menu {
  display: none;
}

#nav-menu.nav-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0;
  width: 260px;
  height: 100vh;
  background: var(--h-white);
  padding: 80px 40px 40px;
  z-index: 999;
  gap: 24px;
  border-left: 1px solid var(--h-line);
}

#nav-menu a {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--h-muted);
  transition: color .3s;
}

#nav-menu a:hover { color: var(--h-red); }

/* ── HERO ────────────────────────────────────────────────────────── */
.h-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040404;
  overflow: hidden;
}

#hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#hero-video-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh; height: 100vh;
  min-width: 100%; min-height: 56.25vw;
  border: none;
  pointer-events: none;
}

.h-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(5,0,0,0.55) 50%, rgba(0,0,0,0.70) 100%);
  z-index: 1;
  pointer-events: none;
}

.h-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* ── HAL EYE ─────────────────────────────────────────────────────── */
.h-eye-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.h-eye {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #1c0000 0%,
    #2e0000 22%,
    #1a0000 48%,
    #0d0000 72%,
    #050000 100%
  );
  box-shadow:
    0 0 0 1px rgba(204,17,0,.25),
    0 0 0 10px rgba(204,17,0,.04),
    0 0 50px rgba(204,17,0,.12),
    0 0 100px rgba(204,17,0,.04),
    inset 0 0 50px rgba(204,17,0,.08);
  transition: box-shadow .5s;
}

.h-eye:hover {
  box-shadow:
    0 0 0 1px rgba(204,17,0,.5),
    0 0 0 10px rgba(204,17,0,.1),
    0 0 70px rgba(204,17,0,.22),
    0 0 140px rgba(204,17,0,.08),
    inset 0 0 50px rgba(204,17,0,.14);
}

.h-eye-iris {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #550000 0%,
    #880000 32%,
    #440000 60%,
    #120000 85%,
    #050000 100%
  );
}

.h-eye-pupil {
  position: absolute;
  /* centered within the 200px eye — 34px diameter */
  width: 34px;
  height: 34px;
  top: 50%; left: 50%;
  margin-top: -17px;
  margin-left: -17px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #FFE040 0%,
    #FFAA00 22%,
    #FF5500 46%,
    #CC1100 68%,
    rgba(80,0,0,.4) 88%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(255,160,0,.7),
    0 0 5px  rgba(255,230,60,.6);
  transition: transform .1s ease-out;
}

.h-eye-highlight {
  position: absolute;
  width: 22px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,190,.55) 0%, transparent 70%);
  top: 34px;
  left: 36px;
  pointer-events: none;
}

/* Rings are children of .h-eye (200×200 circle) so inset is always a perfect circle */
.h-eye-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(204,17,0,.2);
  animation: h-ring-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.h-eye-ring-2 {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  border: 1px solid rgba(204,17,0,.08);
  animation: h-ring-pulse 4.5s ease-in-out infinite 1.1s;
  pointer-events: none;
}

@keyframes h-ring-pulse {
  0%,100% { opacity: .35; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.015); }
}

/* HAL status readout */
.h-hal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(204,17,0,.55);
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
}

.h-hal-status.visible { opacity: 1; }

.h-hal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--h-red);
  animation: h-blink 1.2s ease-in-out infinite;
}

@keyframes h-blink {
  0%,100% { opacity: .25; }
  50%      { opacity: 1; }
}

/* Hero text */
.h-hero-text { text-align: center; }

.h-hero-label {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .45em;
  color: rgba(204,17,0,.7);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.h-hero-name {
  font-family: var(--h-mono);
  font-size: clamp(22px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: .15em;
  color: rgba(255,255,255,.88);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.h-hero-sub {
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 300;
  letter-spacing: .18em;
  color: rgba(255,255,255,.32);
  text-transform: uppercase;
}

/* Scroll indicator */
.h-hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .35em;
  color: rgba(255,255,255,.22);
  text-transform: uppercase;
}

.h-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.18), transparent);
  animation: h-scroll-drop 2.2s ease-in-out infinite;
}

@keyframes h-scroll-drop {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────────── */
.h-reveal,
.h-reveal-left,
.h-reveal-right {
  opacity: 0;
  transition: opacity var(--h-dur) var(--h-ease),
              transform var(--h-dur) var(--h-ease);
}

.h-reveal       { transform: translateY(36px); }
.h-reveal-left  { transform: translateX(-44px); }
.h-reveal-right { transform: translateX(44px); }

.h-reveal.revealed,
.h-reveal-left.revealed,
.h-reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

.h-delay-1 { transition-delay: .1s; }
.h-delay-2 { transition-delay: .2s; }
.h-delay-3 { transition-delay: .3s; }
.h-delay-4 { transition-delay: .4s; }
.h-delay-5 { transition-delay: .5s; }

/* ── SECTION WRAPPERS ────────────────────────────────────────────── */
.h-section {
  padding: 120px 52px;
  max-width: 1120px;
  margin: 0 auto;
}

.h-section-alt {
  background: var(--h-bg-alt);
}

.h-section-dark {
  background: var(--h-dark);
}

.h-section-alt .h-section,
.h-section-dark .h-section {
  /* inherits padding + max-width */
}

.h-section-head {
  margin-bottom: 72px;
}

.h-label {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 18px;
}

.h-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -.015em;
  color: var(--h-black);
  line-height: 1.1;
  margin-bottom: 16px;
}

.h-title-dark { color: var(--h-white); }

.h-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--h-muted);
  max-width: 580px;
}

.h-rule {
  width: 36px;
  height: 1px;
  background: var(--h-red);
  margin: 20px 0 0;
}

/* ── HOME — TRIPTYCH ─────────────────────────────────────────────── */
.h-triptych {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--h-line);
  border: 1px solid var(--h-line);
}

.h-tri-panel {
  background: var(--h-bg);
  padding: 52px 44px;
  transition: background .35s;
}

.h-tri-panel:hover { background: var(--h-white); }

.h-tri-num {
  font-family: var(--h-mono);
  font-size: 44px;
  color: var(--h-red);
  opacity: .1;
  line-height: 1;
  margin-bottom: 28px;
}

.h-tri-tag {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 10px;
}

.h-tri-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--h-black);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.h-tri-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--h-muted);
}

.h-tri-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--h-black);
  transition: color .3s, gap .25s;
}

.h-tri-link:hover { color: var(--h-red); gap: 14px; }

/* ── HOME — FEATURED WORK ────────────────────────────────────────── */
.h-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.h-feat {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0a0a0a;
  cursor: pointer;
  display: block;
}

.h-feat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
  transition: transform .9s var(--h-ease), opacity .4s;
}

.h-feat:hover img { transform: scale(1.06); opacity: .45; }

.h-feat-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
  transform: translateY(6px);
  transition: transform .4s var(--h-ease);
}

.h-feat:hover .h-feat-cap { transform: translateY(0); }

.h-feat-cat {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 5px;
}

.h-feat-title {
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -.01em;
}

/* ── HOME — TESTIMONIALS ─────────────────────────────────────────── */
.h-testi-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.h-testi {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--h-line);
}

.h-testi:first-child { padding-top: 0; }
.h-testi:last-child { border-bottom: none; padding-bottom: 0; }

.h-testi-quote {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--h-text);
  font-style: italic;
}

.h-testi-quote::before {
  content: '\201C';
  font-size: 38px;
  color: var(--h-red);
  opacity: .28;
  line-height: 0;
  vertical-align: -15px;
  margin-right: 3px;
  font-style: normal;
}

.h-testi-by { text-align: right; padding-top: 4px; }

.h-testi-name {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--h-black);
  margin-bottom: 5px;
}

.h-testi-role {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--h-muted);
  line-height: 1.65;
}

/* ── HOME — PRESS ────────────────────────────────────────────────── */
.h-press {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.h-press-item {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--h-faint);
  padding: 20px 32px;
  border: 1px solid var(--h-line);
  margin: -1px 0 0 -1px;
  transition: color .3s, background .3s;
}

.h-press-item:hover { color: var(--h-black); background: var(--h-white); }

/* ── PAGE HERO HEADER ────────────────────────────────────────────── */
.h-page-top {
  background: var(--h-dark);
  padding: 160px 52px 80px;
  text-align: center;
}

.h-page-top-label {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 20px;
}

.h-page-top-title {
  font-size: clamp(36px, 6vw, 78px);
  font-weight: 300;
  letter-spacing: -.025em;
  color: var(--h-white);
  line-height: 1;
}

/* ── TABS ────────────────────────────────────────────────────────── */
.h-tabs-wrap {
  border-bottom: 1px solid var(--h-line);
  margin-bottom: 80px;
  display: flex;
}

[data-tab] {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 18px 26px;
  cursor: pointer;
  color: var(--h-muted);
  margin-bottom: -1px;
  transition: color .3s, border-color .3s;
}

[data-tab]:hover { color: var(--h-black); }

[data-tab].tab-active {
  color: var(--h-black);
  border-bottom-color: var(--h-red);
}

[data-panel] { display: none; }
[data-panel].panel-active { display: block; }

/* ── DESIGN — PROJECT PANELS ─────────────────────────────────────── */
.h-proj-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
  margin-bottom: 2px;
  background: var(--h-white);
  border: 1px solid var(--h-line);
}

.h-proj-panel.flip { direction: rtl; }
.h-proj-panel.flip > * { direction: ltr; }

.h-proj-img {
  overflow: hidden;
  background: #0a0a0a;
}

.h-proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  transition: transform .9s var(--h-ease), opacity .4s;
}

.h-proj-panel:hover .h-proj-img img { transform: scale(1.04); opacity: .72; }

.h-proj-info {
  padding: 64px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.h-proj-client {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 6px;
}

.h-proj-title {
  font-size: 26px;
  font-weight: 300;
  color: var(--h-black);
  letter-spacing: -.01em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.h-proj-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--h-muted);
  margin-bottom: 28px;
}

.h-proj-role-label {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--h-faint);
  margin-bottom: 3px;
}

.h-proj-role {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--h-muted);
  margin-bottom: 28px;
}

.h-proj-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--h-muted);
}

/* Branding gallery */
.h-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.h-brand-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #fff;
  cursor: pointer;
}

.h-brand-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s var(--h-ease), opacity .4s;
}

.h-brand-item:hover img { transform: scale(1.05); opacity: .75; }

/* ── LIGHTBOX ────────────────────────────────────────────────────── */
#lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,4,4,.96);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lb-overlay.lb-open { display: flex; }

#lb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 24px;
}

#lb-img {
  display: block;
  max-width: calc(88vw - 48px);
  max-height: calc(82vh - 48px);
  object-fit: contain;
}

#lb-overlay.lb-open #lb-img {
  animation: h-lb-in .5s var(--h-ease) forwards;
}

@keyframes h-lb-in {
  from { opacity: 0; transform: scale(.97); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1);  filter: blur(0); }
}

#lb-caption {
  text-align: center;
}

#lb-title {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--h-black);
}

#lb-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--h-muted);
  margin-top: 4px;
}

#lb-close {
  position: absolute;
  top: -52px;
  right: 0;
  background: none;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.5);
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .2em;
  padding: 8px 16px;
  cursor: pointer;
  transition: all .3s;
}

#lb-close:hover { color: #fff; border-color: #fff; }

/* ── CREATE — VIDEO LAYOUT ───────────────────────────────────────── */
.h-video-stack {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.h-vid-item {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.h-vid-item.flip {
  grid-template-columns: 300px 1fr;
}

.h-vid-item.flip .h-vid-frame { order: -1; }

.h-vid-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.h-vid-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.h-vid-meta { padding-top: 4px; }

.h-vid-num {
  font-family: var(--h-mono);
  font-size: 36px;
  color: var(--h-red);
  opacity: .1;
  line-height: 1;
  margin-bottom: 18px;
}

.h-vid-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--h-black);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.h-vid-role {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 20px;
}

.h-vid-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--h-muted);
}

/* Renderings */
.h-render-header {
  margin-bottom: 48px;
}

.h-render-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--h-black);
  margin-bottom: 8px;
}

.h-render-role {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 16px;
}

.h-render-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--h-muted);
  max-width: 600px;
}

.h-render-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  margin-bottom: 80px;
}

.h-render-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #fff;
}

.h-render-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s var(--h-ease), opacity .4s;
}

.h-render-item:hover img { transform: scale(1.04); opacity: .75; }

/* ── CAPTURE — PHOTOGRAPHY ───────────────────────────────────────── */
.h-photo-grid {
  columns: 3;
  column-gap: 2px;
}

.h-photo-item {
  break-inside: avoid;
  margin-bottom: 2px;
  overflow: hidden;
  cursor: pointer;
  background: #0a0a0a;
  display: block;
}

.h-photo-item img {
  width: 100%;
  display: block;
  opacity: .88;
  transition: transform .7s var(--h-ease), opacity .4s;
}

.h-photo-item:hover img { transform: scale(1.04); opacity: .7; }

.h-vr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.h-vr-item {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

/* ── ABOUT PAGE ──────────────────────────────────────────────────── */
.h-about-hero {
  background: var(--h-dark);
  display: grid;
  grid-template-columns: 1fr 285px;
  gap: 0;
  min-height: 70vh;
}

.h-about-hero-left {
  padding: 160px 52px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.h-about-name {
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 300;
  letter-spacing: -.025em;
  color: var(--h-white);
  line-height: 1;
  margin-bottom: 8px;
}

.h-about-title-label {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 32px;
}

.h-about-bio-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.82;
  color: rgba(255,255,255,.42);
  max-width: 520px;
}

.h-about-hero-photo {
  position: relative;
  overflow: hidden;
  width: 190px;
  height: 240px;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(255,255,255,.18);
}

.h-about-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(.35) brightness(.85);
  transition: filter .6s;
}

.h-about-hero-photo:hover img { filter: grayscale(.1) brightness(.95); }

/* Two-col layout for skills/edu/clients */
.h-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.h-about-section-label {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--h-line);
}

/* Skills - pip style */
.h-skill-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--h-line);
}
.h-skill-row:last-child { border-bottom: none; }

.h-skill-name {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-black);
  min-width: 160px;
}

.h-pip-wrap {
  display: flex;
  gap: 3px;
  align-items: center;
}

.h-pip-on,
.h-pip-off {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
}

.h-pip-on  { background: var(--h-red); }
.h-pip-off { background: var(--h-line); }

/* Education */
.h-edu-item {
  margin-bottom: 28px;
}

.h-edu-degree {
  font-size: 17px;
  font-weight: 300;
  color: var(--h-black);
  margin-bottom: 4px;
}

.h-edu-school {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--h-muted);
}

/* Clients */
.h-client-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.h-client-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--h-line);
  align-items: baseline;
}

.h-client-row:last-child { border-bottom: none; }

.h-client-name {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-black);
}

.h-client-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--h-muted);
  line-height: 1.6;
}

/* Contact */
.h-contact-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--h-line);
  border: 1px solid var(--h-line);
}

.h-contact-card {
  background: var(--h-bg);
  padding: 44px 32px;
  text-align: center;
  transition: background .3s;
}

.h-contact-card:hover { background: var(--h-white); }

.h-contact-icon {
  font-family: var(--h-mono);
  font-size: 20px;
  color: var(--h-red);
  margin-bottom: 14px;
}

.h-contact-label {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--h-black);
  margin-bottom: 5px;
}

.h-contact-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--h-muted);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.h-footer {
  padding: 40px 52px;
  border-top: 1px solid var(--h-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--h-bg);
}

.h-footer-id {}

.h-footer-name {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--h-black);
}

.h-footer-loc {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .15em;
  color: var(--h-muted);
  margin-top: 4px;
}

.h-footer-links {
  display: flex;
  gap: 32px;
}

.h-footer-links a {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--h-muted);
  transition: color .3s;
}

.h-footer-links a:hover { color: var(--h-red); }

.h-footer-copy {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--h-faint);
}

/* ── MOBILE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .h-nav { padding: 22px 24px; }
  .h-nav.scrolled { padding: 14px 24px; }
  .h-nav-links { display: none; }
  .h-hamburger { display: flex; }

  .h-section { padding: 80px 24px; }

  .h-triptych { grid-template-columns: 1fr; }
  .h-featured { grid-template-columns: 1fr; }
  .h-testi { grid-template-columns: 1fr; }
  .h-testi-by { text-align: left; }

  .h-proj-panel { grid-template-columns: 1fr; min-height: auto; }
  .h-proj-panel.flip { direction: ltr; }
  .h-proj-info { padding: 36px 28px; }

  .h-vid-item { grid-template-columns: 1fr; }
  .h-vid-item.flip { grid-template-columns: 1fr; }
  .h-vid-item.flip .h-vid-frame { order: 0; }

  .h-photo-grid { columns: 2; }
  .h-vr-grid { grid-template-columns: 1fr; }
  .h-vr-item { grid-template-columns: 1fr; }

  .h-about-hero { grid-template-columns: 1fr; }
  .h-about-hero-photo { display: none; }
  .h-about-hero-left { padding: 120px 24px 60px; }
  .h-about-grid { grid-template-columns: 1fr; gap: 60px; }

  .h-contact-grid { grid-template-columns: 1fr 1fr; }

  .h-footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 24px; }
  .h-footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }

  .h-page-top { padding: 120px 24px 60px; }
}

@media (max-width: 768px) {
  /* Hide YouTube hero bg on mobile — autoplay is blocked, shows as static thumbnail */
  #hero-video-bg { display: none; }
}

@media (max-width: 600px) {
  .h-photo-grid { columns: 1; }
  .h-contact-grid { grid-template-columns: 1fr 1fr; }
  .h-brand-grid { grid-template-columns: 1fr 1fr; }
  .h-render-grid { grid-template-columns: 1fr 1fr; }
  .h-client-row { grid-template-columns: 1fr; gap: 4px; }
  .h-eye { width: 160px; height: 160px; }
  .h-eye-pupil { width: 28px; height: 28px; margin-top: -14px; margin-left: -14px; }
}

@media (max-width: 480px) {
  .h-nav { padding: 16px 16px; }
  .h-nav.scrolled { padding: 10px 16px; }
  .h-section { padding: 56px 16px; }
  .h-page-top { padding: 90px 16px 40px; }
  .h-page-top-label { font-size: 10px; }
  .h-page-top-title { font-size: clamp(28px, 7vw, 42px); }
  .h-title { font-size: clamp(22px, 6vw, 34px); letter-spacing: .1em; }
  .h-hero { min-height: 0; }
  .h-hero-label { font-size: 9px; letter-spacing: .2em; }
  .h-hero-name { font-size: clamp(16px, 5vw, 26px); letter-spacing: .08em; }
  .h-hero-sub { font-size: 9px; letter-spacing: .1em; }
  .h-hero-content { gap: 20px; padding: 0 16px; }
  .h-eye { width: 110px; height: 110px; }
  .h-eye-ring { inset: -8px; }
  .h-eye-ring-2 { inset: -16px; }
  .h-eye-pupil { width: 22px; height: 22px; margin-top: -11px; margin-left: -11px; }
  .h-tri-panel { padding: 32px 20px; }
  .h-tabs-wrap { flex-wrap: wrap; }
  [data-tab] { padding: 12px 14px; font-size: 11px; letter-spacing: .15em; }
  .h-vid-item { gap: 20px; }
  .h-vid-title { font-size: 16px; }
  .h-render-grid { grid-template-columns: 1fr; }
  .h-contact-grid { grid-template-columns: 1fr; }
  .h-testi-quote { font-size: 14px; }
  .h-footer { padding: 24px 16px; }
  .h-footer-links { gap: 12px; }
  .h-about-hero-left { padding: 80px 16px 36px; }
}

@media (max-width: 360px) {
  .h-nav { padding: 12px 12px; }
  .h-section { padding: 44px 12px; }
  .h-page-top { padding: 80px 12px 32px; }
  .h-footer { padding: 20px 12px; }
  .h-render-grid { grid-template-columns: 1fr; }
  .h-brand-grid { grid-template-columns: 1fr; }
}
