/* Film-stock background — grain/texture is baked into the image.
   Paths resolve relative to this stylesheet (root), so assets/
   works from every page, including /pages/. */
html, body {
  background-color: #e8e4e0;
  background-image: url('assets/backgrounds/tof-filmstock-bg-desk.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  html, body {
    background-image: url('assets/backgrounds/tof-fimlsock-bg-mob.jpg');
    background-attachment: scroll;
  }
}

/* ============================================================
   TEARS ON FIRE — Global Stylesheet
   Aesthetic: Pure black / pure white. Minimal. Confident.
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --bg:            #e8e4e0;   /* fallback matching the film-stock background images */
  --text:          #1a1a1a;
  --text-dim:      #555555;
  --text-muted:    #888888;
  --border:        rgba(20, 20, 20, 0.1);
  --border-bright: rgba(20, 20, 20, 0.2);

  --font:        'Helvetica Neue', Helvetica, Arial, sans-serif;

  --nav-h:   60px;   /* desktop; 52px on mobile (see media query below) */
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --max-w:   1400px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur:     0.15s;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
ul, ol     { list-style: none; }
a          { color: inherit; text-decoration: none; }
button     { font: inherit; }

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1310;   /* above the slide-out panel (1300) so the nav-icon stays visible & clickable as the toggle */
  height: var(--nav-h);
  background: transparent;   /* nav floats — film stock always shows through */
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);   /* generous breathing room */
}

/* Nav icon button — top left trigger */
.nav__menu-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: opacity var(--dur) var(--ease);
}

.nav__menu-btn:hover { opacity: 0.45; }

/* The nav-icon never moves or hides — it stays fixed top-left and
   acts as the toggle: click to open the menu, click again to close.
   The panel slides out alongside it. */

.nav__menu-btn img {
  display: block;
  height: 32px;
  width: auto;
}

/* Logo — wordmark, dead centre */
.nav__logo {
  flex: 0 0 auto;
  background: none;
  border: none;
}

.nav__logo-img {
  height: 18px;
  width: auto;
  display: block;
}

/* Right slot — login + cart */
.nav__right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav__util-link {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #111111;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  transition: opacity var(--dur) var(--ease);
}

.nav__util-link:hover { opacity: 0.45; }

/* Mobile nav: tighter bar, smaller marks, no Login */
@media (max-width: 767px) {
  :root { --nav-h: 52px; }
  .nav__menu-btn img { height: 28px; }
  .nav__logo-img     { height: 16px; }
  .nav__util-link:not(.nav__loot-link) { display: none; }
}

/* ── Slide-in Menu Panel ────────────────────────────────── */

/* Backdrop — purely visual dim. It never captures pointer events,
   so the page behind the open menu stays fully scrollable and
   interactive. Outside-click / tap-to-close is handled in JS. */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.menu-backdrop--visible {
  opacity: 1;
}

/* Slide panel */
.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1300;
  width: 280px;
  background: transparent;
  border-right: none;
  display: flex;
  flex-direction: column;
  padding: var(--nav-h) 2.5rem 3rem;

  /* Hidden state — off-screen left */
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
}

.menu-panel--open {
  transform: translateX(0);
}

/* Close × inside panel top */
.menu-panel__close {
  position: absolute;
  top: calc((var(--nav-h) - 1em) / 2);
  left: var(--gutter);
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  font-family: var(--font);
  transition: opacity var(--dur) var(--ease);
}

.menu-panel__close:hover { opacity: 0.45; }

/* Desktop: no visible X — menu closes via nav-icon, link click, or click outside */
@media (min-width: 769px) {
  .menu-panel__close { display: none; }
}

/* Links stack — left-aligned */
.menu-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.menu-panel__link {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111111;
  line-height: 1;
  padding: 0.65rem 0;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.15s var(--ease);
}

.menu-panel--open .menu-panel__link {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger link reveal */
.menu-panel--open .menu-panel__link:nth-child(1) { transition-delay: 0.08s; }
.menu-panel--open .menu-panel__link:nth-child(2) { transition-delay: 0.13s; }
.menu-panel--open .menu-panel__link:nth-child(3) { transition-delay: 0.18s; }
.menu-panel--open .menu-panel__link:nth-child(4) { transition-delay: 0.23s; }
.menu-panel--open .menu-panel__link:nth-child(5) { transition-delay: 0.28s; }

.menu-panel__link:hover { opacity: 0.45; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo-wrap { line-height: 0; }

.hero__logo {
  max-width: 280px;
  width: 100%;
}

.hero__sig-wrap {
  margin-top: 48px;
  line-height: 0;
}

.hero__sig {
  max-width: 1200px;
  width: 100%;
  transform: scale(1);
}

.hero__cta {
  margin-top: 64px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 1;
  position: relative;
  padding-bottom: 2px;
  transition: opacity var(--dur) var(--ease);
}

.hero__cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease);
}

.hero__cta:hover { opacity: 0.55; }
.hero__cta:hover::after { width: 100%; }

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(20,20,20,0.5));
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.8; }
}

/* ── Latest Work ───────────────────────────────────────── */
.work {
  border-top: 1px solid var(--border);
}

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

.work-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  transition: opacity 0.3s var(--ease);
}

.work-card:last-child { border-right: none; }
.work-card:hover      { opacity: 0.7; }

.work-card__img {
  aspect-ratio: 3 / 4;
  background: rgba(20, 20, 20, 0.04);
  overflow: hidden;
  position: relative;
}

.work-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-card__photo {
  transform: scale(1.03);
}

/* Skeleton pulse */
.work-card--skel .work-card__img {
  animation: skelPulse 1.8s ease-in-out infinite;
}

@keyframes skelPulse {
  0%, 100% { background: rgba(20, 20, 20, 0.02); }
  50%       { background: rgba(20, 20, 20, 0.06); }
}

.work-card__caption {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 var(--gutter);
}

.work-card__name {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  min-height: 1em;
}

.work-card__cat {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Statement ─────────────────────────────────────────── */
.statement {
  padding: 120px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.statement__text {
  font-family: var(--font);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dim);
  text-align: center;
  max-width: 520px;
  letter-spacing: 0.01em;
}

/* ── Entry Grid ────────────────────────────────────────── */
.entries {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}

.entry:last-child { border-bottom: none; }

.entry:hover { background: rgba(20, 20, 20, 0.03); }

.entry__label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity var(--dur) var(--ease);
}

.entry__arrow {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.entry:hover .entry__label  { opacity: 0.55; }
.entry:hover .entry__arrow  { transform: translateX(4px); color: var(--text-dim); }

/* ── Footer — matches the homepage letter-ending ───────── */
.footer {
  background: transparent;
  border: none;
  text-align: center;
  padding: 80px 1.5rem 40px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #555555;
  margin: 0 1.4em;
  transition: color 0.3s ease;
}

.footer__nav a:hover { color: #1a1a1a; }

.footer__social {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: inline-flex;
}

.footer__social a {
  display: inline-flex;
  color: #555555;
  transition: color 0.3s ease;
}

.footer__social a:hover { color: #1a1a1a; }

.footer__social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer__love {
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #888888;
  margin-top: 48px;
}

.footer__copy {
  font-weight: 400;
  font-size: 8px;
  color: #888888;
  margin-top: 32px;
}

/* ── Shared inner-page styles ──────────────────────────── */

/* Page header */
.page-header {
  padding: calc(var(--nav-h) + 5rem) var(--gutter) 4rem;
}

.page-header__eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.page-header__title {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #0d0d0d;
  margin-bottom: 1.5rem;
}

.page-header__sub {
  font-family: var(--font);
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 48ch;
}

/* ── Page hero — full-viewport image, title at the bottom ───
   Matches the Future Affairs hero: full height, cover image at
   full brightness (no dark overlay), title centred 80px from the
   bottom. #1a1a1a shows through as a placeholder until the hero
   image is uploaded. */
.page-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 24px 80px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.page-hero--shop { background-image: url('assets/shop/shop-hero.jpg'); }
.page-hero--past { background-image: url('assets/past-affairs/past-affairs-hero.jpg'); }

.page-hero__title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin: 0;
}
.page-hero__rule {
  width: 40px;
  height: 1px;
  background: #fff;
  border: none;
  margin: 20px 0 0;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
}

/* Label utility */
.label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Inline link */
.inline-link {
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.inline-link:hover { color: var(--text); border-color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: none;
  padding: 1rem 2.5rem;
  transition: opacity 0.15s var(--ease);
}

.btn:hover { opacity: 0.75; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-dim);
  opacity: 1;
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.15s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus     { border-bottom-color: var(--text-dim); }
.form-input::placeholder { color: var(--text-muted); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(20,20,20,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
  font-family: var(--font);
}

.form-row         { display: grid; gap: 2rem; }
.form-row--half   { grid-template-columns: 1fr 1fr; }

.form-submit {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font);
}

.form-success {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
}

.form-success__text {
  font-family: var(--font);
  font-size: 1.1rem;
  color: var(--text-dim);
}

/* ── Shop ──────────────────────────────────────────────── */
.filter-bar { border-bottom: 1px solid var(--border); padding: 0 var(--gutter); }

.filter-bar__inner {
  display: flex;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.filter-btn {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 0;
  margin-right: 2rem;
  position: relative;
  bottom: -1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.filter-btn:hover       { color: var(--text-dim); }
.filter-btn--active     { color: var(--text); border-bottom-color: var(--text); }

.shop-grid-wrap {
  padding: 4rem var(--gutter) 8rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 4rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: opacity 0.2s var(--ease);
}

.product-card:hover { opacity: 0.7; }

.product-card__image {
  aspect-ratio: 3 / 4;
  background: rgba(20, 20, 20, 0.04);
  position: relative;
  overflow: hidden;
}

.product-card__placeholder {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.04);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 228, 224, 0.6);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.product-card:hover .product-card__overlay { opacity: 1; }

.product-card__quick {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(20,20,20,0.4);
  padding-bottom: 2px;
}

.product-card__info {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card__name {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.product-card__material {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font);
}

.product-card__price {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.shop-note {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.shop-note p {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ── Process ───────────────────────────────────────────── */
.process-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.process-item__aside { display: flex; flex-direction: column; align-items: flex-start; }

.process-item__num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.process-item__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.process-item__lead {
  font-family: var(--font);
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.process-item__text {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 58ch;
  margin-bottom: 0.875rem;
}

.process-item__detail {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  margin-top: 0.5rem;
}

.process-item__detail-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.process-item__detail span:last-child {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font);
}

.process-pricing {
  padding: 6rem var(--gutter);
  border-top: 1px solid var(--border);
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.process-pricing__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  margin-bottom: 1.25rem;
}

.process-pricing__body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

/* ── Archive ───────────────────────────────────────────── */
.archive-wrap { padding: 0 var(--gutter) 8rem; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: opacity 0.2s var(--ease);
}

.archive-card:hover     { opacity: 0.7; }
.archive-card--large    { grid-column: span 2; }
.archive-card--wide     { grid-column: span 2; }

.archive-card__image {
  background: rgba(20, 20, 20, 0.04);
  min-height: 300px;
  flex: 1;
}

.archive-card--large .archive-card__image,
.archive-card--wide  .archive-card__image { min-height: 420px; }

.archive-card__caption {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.archive-card__num {
  display: block;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.archive-card__name {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.archive-card__spec {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
}

.archive-foot {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.archive-foot__text {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Build ─────────────────────────────────────────────── */
.build-wrap { padding: 0 var(--gutter) 8rem; }

.build-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 6rem;
  align-items: start;
}

.build-aside__title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #0d0d0d;
  margin-bottom: 2rem;
}

.build-aside__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.build-aside__list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.build-aside__num {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding-top: 0.15em;
}

.build-aside__list p {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}

.build-form { display: flex; flex-direction: column; gap: 2rem; }

/* ── Studio ────────────────────────────────────────────── */
.studio-details {
  padding: 4rem var(--gutter) 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.studio-info { display: flex; flex-direction: column; gap: 3rem; }
.studio-info__block { display: flex; flex-direction: column; gap: 0.75rem; }

.studio-address {
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  color: var(--text);
  font-style: normal;
}

.studio-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 2rem;
  font-family: var(--font);
  font-size: 15px;
}

.studio-hours dt { color: var(--text-muted); }
.studio-hours dd { color: var(--text-dim); }

.studio-directions,
.studio-contact {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}

.studio-map {
  background: rgba(20, 20, 20, 0.04);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-map__label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.studio-about {
  border-top: 1px solid var(--border);
  padding: 6rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.studio-about__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.studio-about__title em { font-family: var(--font); color: var(--text-dim); }

.studio-about__text p {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 50ch;
  margin-bottom: 1rem;
}

.studio-about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.studio-img-placeholder { background: rgba(20, 20, 20, 0.04); }
.studio-img-placeholder--tall  { aspect-ratio: 2 / 3; }
.studio-img-placeholder--short { aspect-ratio: 2 / 3; margin-top: 3rem; }

.studio-booking {
  border-top: 1px solid var(--border);
  padding: 6rem var(--gutter);
}

.studio-booking__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 6rem;
  align-items: start;
}

.studio-booking__header { position: sticky; top: calc(var(--nav-h) + 2rem); }

.studio-booking__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  margin-bottom: 0.75rem;
}

.studio-booking__sub {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}

.studio-booking__form { display: flex; flex-direction: column; gap: 2rem; }

/* ── Terms ─────────────────────────────────────────────── */
.terms-wrap { padding: 0 var(--gutter) 8rem; }

.terms-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6rem;
  align-items: start;
}

.terms-toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.terms-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.terms-toc__list li a {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}

.terms-toc__list li a:hover { color: var(--text-dim); }

.terms-body {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.terms-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.terms-section:last-child { border-bottom: none; }

.terms-section__title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0d0d0d;
  margin-bottom: 1.25rem;
}

.terms-section p {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 65ch;
  margin-bottom: 0.875rem;
}

.terms-section p:last-child { margin-bottom: 0; }
.terms-section strong       { color: var(--text); font-weight: 500; }

/* ── Active nav link ───────────────────────────────────── */
.nav__link--active { opacity: 0.5; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .work__grid,
  .shop-grid,
  .archive-grid { grid-template-columns: repeat(2, 1fr); }

  .archive-card--large,
  .archive-card--wide { grid-column: span 2; }

  .build-layout,
  .studio-details,
  .studio-about,
  .studio-booking__inner,
  .terms-inner { grid-template-columns: 1fr; gap: 3rem; }

  .studio-booking__header,
  .terms-toc { position: static; }

  .process-item { grid-template-columns: 60px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Mobile: solid filmstock panel, no blur */
  .menu-panel {
    width: 100%;
    border-right: none;
    background: rgba(232, 228, 224, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .menu-panel__link { font-size: 16px; }

  .hero__logo  { max-width: 180px; }
  .hero__sig-wrap { margin-top: 36px; }
  .hero__sig   { width: 100vw; max-width: none; }
  .hero__cta   { margin-top: 48px; }

  .work__grid,
  .shop-grid,
  .archive-grid { grid-template-columns: 1fr; }

  .archive-card--large .archive-card__image,
  .archive-card--wide  .archive-card__image { min-height: 240px; }

  .statement { padding: 80px var(--gutter); }

  .footer__nav { gap: 0.75rem 0; }

  .process-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .process-item__aside { flex-direction: row; align-items: center; gap: 1rem; }

  .form-row--half { grid-template-columns: 1fr; }

  .studio-about__images { grid-template-columns: 1fr; }
  .studio-img-placeholder--short { margin-top: 0; }

  .archive-foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero__logo { max-width: 160px; }
  .hero__sig  { width: 100vw; max-width: none; }

  .statement__text { font-size: 1.2rem; }
  .page-header__title { font-size: 2.25rem; }

  .archive-card--large,
  .archive-card--wide { grid-column: span 1; }
}

/* ============================================================
   Loading Screen — black curtain. The signature signs itself,
   silver beads fall from the letters, then the whole curtain
   (signature + beads) drops off the bottom of the screen.
   ============================================================ */
#tof-loading {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9000;
  overflow: hidden;
  /* weighted, gravity-feel fall — heavy curtain under gravity */
  transition: transform 1.8s cubic-bezier(0.4, 0, 1, 1);
}

#tof-loading.tof-loading--drop {
  transform: translateY(100vh);
}

/* the signature — the only thing on the loading screen */
.tof-loading__sig {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  width: 90vw;
  filter: invert(1) brightness(3);
  opacity: 0;
}

/* return visit: simple fade-in, no handwriting */
.tof-loading__sig--visible {
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* first visit: the pen writes it, left to right */
.tof-loading__sig--writing {
  opacity: 1;
  animation: tof-sig-write 3.5s cubic-bezier(0.25, 0.1, 0.4, 1) forwards;
}

@keyframes tof-sig-write {
  0%   { clip-path: inset(0 100% 0 0); }
  30%  { clip-path: inset(0 62% 0 0); }   /* confident opening */
  45%  { clip-path: inset(0 52% 0 0); }   /* pen slows mid-word */
  62%  { clip-path: inset(0 30% 0 0); }   /* picks back up */
  100% { clip-path: inset(0 0 0 0); }
}

/* beads accumulate on the curtain and ride down with it */
.tof-loading__beads {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============================================================
   Signature Bead Canvas — above content, below interactivity
   ============================================================ */
#tof-beads {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
