/* ==========================================================================
   Spotted Ridge Leather — hand-tooled leather goods, NC foothills
   Design system: dark oiled-hide ground, saddle tan / oxblood / brass accents,
   Besley display + Rye stamp wordmark + Work Sans body.
   ========================================================================== */

:root{
  /* ---- color tokens ---- */
  --bg:            #170f09;
  --bg-alt:        #1f150c;
  --surface:       #2a1c10;
  --surface-2:     #3a2716;
  --tan:           #cf9a5c;
  --tan-light:     #e7c690;
  --rust:          #a9532e;
  --rust-light:    #c96a42;
  --brass:         #cda227;
  --brass-light:   #e6c467;
  --cream:         #f1e7d3;
  --ink-faint:     #b7a385;
  --line:          rgba(205,162,39,0.22);
  --line-soft:     rgba(241,231,211,0.10);
  --shadow-deep:   0 30px 60px -25px rgba(0,0,0,0.65);

  /* ---- type ---- */
  --font-display: "Besley", "Iowan Old Style", serif;
  --font-stamp:   "Rye", serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- motion ---- */
  --ease: cubic-bezier(.22,.68,0,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --ease-expo: cubic-bezier(.16,1,.3,1);
  --dur-fast: 220ms;
  --dur-med: 480ms;
  --dur-slow: 900ms;

  /* ---- layout ---- */
  --content-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-md: 14px;
  --radius-lg: 26px;
}

/* ---------------------------------- reset --------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{ margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--cream); }
p{ margin: 0; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }

:focus-visible{
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--brass); color: var(--bg); padding: .6rem 1rem; z-index: 999;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* subtle leather-grain noise, layered everywhere on --bg */
body::before{
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(205,162,39,0.05), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(169,83,46,0.07), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-inner{ max-width: var(--content-w); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

/* ------------------------------ browser surfaces --------------------------- */
::selection{ background: var(--brass); color: var(--bg); }
::-webkit-scrollbar{ width: 12px; height: 12px; }
::-webkit-scrollbar-track{ background: var(--bg-alt); }
::-webkit-scrollbar-thumb{ background: var(--surface-2); border-radius: 999px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover{ background: var(--tan); }
html{ scrollbar-color: var(--surface-2) var(--bg-alt); scrollbar-width: thin; }
input, textarea{ caret-color: var(--brass-light); }

h1, h2, h3{ text-wrap: balance; }
p{ text-wrap: pretty; }

.header-cta span, .snap-text small, .mobile-bar-item{
  font-variant-numeric: tabular-nums;
}

/* --------------------------------- buttons -------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(180deg, var(--rust-light), var(--rust));
  color: var(--cream);
  box-shadow: 0 12px 26px -10px rgba(169,83,46,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(169,83,46,0.65), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-ghost{
  background: rgba(241,231,211,0.04);
  border-color: rgba(241,231,211,0.28);
  color: var(--cream);
}
.btn-ghost:hover{ background: rgba(241,231,211,0.1); border-color: var(--brass-light); transform: translateY(-2px); }

/* =============================== HEADER =============================== */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(23,15,9,0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
}
.header-inner{
  max-width: var(--content-w); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; gap: 1.5rem;
}
.brand{ display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; color: var(--cream); }
.brand-mark{ width: 34px; height: 34px; color: var(--brass-light); flex-shrink: 0; }
.brand-word{ font-family: var(--font-stamp); font-size: 1.32rem; letter-spacing: .01em; line-height: 1; }
.brand-word em{ font-style: normal; color: var(--brass-light); }

.main-nav{ display: flex; align-items: center; gap: 2rem; }
.main-nav a{
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-faint);
  position: relative; padding: .3rem 0;
  transition: color var(--dur-fast) var(--ease);
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--brass-light);
  transition: right var(--dur-med) var(--ease);
}
.main-nav a:hover{ color: var(--cream); }
.main-nav a:hover::after{ right: 0; }

.header-cta{
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .92rem; text-decoration: none;
  color: var(--bg); background: var(--brass-light);
  padding: .6rem 1.1rem; border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.header-cta svg{ width: 16px; height: 16px; fill: currentColor; }
.header-cta:hover{ transform: translateY(-1px); background: var(--tan-light); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; padding: 0; flex-shrink: 0;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }

/* =============================== HERO =============================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem var(--gutter) 6rem;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-media{ position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-alt); }
.hero-video{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.hero-scrim{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 75% 10%, rgba(169,83,46,0.28), transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(205,162,39,0.12), transparent 60%),
    linear-gradient(160deg, rgba(23,15,9,0.86) 0%, rgba(23,15,9,0.74) 45%, rgba(23,15,9,0.66) 100%);
}
.hero-grain{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(241,231,211,0.02) 0px, rgba(241,231,211,0.02) 1px, transparent 1px, transparent 4px);
}
.hero-inner{ position: relative; z-index: 2; max-width: 760px; }
.hero-title{
  display: block;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 600;
  margin: 0 0 1.6rem;
}
.hero-title span{ display: block; overflow: hidden; }
.hero-title-accent{ color: var(--tan-light); font-style: italic; font-weight: 500; }
.hero-sub{
  max-width: 46ch; font-size: 1.15rem; color: var(--ink-faint); margin-bottom: 2.2rem;
}
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================ STITCH RAIL ============================ */
.stitch-rail{
  position: absolute; left: calc(var(--gutter) / 2); top: 0; bottom: 0; width: 2px;
  display: none;
}
.stitch-track, .stitch-fill{
  position: absolute; left: 0; top: 0; width: 2px;
  background-image: repeating-linear-gradient(to bottom, currentColor 0 6px, transparent 6px 14px);
}
.stitch-track{ height: 100%; color: rgba(241,231,211,0.14); }
.stitch-fill{ height: 0%; color: var(--brass-light); filter: drop-shadow(0 0 6px rgba(205,162,39,0.5)); }

/* ============================== SECTIONS ============================== */
.section{ position: relative; padding: 6rem 0; }
.section.craft{ background: var(--bg-alt); }
.section.work{ background: var(--bg); }
.section.process{ background: var(--bg-alt); padding-bottom: 4rem; }
.section.area{ background: var(--bg); padding-bottom: 0; }
.section.contact{
  background: linear-gradient(180deg, var(--bg-alt), var(--surface) 120%);
  padding-top: 4.5rem;
}
.section h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 22ch; margin-bottom: 1.2rem; }
.section-lede{ max-width: 56ch; color: var(--ink-faint); font-size: 1.08rem; margin-bottom: 2.4rem; }

[data-rivet]{ scroll-margin-top: 90px; }

/* ---- craft ---- */
.craft-grid{ display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: clamp(2rem,5vw,5rem); align-items: center; }
.craft-figure{ margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-deep); }
.craft-figure img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.craft-figure figcaption{
  padding: 1rem 1.2rem; background: var(--surface); font-size: .88rem; color: var(--ink-faint); border-top: 1px solid var(--line-soft);
}
.craft-copy h2{ margin-bottom: 1.1rem; }
.craft-copy p{ color: var(--ink-faint); font-size: 1.05rem; margin-bottom: 1.6rem; max-width: 52ch; }
.craft-list{ display: grid; gap: .75rem; }
.craft-list li{
  position: relative; padding-left: 1.6rem; color: var(--cream); font-size: .98rem;
}
.craft-list li::before{
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 3px rgba(205,162,39,0.18);
}

/* ---- gallery ---- */
.filter-bar{ display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.filter-chip{
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-faint);
  padding: .55rem 1.15rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover{ border-color: var(--line); color: var(--cream); }
.filter-chip.is-active{ background: var(--brass); color: var(--bg); border-color: var(--brass); font-weight: 600; }

.gallery-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.g-item{
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  aspect-ratio: 4/5;
  clip-path: inset(0 0 0 0);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  opacity: 0;
  transform: translateY(26px);
}
.g-item.is-visible{ opacity: 1; transform: translateY(0); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.g-item.is-hidden{ display: none; }
.g-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.g-item:hover img{ transform: scale(1.07); }
.g-item:hover{ box-shadow: 0 24px 44px -20px rgba(0,0,0,0.6); }
.g-caption{
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem .95rem;
  background: linear-gradient(180deg, transparent, rgba(15,9,5,0.92) 55%);
  font-size: .86rem; color: var(--cream);
  transform: translateY(8px);
  opacity: .92;
}
.g-item::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(241,231,211,0.06);
}

/* ---- process: pinned horizontal scroll on desktop, stacked cards on mobile ---- */
.rivet{
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--brass-light), var(--brass) 60%, #8a691a 100%);
  color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.4);
}

.process-track{ display: flex; list-style: none; margin: 0; padding: 0; }
.process-step{ display: flex; flex-direction: column; gap: 1.1rem; }
.process-step-media{
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-deep); background: var(--surface);
}
.process-step-media img{ width: 100%; height: 100%; object-fit: cover; }
.process-step-copy h3{ font-size: 1.2rem; margin: .6rem 0 .35rem; }
.process-step-copy p{ color: var(--ink-faint); max-width: 42ch; }

@media (min-width: 1000px){
  .process-scroll{ position: relative; }
  .process-pin{
    position: sticky; top: 0; height: 100vh;
    display: flex; align-items: center; overflow: hidden;
  }
  .process-track{ gap: clamp(2.5rem, 4vw, 4rem); padding-left: var(--gutter); will-change: transform; }
  .process-step{
    flex: 0 0 min(480px, 42vw);
    opacity: .4; transform: scale(.93);
    transition: opacity 260ms linear, transform 260ms linear;
  }
  .process-step.is-focused{ opacity: 1; transform: scale(1); }
}

@media (max-width: 999px){
  .process-pin{ position: static; height: auto; }
  .process-track{ flex-direction: column; gap: 2.8rem; }
  .process-step{ flex: none; }
  .process-step-media{ max-width: 420px; }
}

/* ---- service area ---- */
.area-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem;
  padding-bottom: 3.2rem; border-bottom: 1px solid var(--line-soft);
}
.area-col h3{ font-size: 1.05rem; color: var(--cream); margin-bottom: .9rem; font-family: var(--font-body); font-weight: 700; }
.area-col h3 span{ color: var(--ink-faint); font-weight: 500; font-size: .85rem; }
.town-list{ display: grid; gap: .55rem; }
.town-list li{
  font-size: 1.05rem; color: var(--tan-light); font-family: var(--font-display); font-weight: 500;
}
.area-col-ship p{ color: var(--ink-faint); font-size: .96rem; max-width: 30ch; }

.ridge-divider{ display: block; width: 100%; height: 70px; color: var(--surface); margin-top: -1px; }
.ridge-divider .ridge-line{ stroke: var(--brass-light); }

/* ---- contact ---- */
.contact-inner{ text-align: center; padding-top: 1rem; }
.contact-inner h2, .contact-inner .section-lede{ margin-left: auto; margin-right: auto; }
.contact-inner h2{ max-width: 26ch; }
.contact-buttons{
  display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin: 2.6rem 0 2rem;
}
.snap-btn{
  display: flex; align-items: center; gap: .9rem;
  background: var(--surface); border: 1px solid var(--line-soft);
  padding: 1rem 1.5rem 1rem 1rem; border-radius: 999px;
  text-decoration: none; min-width: 230px; justify-content: flex-start;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.snap-btn:hover{ transform: translateY(-3px); border-color: var(--brass); background: var(--surface-2); }
.snap-icon{
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--rust-light), var(--rust) 65%, #5e2c17 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.35), 0 6px 14px -6px rgba(0,0,0,0.5);
}
.snap-icon svg{ width: 20px; height: 20px; fill: var(--cream); }
.snap-text{ display: flex; flex-direction: column; text-align: left; }
.snap-text strong{ font-family: var(--font-display); font-size: 1.15rem; color: var(--cream); }
.snap-text small{ color: var(--ink-faint); font-size: .84rem; }
.contact-note{ color: var(--ink-faint); font-size: .92rem; max-width: 50ch; margin: 0 auto; }

/* =============================== FOOTER =============================== */
.site-footer{ background: var(--surface); border-top: 1px solid var(--line-soft); padding: 3.2rem 0 6.5rem; }
.footer-inner{ max-width: var(--content-w); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.footer-brand{ display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); margin-bottom: .8rem; }
.footer-brand .brand-mark{ width: 28px; height: 28px; color: var(--brass-light); }
.footer-brand .brand-word{ font-size: 1.1rem; }
.footer-tag{ color: var(--ink-faint); font-size: .92rem; margin-bottom: 2rem; }
.footer-bottom{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  font-size: .85rem; color: var(--ink-faint);
}

.footer-credit-bubble{
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.1rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(241,231,211,0.8);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.footer-credit-bubble:hover, .footer-credit-bubble:focus-visible{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px -12px rgba(0,0,0,0.5),
    0 0 0 1px rgba(169,128,63,0.25),
    0 0 22px 4px rgba(169,128,63,0.45),
    0 0 46px 10px rgba(169,128,63,0.22);
}
.footer-credit-bubble:hover img, .footer-credit-bubble:focus-visible img{
  filter: drop-shadow(0 0 6px rgba(169,128,63,0.65));
}
.footer-credit-bubble img{ height: 24px; width: auto; display: block; transition: filter 220ms var(--ease); }
.footer-credit-bubble strong{ color: var(--brass-light); font-weight: 700; }

/* ============================= MOBILE BAR ============================= */
.mobile-bar{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  background: rgba(23,15,9,0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: .5rem var(--gutter);
  padding-bottom: max(.5rem, env(safe-area-inset-bottom));
}
.mobile-bar-item{
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: .5rem 0; text-decoration: none; color: var(--ink-faint); font-size: .74rem; font-weight: 600;
}
.mobile-bar-item svg{ width: 20px; height: 20px; fill: var(--brass-light); }
.mobile-bar-item + .mobile-bar-item{ border-left: 1px solid var(--line-soft); }

/* ============================ REVEAL MOTION ============================ */
/* Each section gets its own authored treatment rather than one repeated
   fade-and-rise, so movement reads as choreography, not a stamped template. */
.reveal{ opacity: 0; }
.reveal[data-reveal="fade"]{ transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-soft), transform var(--dur-slow) var(--ease-soft); }
.reveal[data-reveal="rise"]{ transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal[data-reveal="blur"]{ transform: translateY(16px); filter: blur(8px); transition: opacity var(--dur-slow) var(--ease-soft), transform var(--dur-slow) var(--ease-soft), filter var(--dur-slow) var(--ease-soft); }
.reveal[data-reveal="line"]{ transform: translateY(100%); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal[data-reveal="wipe"]{ opacity: 1; }
.reveal[data-reveal="wipe"] .wipe-mask{ clip-path: inset(0 0 100% 0); transition: clip-path 720ms var(--ease); }
.reveal.is-visible[data-reveal="wipe"] .wipe-mask{ clip-path: inset(0 0 0% 0); }
.reveal[data-reveal="pop"]{ transform: scale(.9) translateY(10px); transition: opacity 480ms var(--ease-soft), transform 620ms var(--ease-expo); }

.reveal.is-visible{ opacity: 1; transform: translateY(0) translateX(0) rotate(0deg) scale(1); filter: blur(0); }
.hero-title span.reveal{ transition-delay: calc(var(--i, 0) * 90ms); }
.contact-buttons .snap-btn:nth-child(1){ transition-delay: 0ms; }
.contact-buttons .snap-btn:nth-child(2){ transition-delay: 90ms; }
.contact-buttons .snap-btn:nth-child(3){ transition-delay: 180ms; }

/* ridge divider draws itself like a stitched horizon line */
.ridge-fill{ opacity: 0.1; }
.ridge-line{
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1400ms var(--ease);
}
.ridge-divider.is-drawn .ridge-line{ stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none !important; }
  .wipe-mask{ clip-path: none !important; }
  .g-item{ opacity: 1; transform: none; }
  .process-step{ opacity: 1 !important; transform: none !important; }
  .process-track{ transform: none !important; flex-direction: column !important; }
  .process-scroll{ height: auto !important; }
  .process-pin{ position: static !important; height: auto !important; overflow: visible !important; }
  .ridge-line{ stroke-dashoffset: 0; }
  *{ animation-duration: 0.001ms !important; }
}

/* ================================ RESPONSIVE ================================ */
@media (min-width: 1000px){
  .stitch-rail{ display: block; }
}

@media (max-width: 999px){
  .main-nav{ display: none; }
  .header-cta span{ display: none; }
  .header-cta{ padding: .6rem; }
  .nav-toggle{ display: flex; }
  .craft-grid{ grid-template-columns: 1fr; }
  .area-grid{ grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .hero{ padding-top: 7rem; text-align: left; }
  .hero-title{ font-size: clamp(2.1rem, 10vw, 3rem); }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .section{ padding: 4.5rem 0; }
  .contact-buttons{ flex-direction: column; align-items: stretch; }
  .snap-btn{ min-width: 0; }
  .mobile-bar{ display: flex; }
  body{ padding-bottom: 4.2rem; }
  .footer-bottom{ flex-direction: column; }
}

@media (max-width: 420px){
  .gallery-grid{ grid-template-columns: 1fr; }
}
