/* Digital Weave — shared styles
   No external fonts, scripts or trackers: the site sets no cookies. */

:root {
  --bg: #fafaf7;
  --ink: #0a0a0a;
  --muted: #5c5c58;
  --line: #e2e1d9;
  --soft: #f1f0ea;
  --dark: #0a0a0a;
  --dark-muted: #a9a9a3;
  --dark-line: #2a2a28;
  --todo: #ffe66d;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--bg); }

/* Placeholders that must be filled in before launch */
.todo { background: var(--todo); color: #000; padding: 0 .3em; border-radius: 3px; font-style: normal; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 14px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 1.5px solid var(--ink);
  transition: transform .2s ease, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.link-quiet { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 22px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.dark .eyebrow { color: var(--dark-muted); }

h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.9rem, 8.6vw, 7.2rem); letter-spacing: -.045em; line-height: .98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }

section { position: relative; }
.pad { padding: clamp(72px, 11vw, 148px) 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 76px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  /* basket-weave pattern echoing the logo mark */
  content: ""; position: absolute; inset: 0 0 0 34%; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='%230a0a0a' fill-opacity='.075'%3E%3Crect x='5' y='18' width='38' height='12' rx='3'/%3E%3Crect x='66' y='5' width='12' height='38' rx='3'/%3E%3Crect x='18' y='53' width='12' height='38' rx='3'/%3E%3Crect x='53' y='66' width='38' height='12' rx='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
  mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 11em; }
.hero .lead { margin: clamp(24px, 3.5vw, 40px) 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin-top: clamp(28px, 4vw, 44px); }
.scroll-cue {
  position: relative; z-index: 1; margin-top: clamp(40px, 7vw, 88px);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue span.line { width: 1.5px; height: 36px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue span.line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--ink);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Statement ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 4fr 8fr; gap: 64px; } }
.split > .eyebrow { align-self: start; margin-top: .9em; }
.statement { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 500; margin: 0; }
.statement em { font-style: normal; color: var(--muted); }

/* ---------- Approach (dark) ---------- */
.dark { background: var(--dark); color: var(--bg); }
.dark .lead, .dark .muted { color: var(--dark-muted); }
.steps { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--dark-line); }
.step { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 36px 0; border-bottom: 1px solid var(--dark-line); }
@media (min-width: 900px) { .step { grid-template-columns: 120px 4fr 6fr; gap: 48px; align-items: baseline; padding: 44px 0; } }
.step .num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--bg); }
.step h3 { margin-bottom: 6px; }
.step .tag { font-size: 14px; color: var(--dark-muted); }
.step p { margin: 0; color: var(--dark-muted); max-width: 34em; }
.callout { margin-top: clamp(36px, 5vw, 56px); font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 34em; }
.callout strong { font-weight: 600; }

/* ---------- Lenses ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; gap: 28px; } }
.card {
  background: var(--soft); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 3.6vw, 44px); display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s ease, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card .for { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.card p { margin: 0; color: var(--muted); }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 500; border: 1px solid var(--ink); border-radius: 999px; padding: 5px 14px; background: var(--bg); }
.note { margin-top: 28px; color: var(--muted); max-width: 40em; }

/* ---------- Principles ---------- */
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 1fr; gap: 6px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .principles li { grid-template-columns: 5fr 7fr; align-items: baseline; } }
.principles h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.principles p { margin: 0; color: var(--muted); max-width: 32em; }

/* ---------- Contact CTA ---------- */
.cta { text-align: left; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 5.6rem); letter-spacing: -.045em; line-height: 1; max-width: 12em; }
.cta .lead { margin: 28px 0 40px; }
.mail-big { display: inline-block; margin-top: 28px; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 500; text-underline-offset: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--bg); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; gap: 48px; } }
.footer-grid img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-grid p, .footer-grid li, .footer-grid a { font-size: 15px; color: var(--dark-muted); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--bg); }
.footer-grid h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0 0 14px; color: var(--bg); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.addr-img { display: block; max-width: 100%; height: auto; margin: 0; }
.footer-grid .addr-img { width: 215px; height: auto; margin: -2px 0 0 -2px; }
.info .addr-img { width: 133px; margin: -2px 0 -2px -1px; }
.legal-line { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--dark-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer .todo { color: #000; }

/* ---------- About / legal page ---------- */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.page-hero .lead { margin-top: 28px; }

.info { margin: 0; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 1fr; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .info div { grid-template-columns: 220px 1fr; } }
.info dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 3px; }
.info dd { margin: 0; font-size: 18px; }

.prose { max-width: 44em; }
.prose h3 { margin: 2em 0 .5em; font-size: 1.25rem; letter-spacing: -.015em; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: #2b2b29; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { text-underline-offset: 3px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 500; border: 1px solid var(--ink); padding: 7px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.toc a:hover { background: var(--ink); color: var(--bg); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span.line::after { animation: none; top: 0; }
  .btn, .card, .nav a::after { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav .hide-sm { display: none; }
  .header-inner { height: 68px; }
  .brand img { height: 30px; }
  .hero::before { inset: 0; opacity: .6; }
}
