/* ==========================================================
   TACIT — bytacit.com
   Visual principle: PAPER + INK + WALNUT + SPACE
   The Card is the Grid (3:5)
   ========================================================== */

:root {
  --paper: #ffffff;        /* Card White — match to printed Focus Card */
  --ground: #f5f3ef;       /* supporting neutral (page background) */
  --ink: #191918;          /* TACIT Black — digital working point */
  --ink-soft: #5f5c57;
  --line: #dedad3;
  --walnut: #5b3b28;       /* working value; walnut is never one HEX */
  --kraft: #c9a47c;        /* working value; refine from the real refill box */

  --font: "Gill Sans Nova", "Gill Sans", "Gill Sans MT", "Lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(46px, 6vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 22px; font-weight: 400; letter-spacing: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 243, 239, 0.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; color: var(--ink); }
.wordmark { width: 96px; height: 19px; color: inherit; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); border: 1px solid var(--ink); padding: 10px 16px; }
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--space); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-soft); max-width: 30ch; margin-bottom: 36px; }
.hero-media { margin: 0; background: var(--paper); }
.hero-media img { width: 100%; }

/* ---------- Notify form ---------- */
.notify-form {
  display: flex; flex-wrap: wrap; gap: 0;
  max-width: 460px; position: relative;
}
.notify-form input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink); border-right: 0;
  padding: 15px 18px; border-radius: 0; outline: none;
  -webkit-appearance: none; appearance: none;
}
.notify-form input[type="email"]::placeholder { color: #9a968f; }
.notify-form input[type="email"]:focus { box-shadow: inset 0 0 0 1px var(--ink); }
.notify-form button {
  font: inherit; font-size: 12px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); padding: 15px 24px; cursor: pointer; border-radius: 0;
  transition: opacity .2s;
}
.notify-form button:hover { opacity: .86; }
.notify-form button[disabled] { opacity: .5; cursor: default; }
.form-msg { flex-basis: 100%; margin: 12px 0 0; font-size: 15px; min-height: 1px; }
.form-msg.ok { color: var(--ink); }
.form-msg.err { color: #8a2c1d; }
.notify-form.done input[type="email"], .notify-form.done button { display: none; }
.notify-form.done .form-msg { margin: 0; font-size: 18px; }
.fineprint { font-size: 14px; color: var(--ink-soft); margin-top: 16px; }
.center .notify-form { margin: 0 auto; }

/* ---------- Only three ---------- */
.only-three { padding: var(--space) 0; background: var(--paper); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split-copy h2 { margin-bottom: 28px; }
.split-copy p { color: var(--ink-soft); max-width: 38ch; }
.signature {
  margin-top: 28px; color: var(--ink) !important;
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
}

/* Focus Card replica — 3:5 */
.card-demo { display: flex; flex-direction: column; align-items: center; }
.focus-card {
  width: min(100%, 330px);
  aspect-ratio: 3 / 5;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 24px 48px -24px rgba(25,25,24,.35), 0 0 0 1px rgba(25,25,24,.06);
  padding: 7% 8% 7% 15%;
  position: relative;
  display: flex; flex-direction: column;
  font-size: 13px; color: var(--ink);
}
.focus-card::before { /* vertical margin rule */
  content: ""; position: absolute; left: 9%; top: 7%; bottom: 7%;
  width: 1px; background: var(--ink);
}
.fc-date { align-self: flex-end; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; display: flex; gap: 6px; align-items: flex-end; color: var(--ink-soft); }
.fc-line { display: inline-block; width: 60px; border-bottom: 1px solid var(--line); }
.fc-label { font-size: 9.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; margin: 22px 0 10px; }
.fc-three { list-style: none; margin: 0; padding: 0; }
.fc-three li { display: flex; align-items: center; gap: 8px; height: 38px; border-bottom: 1px solid var(--line); }
.fc-n { font-size: 12px; width: 8px; }
.fc-dot {
  width: 11px; height: 11px; flex: none; padding: 0; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 50%; background: transparent; position: relative;
}
.fc-three li.done .fc-dot::after {
  content: ""; position: absolute; left: 2px; top: -2px; width: 4px; height: 8px;
  border: solid var(--ink); border-width: 0 1.4px 1.4px 0; transform: rotate(40deg);
}
.fc-three input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); padding: 0;
  font-family: "Bradley Hand", "Segoe Print", "Noteworthy", var(--font);
}
.fc-three input::placeholder { color: #b6b1a9; font-family: var(--font); font-size: 13px; }
.fc-three li.done input { text-decoration: line-through; color: var(--ink-soft); }
.fc-wait { font-size: 11px; color: var(--ink-soft); margin: 14px 0 0; }
.fc-rules { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.fc-rules span { display: block; border-bottom: 1px solid var(--line); }
.fc-eod { margin: 8px 0 8px; }
.fc-close { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-soft); }
.fc-close span { display: inline-flex; align-items: center; gap: 6px; }
.fc-box { width: 9px; height: 9px; border: 1px solid var(--ink); display: inline-block; }
.focus-card.closed .fc-box { background: var(--ink); }
.card-caption { margin-top: 22px; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-bottom: 20px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); }

/* ---------- Products ---------- */
.products { padding: var(--space) 0; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.product { background: var(--paper); display: flex; flex-direction: column; }
.product-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media.kraft img { object-fit: cover; }
.product-body { padding: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); flex: 1; }
.product-body h3 { margin-bottom: 14px; font-size: 24px; }
.product-body p { color: var(--ink-soft); font-size: 17px; }
.tag {
  display: inline-block; font-size: 11px !important; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink) !important; border: 1px solid var(--line); padding: 6px 10px; margin-bottom: 18px !important;
}
.includes { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.includes li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.includes li::before { content: "—"; margin-right: 12px; color: var(--walnut); }

.specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: clamp(40px, 6vw, 64px) 0 0; padding-top: 28px; border-top: 1px solid var(--ink);
}
.specs dt { font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; }
.specs dd { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Ritual ---------- */
.ritual { padding: var(--space) 0; background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; margin-bottom: 26px; }
.step-n { font-size: 13px; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 6px; }
.step h3 { font-size: 15px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 12px; }
.step p:not(.step-n) { color: var(--ink-soft); font-size: 17px; max-width: 30ch; }

/* ---------- Materials ---------- */
.materials { padding: var(--space) 0; }
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.material-grid figure { margin: 0; }
.material-grid img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.material-grid figcaption { padding-top: 20px; font-size: 16px; color: var(--ink-soft); }
.material-grid strong { display: block; font-weight: 400; color: var(--ink); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--ink); color: var(--paper); padding: var(--space) 0; }
.manifesto .eyebrow { color: #9d9a94; }
.manifesto-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.m-big { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.22; margin-bottom: 40px; }
.m-lines { color: #bdb9b2; font-size: 19px; line-height: 1.9; }
.m-sign { margin-top: 36px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.manifesto-media { margin: 0; }
.manifesto-media img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; }

/* ---------- Story ---------- */
.story { padding: var(--space) 0; }
.story h2 { margin-bottom: 36px; }
.story em { font-style: italic; }
.story p:not(.eyebrow) { font-size: 20px; color: var(--ink-soft); }

/* ---------- Notify ---------- */
.notify { padding: var(--space) 0; background: var(--paper); border-top: 1px solid var(--line); }
.notify h2 { margin-bottom: 24px; }
.notify p:not(.form-msg):not(.fineprint) { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-inner p { margin: 0; font-size: 14px; color: #bdb9b2; letter-spacing: .04em; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .manifesto-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .product-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; gap: 18px; }
  .manifesto-media { max-width: 420px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { padding: 9px 12px; font-size: 11px; }
  .steps, .material-grid { grid-template-columns: 1fr; gap: 48px; }
  .step img { aspect-ratio: 4 / 5; }
  .notify-form input[type="email"] { border-right: 1px solid var(--ink); flex-basis: 100%; }
  .notify-form button { flex-basis: 100%; margin-top: 8px; }
}
