/* ═══════════════════════════════════════════════════════════════
   TRACY THA BARBER
   Design system after CRISP (crispmtl.com):
     · two colours only — paper and ink. No accent.
     · heavy uppercase grotesk headlines, tight tracking, full stops.
     · a high-contrast serif for the eyebrow above every headline.
     · column rules running the length of the page.
     · square-cornered buttons, hairline gutters, full-bleed photography.
   ═══════════════════════════════════════════════════════════════ */

/* ── typefaces ─────────────────────────────────────────────── */
@font-face{
  font-family:"Archivo";
  src:url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  font-weight:100 900; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Archivo";
  src:url("../fonts/archivo-latin-wght-italic.woff2") format("woff2-variations");
  font-weight:100 900; font-style:italic; font-display:swap;
}
@font-face{
  font-family:"Instrument Serif";
  src:url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}

:root{
  --paper:  #F5F4F1;
  --ink:    #09090B;
  --rule:   #E6E8E4;
  --muted:  #6E6E6B;
  --muted-d:rgba(245,244,241,.62);
  --rule-d: rgba(245,244,241,.18);

  --sans:  "Archivo", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Times, serif;

  --gutter: clamp(1rem, 3.2vw, 3.5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --maxw: 1560px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:clamp(1rem,.96rem + .2vw,1.0625rem);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }
p{ margin:0 0 1.1em; }
a{ color:inherit; }
::selection{ background:var(--ink); color:var(--paper); }
:focus-visible{ outline:2px solid currentColor; outline-offset:3px; }

/* headlines: heavy, uppercase, tight, ending in a full stop */
h1,h2,h3{
  margin:0; font-weight:900; text-transform:uppercase;
  letter-spacing:-.035em; line-height:.9;
}

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--ink); color:var(--paper); padding:.85rem 1.25rem;
  font-size:.75rem; text-transform:uppercase; letter-spacing:.18em;
}
.skip:focus{ left:0; }

/* ═══ COLUMN RULES ═══════════════════════════════════════════ */
.rules{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  max-width:var(--maxw); margin-inline:auto;
  padding-inline:var(--gutter);
}
.rules > div{
  height:100%; display:grid; grid-template-columns:repeat(2,1fr);
  border-inline:1px solid var(--rule);
}
.rules span{ border-right:1px solid var(--rule); }
.rules span:nth-child(n+2){ display:none; }
@media (min-width:900px){
  .rules > div{ grid-template-columns:repeat(4,1fr); }
  .rules span:nth-child(n+2){ display:block; }
  .rules span:last-child{ border-right:0; }
}

main, .masthead, .footer{ position:relative; z-index:1; }

/* anchor jumps must clear the sticky masthead */
[id]{ scroll-margin-top:clamp(58px,7vw,74px); }

/* ═══ SHARED ═════════════════════════════════════════════════ */
.eyebrow{
  font-family:var(--serif);
  font-size:clamp(1.125rem,2.2vw,1.5rem);
  line-height:1.2; letter-spacing:0; text-transform:none;
  color:var(--ink); margin:0 0 .5rem;
}
.eyebrow--light{ color:var(--paper); }

.section{
  padding:var(--section-y) var(--gutter);
  max-width:var(--maxw); margin-inline:auto;
}
.section--flush{ padding-inline:0; }
.section--flush .sec-head{ padding-inline:var(--gutter); }

.sec-h2{ font-size:clamp(2.6rem,8.5vw,7rem); }
.sec-head{ margin-bottom:clamp(2.5rem,5vw,4rem); }
.sec-note{
  margin:1.5rem 0 0; max-width:38ch; color:var(--muted);
  font-size:.9375rem;
}

/* ═══ BUTTONS ════════════════════════════════════════════════ */
.btn{
  --bg:var(--ink); --fg:var(--paper); --bd:var(--ink);
  display:inline-flex; align-items:center; justify-content:center;
  padding:1.05rem 2rem;
  background:var(--bg); color:var(--fg); border:1px solid var(--bd);
  font:inherit; font-size:.8125rem; font-weight:800;
  text-transform:uppercase; letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ --bg:transparent; --fg:var(--ink); }
.btn--paper{ --bg:var(--paper); --fg:var(--ink); --bd:var(--paper); }
.btn--paper:hover{ --bg:transparent; --fg:var(--paper); }
.btn--ghost{ --bg:transparent; --fg:var(--paper); --bd:var(--rule-d); }
.btn--ghost:hover{ --bg:var(--paper); --fg:var(--ink); --bd:var(--paper); }

/* ═══ MASTHEAD ═══════════════════════════════════════════════ */
.masthead{
  position:sticky; top:0; z-index:90;
  display:grid; align-items:center;
  grid-template-columns:1fr auto 1fr;
  grid-template-rows:clamp(58px,7vw,74px) auto;
  gap:0 1rem;
  padding:0 var(--gutter);
  background:var(--paper);
  border-bottom:1px solid var(--rule);
}
/* transparent over the hero until you scroll */
.masthead:not(.is-stuck){
  background:transparent; border-bottom-color:transparent; color:var(--paper);
}
.masthead:not(.is-stuck) .burger span{ background:var(--paper); }

.wordmark{
  grid-column:2;
  font-weight:900; text-transform:uppercase; letter-spacing:-.02em;
  font-size:clamp(.9rem,2.2vw,1.15rem); line-height:1;
  text-decoration:none; text-align:center; white-space:nowrap;
}

.masthead__call{
  grid-column:3; justify-self:end;
  font-size:.6875rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.04em; text-decoration:none;
  font-variant-numeric:tabular-nums;
  border-bottom:1px solid transparent; padding-bottom:2px;
}
.masthead__call:hover{ border-bottom-color:currentColor; }
.masthead__call-sm{ display:none; }
@media (max-width:1119px){
  .masthead__call-lg{ display:none; }
  .masthead__call-sm{ display:inline; }
}

.burger{
  grid-column:1; justify-self:start;
  width:34px; height:34px; padding:9px 3px;
  background:none; border:0; cursor:pointer; color:inherit;
  display:flex; flex-direction:column; justify-content:space-between;
}
.burger span{ display:block; height:2px; background:var(--ink); transition:transform .3s ease, opacity .2s ease, background .3s ease; }
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav{
  grid-column:1/-1; grid-row:2;
  display:grid; max-height:0; overflow:hidden;
  background:var(--paper); color:var(--ink);
  transition:max-height .4s cubic-bezier(.4,0,.2,1);
}
.masthead.is-nav-open,
.masthead:has(.nav.is-open){ background:var(--paper); color:var(--ink); border-bottom-color:var(--rule); }
.masthead.is-nav-open .burger span,
.masthead:has(.nav.is-open) .burger span{ background:var(--ink); }
.nav.is-open{ max-height:60vh; }
.nav a{
  padding:1.4rem 0; border-top:1px solid var(--rule);
  font-size:1.5rem; font-weight:900; text-transform:uppercase;
  letter-spacing:-.03em; text-decoration:none;
}
.nav a:first-child{ border-top:0; padding-top:1.75rem; }
.nav a:last-child{ padding-bottom:2rem; }

/* ═══ HERO ═══════════════════════════════════════════════════ */
.hero{
  position:relative;
  min-height:clamp(560px,92vh,1000px);
  margin-top:calc(-1 * clamp(58px,7vw,74px));
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; background:var(--ink);
}
/* the cuts cycle behind the headline: crossfade with a slow drift in */
.hero__slides{ position:absolute; inset:0; }
.hero__slide{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:var(--pos, 50% 50%);
  opacity:0;
  transition:opacity 1.2s ease;
}
@media (min-width:900px){
  .hero__slide{ object-position:var(--pos-d, var(--pos, 50% 50%)); }
}
.hero__slide.is-live{ opacity:1; animation:drift 5.8s ease-out forwards; }

/* finishes before the next slide takes over, so nothing snaps mid-fade */
@keyframes drift{ from{ transform:scale(1.07); } to{ transform:scale(1); } }

@media (prefers-reduced-motion: reduce){
  .hero__slide{ transition:none; animation:none; }
}

.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(9,9,11,.5), rgba(9,9,11,.28) 45%, rgba(9,9,11,.62));
}
.hero__body{
  position:relative; z-index:2;
  text-align:center; color:var(--paper);
  padding:6rem var(--gutter) 4rem;
}
.hero__h1{
  font-size:clamp(2.5rem,9vw,6.5rem);
  line-height:.98; letter-spacing:-.04em;
}

.hero__scroll{
  position:absolute; z-index:2; left:50%; bottom:2rem; transform:translateX(-50%);
  color:var(--paper); text-decoration:none;
  font-family:var(--serif); font-size:1.0625rem;
}
.hero__scroll span{ border-bottom:1px solid rgba(245,244,241,.5); padding-bottom:3px; }

/* ═══ MARQUEE ════════════════════════════════════════════════ */
.marquee{
  background:var(--ink); color:var(--paper);
  padding:1rem 0; overflow:hidden;
}
.marquee__track{ display:flex; width:max-content; animation:slide 48s linear infinite; }
.marquee:hover .marquee__track{ animation-play-state:paused; }
.marquee__set{ display:flex; align-items:center; }
.marquee b{
  font-size:clamp(1rem,2.4vw,1.75rem);
  font-weight:900; text-transform:uppercase; letter-spacing:-.03em;
  white-space:nowrap; padding-inline:1.3rem;
}
.dot{ width:6px; height:6px; flex:none; border-radius:50%; background:var(--paper); }
@keyframes slide{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation:none; }
  .marquee{ overflow-x:auto; }
}

/* ═══ THE ESSENCE ════════════════════════════════════════════ */
.essence{ display:grid; gap:clamp(2.5rem,5vw,4.5rem); grid-template-columns:1fr; }
@media (min-width:960px){ .essence{ grid-template-columns:1.05fr .95fr; } }

.essence__copy{ max-width:56ch; }
.essence__copy .lead{
  font-size:clamp(1.3rem,2.6vw,1.9rem);
  line-height:1.25; letter-spacing:-.025em; font-weight:600;
  margin-bottom:1.5rem;
}
.essence__copy p:not(.lead){ color:var(--muted); }

.creds{ list-style:none; margin:0; padding:0; }
.creds li{ padding:1.5rem 0; border-top:1px solid var(--rule); }
.creds li:last-child{ border-bottom:1px solid var(--rule); }
.creds h3{ font-size:1.125rem; letter-spacing:-.02em; margin-bottom:.4rem; }
.creds p{ margin:0; color:var(--muted); font-size:.9375rem; }


/* ═══ THE BARBER ═════════════════════════════════════════════ */
.barber{
  background:var(--ink); color:var(--paper);
  display:grid; grid-template-columns:1fr;
  align-items:stretch;
}
@media (min-width:960px){
  .barber{ grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
}

/* the portrait runs to the edge of the screen — he is not boxed in */
.barber__shot{ margin:0; }
.barber__shot img{
  width:100%; height:100%;
  aspect-ratio:2/3; object-fit:cover; object-position:center 30%;
  min-height:clamp(420px,62vw,900px);
}
@media (min-width:960px){
  .barber__shot img{ aspect-ratio:auto; min-height:100%; }
}

.barber__body{
  display:flex; flex-direction:column; justify-content:center;
  padding:var(--section-y) var(--gutter);
  max-width:64ch;
}
@media (min-width:960px){
  .barber__body{ padding-inline:clamp(2.5rem,5vw,5.5rem); }
}

.barber__name{
  font-size:clamp(3rem,11vw,7rem);
  line-height:.86; letter-spacing:-.045em;
  margin-bottom:clamp(1.75rem,3.5vw,2.5rem);
}

.barber__lead{
  font-size:clamp(1.35rem,2.8vw,2rem);
  font-weight:900; text-transform:uppercase;
  letter-spacing:-.03em; line-height:1.05;
  margin-bottom:1.2rem;
}
.barber__body p:not(.barber__lead):not(.eyebrow){ color:var(--muted-d); max-width:46ch; }

.barber__quote{
  margin:clamp(1.75rem,3.5vw,2.5rem) 0 0;
  padding-top:clamp(1.75rem,3.5vw,2.5rem);
  border-top:1px solid var(--rule-d);
  font-family:var(--serif);
  font-size:clamp(1.35rem,3vw,2rem);
  line-height:1.25; max-width:24ch;
}

/* ═══ THE WORK ═══════════════════════════════════════════════ */
/* hairline gutters, so the photographs read as one block */
.gallery{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:1px; background:var(--rule);
  border-block:1px solid var(--rule);
}
@media (min-width:900px){ .gallery{ grid-template-columns:repeat(6,1fr); } }

.shot{ margin:0; background:var(--paper); }
@media (max-width:899px){
  .shot:last-child{ grid-column:span 2; }
  .shot:last-child .shot__btn img{ aspect-ratio:4/5; object-position:center 16%; }
}
@media (min-width:900px){
  .shot{ grid-column:span 2; }
  .shot--wide{ grid-column:span 3; }
  .shot--wide .shot__btn img{ aspect-ratio:4/5; object-position:center 18%; }
}

.shot__btn{
  display:block; position:relative; width:100%;
  padding:0; border:0; background:var(--ink); cursor:pointer; overflow:hidden;
}
.shot__btn img{
  width:100%; aspect-ratio:3/4; object-fit:cover; object-position:center 20%;
  transition:transform .7s cubic-bezier(.2,.7,.3,1);
}
.shot__btn:hover img, .shot__btn:focus-visible img{ transform:scale(1.04); }

.shot__cap{
  position:absolute; left:0; right:0; bottom:0;
  padding:3rem 1.1rem 1rem; text-align:left; color:var(--paper);
  background:linear-gradient(to top, rgba(9,9,11,.9), transparent);
}
.shot__cap b{
  display:block; font-size:clamp(1rem,1.8vw,1.375rem); font-weight:900;
  text-transform:uppercase; letter-spacing:-.03em; line-height:1;
}
.shot__cap em{ font-family:var(--serif); font-style:normal; font-size:.9375rem; opacity:.85; }

/* ═══ SERVICES ═══════════════════════════════════════════════ */
.rates{ list-style:none; margin:0; padding:0; }
.rates li{
  display:grid; grid-template-columns:1fr auto;
  grid-template-areas:"name price" "desc desc";
  gap:.4rem 1.5rem; align-items:baseline;
  padding:1.75rem 0; border-top:1px solid var(--rule);
}
.rates li:last-child{ border-bottom:1px solid var(--rule); }
.rates--add .rates__name,
.rates--add .rates__price{ color:var(--muted); }
.rates__name{
  grid-area:name; font-size:clamp(1.2rem,3vw,2.1rem); font-weight:900;
  text-transform:uppercase; letter-spacing:-.035em; line-height:1.02;
}
.rates__price{
  grid-area:price; font-size:clamp(1.2rem,3vw,2.1rem); font-weight:900;
  letter-spacing:-.035em; font-variant-numeric:tabular-nums;
}
.rates__desc{
  grid-area:desc; font-family:var(--serif); font-size:1.0625rem;
  color:var(--muted); max-width:52ch;
}

/* ═══ THE SHOP ═══════════════════════════════════════════════ */
.shop{
  background:var(--ink); color:var(--paper);
  padding:var(--section-y) 0;
  text-align:center;
}
.shop__head{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.shop__h2{ font-size:clamp(2.6rem,10vw,7.5rem); }

.strip{
  display:grid; grid-template-columns:repeat(5,1fr);
  gap:1px; background:var(--paper);
  border-block:1px solid var(--paper);
  margin:clamp(1.75rem,4vw,3rem) auto;
  max-width:min(var(--maxw), 92vw);
}
@media (max-width:640px){
  /* three legible portraits beats five slivers */
  .strip{ grid-template-columns:repeat(3,1fr); }
  .strip img:nth-child(n+4){ display:none; }
}
.strip img{ width:100%; aspect-ratio:3/4; object-fit:cover; object-position:center 18%; filter:grayscale(1); }

.shop__cta{
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:center;
  margin-top:clamp(2rem,4vw,3rem);
}

.details{
  max-width:var(--maxw); margin:clamp(3.5rem,7vw,6rem) auto 0;
  padding:clamp(2.5rem,5vw,4rem) var(--gutter) 0;
  border-top:1px solid var(--rule-d);
  display:grid; gap:2.25rem 2rem; text-align:left;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.details dt{
  font-family:var(--serif); font-size:1.125rem;
  color:var(--muted-d); margin-bottom:.55rem;
}
.details dd{ margin:0; font-size:1.0625rem; line-height:1.5; }
/* underline, not a border — the address runs to three lines */
.details a{
  text-decoration:underline; text-decoration-thickness:1px;
  text-underline-offset:4px; text-decoration-color:var(--rule-d);
  transition:text-decoration-color .2s ease;
}
.details a:hover{ text-decoration-color:currentColor; }

/* ═══ FOOTER ═════════════════════════════════════════════════ */
.footer{
  background:var(--ink); color:var(--muted-d);
  padding:0 var(--gutter) 2.5rem;
  display:flex; flex-wrap:wrap; gap:.4rem 2rem; justify-content:space-between;
  font-size:.6875rem; font-weight:700; text-transform:uppercase; letter-spacing:.14em;
}
.footer p{ margin:0; }

/* ═══ LIGHTBOX ═══════════════════════════════════════════════ */
.lightbox{
  position:fixed; inset:0; z-index:120;
  display:flex; align-items:center; justify-content:center; gap:1rem;
  background:rgba(9,9,11,.97); padding:clamp(1rem,4vw,3rem);
  opacity:0; transition:opacity .28s ease;
}
.lightbox[hidden]{ display:none; }
.lightbox.is-open{ opacity:1; }
.lightbox__fig{ margin:0; display:flex; flex-direction:column; gap:1rem; align-items:center; max-height:100%; }
.lightbox__fig img{ max-height:78vh; width:auto; max-width:100%; object-fit:contain; }
.lightbox__fig figcaption{
  color:var(--paper); font-family:var(--serif); font-size:1.0625rem; text-align:center;
}
.lightbox button{
  background:none; border:0; color:var(--paper); cursor:pointer;
  font-family:var(--sans); line-height:1;
}
.lightbox button:hover{ opacity:.6; }
.lightbox__close{ position:absolute; top:clamp(.75rem,2vw,1.5rem); right:clamp(.75rem,2vw,1.5rem); font-size:2.6rem; padding:.4rem .8rem; }
.lightbox__nav{ font-size:3rem; padding:.5rem .9rem; flex:none; }
@media (max-width:640px){
  .lightbox__nav{ position:absolute; bottom:1rem; font-size:2.4rem; }
  .lightbox__nav--prev{ left:1rem; }
  .lightbox__nav--next{ right:1rem; }
}

/* ═══ REVEAL ═════════════════════════════════════════════════ */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
