/* Shot By Protius — Editorial Cinema Portfolio Stylesheet
   Palette: Deep Teal (#0F5E63 / #19C3C3), Amber (#E3A33B), Red (#C8102E)
   Surfaces (Flat Dark Only): #000000, #181818, #1F1F1F, #272727, #313131, #131209
*/

:root {
  --bg-canvas: #000000;
  --bg-surface: #181818;
  --bg-elevated: #1F1F1F;
  --bg-border: #272727;
  --bg-hover: #313131;
  --bg-warm: #131209;

  --teal-deep: #0F5E63;
  --teal-line: #19C3C3;
  --amber: #E3A33B;
  --red: #C8102E;

  --ink: #FFFFFF;
  --ink-muted: #9B9B9B;
  --ink-dim: #737373;

  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --font-sans: "Geist", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  min-height: 100vh;
}

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

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

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

/* Focus ring (accessibility requirement) */
:focus-visible {
  outline: 2px solid var(--teal-line);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: var(--teal-deep);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  transition: top 300ms var(--ease-fluid);
}

.skip-link:focus {
  top: 16px;
}

/* Typography helpers */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
  font-style: normal;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
}

.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-5xl { font-size: 48px; line-height: 1; }
.text-6xl { font-size: 60px; line-height: 1; }
.text-7xl { font-size: 72px; line-height: 1; }

.hero-gradient-text {
  background: linear-gradient(90deg, #FFFFFF 0%, #9B9B9B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--bg-border);
}

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

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

/* Fluid Island Pill Navigation */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(24, 24, 24, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-border);
  transition: all 700ms var(--ease-fluid);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}
.brand-mark-footer {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-logo-on-light {
  display: none;
}
.about-lockup-wrap .brand-logo-on-light {
  display: none;
}
/* Original black/teal lockup: use when a parent has .on-light-bg */
.on-light-bg .brand-logo-on-dark,
.on-light-bg.about-lockup-wrap .brand-logo-on-dark {
  display: none;
}
.on-light-bg .brand-logo-on-light,
.on-light-bg.about-lockup-wrap .brand-logo-on-light {
  display: block;
}
.brand-wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 20px;
  color: #F2EBE0;
  white-space: nowrap;
}
.on-light-bg .brand-wordmark {
  color: #0B4A5E;
}
.about-lockup-wrap {
  display: flex;
  justify-content: center;
}
.about-lockup {
  display: block;
  width: min(100%, 308px);
  height: auto;
}

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

.nav-link {
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 700ms var(--ease-fluid);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--bg-elevated);
}

.nav-link:active {
  transform: scale(0.98);
}

.nav-link.is-active {
  color: var(--ink);
  background: var(--teal-deep);
}

/* Hamburger Morph */
.nav-burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--bg-border);
  background: var(--bg-elevated);
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 700ms var(--ease-fluid);
}

.nav-burger:hover {
  background: var(--bg-hover);
}

.nav-burger:active {
  transform: scale(0.98);
}

.burger-line {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 700ms var(--ease-fluid), opacity 700ms var(--ease-fluid);
}

.burger-line-top {
  transform: translateY(-4px);
}

.burger-line-bot {
  transform: translateY(4px);
}

.nav-burger[aria-expanded="true"] .burger-line-top {
  transform: translateY(0) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .burger-line-bot {
  transform: translateY(0) rotate(-45deg);
}

/* Full Screen Modal Expansion */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 24px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease-fluid);
}

.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.nav-drawer-item {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  color: var(--ink-muted);
  transform: translateY(48px);
  opacity: 0;
  transition: transform 700ms var(--ease-fluid), opacity 700ms var(--ease-fluid), color 400ms var(--ease-fluid);
}

.nav-drawer.is-open .nav-drawer-item {
  transform: translateY(0);
  opacity: 1;
}

.nav-drawer.is-open .nav-drawer-item:nth-child(1) { transition-delay: 100ms; }
.nav-drawer.is-open .nav-drawer-item:nth-child(2) { transition-delay: 150ms; }
.nav-drawer.is-open .nav-drawer-item:nth-child(3) { transition-delay: 200ms; }
.nav-drawer.is-open .nav-drawer-item:nth-child(4) { transition-delay: 250ms; }
.nav-drawer.is-open .nav-drawer-item:nth-child(5) { transition-delay: 300ms; }

.nav-drawer-item.is-active,
.nav-drawer-item:hover {
  color: var(--ink);
}

.nav-drawer-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  border: 1px solid var(--teal-line);
  background: var(--teal-deep);
  color: var(--ink);
  transition: all 700ms var(--ease-fluid);
}

.btn:hover {
  background: #14767C;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #000000;
}

.btn-amber:hover {
  background: #EEB454;
}

.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--ink-muted);
}

.btn-sm {
  font-size: 14px;
  line-height: 20px;
  padding: 8px 12px;
}

/* Hero Section (Full Bleed A24 Style) */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-top: 96px;
  padding-bottom: 64px;
  overflow: hidden;
  background: var(--bg-canvas);
}

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

.hero-media img,
.hero-media .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-media img.is-active,
.hero-media .hero-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-media .hero-slide {
    transition: none;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.56);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--bg-border);
  background: rgba(24, 24, 24, 0.85);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--red);
}

.hero-title {
  max-width: 680px;
  font-size: 60px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 680px;
  font-size: 18px;
  line-height: 28px;
  color: #D4D4D4;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-proof {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta-bar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 20px;
  color: #D4D4D4;
}

/* Section Headers */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.02em;
  max-width: 680px;
}

.section-desc {
  max-width: 680px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
  margin-top: 12px;
}

/* Work Grid (A24 Editorial Cards) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.work-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 700ms var(--ease-fluid);
}

.work-card:hover {
  background: var(--bg-elevated);
  border-color: var(--teal-line);
  transform: translateY(-2px);
}

.work-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 8px; /* outer 16px - padding 8px = 8px */
  overflow: hidden;
  background: var(--bg-canvas);
}

.work-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-fluid);
}

.work-card:hover .work-thumb-btn img {
  transform: scale(1.03);
}

.work-play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 700ms var(--ease-fluid);
}

.work-card:hover .work-play-badge {
  background: var(--teal-deep);
  border-color: var(--teal-line);
  transform: scale(1.06);
}

.work-duration-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}

.work-body {
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.work-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
}

.work-cat {
  color: var(--teal-line);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-year {
  font-family: var(--font-mono);
  color: var(--amber);
  font-weight: 600;
}

.work-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
}

.work-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.work-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-dim);
}

.work-ext {
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 400ms var(--ease-fluid);
}

.work-ext:hover {
  color: var(--ink);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid var(--bg-border);
  background: var(--bg-surface);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  transition: all 700ms var(--ease-fluid);
}

.filter-btn:hover {
  color: var(--ink);
  background: var(--bg-elevated);
}

.filter-btn:active {
  transform: scale(0.98);
}

.filter-btn.is-active {
  background: var(--teal-deep);
  border-color: var(--teal-line);
  color: var(--ink);
}

/* Empty State */
.empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  display: none;
}

.empty-state.is-visible {
  display: block;
}





/* Mandatory Tagline Reveal Section (B11) */
.tagline-section {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--bg-border);
  background: var(--bg-canvas);
}

.tagline-reveal {
  max-width: 680px;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline-word {
  display: inline-block;
  color: rgba(255, 255, 255, 0.28);
  transition: color 700ms var(--ease-fluid);
  margin-right: 0.24em;
}

.tagline-word.is-lit {
  color: #FFFFFF;
}

/* Services & Feature Cards (all-around border, flat background) */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

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

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 700ms var(--ease-fluid);
}

.feature-card:hover {
  background: var(--bg-elevated);
  border-color: var(--ink-muted);
}

.feature-card-teal {
  background: var(--teal-deep);
  border-color: var(--teal-line);
}

.feature-card-amber {
  background: var(--bg-warm);
  border-color: var(--amber);
}

.feature-card-red {
  background: var(--bg-surface);
  border-color: var(--red);
}

.feature-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.feature-card-teal .feature-kicker {
  color: #FFFFFF;
}

.feature-title {
  font-size: 20px;
  line-height: 28px;
}

.feature-copy {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.feature-card-teal .feature-copy {
  color: #E5F4F4;
}

/* Timeline / Credits */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-row {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--amber);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 16px 24px;
}

.faq-item summary {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
}

/* Contact Page Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-panel {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--bg-border);
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  transition: border-color 400ms var(--ease-fluid);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal-line);
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: 14px;
  line-height: 20px;
  color: #FF6B7F;
  min-height: 20px;
}

.form-status {
  background: var(--bg-elevated);
  border: 1px solid var(--teal-line);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* Page Sub-header (Work, About, Services, Contact) */
.page-header {
  padding-top: 128px;
  padding-bottom: 48px;
  background: var(--bg-canvas);
}

.page-title {
  max-width: 680px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-sub {
  max-width: 680px;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
}

/* Lightbox Modal with Skeleton Loader */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 960px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-canvas);
  border: 1px solid var(--bg-border);
  border-radius: 8px; /* 16px outer - 8px */
  overflow: hidden;
}

.modal-stage iframe,
.modal-stage video,
.modal-stage img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal-stage img {
  object-fit: contain;
}

.skeleton-box {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

/* Scroll Reveal (B7) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: transform 800ms var(--ease-fluid), opacity 800ms var(--ease-fluid), filter 800ms var(--ease-fluid);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--bg-border);
  background: var(--bg-canvas);
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.footer-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.footer-col-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-dim);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-pill {
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
    margin-top: 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
  .hero {
    /* Fill the first phone screen instead of leaving a black gap under 86vh */
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 96px;
    padding-bottom: 48px;
  }
  .hero-title {
    font-size: 36px;
    line-height: 40px;
  }
  .page-title {
    font-size: 32px;
    line-height: 38px;
  }
  .tagline-reveal {
    font-size: 30px;
    line-height: 36px;
  }
  .work-grid,
  .work-grid-2,
  .cards-4,
  .cards-3,
  .cards-2,
  .footer-grid,
  .timeline-row {
    grid-template-columns: 1fr;
  }
  /* About + Contact: the two-column contact-grid was missing from the mobile collapse */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .tagline-word {
    color: #FFFFFF;
  }
}


/* Logo sizing: 48px desktop nav, 36px mobile, 40px footer. 2x/full-res assets. */
@media (max-width: 760px) {
  .nav-brand .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .brand-wordmark {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
  }
}
