/* NORTHCLIFF TAILORS — Tier-1 demo
   Cross-industry pull: aritsugu.jp (Kyoto knife maker, est. 1560) — quiet authority through restraint
   Posture: older, drier, more Highveld. Things are exactly where they have always been.
   Dials: DV=4 (low variance, restraint is the message), MI=3 (almost no motion), VD=6 (denser than startup, airier than directory)
   Anti-references: no mahogany, no Union Jacks, no Inter-as-display, no warm-linen Persa drift
*/

:root {
  --primary:    #1B2A2E;  /* Deep Charcoal-Pine — dark wool, holds against Highveld sun */
  --secondary:  #C8B89A;  /* Raw Calico — unbleached muslin */
  --accent:     #7A2A1D;  /* Oxblood — CTAs + logo bar, sparingly */
  --bg:         #F4EFE7;  /* Warm Chalk — paper, not white */
  --ink:        #0E1518;  /* Near-black — body type, higher contrast than primary */
  --support:    #8C9089;  /* Lichen Grey — rules, captions, meta */

  --rule:        rgba(27, 42, 46, 0.14);
  --rule-strong: rgba(27, 42, 46, 0.32);
  --rule-soft:   rgba(27, 42, 46, 0.07);

  --type-display: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --type-body:    "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --type-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rad-s: 2px;
  --rad-m: 4px;

  --pad-1: 0.5rem;
  --pad-2: 1rem;
  --pad-3: 1.5rem;
  --pad-4: 2rem;
  --pad-6: 3rem;
  --pad-8: 4.5rem;
  --pad-12: 7rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--type-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cormorant Garamond at LARGE sizes only — never below 32px.
   Body type, h3 and h4 use Source Serif 4. */
h1, .display-xl {
  font-family: var(--type-display);
  color: var(--primary);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 var(--pad-2);
  line-height: 1.06;
}
h2, .display-l {
  font-family: var(--type-display);
  color: var(--primary);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 var(--pad-2);
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }   /* min ~42px, scales to 72px */
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }       /* min 32px */
h3 {
  font-family: var(--type-body);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0;
  margin: 0 0 var(--pad-2);
  line-height: 1.3;
}
h4 {
  font-family: var(--type-mono);
  color: var(--support);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 var(--pad-1);
}
p  { margin: 0 0 var(--pad-2); max-width: 64ch; }
a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); }

/* Mono is "the receipt voice" — hours, address, phone, prices, eyebrows. */
.mono, .receipt {
  font-family: var(--type-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.wrap   { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad-3); }
.narrow { max-width: 720px;  margin: 0 auto; padding: 0 var(--pad-3); }

/* ───────── header ───────── */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 231, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.bar-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem var(--pad-3);
  max-width: 1180px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--primary);
  font-family: var(--type-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand .mark {
  width: 30px; height: 30px;
  background: var(--accent);
  display: grid; place-items: center;
  font-family: var(--type-mono); font-weight: 700; font-size: 0.72rem;
  color: var(--bg);
  letter-spacing: 0.04em;
}
.nav { display: flex; gap: 1.6rem; align-items: center; font-size: 0.88rem; font-family: var(--type-body); }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .phone {
  font-family: var(--type-mono);
  font-size: 0.82rem;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--rad-s);
  font-family: var(--type-mono); font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--rule-strong); }
.btn.ghost:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* ───────── hero ───────── */
.hero {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--primary);
  color: var(--bg);
}
.hero-frame {
  /* Full-bleed dark photograph slot, top-down workbench composition.
     Image goes in as background or <img> in .hero-img; copy overlays. */
  position: relative;
  min-height: 78vh;
  max-height: 880px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hero-img {
  /* placeholder div until images/hero-workbench.jpg arrives */
  position: absolute; inset: 0; z-index: 0;
  background: var(--primary);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(200, 184, 154, 0.06), transparent 55%),
    linear-gradient(135deg, #1B2A2E 0%, #131e21 100%);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img::after {
  /* Soft long-shadow vignette to ground copy in lower-left */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 45%,
    rgba(0,0,0,0.45) 88%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

.hero-meta-top {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--pad-4) var(--pad-4) 0;
  font-family: var(--type-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, 0.75);
}
.hero-meta-top .corner { text-align: right; }
.hero-meta-top a { color: rgba(244, 239, 231, 0.85); text-decoration: none; }
.hero-meta-top a:hover { color: var(--secondary); }

.hero-body {
  position: relative; z-index: 2;
  align-self: end;
  padding: 0 var(--pad-4) var(--pad-6);
  max-width: 920px;
}
.hero-body h1 {
  color: var(--bg);
  font-size: clamp(2.4rem, 6vw, 4.5rem); /* tops out near 72px on wide */
  margin-bottom: var(--pad-2);
}
.hero-body h1 .line { display: block; }
.hero-rule {
  width: 96px; height: 2px;
  background: var(--accent);
  margin: var(--pad-3) 0 var(--pad-3);
}
.hero-receipt {
  font-family: var(--type-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--secondary);
  text-transform: uppercase;
}

.hero-placeholder-tag {
  /* Visible only when no hero image is wired yet. Renders in lower-right corner. */
  position: absolute; right: var(--pad-3); bottom: var(--pad-3);
  z-index: 3;
  font-family: var(--type-mono); font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(200, 184, 154, 0.6);
  text-transform: uppercase;
  border: 1px dashed rgba(200, 184, 154, 0.35);
  padding: 0.35rem 0.6rem;
}

/* ───────── plate — "the shop" ───────── */
.plate {
  padding: var(--pad-12) 0 var(--pad-8);
  background: var(--bg);
}
.plate .wrap {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: var(--pad-6);
  align-items: start;
}
.plate h4 { margin-top: 0.6rem; }
.plate h2 {
  max-width: 22ch;
}
.plate .body p {
  font-size: 1.08rem;
  color: var(--ink);
}
.plate .receipt {
  display: block;
  margin-top: var(--pad-4);
  padding-top: var(--pad-3);
  border-top: 1px solid var(--rule);
  color: var(--support);
}

/* ───────── services ───────── */
.services {
  padding: var(--pad-8) 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.services .head {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: var(--pad-4);
  margin-bottom: var(--pad-6);
  align-items: end;
}
.services .head h2 { margin: 0; max-width: 20ch; }
.services .head p { color: var(--support); margin: 0; max-width: 38ch; font-size: 0.97rem; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.svc {
  background: var(--bg);
  padding: var(--pad-4);
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: background 200ms ease;
}
.svc:hover { background: #ECE5D7; }
.svc .num {
  font-family: var(--type-mono);
  font-size: 0.72rem;
  color: var(--support);
  letter-spacing: 0.14em;
  margin-bottom: var(--pad-3);
}
.svc .name {
  font-family: var(--type-display);
  font-size: 2.1rem;       /* large enough for Cormorant */
  font-weight: 400;
  color: var(--primary);
  margin-bottom: var(--pad-2);
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.svc .desc {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 var(--pad-4);
  flex: 1;
}
.svc .price {
  font-family: var(--type-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-top: 1px solid var(--rule);
  padding-top: var(--pad-2);
}

/* ───────── how it works ───────── */
.how {
  padding: var(--pad-8) 0;
  background: var(--secondary);
  color: var(--primary);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.how .head {
  margin-bottom: var(--pad-6);
  max-width: 640px;
}
.how .head h4 { color: var(--accent); }
.how .head h2 { color: var(--primary); max-width: 18ch; }
.how .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pad-6);
}
.step .step-num {
  font-family: var(--type-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(27, 42, 46, 0.6);
  padding-bottom: var(--pad-2);
  margin-bottom: var(--pad-3);
  border-bottom: 1px solid rgba(27, 42, 46, 0.25);
}
.step h3 {
  font-family: var(--type-display);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: var(--pad-2);
  line-height: 1.1;
}
.step p {
  font-size: 0.95rem;
  color: var(--primary);
  margin: 0;
}

/* ───────── image plate (workshop interior) ───────── */
.image-plate {
  padding: var(--pad-8) 0;
  background: var(--bg);
}
.image-plate .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad-4);
  align-items: center;
}
.image-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--primary);
  overflow: hidden;
}
.image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-slot .tag {
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--type-mono); font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 184, 154, 0.55);
  border: 1px dashed rgba(200, 184, 154, 0.35);
  padding: 0.35rem 0.6rem;
}
.image-plate .body h2 { max-width: 18ch; }
.image-plate .body p { font-size: 1.05rem; }

/* ───────── find us ───────── */
.find {
  padding: var(--pad-8) 0;
  background: var(--primary);
  color: var(--bg);
  border-top: 1px solid var(--rule);
}
.find .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--pad-6);
}
.find h2 { color: var(--bg); max-width: 18ch; }
.find h4 { color: var(--secondary); }
.find .info p { color: rgba(244, 239, 231, 0.85); }
.find .info .row {
  display: flex; gap: 0.8rem; align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(244, 239, 231, 0.15);
}
.find .info .row span:first-child {
  font-family: var(--type-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 231, 0.5);
  text-transform: uppercase;
  min-width: 90px;
}
.find .info .row span:last-child {
  font-family: var(--type-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--bg);
}
.find .info .row a { color: var(--secondary); text-decoration: none; border-bottom: 1px solid rgba(200, 184, 154, 0.4); }
.find .info .row a:hover { color: var(--bg); border-bottom-color: var(--bg); }
.find .info .cta-pair { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: var(--pad-4); }
.find .info .cta-pair .btn { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.find .info .cta-pair .btn.ghost { background: transparent; border-color: rgba(244, 239, 231, 0.35); color: var(--bg); }
.find .info .cta-pair .btn.ghost:hover { background: var(--bg); color: var(--primary); border-color: var(--bg); }
.find .map {
  border: 1px solid rgba(244, 239, 231, 0.18);
  background: #131e21;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.find .map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(0.4) contrast(0.92); }
.find .map .map-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--type-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; color: rgba(200, 184, 154, 0.4);
  text-transform: uppercase;
}

/* ───────── footer ───────── */
footer {
  background: var(--ink);
  color: rgba(244, 239, 231, 0.72);
  padding: var(--pad-6) 0 var(--pad-4);
  font-size: 0.88rem;
}
footer .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--pad-4);
  margin-bottom: var(--pad-4);
}
footer h4 { color: var(--secondary); margin-bottom: var(--pad-2); }
footer a { color: var(--bg); text-decoration: none; border-bottom: 1px solid rgba(200, 184, 154, 0.25); }
footer a:hover { color: var(--secondary); border-bottom-color: var(--secondary); }
footer ul { list-style: none; margin: 0; padding: 0; font-family: var(--type-mono); font-size: 0.8rem; letter-spacing: 0.04em; }
footer ul li { margin-bottom: 0.55rem; }
footer .colophon {
  margin-top: var(--pad-3); padding-top: var(--pad-3);
  border-top: 1px solid rgba(244, 239, 231, 0.12);
  font-size: 0.78rem; color: rgba(244, 239, 231, 0.55);
  max-width: 78ch; line-height: 1.6;
}
footer .meta {
  margin-top: var(--pad-3); padding-top: var(--pad-3);
  border-top: 1px solid rgba(244, 239, 231, 0.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem;
  font-family: var(--type-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: rgba(244, 239, 231, 0.45);
  text-transform: uppercase;
}

/* ───────── 404 / thanks ───────── */
.utility {
  min-height: 70vh;
  display: grid; place-items: center;
  padding: var(--pad-8) var(--pad-3);
  background: var(--bg);
  text-align: center;
}
.utility .code {
  font-family: var(--type-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--pad-3);
}
.utility h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.utility p { margin: 0 auto var(--pad-4); max-width: 50ch; color: var(--ink); }

/* ───────── responsive ───────── */
@media (max-width: 920px) {
  .plate .wrap,
  .services .head,
  .image-plate .wrap,
  .find .wrap,
  footer .grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .how .steps { grid-template-columns: 1fr; gap: var(--pad-4); }
  .nav { display: none; }
  .nav .phone { display: inline; }
  .bar-in .nav { display: flex; gap: 0.8rem; }
  .bar-in .nav a:not(.phone) { display: none; }
  .hero-meta-top { padding: var(--pad-3) var(--pad-3) 0; flex-direction: column; gap: 0.5rem; }
  .hero-meta-top .corner { text-align: left; }
  .hero-body { padding: 0 var(--pad-3) var(--pad-4); }
  .plate { padding: var(--pad-6) 0; }
}

/* ───────── motion: almost none (MI=3). One quiet fade only. ───────── */
.reveal { opacity: 0; transition: opacity 700ms ease; }
.reveal.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .reveal { opacity: 1; }
}

/* ───────── print rules (when someone hits Print) ───────── */
@media print {
  .bar, .find .map, .hero-placeholder-tag { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .hero { background: white; color: black; min-height: auto; }
  .hero-img, .hero-img::after { display: none; }
  .hero-body h1 { color: black; }
}
