:root {
  color-scheme: dark;
  /* Surfaces — warm off-black hierarchy */
  --paper:        #0d0c0a;
  --raised:       #15130f;
  --hairline:     #2a261e;

  /* Inks — resolved warm grays, not alpha on white */
  --ink:          #f1ece1;
  --ink-muted:    #a8a290;
  --ink-faint:    #5a5547;
  --ink-dim:      #2a261e;

  /* One warm bronze, used sparingly */
  --accent:       #c8a464;
  --available:    #b8c79a;

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-ui:      -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --size-display-xl: 96px;
  --size-display-l:  64px;
  --size-h2:         32px;
  --size-body:       17px;
  --size-ui:         13px;
  --size-label:      11px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.0;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.label {
  font-family: var(--font-ui);
  font-size: var(--size-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

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

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="true"] {
  background: rgba(13, 12, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink-dim);
}
.nav:has(.nav-links.is-open) {
  background: var(--paper);
  border-bottom-color: var(--hairline);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
}
.nav-brand .brand-italic { font-style: italic; font-weight: 500; }
.nav-brand .brand-faint  { color: var(--ink-muted); font-weight: 400; margin-left: 8px; }

.nav-links {
  display: flex;
  gap: var(--space-7);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); background: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink-muted);
  padding: 10px 20px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.nav-cta:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--paper);
  max-width: none;
  margin: 0;
  padding: 0;
}
.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
iframe.hero-video {
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, calc(100vh * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0) 75%
  );
  pointer-events: none;
  z-index: 0;
}
.hero-overlay > * { pointer-events: auto; position: relative; z-index: 1; }

.hero-text { margin-bottom: var(--space-5); }
.hero-title {
  font-size: var(--size-display-xl);
  font-weight: 400;
  line-height: 0.95;
  margin-top: var(--space-3);
  max-width: 14ch;
}
.hero-title em { font-style: italic; }

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.hero-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(13, 12, 10, 0.4);
  border: 1px solid var(--ink-muted);
  padding: 14px 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.hero-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hero-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.hero-mute {
  position: absolute;
  bottom: calc(var(--space-6) + 56px);
  right: var(--space-7);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(13, 12, 10, 0.45);
  border: 1px solid var(--ink-muted);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.hero-mute:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hero-mute:active { transform: scale(0.96); }
.hero-mute svg { width: 18px; height: 18px; display: block; }
.hero-mute__on { display: none; }
.hero-mute.is-muted .hero-mute__off { display: block; }
.hero-mute.is-muted .hero-mute__on { display: none; }
.hero-mute:not(.is-muted) .hero-mute__off { display: none; }
.hero-mute:not(.is-muted) .hero-mute__on { display: block; }
.hero-mute:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.hero-nav {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-7);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.hero-nav:empty { display: none; }
.hero-nav-count { color: var(--ink); }
.hero-nav-divider,
.hero-nav-total { color: var(--ink-faint); }
.hero-dots {
  display: flex;
  gap: var(--space-2);
  margin-left: var(--space-3);
}
.hero-dot {
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
}
.hero-dot::before {
  content: "";
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-faint);
  transition: background var(--transition-base), width var(--transition-base);
}
.hero-dot:hover::before { background: var(--ink-muted); }
.hero-dot.is-active::before {
  background: var(--ink);
  width: 36px;
}
.hero-dot:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 12, 10, 0.45);
  border: 1px solid rgba(241, 236, 225, 0.22);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  opacity: 0.92;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.hero-arrow svg { width: 20px; height: 20px; display: block; }
.hero-arrow:hover {
  background: rgba(13, 12, 10, 0.72);
  border-color: rgba(241, 236, 225, 0.55);
  opacity: 1;
}
.hero-arrow-prev { left: var(--space-5); }
.hero-arrow-next { right: var(--space-5); }
.hero-arrow-prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-arrow-next:hover { transform: translateY(-50%) translateX(2px); }
.hero-arrow:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-arrow-prev:hover,
  .hero-arrow-next:hover { transform: translateY(-50%); }
}

/* Portrait & near-square viewports: video sits at top below the nav, title
   stacks beneath it. Shows the full 16:9 frame, no horizontal crop. */
@media (max-aspect-ratio: 1/1) {
  .hero {
    height: calc(100vw * 9 / 16 + 380px);
    min-height: 560px;
    max-height: 100vh;
  }
  iframe.hero-video,
  img.hero-video {
    top: 88px;
    left: 0;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .hero-arrow {
    top: calc(88px + (100vw * 9 / 16) / 2);
  }
}

/* ============ Sections (shared) ============ */
section {
  padding: var(--space-8) var(--space-7);
  max-width: 1440px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--ink-dim);
  padding-bottom: var(--space-4);
}
.section-title {
  font-size: var(--size-display-l);
  font-weight: 400;
}
.section-meta {
  font-size: var(--size-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============ Portfolio ============ */
.portfolio-header { align-items: center; }
.portfolio-controls { display: flex; align-items: center; gap: var(--space-5); }
.portfolio-arrows { display: inline-flex; gap: var(--space-2); }
.portfolio-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--ink-muted);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}
.portfolio-arrow svg { width: 16px; height: 16px; display: block; }
.portfolio-arrow:hover:not([disabled]) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.portfolio-arrow[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--hairline);
}
.portfolio-arrow:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.portfolio-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
}
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-track:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.portfolio-track .work-card {
  flex: 0 0 calc((100% - 2 * var(--space-3)) / 3);
  scroll-snap-align: start;
}

.portfolio-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.portfolio-nav[hidden] { display: none; }
.portfolio-dots { display: inline-flex; gap: var(--space-2); }
.portfolio-dot {
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
}
.portfolio-dot::before {
  content: "";
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-faint);
  transition: background var(--transition-base), width var(--transition-base);
}
.portfolio-dot:hover::before { background: var(--ink-muted); }
.portfolio-dot.is-active::before {
  background: var(--ink);
  width: 36px;
}
.portfolio-dot:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

/* ============ Work Card ============ */
.work-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
}
.work-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.work-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--raised);
}
.work-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work-card:hover .work-thumb,
.work-card:focus-visible .work-thumb { transform: scale(1.025); }

.work-watch {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(13, 12, 10, 0.78);
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events: none;
}
.work-card:hover .work-watch,
.work-card:focus-visible .work-watch {
  opacity: 1;
  transform: translateY(0);
}

.work-caption {
  margin-top: var(--space-3);
  padding: 0;
}
.work-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.work-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  letter-spacing: 0.02em;
}
.work-meta-sep { color: var(--ink-faint); }
.work-meta-cat { color: var(--ink); }
.work-meta-tools { color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  .work-card:hover .work-thumb { transform: none; }
  .work-watch { opacity: 1; transform: none; }
}

/* ============ Archive ============ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-5);
}

.medium-tabs {
  display: flex;
  border: 1px solid var(--ink-faint);
}
.medium-tab {
  background: transparent;
  color: var(--ink-muted);
  border: 0;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: var(--size-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.medium-tab + .medium-tab { border-left: 1px solid var(--ink-faint); }
.medium-tab:hover:not(.is-disabled) { color: var(--ink); }
.medium-tab.is-active { background: var(--ink); color: var(--paper); }
.medium-tab.is-disabled { opacity: 0.4; cursor: not-allowed; }
.tab-hint { font-size: 9px; opacity: 0.6; margin-left: 4px; }

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--ink-faint);
  padding: 6px 12px;
  font-family: var(--font-ui);
  font-size: var(--size-ui);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

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

.load-error {
  color: var(--ink-muted);
  font-size: var(--size-ui);
  text-align: center;
  padding: var(--space-7) 0;
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-7);
}
.lightbox.is-open { display: grid; grid-template-rows: 1fr auto; }

.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-faint);
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.lightbox-close:hover { background: var(--ink); color: var(--paper); }

.lightbox-frame {
  width: min(1200px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 0 auto;
}
.lightbox-video { width: 100%; height: 100%; border: 0; }

.lightbox-meta {
  width: min(1200px, 92vw);
  margin: var(--space-5) auto 0;
  color: var(--ink-muted);
}
.lightbox-title { font-size: var(--size-h2); color: var(--ink); }
.lightbox-info  { font-family: var(--font-mono); font-size: 11px; margin-top: var(--space-2); }
.lightbox-desc  { font-size: var(--size-body); margin-top: var(--space-3); max-width: 70ch; }

/* ============ About ============ */
.about-copy p { font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 56ch; }
.about-copy p + p { margin-top: var(--space-4); }
.about-cta { margin-top: var(--space-5) !important; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-7);
  align-items: start;
}
.contact-aside .contact-email a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  border-bottom: 1px solid var(--accent);
  transition: border-color var(--transition-fast);
}
.contact-aside .contact-email a:hover { border-bottom-color: var(--ink); }
.contact-social {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  gap: var(--space-3);
  color: var(--ink-muted);
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--ink-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.social-link svg { width: 16px; height: 16px; display: block; }
.social-link:hover { color: var(--ink); border-color: var(--ink-faint); }
.social-link:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: var(--size-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input, .field select, .field textarea {
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink-faint);
  padding: 10px 0;
  font-family: var(--font-ui);
  font-size: var(--size-body);
  outline: none;
  transition: border-color var(--transition-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }

/* Native select — kept in DOM as accessible fallback, hidden by .select__native
   when the JS enhancer wraps it. The plain rule below keeps it usable if JS fails. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a290' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 14px;
  padding: 16px 28px 16px 0;
  cursor: pointer;
  border-radius: 0;
  line-height: 1.3;
}
.field select option {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 16px;
  font-size: var(--size-body);
}

/* JS-enhanced custom dropdown */
.select { position: relative; }
.select__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink-faint);
  padding: 14px 0;
  font-family: var(--font-ui);
  font-size: var(--size-body);
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
  transition: border-color var(--transition-fast);
}
.select__trigger:hover { border-bottom-color: var(--ink-muted); }
.select__trigger:focus-visible { outline: none; border-bottom-color: var(--ink); }
.select.is-open .select__trigger { border-bottom-color: var(--ink); }
.select__value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__value.is-placeholder { color: var(--ink-muted); }
.select__chev {
  display: inline-flex;
  align-items: center;
  color: var(--ink-muted);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color var(--transition-fast);
}
.select__chev svg { width: 16px; height: 16px; display: block; }
.select.is-open .select__chev { transform: rotate(180deg); color: var(--ink); }

.select__popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--raised);
  border: 1px solid var(--hairline);
  padding: 6px 0;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  transform-origin: top center;
  animation: select-pop-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.select__popup[hidden] { display: none; }
@keyframes select-pop-in {
  0%   { opacity: 0; transform: translateY(-6px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.select__popup::-webkit-scrollbar { width: 6px; }
.select__popup::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 3px; }

.select__option {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: var(--size-body);
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
  transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}
.select__option:hover,
.select__option:focus-visible {
  background: rgba(241, 236, 225, 0.06);
  outline: none;
  padding-left: 18px;
}
.select__option[aria-selected="true"] {
  color: var(--accent);
}
.select__option[aria-selected="true"]::before {
  content: "·";
  margin-right: 6px;
  color: var(--accent);
}
.select__option--placeholder { color: var(--ink-muted); }
.select__option--placeholder:hover { color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) {
  .select__popup { animation: none; }
  .select__chev { transition: none; }
  .select__option { transition: none; }
}
.field-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; justify-content: flex-end; margin-top: var(--space-4); }
.submit-btn {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-size: var(--size-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.submit-btn:hover { opacity: 0.88; }
.submit-btn[disabled] { opacity: 0.5; cursor: wait; }
.form-status { font-size: var(--size-ui); color: var(--ink-muted); margin-top: var(--space-3); min-height: 1.5em; }
.form-status.is-error { color: #d97a7a; }
.form-status.is-success { color: var(--available); }

/* ============ Footer ============ */
.footer {
  display: flex;
  justify-content: space-between;
  padding: var(--space-5) var(--space-7);
  border-top: 1px solid var(--ink-dim);
  font-size: var(--size-ui);
  color: var(--ink-muted);
}
.footer-social { display: inline-flex; gap: var(--space-3); align-items: center; }
.footer-social .social-link { width: 30px; height: 30px; }
.footer-social .social-link svg { width: 14px; height: 14px; }

/* ============ Responsive ============ */
.nav-burger { display: none; }

@media (max-width: 1023px) {
  section { padding: var(--space-7) var(--space-5); }
  .hero-title { font-size: 64px; }
  .section-title { font-size: 48px; }
  .portfolio-track .work-card { flex: 0 0 calc((100% - var(--space-3)) / 2); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .field-row-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav { padding: var(--space-3) var(--space-4); }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 61px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 61px);
    background: var(--paper);
    border-top: 1px solid var(--hairline);
    padding: var(--space-4) var(--space-5);
    gap: 0;
    font-size: 28px;
    z-index: 150;
    overflow-y: auto;
  }
  .nav-links.is-open a {
    font-size: 28px;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--hairline);
    letter-spacing: 0.18em;
  }
  .nav-links.is-open a:last-child {
    border-bottom: 0;
  }
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
  }
  .nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms;
    transform-origin: center;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
  .nav-brand { font-size: 20px; }
  .nav-brand .brand-faint { display: none; }
  .nav-cta { font-size: 10px; padding: 8px 14px; letter-spacing: 0.2em; }
  section { padding: var(--space-7) var(--space-4); }
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-5);
  }
  .section-meta { font-size: 10px; letter-spacing: 0.18em; }
  .hero-title { font-size: 44px; }
  .hero-overlay { padding: var(--space-4); }
  .hero-actions { flex-direction: row; gap: var(--space-4); }
  .hero .eyebrow { display: none; }
  .hero-nav { display: none; }
  .hero-mute {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 38px;
    height: 38px;
  }
  .hero-mute svg { width: 16px; height: 16px; }
  /* Let touch swipes on the video region reach the hero for navigation */
  iframe.hero-video { pointer-events: none; }
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow svg { width: 16px; height: 16px; }
  .hero-arrow-prev { left: var(--space-2); }
  .hero-arrow-next { right: var(--space-2); }
  .portfolio-track .work-card { flex: 0 0 85vw; }
  .portfolio-controls {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-3);
  }
  .portfolio-arrow { width: 32px; height: 32px; }
  .portfolio-arrow svg { width: 14px; height: 14px; }
  .field-row-3 { grid-template-columns: 1fr; }
  .section-title { font-size: 32px; }
  .contact-grid .contact-aside .contact-email a { font-size: 22px; }
  .footer { flex-direction: column; gap: var(--space-3); padding: var(--space-4); align-items: flex-start; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-3) var(--space-4);
  font-size: var(--size-ui);
  z-index: 200;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

