/* ═══════════════════════════════════════════════════════════════════════
   ENHANCE — Apple-inspired UX layer
   - Clarity: tighter type, calmer chrome, fewer distractions
   - Deference: thinner hairlines, softer shadows, less noise
   - Touch-first: real mobile nav, larger tap targets, no broken hero
   Loaded AFTER styles.css so it can override.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Global elegance pass ───────────────────────────────────────────── */
:root{
  /* Slightly cooler, more refined hairlines */
  --line:        rgba(20, 16, 12, 0.08);
  --hairline:    rgba(20, 16, 12, 0.06);
}
[data-theme="dark"]{
  --line:        rgba(245, 239, 224, 0.08);
  --hairline:    rgba(245, 239, 224, 0.06);
}

body{
  font-size: 16px;
  letter-spacing: -0.005em;
}

/* Calmer film grain */
#grain{ opacity: .022 !important; }

/* Cursor only on fine pointer + large screens (Apple: don't fake what's not there) */
@media (max-width: 900px), (hover: none), (pointer: coarse){
  body{ cursor: auto !important; }
  #cursor{ display: none !important; }
  *{ cursor: auto !important; }
  a, button, .chip, .pkg, .masonry__item, .specimen, .pin{ cursor: pointer !important; }
  input, textarea{ cursor: text !important; }
}

/* Tighter uppercase micro-type — less shouty */
.kicker, .nav__links, .nav__cta, .footer, .rail, .chip,
.now__item .badge, .b-partner-plate{
  letter-spacing: .18em !important;
}

/* ═══ NAV — refined + mobile drawer ═══════════════════════════════════ */
.nav{
  padding: 18px 32px !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(245, 239, 224, 0);
  transition: background .35s ease, padding .3s ease, color .4s ease, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom-color: var(--line);
  padding: 12px 32px !important;
}
[data-theme="dark"] .nav.is-scrolled{
  background: color-mix(in oklch, var(--bg) 80%, transparent);
}
.nav__brand{ font-size: 20px !important; }
.nav__brand em{ color: var(--terra); }
.nav__links a{
  font-size: 10.5px !important;
  opacity: .55;
  transition: opacity .25s;
  white-space: nowrap;
}
.nav__links a:hover{ opacity: 1; }
.nav__links{ gap: 28px !important; }
.nav__right{
  justify-self: end;
  display: flex; align-items: center; gap: 8px;
}
.nav__theme{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  font: 500 10.5px/1 var(--ff-mono);
  letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer;
  border-radius: 100px;
  transition: background .2s, border-color .2s, opacity .2s;
  opacity: .65;
  min-height: 40px;
}
.nav__theme:hover{ opacity: 1; background: color-mix(in oklch, var(--ink) 6%, transparent); }
.nav.is-dark .nav__theme{ color: var(--bg); }
.nav__cta{
  padding: 12px 20px !important;
  font-size: 10.5px !important;
  border-radius: 100px !important;
  border-width: 1px;
  min-height: 40px;
}
.nav__cta:hover{ padding-right: 26px !important; }

/* Hamburger button — hidden on desktop */
.nav__burger{
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: inherit;
  position: relative;
  z-index: 210;
  transition: background .2s;
}
.nav__burger:hover{ background: color-mix(in oklch, var(--ink) 8%, transparent); }
.nav__burger span{
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s, top .35s cubic-bezier(.2,.8,.2,1);
}
.nav__burger span:nth-child(1){ top: 15px; }
.nav__burger span:nth-child(2){ top: 23px; }
.nav__burger.is-open span:nth-child(1){ top: 19px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2){ top: 19px; transform: rotate(-45deg); }

/* Mobile menu sheet */
.mobile-menu{
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 84px 28px 32px;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.7, 0, .2, 1);
  pointer-events: none;
  overflow-y: auto;
}
.mobile-menu.is-open{
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu__nav{
  display: flex; flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.mobile-menu__nav a{
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--ff-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.is-open .mobile-menu__nav a{
  opacity: 1; transform: translateY(0);
}
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1){ transition-delay: .1s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2){ transition-delay: .16s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3){ transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4){ transition-delay: .28s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5){ transition-delay: .34s; }
.mobile-menu__nav a em{
  font-style: italic; color: var(--terra);
}
.mobile-menu__nav a .num{
  font-family: var(--ff-mono);
  font-size: 11px; font-style: normal;
  color: var(--ink-mute);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mobile-menu__foot{
  margin-top: auto;
  padding-top: 32px;
  display: flex; flex-direction: column; gap: 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease .42s, transform .5s cubic-bezier(.2,.8,.2,1) .42s;
}
.mobile-menu.is-open .mobile-menu__foot{ opacity: 1; transform: translateY(0); }
.mobile-menu__cta{
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 100px;
  font: 500 11px/1 var(--ff-mono);
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.mobile-menu__cta span{
  font-family: var(--ff-display); font-style: italic;
  font-size: 16px; letter-spacing: 0; text-transform: none;
}
.mobile-menu__meta{
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 500 10px/1.5 var(--ff-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.mobile-menu__meta a{
  color: var(--ink);
  text-decoration: none;
}

/* Apply mobile nav at ≤900px */
@media (max-width: 900px){
  .nav{
    grid-template-columns: 1fr auto !important;
    padding: 14px 20px !important;
    gap: 8px;
  }
  .nav.is-scrolled{ padding: 10px 20px !important; }
  .nav__links{ display: none !important; }
  .nav__theme{ display: none !important; }
  .nav__cta{ display: none !important; }
  .nav__burger{ display: inline-flex; }
  .nav__brand{ font-size: 18px !important; }
}

/* ═══ HERO — mobile fix + elegance ═══════════════════════════════════ */
.hero::before{ opacity: .35 !important; }
.hero::after{ opacity: .25 !important; }
.hero__title h1{
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__title .sub{
  font-size: 13.5px;
  letter-spacing: .005em;
}

/* Quieter hero edition/seal labels */
.hero__edition, .hero__seal{
  font-size: 9px !important;
  letter-spacing: .22em !important;
  opacity: .75;
}

@media (max-width: 1100px){
  .hero{ min-height: 640px; }
  .hero__edition{ top: 84px; left: 32px; }
  .hero__seal{ top: 84px; right: 32px; }
}

/* Mobile hero — drastically calmer */
@media (max-width: 768px){
  .hero{
    height: 92vh; min-height: 580px;
    padding-bottom: 0;
  }
  .hero::before{
    left: 16px; right: 16px; top: 16px; bottom: 16px;
  }
  .hero .crop{ display: none; }
  .hero__edition{
    top: 76px; left: 20px;
    font-size: 8.5px !important;
    letter-spacing: .2em !important;
  }
  .hero__seal{
    top: 76px; right: 20px;
    font-size: 8.5px !important;
    letter-spacing: .2em !important;
  }
  .hero__edition em, .hero__seal em{ font-size: 12px !important; }

  /* Show only 4 specimens on phone — the rest are off-screen anyway */
  .specimen{ display: none !important; }
  .specimen:nth-child(1),
  .specimen:nth-child(2),
  .specimen:nth-child(3),
  .specimen:nth-child(5){
    display: block !important;
  }
  /* Reposition + scale to fit the smaller viewport */
  .specimen:nth-child(1){
    left: 18% !important; top: 22% !important;
    width: 38vw !important; height: 50vw !important;
    margin-left: -19vw !important; margin-top: -25vw !important;
  }
  .specimen:nth-child(2){
    left: 82% !important; top: 18% !important;
    width: 40vw !important; height: 52vw !important;
    margin-left: -20vw !important; margin-top: -26vw !important;
  }
  .specimen:nth-child(3){
    left: 22% !important; top: 78% !important;
    width: 38vw !important; height: 50vw !important;
    margin-left: -19vw !important; margin-top: -25vw !important;
  }
  .specimen:nth-child(5){
    left: 78% !important; top: 75% !important;
    width: 36vw !important; height: 48vw !important;
    margin-left: -18vw !important; margin-top: -24vw !important;
  }
  .specimen{
    box-shadow:
      0 8px 18px -10px rgba(40,30,20,.3),
      0 18px 40px -16px rgba(40,30,20,.25) !important;
  }

  .hero__title{
    width: 100%;
    padding: 0 20px;
  }
  .hero__title .kicker{
    margin-bottom: 20px !important;
    font-size: 9.5px !important;
    letter-spacing: .22em !important;
  }
  .hero__title h1{
    font-size: clamp(40px, 12vw, 60px) !important;
    line-height: .92 !important;
  }
  .hero__title .sub{
    margin-top: 22px;
    font-size: 13px;
    padding: 18px 8px 0;
  }
  .hero__pill{
    bottom: 22px;
    font-size: 9px !important;
    letter-spacing: .22em !important;
  }
}

@media (max-width: 480px){
  .hero__edition{ display: none; }
  .hero__seal{ display: none; }
}

/* Touch hint — replace mouse-only "Drag · throw" copy */
@media (hover: none), (pointer: coarse){
  .hero__pill::before{ content: "Tap a photo · scroll to read "; }
  .hero__pill > :not(.arr){ display: none; }
  .hero__pill .arr{ display: inline-block; }
}

/* ═══ NOW TICKER — calmer, lighter ═══════════════════════════════════ */
.now{ padding: 18px 0 !important; }
.now__item{
  font-size: 30px !important;
}
.now__item .badge{
  font-size: 8.5px !important;
  padding: 6px 10px !important;
  letter-spacing: .22em !important;
}
@media (max-width: 768px){
  .now__item{ font-size: 22px !important; }
  .now__track{ gap: 36px !important; }
  .now__item .badge{ font-size: 8px !important; padding: 5px 8px !important; }
}

/* ═══ COUNTERS — refined on mobile ═══════════════════════════════════ */
.counters{ padding: 64px 0 !important; }
@media (max-width: 768px){
  .counters{ padding: 48px 0 !important; }
  .counters__grid{ grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .counter b{ font-size: 52px !important; letter-spacing: -0.03em !important; }
  .counter .small{ font-size: 16px !important; }
  .counter span{ font-size: 9px !important; letter-spacing: .2em !important; }
}

/* ═══ CHAPTERS — better mobile flow ══════════════════════════════════ */
.chapters{ padding-block: 120px 80px !important; }
@media (max-width: 900px){
  .chapters{ padding-block: 80px 60px !important; }
  .chapters__hd{
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 56px !important;
  }
  .chapters__hd .lede{ max-width: 100% !important; font-size: 14.5px !important; }
  .chapter{
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 56px 0 !important;
    margin: 0 !important;
  }
  .chapter__meta{
    position: static !important;
    display: flex; gap: 20px; align-items: baseline;
    flex-wrap: wrap;
  }
  .chapter__num{
    font-size: 56px !important; margin-bottom: 0 !important;
  }
  .chapter__title{ font-size: clamp(32px, 8vw, 44px) !important; }
  .chapter__body{ font-size: 14.5px !important; }
  .chapter__data{ gap: 18px 28px !important; font-size: 9.5px !important; }
  .chapter__data b{ font-size: 15px !important; }
  .chapter__train{
    grid-template-columns: repeat(6, 140px) !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    margin: 28px -20px 0;
    padding-left: 20px;
  }
  .chapter__train .ph{
    width: 140px !important; height: 180px !important;
    scroll-snap-align: start;
  }
  .chapter__train .ph:nth-child(odd),
  .chapter__train .ph:nth-child(even){ transform: none !important; }
  .cosign{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    text-align: left;
  }
}

/* ═══ SECT HEADERS — calmer rhythm on mobile ════════════════════════ */
@media (max-width: 768px){
  .sect-hd{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    margin-bottom: 48px !important;
  }
  .sect-hd .sub{ text-align: left !important; max-width: 100% !important; font-size: 14px !important; }
  .sect-hd h2{ font-size: clamp(40px, 11vw, 56px) !important; }
}

/* ═══ GRID / MASONRY — better mobile ══════════════════════════════════ */
.grid{ padding-block: 100px !important; }
@media (max-width: 768px){
  .grid{ padding-block: 64px !important; }
  .masonry{ column-count: 2 !important; column-gap: 10px !important; }
  .masonry__item{ margin-bottom: 10px !important; border-radius: 6px !important; }
  .masonry__item .meta{
    opacity: 1 !important; transform: none !important;
    left: 10px; right: 10px; bottom: 10px;
  }
  .masonry__item .meta b{ font-size: 16px !important; }
  .masonry__item .meta small{ font-size: 8.5px !important; }
}

/* ═══ MAP — better mobile ════════════════════════════════════════════ */
.mapsect{ padding-block: 100px !important; }
@media (max-width: 768px){
  .mapsect{ padding-block: 64px !important; }
  .mapwrap{ aspect-ratio: 1 / 1.1 !important; }
  .mapstats{
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
    margin-top: 32px !important;
  }
  .mapstat b{ font-size: 44px !important; }
  .mapstat span{ font-size: 9px !important; }
  .maplegend{
    left: 8px; top: 8px;
    flex-wrap: wrap;
    max-width: calc(100% - 60px);
    gap: 8px 12px !important;
    padding: 6px 10px !important;
    font-size: 8.5px !important;
  }
  .mapctrls{ right: 8px; top: 8px; }
  .mapctrls button{
    width: 38px !important; height: 38px !important;
  }
}

/* ═══ BRANDS / PITCH — mobile ════════════════════════════════════════ */
.brands{ padding-block: 100px !important; }
@media (max-width: 900px){
  .brands{ padding-block: 72px !important; }
  .pitchgrid{ grid-template-columns: 1fr !important; gap: 12px !important; }
  .pitchcard, .pitchcard--wide, .pitchcard--tall{
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    padding: 28px 24px !important;
    min-height: 0 !important;
  }
  .pitchcard b{ font-size: 52px !important; }
  .packages{ grid-template-columns: 1fr !important; gap: 12px !important; }
  .pkg{
    padding: 32px 26px !important;
    min-height: 0 !important;
  }
  .pkg h3{ font-size: 40px !important; }
  .pastpartners{
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .pastpartners .lbl{ margin-right: 0; }
  .pastpartners span + span::before{ content: ""; margin: 0; }
  .pastpartners span{ font-size: 18px !important; }
}

/* ═══ ABOUT — mobile ═════════════════════════════════════════════════ */
.about{ padding-block: 100px !important; }
@media (max-width: 900px){
  .about{ padding-block: 64px !important; }
  .about__grid{ grid-template-columns: 1fr !important; gap: 48px !important; }
  .about__photos .ph:nth-child(2),
  .about__portrait:nth-child(2) .ph{ transform: none !important; }
  .bio-row{ grid-template-columns: 1fr !important; gap: 24px !important; }
  .about__copy p{ font-size: 14.5px !important; }
  .about__intro{ font-size: 18px !important; }
}

/* ═══ CONTACT — mobile ═══════════════════════════════════════════════ */
.contact{ padding-block: 100px 64px !important; }
@media (max-width: 768px){
  .contact{ padding-block: 72px 56px !important; }
  .contact h2{ font-size: clamp(56px, 16vw, 84px) !important; }
  .contact .lede{ font-size: 14.5px !important; margin: 24px auto 32px !important; }
  .contact-cta{
    padding: 18px 26px !important;
    font-size: 10.5px !important;
    letter-spacing: .22em !important;
  }
  .contact-mini{
    flex-direction: column;
    gap: 14px !important;
    margin-top: 36px !important;
    font-size: 10px !important;
  }
}

/* ═══ FOOTER — mobile ════════════════════════════════════════════════ */
.footer{ padding-block: 56px 32px !important; }
@media (max-width: 768px){
  .footer .big{
    font-size: clamp(64px, 22vw, 100px) !important;
    margin-bottom: 32px !important;
  }
}

/* ═══ DRAWER — mobile sizing ═════════════════════════════════════════ */
@media (max-width: 600px){
  .drawer__panel{ padding: 56px 24px !important; }
  .drawer h3{ font-size: 36px !important; }
  .drawer .field{ font-size: 15px !important; }
  .drawer .meta{ flex-direction: column; gap: 8px; }
}

/* ═══ PRESENCE PILL — quieter, lower z conflict ═════════════════════ */
.presence__pill{
  font-size: 10px !important;
  letter-spacing: .18em !important;
  padding: 10px 14px !important;
}
@media (max-width: 768px){
  .presence{ bottom: 14px !important; left: 14px !important; }
  .presence__pill{
    font-size: 9.5px !important;
    padding: 9px 12px !important;
  }
  /* Hide the pill while the mobile menu is open (it clashes with the sheet) */
  body.menu-open .presence{ opacity: 0 !important; pointer-events: none !important; }
}

/* ═══ SCROLL RAIL — calmer ═══════════════════════════════════════════ */
.rail a{ padding: 8px 0 !important; }

/* ═══ NEWSLETTER ═════════════════════════════════════════════════════ */
@media (max-width: 768px){
  .newsletter{ padding-block: 72px !important; }
  .newsletter__form input{ font-size: 16px !important; }  /* prevent iOS zoom */
}

/* ═══ DISPATCHES ═════════════════════════════════════════════════════ */
@media (max-width: 768px){
  .dispatches{ padding-block: 72px !important; }
}

/* ═══ FORM INPUTS — prevent iOS zoom on focus ════════════════════════ */
@media (max-width: 768px){
  input, textarea, select{
    font-size: 16px !important;
  }
  .b-inquiry__field, .drawer .field, .newsletter__form input{
    font-size: 16px !important;
  }
}

/* ═══ TAP-TARGET MINIMUMS (Apple HIG: 44pt) ══════════════════════════ */
@media (hover: none), (pointer: coarse){
  .chip{
    min-height: 44px;
    display: inline-flex; align-items: center;
    padding: 10px 16px !important;
  }
  .nav__cta, .contact-cta, .drawer .submit, .b-inquiry__submit{
    min-height: 48px;
  }
  .mapctrls button{
    min-width: 44px; min-height: 44px;
  }
  .pin{ padding: 8px !important; }
  .pin__dot{ min-width: 14px; min-height: 14px; }
}

/* ═══ Focus rings — accessible & elegant ═════════════════════════════ */
*:focus-visible{
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible, a:focus-visible{
  outline-offset: 4px;
}

/* ═══ Smoothing on scrollbars + scroll padding ═══════════════════════ */
html{
  scroll-padding-top: 80px;
}

/* Hide mobile-only sticky hand-written note (was already partially hidden) */
@media (max-width: 768px){
  .hero__sticky{ display: none !important; }
}

/* ═══ Loader — calmer on mobile ══════════════════════════════════════ */
@media (max-width: 768px){
  .loader__mark{ width: 88px !important; height: 88px !important; }
  .loader__cap{ font-size: 10px !important; letter-spacing: .22em !important; }
}

/* ═══ Print-friendly + reduced motion safeguards ═════════════════════ */
@media (prefers-reduced-motion: reduce){
  .mobile-menu{ transition: transform .2s ease !important; }
  .mobile-menu__nav a, .mobile-menu__foot{ transition: none !important; }
}
