/* ============================================================
   OAKRIDGE TAILORS — v2 "PATTERN BLUEPRINT / GARMENT ENGINEERING"
   ============================================================ */

:root {
  /* palette */
  --paper:    #F0E8D8;   /* pattern-paper cream */
  --chalk:    #FFFFFC;   /* tailor's chalk white */
  --blue:     #1E4F8F;   /* measurement blue */
  --ink:      #3D3D3D;   /* tailor's-chalk gray (body) */
  --red:      #C73E2E;   /* red pencil callout */
  --brass:    #B89554;   /* brass accent */

  --blue-15:  rgba(30, 79, 143, 0.15);
  --blue-08:  rgba(30, 79, 143, 0.08);
  --ink-12:   rgba(61, 61, 61, 0.12);
  --ink-55:   rgba(61, 61, 61, 0.62);

  --grid: 26px;           /* pattern-paper grid pitch */

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);

  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --disp: 'Anton', 'Arial Narrow', sans-serif;
  --script: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* pattern-paper gridlines — visible blueprint element */
.paper-grid {
  background-image:
    linear-gradient(var(--blue-08) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-08) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: -1px -1px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- shared type ---------- */
.display {
  font-family: var(--disp);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.mono-eyebrow {
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* tailor's chalk callout */
.chalk {
  font-family: var(--script);
  color: var(--blue);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1;
}

/* red rubber-stamp graphic */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 5px 9px 4px;
  border-radius: 3px;
  background: rgba(199, 62, 46, 0.05);
  text-align: center;
  line-height: 1.05;
  box-shadow: inset 0 0 0 1px rgba(199,62,46,0.25);
}
.stamp--rot { transform: rotate(-8deg); }

/* ============================================================
   A) STICKY NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--disp);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-55);
  margin-top: 3px;
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
  align-items: center;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 2px;
  position: relative;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1.5px; background: var(--red);
  transition: right 0.25s ease;
}
.nav__links a:hover::after { right: 0; }

.nav__cta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 11px 14px;
  border-radius: 3px;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__cta:hover { background: var(--red); color: var(--chalk); }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1.5px solid var(--ink);
  background: var(--chalk);
  border-radius: 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav__burger span { width: 20px; height: 2px; background: var(--ink); display: block; }

.nav__mobile {
  display: none;
  border-top: 1.5px solid var(--ink-12);
  background: var(--paper);
}
.nav__mobile.open { display: block; }
.nav__mobile a {
  display: block;
  padding: 16px var(--pad);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink-12);
}

/* ============================================================
   B) HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  padding-top: clamp(40px, 6vw, 84px);
  padding-bottom: clamp(40px, 6vw, 84px);
}
.hero__left { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero__eyebrow {
  color: var(--red);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero__eyebrow .rule { width: 38px; height: 2px; background: var(--red); display: inline-block; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6.1vw, 74px);
}
.hero h1 .ln { display: block; }
.hero h1 .ln--red { color: var(--red); }
.hero h1 .ln--out {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-stroke: 1.5px var(--ink);
  letter-spacing: -0.015em;
}
.hero__lede {
  max-width: 46ch;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.75;
  color: var(--ink);
  margin: 22px 0 30px;
}
.hero__lede b { color: var(--blue); font-weight: 600; }
.hero__rating { color: var(--brass); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 22px;
  border-radius: 3px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
}
.cta-row .btn { white-space: nowrap; }
.btn--red { background: var(--red); color: var(--chalk); border-color: var(--red); }
.btn--red:hover { transform: translateY(-2px); background: #b13425; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* hero right — assembly column */
.hero__right {
  position: relative;
  background: var(--blue);
  border-radius: 4px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__right .blue-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero__right .corner-tick {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
}
.ct-tl { top: 12px; left: 14px; }
.ct-tr { top: 12px; right: 14px; }
.ct-bl { bottom: 30px; left: 14px; }
.ct-br { bottom: 30px; right: 14px; }

/* ---------- exploded SVG ---------- */
.atlas {
  width: 100%;
  height: auto;
  max-height: 560px;
  position: relative;
  z-index: 2;
  --assembly: 0;
}
.atlas svg { width: 100%; height: 100%; overflow: visible; display: block; }

.piece {
  transform: translate(
    calc(var(--dx, 0px) * (1 - var(--assembly))),
    calc(var(--dy, 0px) * (1 - var(--assembly)))
  );
  transition: filter 0.25s ease;
}
.atlas.animate .piece { transition: transform 1.05s cubic-bezier(.22,.61,.36,1), filter 0.25s ease; }

.piece__fill { fill: rgba(255,255,255,0.05); stroke: #cfe0f6; stroke-width: 1.6; }
.piece__seam { fill: none; stroke: #9ec0ee; stroke-width: 1; stroke-dasharray: 5 5; }
.piece__notch { fill: none; stroke: #cfe0f6; stroke-width: 1.4; }

/* service-hover highlight */
.piece.hot .piece__fill { fill: rgba(199,62,46,0.30); stroke: #ff8a7a; }
.piece.hot .piece__seam { stroke: #ffb3a8; }

/* assembly labels — callout pills */
.lbl-grp {
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lbl-grp.shown { opacity: 1; transform: translateX(0); }
.lbl__bg { fill: #0c2950; stroke: var(--red); stroke-width: 1; rx: 2; }
.lbl {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: #ffffff;
}
.lbl__line { stroke: var(--red); stroke-width: 1.4; }

.hero__progress {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  height: 2px; background: rgba(255,255,255,0.2);
  z-index: 3;
}
.hero__progress i {
  display: block; height: 100%; width: calc(var(--assembly, 0) * 100%);
  background: var(--red);
  transition: width 0.1s linear;
}
.hero__progress-cap {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7); z-index: 3;
}

/* ============================================================
   section scaffolding
   ============================================================ */
.section { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.section--chalk { background: var(--chalk); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }

.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head__eyebrow {
  color: var(--red); display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.sec-head__eyebrow .rule { width: 30px; height: 2px; background: var(--red); }
.sec-head h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
}
.sec-head__note {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 14px;
  color: var(--ink-55);
}
.measure-band {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--blue); margin-top: 18px;
}
.measure-band .arrow { flex: 1; height: 1px; background: var(--blue); position: relative; }
.measure-band .arrow::before, .measure-band .arrow::after {
  content: ""; position: absolute; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid var(--blue); border-left: 1px solid var(--blue);
}
.measure-band .arrow::before { left: 0; transform: rotate(-45deg); }
.measure-band .arrow::after { right: 0; transform: rotate(135deg); }

/* ============================================================
   C) SPEC-SHEET SERVICES
   ============================================================ */
.spec {
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.spec__top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-55);
  background: var(--chalk);
}
.row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px dashed var(--ink-12);
  cursor: default;
  transition: background 0.18s ease;
}
.row:last-child { border-bottom: none; }
.row:hover { background: rgba(199,62,46,0.04); }
.row__check {
  width: 26px; height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-weight: 700; font-size: 15px;
  background: var(--chalk);
}
.row__main { min-width: 0; }
.row__name {
  font-family: var(--disp);
  font-size: clamp(20px, 2.6vw, 30px);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.row:hover .row__name { color: var(--red); }
.row__desc { font-size: 13px; color: var(--ink-55); margin-top: 3px; max-width: 60ch; }
.row__price {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--blue); white-space: nowrap; text-align: right;
}
.row__price b { color: var(--ink); font-weight: 600; display: block; font-size: 11px; }

/* ============================================================
   D) MATERIALS
   ============================================================ */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.mat {
  border: 1.5px solid var(--ink);
  background: var(--chalk);
  display: flex; flex-direction: column;
}
.mat__fig {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mat__fig svg, .mat__fig pre { width: 100%; height: 100%; }
.mat__fig pre {
  margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.15;
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  white-space: pre; letter-spacing: 1px;
}
.mat__body { padding: 18px 20px 22px; }
.mat__tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--red); text-transform: uppercase;
}
.mat__name {
  font-family: var(--disp); font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink); margin: 6px 0 8px; letter-spacing: 0.01em;
}
.mat__desc { font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.mat__data {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ink-12);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-55);
  display: grid; gap: 4px;
}
.mat__data span b { color: var(--blue); font-weight: 600; }

/* ============================================================
   E) PROCESS / DROP-OFF
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
  position: relative;
}
.step {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 22px 20px 24px;
  position: relative;
  min-height: 200px;
  display: flex; flex-direction: column;
}
.step__num {
  width: 48px; height: 48px;
  border: 2px solid var(--red);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-size: 26px; color: var(--red);
  transform: rotate(-6deg);
  background: rgba(199,62,46,0.05);
  margin-bottom: 18px;
}
.step__title {
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 8px;
}
.step__desc { font-size: 13px; color: var(--ink-55); line-height: 1.6; }
.step__chalk {
  position: absolute; right: 14px; bottom: 12px;
  font-family: var(--script); color: var(--blue); font-size: 20px;
}
.step__arrow {
  position: absolute; top: 50%; right: -16px; transform: translateY(-50%);
  color: var(--red); font-size: 22px; z-index: 2; font-family: var(--mono);
}
.step:last-child .step__arrow { display: none; }

/* ============================================================
   F) GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.shot {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.4s ease; filter: saturate(0.72) contrast(1.03) brightness(0.98); }
.shot:hover img { transform: scale(1.05); filter: saturate(0.92) contrast(1.05); }
.shot__tag {
  position: absolute; left: 10px; top: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--chalk);
  background: rgba(30,79,143,0.86); padding: 5px 8px; border-radius: 2px;
}
.shot__anno {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  font-family: var(--script); color: var(--chalk); font-size: 22px; line-height: 1;
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.shot:hover .shot__anno { opacity: 1; transform: translateY(0); }
.shot__anno::before { content: "✎ "; color: var(--red); }

.img-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(45deg, var(--blue-15) 0 2px, transparent 2px 11px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--blue);
  padding: 20px; line-height: 1.6;
}

/* ============================================================
   G) VISIT
   ============================================================ */
.visit {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.visit__card {
  border: 1.5px solid var(--ink);
  background: var(--chalk);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column;
}
.visit__row { padding: 16px 0; border-bottom: 1px dashed var(--ink-12); }
.visit__row:first-of-type { padding-top: 0; }
.visit__k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-55); text-transform: uppercase; margin-bottom: 6px; }
.visit__v { font-size: 15px; color: var(--ink); line-height: 1.55; }
.visit__v.red { color: var(--red); font-weight: 600; font-size: 18px; }
.visit__v.red a { color: var(--red); }
.visit__map {
  border: 1.5px solid var(--ink);
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--blue);
}
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; filter: grayscale(0.2) contrast(1.05); }
.visit__mapcap {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; padding: 8px 12px;
  z-index: 2; white-space: nowrap;
}

/* ============================================================
   H) FOOTER CTA
   ============================================================ */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.cta-band .paper-grid { position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(240,232,216,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,232,216,0.06) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
}
.cta-band__inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta-band h2 {
  margin: 0;
  font-size: clamp(44px, 9vw, 120px);
  color: var(--paper);
}
.cta-band h2 .red { color: var(--red); }
.cta-band__sub { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; color: rgba(240,232,216,0.7); max-width: 50ch; }
.btn--stamp {
  background: var(--red); color: var(--chalk); border-color: var(--red);
  font-size: clamp(15px, 2vw, 19px); padding: 16px 26px;
}
.btn--stamp:hover { transform: translateY(-2px); }

/* ============================================================
   I) FOOTER
   ============================================================ */
.foot {
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
  padding-top: 40px; padding-bottom: 40px;
}
.foot__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.foot__links a:hover { color: var(--red); }
.foot__copy { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-55); }
.foot__brand { font-family: var(--disp); font-size: clamp(28px, 5vw, 48px); color: var(--ink); letter-spacing: 0.02em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { min-height: 380px; order: 2; }
  .visit { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .mat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step__arrow { display: none; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { min-height: 64px; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .visit__map, .visit__map iframe { min-height: 300px; }
  .row { grid-template-columns: 24px 1fr; }
  .row__price { grid-column: 2; text-align: left; margin-top: 4px; }
}

@media (max-width: 640px) {
  :root { --grid: 22px; }
  .row__price { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atlas { --assembly: 1 !important; }
  .atlas .piece, .atlas.animate .piece { transition: none !important; }
  .lbl { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lbl__line { opacity: 0.9 !important; }
  .shot img { transition: none; }
}
