/* ============================================================
   ZSmyth.com — static rebuild
   Design tokens mirror the live Squarespace site:
   Manrope (weight 500 display), black on white, dark grain hero,
   black pill buttons, two-column label + content layout.
   ============================================================ */

:root {
  --black: #000000;
  --ink: #0b0b0d;
  --white: #ffffff;
  --muted: #6b6f76;
  --muted-light: #b7bcc4;
  --line: #e4e5e8;
  --hero-top: #0d0e11;
  --hero-bottom: #2b313b;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1400px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  /* Fluid type scale */
  --fs-display: clamp(2.75rem, 7vw, 5.25rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.7rem);
  --fs-h3: clamp(1.6rem, 3.4vw, 2.9rem);
  --fs-h4: clamp(1.35rem, 2.2vw, 2.15rem);
  --fs-lead: clamp(1.1rem, 1.5vw, 1.4rem);
  --fs-body: clamp(1.05rem, 1.25vw, 1.375rem);
  --fs-label: 0.95rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

/* ---------- layout ---------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.section--flush { border-top: 0; }

/* Two-column: small left label, large right content */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.3fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.split__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  position: sticky;
  top: 2rem;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 1rem; }
  .split__label { position: static; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
}

/* ---------- skip link + a11y ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--black); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid #4d7cff; outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 1.15rem;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--black);
  background: var(--black); color: var(--white);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--black); transform: translateY(-1px); }
.btn--on-dark { border-color: var(--white); background: var(--black); color: var(--white); }
.btn--on-dark:hover { background: var(--white); color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.6rem;
}
.brand {
  font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em;
  color: var(--white); text-decoration: none;
  display: inline-flex; align-items: center; gap: .55rem;
}
/* ZSmyth mark — white on dark headers, dark on light headers.
   Paths are relative to this stylesheet, so they work at any page depth. */
.brand__mark {
  width: 16px; height: 31px; flex: none;
  background-image: url("../img/zsmyth-mark-white.png");
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.site-header--light .brand__mark { background-image: url("../img/zsmyth-mark-dark.png"); }
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); align-items: center; }
.site-nav a { color: var(--white); text-decoration: none; font-size: 1rem; opacity: .85; }
.site-nav a:hover { opacity: 1; }
.site-header--light .brand,
.site-header--light .site-nav a { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: center;
  color: var(--white);
  background:
    radial-gradient(120% 120% at 15% 0%, #16181d 0%, rgba(22,24,29,0) 55%),
    linear-gradient(160deg, var(--hero-top) 0%, #171a20 45%, var(--hero-bottom) 100%);
  overflow: hidden;
}
/* film-grain overlay via inline SVG noise */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.hero__title { font-size: var(--fs-display); max-width: 15ch; }
.hero__aside { align-self: end; }
.hero__lead {
  font-size: var(--fs-lead); color: var(--muted-light); max-width: 42ch;
  margin-bottom: 2.25rem;
}
.hero__lead strong { color: var(--white); font-weight: 600; }
.hero__eyebrow {
  font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-light); margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-block: 8rem 4rem; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__aside { margin-top: 2rem; }
}

/* ---------- generic prose ---------- */
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }
.lead { font-size: var(--fs-lead); }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }

.tick-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tick-list li {
  position: relative; padding-left: 2rem; margin-bottom: 1rem;
  font-size: var(--fs-lead);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--black);
}

/* ---------- "I help companies" cards ---------- */
.help-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: 3rem;
}
.help-card { border-top: 2px solid var(--black); padding-top: 1.5rem; }
.help-card h4 { margin-bottom: .9rem; }
@media (max-width: 720px) { .help-grid { grid-template-columns: 1fr; } }

/* ---------- Ways to work together (stacked rows) ---------- */
.ways {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.way {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.7fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(0.5rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .2s ease;
}
.way:hover { background: #fafafa; }
.way__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65rem 1rem; }
.way__num {
  font-size: .85rem; color: var(--muted); letter-spacing: .12em;
  font-variant-numeric: tabular-nums; flex-basis: 100%;
}
.way h4 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); }
.way__badge {
  font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--white); padding: .28rem .65rem; border-radius: 999px;
  align-self: center;
}
.way__body p { color: #33363c; font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 60ch; }
.way__ideal { margin-top: 1.15rem; font-size: 1rem; color: var(--muted); }
.way__ideal b { color: var(--ink); font-weight: 500; }
.way--feature { background: #f7f7f8; }
.way--feature:hover { background: #f2f2f4; }
.way--feature h4 { display: inline; box-shadow: inset 0 -0.5em 0 #ececef; }
@media (max-width: 720px) {
  .way { grid-template-columns: 1fr; gap: .85rem; }
  .way__num { margin-bottom: .1rem; }
}

/* ---------- work ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 2.6vw, 2.5rem);
  margin-top: 3rem;
}
.work-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.9rem 1.75rem;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  background: var(--white);
}
.work-card:hover { border-color: var(--black); box-shadow: 0 12px 40px rgba(0,0,0,.06); transform: translateY(-3px); }
.work-card__logo {
  height: 34px; width: auto; max-width: 68%;
  object-fit: contain; object-position: left center;
  margin-bottom: 1.15rem; display: block;
}
.work-card h4 { font-size: 1.5rem; margin-bottom: .85rem; }
.work-card p { color: #40434a; font-size: 1.02rem; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.tag {
  font-size: .78rem; font-weight: 500; letter-spacing: .01em;
  padding: .35rem .7rem; border-radius: 999px;
  background: #f1f2f4; color: #3a3d43; white-space: nowrap;
}
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.quotes-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: 3rem;
}
.quote {
  border-left: 3px solid var(--black); padding: .25rem 0 .25rem 1.75rem;
}
.quote p { font-size: 1.2rem; line-height: 1.5; color: #26282d; }
.quote cite { display: block; margin-top: 1.25rem; font-style: normal; }
.quote cite b { font-weight: 600; }
.quote cite span { color: var(--muted); display: block; font-size: .98rem; }
@media (max-width: 760px) { .quotes-grid { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process-list { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; }
.process-list li {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-lead);
}
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  font-variant-numeric: tabular-nums; color: var(--muted); font-size: 1rem;
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--ink); color: var(--white);
  border-radius: 28px; padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center; margin-block: clamp(3rem, 7vw, 6rem);
}
.cta h2 { font-size: var(--fs-h2); margin-bottom: 2rem; }

/* ---------- contact modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 11, 13, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal-overlay.is-open { display: flex; animation: overlay-in .18s ease; }
body.modal-open { overflow: hidden; }
.modal {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 2.5rem); overflow-y: auto;
  background: var(--white); color: var(--ink);
  border-radius: 22px; padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  animation: modal-in .2s ease;
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.modal__close:hover { background: #f4f4f5; border-color: #cdd0d5; }
.modal__eyebrow { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.modal h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.modal__intro { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.75rem; }
.modal__intro a { color: inherit; text-decoration: underline; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay.is-open, .modal { animation: none; }
}

/* ---------- form fields ---------- */
.form-field { margin-bottom: 1.4rem; }
.form-field label { display: block; font-weight: 500; margin-bottom: .5rem; font-size: 1rem; }
.form-field input,
.form-field textarea {
  width: 100%; font-family: inherit; font-size: 1.05rem;
  padding: .9rem 1rem; border: 1px solid #cdd0d5; border-radius: 12px;
  background: var(--white); color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.form-field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -5000px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: .95rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.5rem; }

/* ---------- blog ---------- */
.post-header { padding-block: clamp(6rem, 12vw, 9rem) 2rem; }
.post-meta { color: var(--muted); font-size: 1rem; margin-bottom: 1.25rem; letter-spacing: .02em; }
.post-title { font-size: var(--fs-h2); max-width: 20ch; }
.post-body { max-width: 68ch; margin-inline: auto; font-size: 1.2rem; line-height: 1.7; }
.post-body h2 { font-size: var(--fs-h3); margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: var(--fs-h4); margin: 2rem 0 .75rem; }
.post-body p { margin-bottom: 1.4rem; }
.post-body ul, .post-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: .6rem; }
.post-body blockquote {
  border-left: 3px solid var(--black); margin: 2rem 0; padding-left: 1.5rem;
  font-size: 1.3rem; color: #26282d;
}
.post-list { list-style: none; padding: 0; margin: 3rem 0 0; }
.post-list li { border-top: 1px solid var(--line); padding: 2rem 0; }
.post-list a { text-decoration: none; display: block; }
.post-list a:hover .post-list__title { text-decoration: underline; }
.post-list__title { font-size: var(--fs-h4); font-weight: 500; margin: .5rem 0; }
.post-list__meta { color: var(--muted); font-size: .95rem; }
