/* SHEARSMITH — "Forge in daylight". Light locked, sharp locked, one accent (Ember), one 12° signature. */
:root {
  --porcelain: #F4F2ED;
  --ink: #181716;
  --gunmetal: #4C4F54;
  --steel: #C9CCCE;
  --ember: #D8491B;
  --shadow: 0 2px 8px rgba(24, 23, 22, 0.08);
  --disp: "Archivo", sans-serif;
  --body: "Archivo", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gut: clamp(20px, 4vw, 48px);
  /* tan(12°) = 0.2126: the one angle on the site */
  --shear: 21.26vw;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
html, body { overflow-x: clip; }
body {
  background: var(--porcelain); color: var(--ink);
  font-family: var(--body); font-size: clamp(17px, 1.05vw, 18px); line-height: 1.55;
}
::selection { background: var(--ink); color: var(--porcelain); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, li a, .textlink {
  color: var(--ember); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; transition: text-decoration-thickness 0.12s ease-out;
}
p a:hover, li a:hover, .textlink:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

h1, h2 {
  font-family: var(--disp); font-stretch: 118%; font-weight: 850;
  letter-spacing: -0.015em; line-height: 1.04; text-wrap: pretty;
}
h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.sub { font-size: 1.125rem; color: var(--gunmetal); max-width: 46ch; text-wrap: pretty; }
h2 + .sub { margin-top: 14px; }

.wrap { max-width: 76rem; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }

.skip {
  position: absolute; left: var(--gut); top: -48px; z-index: 90;
  background: var(--ink); color: var(--porcelain); padding: 10px 16px;
  font-weight: 500; text-decoration: none; transition: top 0.15s ease-out;
}
.skip:focus-visible { top: 12px; }

/* ---------- buttons: sharp rectangles; primary hover = the 12° shear fill ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 48px; padding: 14px 24px; white-space: nowrap;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: transform 0.1s ease-out;
}
.btn:active { transform: scale(0.98) translateY(1px); }
.btn-primary { background: var(--ink); color: var(--porcelain); border: 1px solid var(--ink); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::before {
  content: ""; position: absolute; inset: -30% -12%;
  background: var(--ember); transform: translateX(-115%) skewX(-12deg);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::before { transition: transform 0.15s ease-out; }
}
.btn-primary:hover::before, .btn-primary:focus-visible::before { transform: translateX(0) skewX(-12deg); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--steel); }
.btn-secondary:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gut);
  background: rgba(244, 242, 237, 0.96); border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease-out;
}
.nav.scrolled { border-bottom-color: var(--steel); }
.wordmark {
  position: relative; display: inline-block; font-family: var(--disp);
  font-stretch: 122%; font-weight: 900; font-size: 1.0625rem; letter-spacing: 0.04em;
  text-decoration: none; padding: 2px 0;
}
/* the 12° slice between SHEAR and SMITH */
.wordmark::after {
  content: ""; position: absolute; top: -12%; bottom: -12%; left: 54%; width: 2.5px;
  background: var(--porcelain); transform: skewX(-12deg);
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav-links a.anchor {
  font-weight: 500; font-size: 1rem; text-decoration: none;
  border-bottom: 2px solid transparent; padding: 3px 0; transition: border-color 0.12s ease-out;
}
.nav-links a.anchor:hover { border-bottom-color: var(--ember); }
.nav-phone { font-family: var(--mono); font-size: 0.95rem; text-decoration: none; }
.nav-phone:hover { color: var(--ember); }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: 1rem; }
@media (max-width: 760px) {
  .nav-links a.anchor, .nav-phone { display: none; }
}

/* ---------- S1 hero ---------- */
.hero {
  min-height: 100dvh; display: grid; grid-template-columns: 7fr 5fr; align-items: stretch;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(68px + 6vh) var(--gut) 8vh;
  padding-left: max(var(--gut), calc((100vw - 76rem) / 2 + var(--gut)));
}
.hero h1 { max-width: 14ch; font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
.hero .sub { margin-top: 20px; max-width: 38ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    clip-path: polygon(0 0, 130% 0, 100% 300%, 0 300%);
    animation: shear-wipe 0.6s var(--ease-out) 0.05s backwards;
  }
  .hero .sub { animation: rise-in 0.5s var(--ease-out) 0.35s backwards; }
  .hero .ctas { animation: rise-in 0.5s var(--ease-out) 0.41s backwards; }
  .hero-photo image-slot { animation: photo-settle 0.9s var(--ease-out) backwards; }
  @keyframes shear-wipe {
    from { clip-path: polygon(0 135%, 130% 105%, 100% 300%, 0 300%); }
    to { clip-path: polygon(0 0, 130% 0, 100% 300%, 0 300%); }
  }
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes photo-settle { from { transform: scale(1.04); } to { transform: none; } }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: 45dvh auto; }
  .hero-photo { order: -1; }
  .hero-copy { padding: 40px var(--gut) 56px; }
}

/* ---------- S2 proof strip ---------- */
.proof { border-top: 1px solid var(--steel); border-bottom: 1px solid var(--steel); }
.proof .wrap {
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(40px, 8vw, 120px); row-gap: 6px;
  padding-top: 18px; padding-bottom: 18px;
  font-family: var(--mono); font-size: 0.95rem; color: var(--gunmetal); text-align: center;
}

/* ---------- S3 the price board (a ledger, not cards) ---------- */
.board-head { max-width: 46rem; }
.ledger { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: clamp(40px, 5vw, 60px); }
.group-name {
  font-family: var(--disp); font-stretch: 125%; font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.14em; color: var(--gunmetal); margin-bottom: 18px;
}
.prow {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px clamp(16px, 3vw, 40px);
  align-items: baseline; padding: 9px 0;
  transition: transform 0.12s ease-out;
}
.prow .svc { font-weight: 500; }
.prow .note { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--gunmetal); }
.prow .dur { font-family: var(--mono); font-size: 0.95rem; color: var(--gunmetal); }
.prow .price { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; transition: color 0.12s ease-out; }
@media (hover: hover) {
  .prow:hover { transform: translateX(2px); }
  .prow:hover .price { color: var(--ember); }
}
@media (min-width: 720px) {
  .ledger { grid-template-columns: repeat(2, 1fr); column-gap: clamp(48px, 7vw, 96px); }
  .ledger .lg-cuts { grid-row: 1 / 3; }
}

/* ---------- 12° section cuts (exactly two) ---------- */
.cut { clip-path: polygon(0 var(--shear), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--shear) * -0.4); }
.cut .wrap { padding-top: calc(var(--shear) + clamp(20px, 3vw, 48px)); }

/* ---------- S4 the craft ---------- */
.craft { background: #EAE8E0; padding-bottom: clamp(64px, 9vw, 128px); }
.craft-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.craft-grid .txt p { margin-top: 16px; color: var(--gunmetal); max-width: 44ch; }
.craft-grid .pic { aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.craft-grid .pic image-slot { width: 100%; height: 100%; }
@media (max-width: 760px) { .craft-grid { grid-template-columns: 1fr; } }

/* ---------- S5 the barbers ---------- */
.chairs-row {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin;
}
.chair-card {
  scroll-snap-align: start; flex: 0 0 min(64vw, 280px);
  text-decoration: none; display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--steel); background: #FBFAF7;
  transition: transform 0.1s ease-out, border-color 0.12s ease-out;
}
.chair-card.lead { flex-basis: min(76vw, 336px); }
.chair-card:hover { border-color: var(--ink); }
.chair-card:active { transform: scale(0.98) translateY(1px); }
.chair-card .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.chair-card .ph image-slot { width: 100%; height: 100%; }
.chair-card .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.chair-card .name { font-weight: 600; font-size: 1.125rem; }
.chair-card .spec { color: var(--gunmetal); font-size: 0.9375rem; }
.chair-card .yrs { font-family: var(--mono); font-size: 0.875rem; color: var(--gunmetal); margin-top: 8px; }

/* ---------- S6 the work ---------- */
.work-head { max-width: 46rem; }
.ba {
  position: relative; margin-top: clamp(32px, 4vw, 52px); aspect-ratio: 16 / 10; max-height: 70vh;
  overflow: hidden; box-shadow: var(--shadow); touch-action: pan-y;
}
.ba .layer { position: absolute; inset: 0; }
.ba .layer image-slot { width: 100%; height: 100%; }
.ba .layer.after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba .ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px;
  background: var(--porcelain); transform: translateX(-1px); pointer-events: none;
}
.ba .ba-knob {
  position: absolute; top: 50%; left: var(--cut, 50%); width: 44px; height: 44px;
  border-radius: 50%; /* the one documented radius exception */
  background: var(--porcelain); border: 1px solid var(--ink);
  transform: translate(-50%, -50%); pointer-events: none;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink); font-weight: 600;
}
.ba .tag {
  position: absolute; bottom: 12px; font-family: var(--mono); font-size: 0.8125rem;
  background: rgba(24, 23, 22, 0.78); color: var(--porcelain); padding: 4px 10px; pointer-events: none;
}
.ba .tag.t-before { left: 12px; }
.ba .tag.t-after { right: 12px; }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; margin: 0;
}
.work-strip {
  margin-top: 16px; display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
}
.work-strip .shot { flex: 0 0 min(56vw, 230px); aspect-ratio: 4 / 5; scroll-snap-align: start; }
.work-strip .shot image-slot { width: 100%; height: 100%; }
.quote { margin-top: clamp(48px, 6vw, 80px); max-width: 52rem; }
.quote blockquote {
  font-family: var(--disp); font-stretch: 112%; font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.25; text-wrap: pretty;
}
.quote .attr { margin-top: 14px; font-family: var(--mono); font-size: 0.95rem; color: var(--gunmetal); }
.quote .more { margin-top: 18px; }

/* ---------- S7 find us ---------- */
.find { border-top: 1px solid var(--steel); }
.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 820px) { .find-grid { grid-template-columns: 1fr; } }
.mapbox { position: relative; min-height: 340px; background: #E7E5DD; border: 1px solid var(--steel); }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; text-align: center;
  background:
    linear-gradient(rgba(244, 242, 237, 0.6), rgba(244, 242, 237, 0.6)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(76, 79, 84, 0.18) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(76, 79, 84, 0.18) 47px 48px),
    #E7E5DD;
  border: 0; cursor: pointer; padding: 24px;
}
.map-facade .pin { color: var(--ember); }
.map-facade strong { font-weight: 600; }
.map-facade span { color: var(--gunmetal); font-size: 0.9375rem; }
.find-info > * + * { margin-top: 22px; }
.find-info address { font-style: normal; line-height: 1.5; }
.find-info .call { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hours { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-family: var(--body); font-weight: 600; padding-bottom: 8px; }
.hours th { text-align: left; font-weight: 400; padding: 5px 0; }
.hours td { text-align: right; padding: 5px 0; }
.hours tr.today th, .hours tr.today td { color: var(--ember); font-weight: 700; }
.open-now { color: var(--ember); font-weight: 600; font-size: 1.0625rem; }
.find-info .practical, .find-info .walkins { color: var(--gunmetal); max-width: 40ch; }

/* ---------- S8 book (the one Ink block) + footer ---------- */
.book-block { background: var(--ink); color: var(--porcelain); padding-bottom: 0; }
.book-block .sub { color: rgba(244, 242, 237, 0.72); }
.book-form { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 16px; max-width: 44rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 500; color: rgba(244, 242, 237, 0.85); }
.field input, .field select {
  color-scheme: dark;
  background: #232120; border: 1px solid rgba(201, 204, 206, 0.45);
  color: var(--porcelain); padding: 12px 14px; min-height: 48px; border-radius: 0; width: 100%;
}
.field select option { color: var(--porcelain); background: #232120; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--porcelain) 50%), linear-gradient(135deg, var(--porcelain) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-color: var(--ember); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.book-block .btn-primary { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }
.book-block .btn-primary:hover, .book-block .btn-primary:focus-visible { color: var(--porcelain); }
.form-error { color: #F2A38C; font-size: 0.9375rem; display: none; }
.form-error.show { display: block; }
.form-note { font-family: var(--mono); font-size: 0.875rem; color: rgba(244, 242, 237, 0.55); }
/* the single celebration: scissor snip across the button, then the check settles */
.btn-snip { position: relative; }
.btn-snip .sniptrail {
  position: absolute; left: -4%; right: -4%; top: 50%; height: 2px; z-index: 2;
  background: var(--ember); transform: scaleX(0) rotate(-3deg); transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-snip.snipping .sniptrail { animation: snipline 0.45s var(--ease-out) forwards; }
  .btn-snip.snipping .check { animation: rise-in 0.3s var(--ease-out) 0.4s backwards; }
  @keyframes snipline { from { transform: scaleX(0) rotate(-3deg); } 60% { transform: scaleX(1) rotate(-3deg); } to { transform: scaleX(1) rotate(-3deg); opacity: 0; } }
}
.book-success { display: none; max-width: 44rem; margin-top: 36px; }
.book-success.show { display: block; }
.book-success .big { font-family: var(--disp); font-stretch: 115%; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; gap: 12px; }
.book-success .big svg { color: var(--ember); flex: 0 0 auto; }
.book-success p { margin-top: 10px; color: rgba(244, 242, 237, 0.72); max-width: 48ch; }

.site-foot { margin-top: clamp(64px, 9vw, 110px); border-top: 1px solid rgba(201, 204, 206, 0.25); padding: 36px 0 110px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 28px clamp(40px, 7vw, 100px); }
.site-foot .wordmark::after { background: var(--ink); }
.site-foot h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; color: rgba(244, 242, 237, 0.85); }
.site-foot address, .site-foot p, .site-foot a { font-style: normal; font-size: 0.9375rem; color: rgba(244, 242, 237, 0.66); }
.site-foot .mono { font-size: 0.875rem; }
.foot-base {
  margin-top: 36px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.875rem; color: rgba(244, 242, 237, 0.55);
}
.foot-base .scissors { background: none; border: 0; cursor: pointer; color: rgba(244, 242, 237, 0.66); padding: 6px; display: inline-flex; }
.foot-base .scissors:hover { color: var(--ember); }
.copyline { display: inline-flex; white-space: nowrap; flex: none; }
.copyline span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.copyline.snipped .half-a { transform: translate(-7px, -5px) rotate(-3deg); }
.copyline.snipped .half-b { transform: translate(7px, 5px) rotate(2deg); }
.demo-credit { margin-top: 14px; font-size: 0.875rem; color: rgba(244, 242, 237, 0.45); }
.demo-credit a { color: inherit; }

/* ---------- sticky mobile bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none;
  gap: 10px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 242, 237, 0.96); border-top: 1px solid var(--steel);
}
.stickybar .btn { flex: 1; }
.stickybar .callbtn { flex: 0 0 auto; width: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .stickybar.on { display: flex; }
}

/* ---------- scroll reveals (IO, once) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .prow.reveal { transition-delay: calc(var(--i, 0) * 30ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
