/* ==========================================================================
   KOMYO.FRAMES PHOTOGRAPHY PORTFOLIO - EDITORIAL STYLESHEET
   Aesthetic: Warm editorial journal meets Japanese print — rice-paper cream,
   sumi ink, a vermilion seal accent, a moving row of photo cards, red
   script flourishes and vertical kana. (光明 / kōmyō = "light")
   ========================================================================== */

:root {
  --bg-primary: #F2EEE7;
  --bg-paper: #FAF7F2;
  --bg-card: #FFFFFF;
  --text-primary: #1E1C19;
  --text-muted: #77706A;
  --border-color: #DCD5CA;
  --border-dark: #1E1C19;
  --accent-gold: #A4907C;
  --accent-hover: #33312E;
  /* "olive" tokens now carry sumi ink; names kept so every surface follows */
  --olive: #1E1C19;
  --olive-deep: #121110;
  --accent-red: #B3262B;
  --cream-on-dark: #F2EEE7;

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'La Belle Aurore', 'Brush Script MT', cursive;
  --font-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --font-jp: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  --container-max: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #E6E0D6;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding: 24px 20px;
}

@media (min-width: 900px) {
  body {
    padding: 32px 40px;
  }
}

img {
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 1px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Keep in-page jumps clear of the frame edge */
#gallery, #about, #inquire, #services {
  scroll-margin-top: 16px;
}

/* Page Frame */
.page-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  background-color: var(--bg-primary);
  border: 1.5px solid var(--olive);
  border-radius: 22px;
  overflow: clip;
  position: relative;
  box-shadow: 0 20px 60px rgba(30, 28, 25, 0.12);
}

/* Shared: red script flourish and vertical kana watermark */
.script-red {
  font-family: var(--font-script);
  color: var(--accent-red);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.v-text {
  position: absolute;
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  color: var(--text-primary);
  opacity: 0.09;
  letter-spacing: 0.35em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.editorial-section {
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/* Shared: handwritten notes, polaroids, outline buttons */
.hand-note {
  font-family: var(--font-hand);
  color: var(--text-primary);
  line-height: 1.15;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.polaroid {
  background: var(--bg-paper);
  padding: 7px 7px 22px;
  box-shadow: 0 8px 24px rgba(42, 40, 32, 0.16);
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.outline-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.outline-btn--light {
  border-color: rgba(243, 238, 228, 0.8);
  color: var(--cream-on-dark);
}

.outline-btn--light:hover {
  background-color: var(--cream-on-dark);
  color: var(--olive-deep);
}

/* ==========================================================================
   HEADER — split navigation around a centered serif logo
   ========================================================================== */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 1px solid var(--border-color);
}

.header-side {
  display: flex;
  align-items: center;
}

.header-side--right {
  justify-content: flex-end;
}

.header-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.header-links a {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.3s ease;
}

.header-links a:hover {
  color: var(--accent-gold);
}

.header-link--underline {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 0.7;
}

.logo-seal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--accent-red);
  color: var(--cream-on-dark);
  font-family: var(--font-jp);
  font-size: 1rem;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile-only header items */
.header-status,
.menu-trigger {
  display: none;
}

.header-status {
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-dot,
.menu-dot {
  width: 6px;
  height: 6px;
  border: 1px solid var(--text-primary);
  border-radius: 50%;
  display: inline-block;
}

.menu-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  white-space: nowrap;
}

/* ==========================================================================
   HERO — headline over an endless row of playing-card photo cards
   The row scrolls left → right on a loop (the set is cloned in JS so the
   loop is seamless). Hover pauses it; click/tap opens the photo.
   ========================================================================== */
.hero-section {
  padding: 0;
  background-color: var(--bg-primary);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0 64px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.hero-stage .v-text {
  color: var(--text-primary);
  opacity: 0.1;
  top: 64px;
  font-size: 1.2rem;
}

.v-text--hero-left { left: 16px; }
.v-text--hero-right { right: 16px; }

/* Title block */
.hero-title {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  animation: fade-up 1.1s 0.1s var(--ease) both;
}

.hl-line {
  display: block;
  white-space: nowrap;
}

.hl-script {
  display: block;
  font-family: var(--font-script);
  color: var(--accent-red);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1em;
  line-height: 0.6;
  margin: -0.06em 0 -0.02em;
}

/* Red seal dot + label, like a hanko-stamped link */
.seal-link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  animation: fade-up 1s 0.3s var(--ease) both;
}

.seal-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--accent-red);
  transition: transform 0.5s var(--ease);
}

.seal-link:hover .seal-dot {
  transform: scale(1.15);
}

.hero-tagline {
  margin-top: -18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  animation: fade-up 1s 0.9s var(--ease) both;
}

.hero-corner {
  position: absolute;
  bottom: 18px;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-corner--left { left: 36px; }
.hero-corner--right { right: 36px; }

/* --- The moving row --- */
.deck-marquee {
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  /* fade the cards in/out at the edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  cursor: grab;
  /* vertical swipes still scroll the page; horizontal ones move the row */
  touch-action: pan-y;
}

.deck-marquee.is-dragging,
.deck-marquee.is-dragging .deck-card {
  cursor: grabbing;
}

.deck-track {
  display: flex;
  width: max-content;
  /* generous vertical room so card shadows fade out instead of being clipped */
  padding: 60px 0 70px;
  /* position is driven by setupDeck() in script.js (drift + drag + wheel) */
  will-change: transform;
}

.deck-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 14vw, 200px);
  aspect-ratio: 5 / 7;
  /* spacing lives on each card (not flex gap) so -50% lands exactly on the clone */
  margin-right: 30px;
  padding: 0;
  border: none;
  background: none;
  cursor: inherit;
  transform: rotate(var(--r, 0deg));
  -webkit-user-select: none;
  user-select: none;
}

/* Gentle bob up and down, each card on its own clock */
.card-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: card-bob var(--t, 8s) ease-in-out var(--deal, 0s) infinite alternate;
}

.card-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #2A2724;
  box-shadow:
    0 2px 4px rgba(30, 28, 25, 0.12),
    0 16px 34px rgba(30, 28, 25, 0.22);
  animation: card-deal 1s var(--deal, 0s) var(--ease) both;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* Lift on hover only where there's a real mouse — on phones a tap would leave it stuck */
@media (hover: hover) {
  .deck-marquee:not(.is-dragging) .deck-card:hover .card-face {
    transform: translateY(-14px) scale(1.06) rotate(calc(var(--r, 0deg) * -1));
    box-shadow:
      0 4px 8px rgba(30, 28, 25, 0.14),
      0 28px 54px rgba(30, 28, 25, 0.3);
  }
}

.deck-card:focus-visible .card-face {
  transform: translateY(-14px) scale(1.06) rotate(calc(var(--r, 0deg) * -1));
  box-shadow:
    0 4px 8px rgba(30, 28, 25, 0.14),
    0 28px 54px rgba(30, 28, 25, 0.3);
}

.card-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Soft vignette so corner text stays readable on bright photos */
.card-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 28%),
    linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 28%);
  pointer-events: none;
}

.card-index {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.card-index b {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.15rem;
}

.card-index i {
  font-style: normal;
  font-size: 1.15rem;
  margin-top: 4px;
}

.card-index--top { top: 10px; left: 10px; }
.card-index--bottom { bottom: 10px; right: 10px; transform: rotate(180deg); }

.card-question,
.card-handle {
  position: absolute;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.card-question {
  top: 12px;
  right: 9px;
  max-height: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-handle {
  bottom: 12px;
  left: 9px;
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Uses individual translate/scale so it never fights the hover transform */
@keyframes card-deal {
  from { opacity: 0; translate: 0 50px; scale: 0.9; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes card-bob {
  from { translate: 0 -6px; }
  to   { translate: 0 6px; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; }
}

/* Phones */
@media (max-width: 699px) {
  .hero-stage {
    padding: 44px 0 52px;
  }

  .hero-stage .v-text {
    display: none;
  }

  .hero-headline {
    font-size: 7.4vw;
  }

  .hl-script {
    font-size: 1.25em;
    margin: -0.12em 0 -0.06em;
  }

  .seal-link {
    margin-top: 18px;
  }

  .deck-marquee {
    margin-top: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .deck-track {
    padding: 44px 0 56px;
  }

  .deck-card {
    width: 38vw;
    max-width: 160px;
    margin-right: 18px;
  }

  .card-index b,
  .card-index i {
    font-size: 0.9rem;
  }

  .card-index--top { top: 8px; left: 8px; }
  .card-index--bottom { bottom: 8px; right: 8px; }

  .card-question,
  .card-handle {
    font-size: 0.44rem;
  }

  .card-question { top: 9px; right: 7px; }
  .card-handle { bottom: 9px; left: 7px; }

  .hero-tagline {
    font-size: 0.92rem;
  }

  .hero-corner {
    display: none;
  }
}

/* ==========================================================================
   WORK — one section per kind of photography
   A short centred line on the paper, then a full-bleed row of tall frames
   set edge to edge that scrolls sideways (native scroll, so it's smooth on
   phones; mouse drag + arrows on desktop).
   ========================================================================== */
.series-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 88px 24px 56px;
  text-align: center;
}

.series-label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.series-line {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--text-primary);
}

.series-line .script-red {
  font-size: 1.25em;
  line-height: 0.8;
}

.series-rail {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.series-rail::-webkit-scrollbar {
  display: none;
}

.series-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.series-rail:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: -2px;
}

.series-frame {
  flex: 0 0 auto;
  /* 46vh wide × 14/9 ≈ 72vh tall, so a whole frame fits on a laptop screen */
  width: clamp(240px, min(29vw, 46vh), 400px);
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: inherit;
  scroll-snap-align: start;
  -webkit-user-select: none;
  user-select: none;
}

/* small catalogue code sitting above each frame */
.frame-code {
  padding: 0 10px 6px;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-muted);
}

.frame-photo {
  position: relative;
  display: block;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  background-color: #E2DACB;
}

.frame-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.9s var(--ease);
}

.frame-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 17, 16, 0.5) 0%, rgba(18, 17, 16, 0) 30%);
  pointer-events: none;
}

.frame-title,
.frame-view {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  color: #FFFFFF;
}

.frame-title {
  left: 14px;
  right: 72px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.frame-view {
  right: 12px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .series-rail:not(.is-dragging) .series-frame:hover .frame-photo img {
    transform: scale(1.04);
  }
}

.series-frame:focus-visible .frame-photo {
  outline: 2px solid var(--accent-red);
  outline-offset: -2px;
}

.series-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 18px;
}

.series-count {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.series-arrows {
  display: flex;
  gap: 6px;
}

.series-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.series-arrow:hover {
  border-color: var(--text-primary);
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

/* ==========================================================================
   INK BAND — full-bleed landscape with vertical 光明
   ========================================================================== */
.olive-band {
  background-color: var(--olive);
  border-bottom-color: var(--olive);
}

.olive-band-frame {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.olive-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: brightness(0.5) saturate(0.8);
  transition: transform 1.6s var(--ease);
}

.olive-band:hover .olive-band-bg {
  transform: scale(1.03);
}

.band-kanji {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  letter-spacing: 0.15em;
  color: var(--cream-on-dark);
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}

.olive-band-content {
  position: relative;
  z-index: 2;
  color: var(--cream-on-dark);
  padding: 0 24px;
}

.olive-band-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 18px;
}

.olive-band-title .script-red {
  font-size: 1.05em;
  color: #E0473E;
}

.olive-band-text {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.9;
  opacity: 0.88;
  margin-bottom: 24px;
}

.band-caption {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream-on-dark);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  opacity: 0.85;
}

.band-caption em {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ==========================================================================
   ABOUT — editorial text with polaroids
   ========================================================================== */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 88px 72px 150px;
  overflow: hidden;
}

.about-text,
.about-photos {
  position: relative;
  z-index: 1;
}

.v-text--about {
  left: 26px;
  top: 88px;
  font-size: 1rem;
}

.ink-mountains {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  color: var(--text-primary);
  pointer-events: none;
  z-index: 0;
}

/* "BEHIND / the / LENS" — stacked caps with a red script cut-in */
.about-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.85;
  margin-bottom: 18px;
}

.about-title .script-red {
  font-size: 0.9em;
  line-height: 0.55;
  margin: -0.02em 0 0 0.9em;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--text-primary);
}

.stat-script {
  font-family: var(--font-script);
  color: var(--accent-red);
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: right;
}

.about-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.story-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.38;
  margin-bottom: 20px;
  max-width: 30em;
}

.story-body {
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 300;
  max-width: 34em;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.story-signature {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.about-photos {
  position: relative;
  min-height: 420px;
}

.about-polaroid {
  position: absolute;
  border: none;
  cursor: pointer;
  width: 46%;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.about-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-polaroid--one {
  left: 4%;
  top: 0;
  transform: rotate(-3deg);
}

.about-polaroid--one img {
  filter: grayscale(1) contrast(1.05);
}

.about-polaroid--two {
  right: 4%;
  top: 14%;
  transform: rotate(2.5deg);
}

.about-polaroid:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 16px 36px rgba(42, 40, 32, 0.22);
  z-index: 2;
}

.hand-note--about {
  right: 6%;
  bottom: 0;
  font-size: 1.25rem;
  transform: rotate(-6deg);
}

/* ==========================================================================
   SERVICES — list over full-bleed photo
   ========================================================================== */
.services-section {
  position: relative;
  overflow: hidden;
  color: var(--cream-on-dark);
  background-color: var(--olive-deep);
}

.services-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.75);
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18, 17, 16, 0.6) 0%, rgba(18, 17, 16, 0.1) 70%);
  z-index: 1;
}

.services-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 72px 72px;
  min-height: 480px;
}

.services-list-wrap {
  max-width: 440px;
}

.services-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.services-list {
  list-style: none;
  margin-bottom: 30px;
}

.service-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(243, 238, 228, 0.45);
  color: var(--cream-on-dark);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.service-arrow {
  color: #E0473E;
  transition: transform 0.4s var(--ease);
}

.service-row:hover {
  padding-left: 6px;
  border-bottom-color: var(--cream-on-dark);
}

.service-row:hover .service-arrow {
  transform: translateX(6px);
}

.services-inset {
  width: 260px;
  border: 6px solid var(--bg-paper);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  transition: transform 0.6s var(--ease);
  background: var(--bg-paper);
}

.services-inset img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.services-inset:hover {
  transform: rotate(0deg) translateY(-4px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-thumbnail-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-color);
}

.thumb-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: none;
  border-right: 1px solid var(--border-color);
  padding: 0;
  background-color: #E2DACB;
  cursor: pointer;
  display: block;
  width: 100%;
}

/* 3 per row on phones: drop the right border on each row end, add a row divider */
.thumb-item:nth-child(3n) {
  border-right: none;
}

.thumb-item:nth-child(-n + 3) {
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 600px) {
  .footer-thumbnail-strip {
    grid-template-columns: repeat(6, 1fr);
  }
  .thumb-item:nth-child(3n) {
    border-right: 1px solid var(--border-color);
  }
  .thumb-item:nth-child(-n + 3) {
    border-bottom: none;
  }
  .thumb-item:last-child {
    border-right: none;
  }
}

.thumb-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.thumb-item:hover img {
  transform: scale(1.08);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 1.4fr 1.2fr 1fr;
  }
}

.footer-col {
  padding: 36px 32px;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .footer-col {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
  .footer-col:last-child {
    border-right: none;
  }
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-bio-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 320px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links--nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

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

.back-to-top-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.back-to-top-btn:hover {
  background-color: var(--olive);
  border-color: var(--olive);
  color: var(--cream-on-dark);
}

.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 32px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-on-dark);
  background-color: var(--olive);
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 19, 12, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 1010;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close-btn:hover {
  opacity: 1;
}

.lightbox-content-box {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption-bar {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  width: 100%;
  color: #B9B19F;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lightbox-swipe-hint {
  display: none;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(185, 177, 159, 0.7);
}

.lightbox-modal.single .lightbox-nav-btn,
.lightbox-modal.single .lightbox-swipe-hint {
  display: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav-btn.prev { left: 20px; }
.lightbox-nav-btn.next { right: 20px; }

/* ==========================================================================
   INQUIRY / CONTACT MODAL
   ========================================================================== */
.contact-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(42, 40, 24, 0.82);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.contact-modal.active {
  display: flex;
}

.contact-dialog {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  max-width: 520px;
  width: 100%;
  margin: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.contact-dialog-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 8px;
}

.contact-dialog-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: -12px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  overflow-wrap: anywhere;
}

.contact-direct a:hover {
  color: var(--accent-gold);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--text-primary);
}

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

/* Honeypot: off-screen, invisible to people, filled by bots */
.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-btn {
  background-color: var(--olive);
  color: var(--cream-on-dark);
  border: none;
  padding: 14px;
  min-height: 48px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 8px;
}

.submit-btn:hover {
  background-color: var(--accent-red);
}

.submit-btn:disabled {
  background-color: var(--accent-gold);
  cursor: wait;
  opacity: 0.85;
}

.contact-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.contact-close-btn:hover {
  color: var(--text-primary);
}

.form-feedback {
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  border: 1px solid var(--border-color);
  display: none;
}

.form-feedback.success {
  color: #2e5e32;
  border-color: #c9dcc6;
  background-color: #f3f8f1;
}

.form-feedback.error {
  color: #7a2e22;
  border-color: #e6cfc8;
  background-color: #fbf2ef;
}

.form-feedback a {
  color: inherit;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   RESPONSIVE REFINEMENTS — PHONE, TABLET, DESKTOP
   ========================================================================== */

/* Touch devices: no hover, so captions stay softly visible */
@media (hover: none) {
  .olive-band:hover .olive-band-bg {
    transform: none;
  }
  .lightbox-swipe-hint {
    display: block;
  }
}

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

/* ---------- Small desktop / tablet ---------- */
@media (max-width: 1099px) {
  .about-section {
    padding: 64px 40px;
  }
  .services-inner {
    padding: 64px 40px;
  }
}

/* ---------- Tablet & below ---------- */
@media (max-width: 859px) {
  .about-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .about-photos {
    min-height: 0;
    height: 440px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .services-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-inset {
    justify-self: center;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 699px) {
  body {
    padding: 10px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  /* Header: status · logo · contact, never wrapping */
  .site-header {
    column-gap: 10px;
    padding: 8px 14px;
  }

  .header-links {
    display: none;
  }

  .header-status,
  .menu-trigger {
    display: flex;
  }

  .header-logo {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    gap: 8px;
  }

  .logo-seal {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .page-wrapper {
    border-radius: 16px;
  }

  /* Series: one tall frame with a peek of the next; swipe is native */
  .series-intro {
    padding: 60px 20px 36px;
  }

  .series-frame {
    width: 72vw;
  }

  .series-controls {
    padding: 12px 16px 14px;
  }

  .series-arrows {
    display: none;
  }

  /* Olive band */
  .olive-band-frame {
    height: 440px;
  }

  .band-kanji {
    right: 14px;
    top: 28px;
    transform: none;
    font-size: 2.4rem;
    opacity: 0.75;
  }

  .olive-band-text {
    font-size: 0.6rem;
  }

  .olive-band-text br {
    display: none;
  }

  /* About */
  .about-section {
    padding: 48px 24px 120px;
    gap: 40px;
  }

  .about-stats {
    gap: 28px;
  }

  .stat-num {
    font-size: 2.8rem;
  }

  .v-text--about {
    display: none;
  }

  .ink-mountains {
    height: 110px;
  }

  .story-quote {
    font-size: 1.3rem;
  }

  .about-photos {
    height: 330px;
  }

  .about-polaroid {
    width: 52%;
  }

  .about-polaroid--one { left: 0; }
  .about-polaroid--two { right: 0; top: 18%; }

  .hand-note--about {
    right: auto;
    left: 4%;
    bottom: -6px;
    font-size: 1.1rem;
  }

  /* Services */
  .services-inner {
    padding: 48px 24px;
    gap: 40px;
  }

  .services-title {
    font-size: 1.6rem;
  }

  .services-section::before {
    background: rgba(30, 28, 14, 0.35);
  }

  .services-inset {
    width: 62%;
    max-width: 240px;
  }

  /* Footer */
  .footer-col {
    padding: 28px 24px;
  }

  .footer-links {
    gap: 0;
  }

  .footer-links a {
    min-height: 44px;
  }

  .footer-links--nav {
    gap: 0 16px;
  }

  .footer-bottom-bar {
    padding: 16px 24px;
    text-align: center;
    gap: 4px;
  }

  /* Lightbox */
  .lightbox-modal {
    padding: 56px 0 24px;
  }

  .lightbox-content-box {
    max-width: 100vw;
    width: 100%;
    max-height: none;
  }

  .lightbox-image {
    max-height: 72vh;
    max-height: 72svh;
    box-shadow: none;
  }

  .lightbox-caption-bar {
    padding: 0 18px;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .lightbox-nav-btn {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-nav-btn.prev { left: 18px; }
  .lightbox-nav-btn.next { right: 18px; }

  .lightbox-close-btn {
    top: 8px;
    right: 8px;
  }

  /* Contact modal */
  .contact-modal {
    padding: 12px;
  }

  .contact-dialog {
    padding: 36px 22px 26px;
  }

  .contact-dialog-title {
    font-size: 1.7rem;
    padding-right: 36px;
  }

  .contact-dialog-sub {
    font-size: 0.68rem;
    margin-bottom: 22px;
  }

  .contact-form {
    gap: 14px;
  }

  /* 16px inputs stop iOS from zooming on focus */
  .form-input, .form-textarea, .form-select {
    font-size: 16px;
    padding: 11px 12px;
  }

  .form-textarea {
    min-height: 96px;
  }
}

/* Very narrow phones (≤ 360px) */
@media (max-width: 360px) {
  .site-header {
    padding: 8px 10px;
  }
  .header-logo {
    font-size: 1rem;
  }
  .header-status > span:last-child {
    display: none;
  }
}
