/* ============================================================
   TEBBUTT & SON — Editorial Heritage, elevated
   styles.css
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--paper); }

:root {
  /* Heritage palette */
  --paper:      #EFE7D4;
  --paper-deep: #E5DCC4;
  --chalk:      #F7F1E1;
  --ink:        #1C1A15;
  --soft-ink:   #3D3A33;
  --mid-ink:    #5A5648;
  --stone:      #C8BCA1;
  --sage:       #5F6D52;
  --sage-deep:  #4A5641;
  --sage-light: #8B9778;
  --brass:      #A88A52;

  /* Type */
  --display:    'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --body:       'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --gutter:     clamp(1.5rem, 5vw, 5rem);
  --section:    clamp(5rem, 12vw, 10rem);
  --rule:       1px solid rgba(28, 26, 21, 0.12);
  --rule-stone: 1px solid var(--stone);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 1, 0.5, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--soft-ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Skip link */
.skip {
  position: absolute; top: -100px; left: 12px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 1000; text-decoration: none;
  font-size: 13px; letter-spacing: 0.1em;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--sage);
  z-index: 200;
  will-change: transform;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
}

.section-numeral {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--sage);
  opacity: 0.7;
  line-height: 1;
}

.section-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

p { color: var(--soft-ink); }
a { color: inherit; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
header.mast {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background 0.5s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
header.mast.scrolled {
  background: rgba(239, 231, 212, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px var(--gutter);
  border-bottom-color: rgba(28, 26, 21, 0.08);
}

.mast-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.mast-logo {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  display: block;
  transition: height 0.4s ease, width 0.4s ease;
  box-shadow: 0 2px 14px rgba(28, 26, 21, 0.16);
}
header.mast.scrolled .mast-logo {
  height: 50px;
  width: 50px;
}

.mast-nav {
  display: flex;
  gap: 36px;
  list-style: none;
}
.mast-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding: 4px 0;
}
.mast-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  height: 1px; width: 0;
  background: var(--sage);
  transition: width 0.4s ease, left 0.4s ease;
}
.mast-nav a:hover,
.mast-nav a.active { color: var(--sage); }
.mast-nav a:hover::after,
.mast-nav a.active::after { width: 100%; left: 0; }

.mast-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.mast-cta:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

/* Mobile nav toggle */
.mast-toggle {
  display: none;
  background: none; border: none;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 880px) {
  .mast-nav { display: none; }
  .mast-toggle { display: block; justify-self: end; }
  .mast-cta { display: none; }
  header.mast { grid-template-columns: 1fr auto; }
  .mast-logo { height: 52px; width: 52px; }
  .mast-nav.open {
    display: flex;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--stone);
    flex-direction: column;
    padding: 30px var(--gutter);
    gap: 24px;
    z-index: 99;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 120px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
}

.hero-text { max-width: 800px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.hero-eyebrow::before {
  content: '';
  width: 0px;
  height: 1px;
  background: var(--sage);
  transition: width 1s var(--ease-out) 0.2s;
}
.is-ready .hero-eyebrow::before { width: 40px; }

.hero h1 {
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--sage-deep);
}
.hero h1 .amp {
  font-style: italic;
  font-weight: 300;
  color: var(--sage);
  display: inline-block;
  transform: translateY(-0.05em);
}

/* Masked line reveal */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.is-ready .line-inner { transform: translateY(0); }
.is-ready .line-mask:nth-child(2) .line-inner { transition-delay: 0.10s; }
.is-ready .line-mask:nth-child(3) .line-inner { transition-delay: 0.20s; }

.hero-sub {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--soft-ink);
  max-width: 500px;
  margin-bottom: 48px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '→';
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}
.btn:hover::after { transform: translateX(4px); }

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

.hero-meta {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  border-top: var(--rule-stone);
  padding-top: 28px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-meta-num em {
  font-style: italic;
  color: var(--sage);
  font-weight: 300;
}
.hero-meta-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-ink);
}

/* Hero image */
.hero-image {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
}
.hero-image-inner {
  position: absolute;
  inset: -8% 0;
  will-change: transform;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
}

/* Hero showcase slideshow */
.hero-show { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
  will-change: opacity;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.98);
  transform: scale(1.04);
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-slide.is-active img {
  animation: heroKen 7s ease-out forwards;
}
@keyframes heroKen {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}

.hero-show-dots {
  position: absolute;
  bottom: 22px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 9px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(247, 241, 225, 0.45);
  cursor: pointer;
  transition: background 0.4s, transform 0.4s var(--ease-out);
}
.hero-dot:hover { background: rgba(247, 241, 225, 0.8); }
.hero-dot.active {
  background: var(--paper);
  transform: scale(1.35);
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(239, 231, 212, 0.3));
  pointer-events: none;
}
.hero-image-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
  z-index: 2;
  transition: opacity 0.5s ease;
}
.hero-image-caption.fading { opacity: 0; }
@media (max-width: 600px) { .hero-show-dots { right: 16px; bottom: 16px; } }

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 130px;
    gap: 40px;
  }
  .hero-image { height: 50vh; min-height: 360px; order: -1; }
  .hero-meta { gap: 28px; }
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mid-ink);
}
.scroll-cue::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--mid-ink);
  animation: scroll-pulse 2.4s infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.6; }
  50%      { transform: scaleX(0.5); opacity: 1; transform-origin: left; }
}

@media (max-width: 880px) { .scroll-cue { display: none; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: var(--rule-stone);
  border-bottom: var(--rule-stone);
  padding: 22px 0;
  overflow: hidden;
  background: var(--paper-deep);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--soft-ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 80px;
}
.marquee-item::after {
  content: '✦';
  color: var(--sage);
  font-style: normal;
  font-size: 0.9em;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS — common
   ============================================================ */
section {
  padding: var(--section) var(--gutter);
  position: relative;
  z-index: 2;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: baseline;
  margin-bottom: 80px;
  padding-bottom: 28px;
  border-bottom: var(--rule-stone);
}
.section-head-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--sage-deep);
}

@media (max-width: 700px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 50px;
  }
}

/* ============================================================
   I — THE STUDIO
   ============================================================ */
.studio {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.studio-quote {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  position: relative;
  padding-left: 30px;
  letter-spacing: -0.005em;
}
.studio-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0.4em;
  width: 14px; height: 1px;
  background: var(--sage);
}
.studio-attribution {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-ink);
  font-style: normal;
  font-family: var(--body);
  padding-left: 30px;
}

.studio-body p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.studio-body p:last-of-type { margin-bottom: 0; }
.studio-body strong {
  font-weight: 500;
  color: var(--ink);
}

.studio-values {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 30px;
  border-top: var(--rule);
  padding-top: 28px;
}
.studio-value {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.studio-value-icon {
  font-family: var(--display);
  font-style: italic;
  color: var(--sage);
  font-size: 14px;
  margin-top: 2px;
}
.studio-value-text {
  font-size: 13px;
  color: var(--soft-ink);
  line-height: 1.5;
}
.studio-value-text strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}

@media (max-width: 880px) {
  .studio { grid-template-columns: 1fr; gap: 50px; }
}

/* ============================================================
   II — THE CATALOGUE
   ============================================================ */
.catalogue {
  border-top: var(--rule-stone);
}
.cat-item {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: var(--rule-stone);
  cursor: default;
  transition: padding 0.45s var(--ease-out), background 0.45s var(--ease-out);
  position: relative;
}
.cat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--sage);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.45s var(--ease-out);
}
.cat-item:hover {
  padding-left: 22px;
  padding-right: 14px;
  background: var(--chalk);
}
.cat-item:hover::before { transform: scaleY(1); }

.cat-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--sage);
  line-height: 1;
}

.cat-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cat-desc {
  font-size: 14px;
  color: var(--soft-ink);
  line-height: 1.55;
}

.cat-price {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}
.cat-price span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-ink);
  font-style: normal;
  margin-bottom: 2px;
  font-family: var(--body);
}

@media (max-width: 880px) {
  .cat-item {
    grid-template-columns: 50px 1fr;
    gap: 16px 24px;
    padding: 28px 0;
  }
  .cat-item:hover { padding-left: 14px; }
  .cat-num { grid-row: 1; }
  .cat-title { grid-row: 1; grid-column: 2; }
  .cat-desc { grid-column: 2; }
  .cat-price { grid-column: 2; text-align: left; margin-top: 4px; }
}

/* Compact service list */
.svc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
}
.svc {
  background: var(--paper);
  padding: 34px 30px 36px;
  transition: background 0.4s var(--ease-out);
}
.svc:hover { background: var(--chalk); }
.svc h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.svc p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mid-ink);
}
.svc-foot {
  margin-top: 30px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--soft-ink);
  max-width: 660px;
  line-height: 1.4;
}
@media (max-width: 880px) {
  .svc-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc { padding: 26px 24px; }
}

/* ============================================================
   III — GALLERY
   ============================================================ */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin-bottom: 40px;
  align-items: center;
}
.filter-chip {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-ink);
  background: transparent;
  border: 1px solid rgba(28, 26, 21, 0.18);
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.35s, background 0.35s, border-color 0.35s;
  white-space: nowrap;
}
.filter-chip:hover { color: var(--ink); border-color: var(--ink); }
.filter-chip.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.filter-chip .count {
  opacity: 0.55;
  margin-left: 7px;
  font-variant-numeric: tabular-nums;
}
.gallery-count {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-ink);
}
@media (max-width: 700px) { .gallery-count { display: none; } }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}

.gw {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  margin: 0;
  cursor: pointer;
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
}
.gw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-soft), filter 0.6s ease, opacity 0.8s ease;
  filter: contrast(1.02) saturate(0.96);
}
.gw img.lazy-pending { opacity: 0; }
.gw:hover img { transform: scale(1.045); filter: contrast(1.05) saturate(1); }

.gw-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 22px;
  background: linear-gradient(180deg, transparent, rgba(28, 26, 21, 0.72));
  color: var(--paper);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
  pointer-events: none;
}
.gw:hover .gw-caption,
.gw:focus-within .gw-caption { transform: translateY(0); opacity: 1; }
.gw-caption-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 3px;
}
.gw-caption-meta {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}
.gw-zoom {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 225, 0.6);
  color: var(--paper);
  display: grid; place-items: center;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  backdrop-filter: blur(2px);
}
.gw:hover .gw-zoom { opacity: 1; transform: scale(1); }

/* Filtering states */
.gw.is-hidden { display: none; }
.gw.filtering { opacity: 0; transform: scale(0.96); }

/* Grid sizing — editorial rhythm */
.gw[data-span="7"] { grid-column: span 7; }
.gw[data-span="6"] { grid-column: span 6; }
.gw[data-span="5"] { grid-column: span 5; }
.gw[data-span="4"] { grid-column: span 4; }
.gw[data-span="3"] { grid-column: span 3; }
.gw[data-span="12"] { grid-column: span 12; }
.gw[data-ratio="wide"]   { aspect-ratio: 16 / 11; }
.gw[data-ratio="ultra"]  { aspect-ratio: 21 / 9; }
.gw[data-ratio="square"] { aspect-ratio: 1 / 1; }
.gw[data-ratio="tall"]   { aspect-ratio: 4 / 5; }
.gw[data-ratio="land"]   { aspect-ratio: 3 / 2; }

@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .gw { grid-column: span 3 !important; aspect-ratio: 4 / 3 !important; }
  .gw[data-span="7"], .gw[data-span="12"] { grid-column: span 6 !important; aspect-ratio: 16 / 10 !important; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gw { grid-column: span 1 !important; aspect-ratio: 4 / 3 !important; }
  .gw-caption { transform: none; opacity: 1; background: linear-gradient(180deg, transparent 40%, rgba(28,26,21,0.85)); }
}

/* Featured before / after */
.ba-feature {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-deep);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  box-shadow: 0 30px 70px rgba(28, 26, 21, 0.16);
}
.ba-feature .ba-after,
.ba-feature .ba-before { position: absolute; inset: 0; }
.ba-feature .ba-after img,
.ba-feature .ba-before img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.98);
  pointer-events: none;
}
.ba-feature .ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.ba-feature .ba-tag {
  position: absolute;
  top: 22px;
  z-index: 3;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(28, 26, 21, 0.55);
  backdrop-filter: blur(3px);
  padding: 8px 16px;
  border-radius: 100px;
}
.ba-feature .ba-tag.before { left: 22px; }
.ba-feature .ba-tag.after  { right: 22px; }
.ba-feature .ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 56px;
  margin-left: -28px;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: ew-resize;
}
.ba-feature .ba-handle::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 14px rgba(0,0,0,0.35);
}
.ba-feature .ba-knob {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s var(--ease-out);
}
.ba-feature:hover .ba-knob { transform: scale(1.08); }
.ba-feature-cap {
  margin-top: 26px;
  max-width: 720px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  color: var(--soft-ink);
}
.ba-feature-cap strong {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 700px) {
  .ba-feature { aspect-ratio: 4 / 3; }
}

/* Before / After comparison tile */
.gw-ba { cursor: ew-resize; touch-action: pan-y; }
.gw-ba .ba-after,
.gw-ba .ba-before {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.gw-ba .ba-after img,
.gw-ba .ba-before img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.97);
}
.gw-ba .ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.gw-ba:hover img { transform: none; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: ew-resize;
}
.ba-handle::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.ba-knob {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  transition: transform 0.3s var(--ease-out);
}
.gw-ba:hover .ba-knob { transform: scale(1.08); }
.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  font-family: var(--body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(28, 26, 21, 0.55);
  backdrop-filter: blur(3px);
  padding: 6px 12px;
  border-radius: 100px;
}
.ba-tag.before { left: 14px; }
.ba-tag.after  { right: 14px; }
.gw-ba .gw-caption { z-index: 3; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 18, 14, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--paper);
  flex-shrink: 0;
}
.lb-counter {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.lb-counter span { color: var(--sage-light); }
.lb-close {
  background: none; border: none;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: color 0.3s;
}
.lb-close:hover { color: var(--sage-light); }
.lb-close span { font-size: 20px; line-height: 1; }

.lb-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(56px, 9vw, 120px);
  min-height: 0;
}
.lb-figure {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.lb-img.loaded { opacity: 1; transform: scale(1); }
.lb-cap {
  margin-top: 22px;
  max-width: 720px;
  text-align: center;
  color: var(--paper);
}
.lb-cap-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  margin-bottom: 8px;
}
.lb-cap-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(247, 241, 225, 0.72);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--paper);
  cursor: pointer;
  width: clamp(48px, 8vw, 96px);
  height: 120px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 34px;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 0; }
.lb-prev:hover { transform: translateY(-50%) translateX(-4px); }
.lb-next { right: 0; }
.lb-next:hover { transform: translateY(-50%) translateX(4px); }

@media (max-width: 600px) {
  .lb-stage { padding: 0 8px; }
  .lb-nav { width: 44px; font-size: 26px; }
  .lb-img { max-height: 62vh; }
}

/* ============================================================
   IV — THE PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--rule-stone);
  border-bottom: var(--rule-stone);
}
.process-step {
  padding: 50px 30px 40px;
  border-right: var(--rule-stone);
  position: relative;
  transition: background 0.4s ease;
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--chalk); }

.process-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--sage);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.process-num::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--sage);
  transition: width 0.4s var(--ease-out);
}
.process-step:hover .process-num::before { width: 40px; }

.process-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}

.process-body {
  font-size: 13.5px;
  color: var(--soft-ink);
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-right: var(--rule-stone); border-bottom: var(--rule-stone); }
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; border-bottom: var(--rule-stone) !important; }
  .process-step:last-child { border-bottom: none !important; grid-column: auto; }
}

/* ============================================================
   V — IN THEIR WORDS
   ============================================================ */
.words-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.word {
  padding: 40px 32px 36px;
  border: var(--rule-stone);
  background: var(--chalk);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s;
}
.word:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(28, 26, 21, 0.08);
  border-color: var(--sage-light);
}
.word-mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 60px;
  line-height: 0.5;
  color: var(--sage);
  margin-bottom: 16px;
  opacity: 0.7;
}
.word-quote {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: auto;
  padding-bottom: 28px;
  letter-spacing: -0.003em;
}
.word-author {
  border-top: var(--rule);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.word-author-name {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
}
.word-author-loc {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-ink);
}

.words-note {
  margin-top: 40px;
  padding: 18px 22px;
  background: var(--paper-deep);
  border-left: 2px solid var(--brass);
  font-size: 12.5px;
  color: var(--soft-ink);
  line-height: 1.5;
  font-style: italic;
}
.words-note strong { font-style: normal; color: var(--ink); font-weight: 500; }

@media (max-width: 900px) { .words-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   VI — BEGIN
   ============================================================ */
section#begin {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255,255,255,0.05);
}
section#begin::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(143, 159, 122, 0.08), transparent 50%);
  pointer-events: none;
}
section#begin .section-head { border-bottom-color: rgba(247, 241, 225, 0.15); }
section#begin .section-head h2 { color: var(--paper); }
section#begin .section-head h2 em { color: var(--sage-light); }
section#begin .section-label { color: var(--paper); }
section#begin .eyebrow { color: var(--sage-light); }
section#begin .section-numeral { color: var(--sage-light); }

.begin-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.begin-intro { position: sticky; top: 120px; }
.begin-intro h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.25;
  color: var(--paper);
  margin-bottom: 30px;
}
.begin-intro p {
  color: rgba(247, 241, 225, 0.78);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.begin-contacts {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid rgba(247, 241, 225, 0.15);
  padding-top: 30px;
}
.bc-line { display: flex; gap: 18px; align-items: baseline; }
.bc-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(247, 241, 225, 0.5);
  min-width: 80px;
}
.bc-value {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.3s;
}
.bc-value:hover { color: var(--sage-light); }

.begin-form { display: grid; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 241, 225, 0.7);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247, 241, 225, 0.25);
  color: var(--paper);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 300;
  padding: 6px 0 14px;
  width: 100%;
  transition: border-color 0.3s;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(247, 241, 225, 0.3); font-style: italic; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--sage-light); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23F7F1E1' stroke-width='1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.field select option { background: var(--ink); color: var(--paper); }
.field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.form-consent {
  font-size: 11.5px;
  color: rgba(247, 241, 225, 0.55);
  line-height: 1.5;
  max-width: 360px;
}
.btn-form { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-form:hover { background: var(--sage-light); border-color: var(--sage-light); color: var(--ink); }

.form-success {
  display: none;
  padding: 40px;
  border: 1px solid var(--sage-light);
  background: rgba(143, 159, 122, 0.08);
  text-align: center;
}
.form-success h4 {
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  color: var(--paper);
  margin-bottom: 14px;
  font-weight: 300;
}
.form-success p { color: rgba(247, 241, 225, 0.8); font-size: 14px; line-height: 1.6; }
.form-success.show { display: block; }
.begin-form.hide { display: none; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 880px) {
  .begin-grid { grid-template-columns: 1fr; gap: 50px; }
  .begin-intro { position: static; }
  .field-row { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 60px var(--gutter) 30px;
  border-top: 1px solid rgba(247, 241, 225, 0.08);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.foot-brand h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 14px;
}
.foot-brand h4 em { font-style: italic; color: var(--sage-light); font-weight: 300; }
.foot-brand p {
  font-size: 13px;
  color: rgba(247, 241, 225, 0.65);
  line-height: 1.65;
  max-width: 360px;
}
.foot-col h5 {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(247, 241, 225, 0.5);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  color: var(--paper);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.3s;
}
.foot-col a:hover { color: var(--sage-light); }

.foot-bottom {
  border-top: 1px solid rgba(247, 241, 225, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(247, 241, 225, 0.5);
}
.foot-bottom .disclaim { font-style: italic; max-width: 600px; }

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 90ms; }
.reveal.d2 { transition-delay: 180ms; }
.reveal.d3 { transition-delay: 270ms; }
.reveal.d4 { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .line-inner { transform: none; }
  .hero-eyebrow::before { width: 40px; }
  html { scroll-behavior: auto; }
}
