/* STYLD marketing site
   Tokens mirror AppTheme in Vault/Vault/Utilities/StyleTabDesign.swift.
   Rules that look arbitrary here are the app's: paper page, white garment
   surfaces, clay is never a button fill, shadow is the card edge. */

/* ---------- Satoshi ---------- */
@font-face{font-family:Satoshi;src:url(/assets/fonts/Satoshi-Regular.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Satoshi;src:url(/assets/fonts/Satoshi-Medium.woff2) format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Satoshi;src:url(/assets/fonts/Satoshi-Bold.woff2) format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:Satoshi;src:url(/assets/fonts/Satoshi-Black.woff2) format('woff2');font-weight:900;font-style:normal;font-display:swap}

/* ---------- Tokens ---------- */
:root{
  --paper:#F7F4EF;
  --surface:#fff;
  --card-tint:#F2F1EE;
  --ink:#221C18;
  --ink-2:#6E6259;
  --ink-3:#A69C91;
  --clay:#B0552F;
  --clay-deep:#B04A2F;
  --clay-soft:#F0E7DB;
  --clay-text:#8A5A3B;
  --brass:#A98B4F;
  --tonal:#F0E9E0;
  --sage:#5F7A56;
  --border:rgba(34,28,24,.09);
  --radius:22px;
  --radius-sm:14px;
  --shadow-card:0 4px 10px rgba(0,0,0,.06);
  --shadow-soft:0 10px 28px rgba(34,28,24,.08);
  --shadow-sheet:0 -8px 24px rgba(34,28,24,.10),0 18px 40px rgba(34,28,24,.10);
  --page:1080px;
  --gutter:24px;
  /* motion bands: micro .18 / state .3 / arrival .4 */
  --t-micro:.18s;
  --t-state:.3s;
  --t-arrive:.4s;
  --ease:cubic-bezier(.16,1,.3,1);
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:Satoshi,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-weight:500;
  background:var(--paper);
  color:var(--ink);
  line-height:1.5;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--clay-deep);outline-offset:3px;border-radius:4px}

/* Paper grain. The app's own FlatLayGrain bitmap, lifted out of
   Assets.xcassets, tiled at its native 128px. softLight at 0.22 is
   AppTheme.grainIntensity verbatim; above ~0.3 it reads as compression
   artifacts next to garment photos. */
.grain::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background-image:url("/assets/img/grain.png");
  background-repeat:repeat;background-size:128px 128px;
  mix-blend-mode:soft-light;opacity:.22;
}

/* FlatLayRimStroke. One light source, top-left, so the rim runs
   top-leading to bottom-trailing. Warm taupe grounds the bottom because on
   paper a black edge reads as a drawn border. */
.rim{position:relative}
.rim::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  padding:1px;
  background:linear-gradient(135deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.40) 45%,rgba(166,156,145,.30) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
}

/* ---------- Type scale ---------- */
h1,h2,h3,h4{font-weight:900;letter-spacing:-.028em;line-height:1.04;color:var(--ink)}
h1{font-size:clamp(2.55rem,6vw,4.4rem)}
h2{font-size:clamp(1.95rem,3.9vw,3rem);line-height:1.07}
h3{font-size:clamp(1.3rem,2.2vw,1.6rem);letter-spacing:-.02em;line-height:1.15}
p{color:var(--ink-2);font-weight:500}
.lede{font-size:clamp(1.02rem,1.5vw,1.16rem);line-height:1.62;color:var(--ink-2);max-width:44ch}
.body{font-size:1rem;line-height:1.68;color:var(--ink-2);max-width:46ch}
.small{font-size:.86rem;line-height:1.6;color:var(--ink-2)}
/* textTertiary misses 4.5:1 on paper below 18pt, so small quiet text uses ink-2.
   Reserve ink-3 for decoration and 18pt+ display text. */
.tertiary{color:var(--ink-2)}

/* Lowercase-leading is the accent voice. One or two per surface, no more. */
.eyebrow{
  display:block;font-size:.95rem;font-weight:700;color:var(--clay-deep);
  margin-bottom:12px;letter-spacing:-.01em;
}

.wrap{max-width:var(--page);margin:0 auto;padding:0 var(--gutter);position:relative;z-index:1}

/* ---------- Nav ---------- */
.nav{
  position:sticky;top:0;z-index:60;
  background:rgba(247,244,239,.86);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--border);
}
.nav-inner{max-width:var(--page);margin:0 auto;padding:0 var(--gutter);height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.nav-logo{font-size:1.02rem;font-weight:900;letter-spacing:.14em;text-decoration:none;color:var(--ink);display:inline-flex;align-items:center;min-height:44px}
.nav-links{display:flex;align-items:center;gap:22px}
.nav-links a{font-size:.92rem;font-weight:500;color:var(--ink-2);text-decoration:none;transition:color var(--t-micro) ease;display:inline-flex;align-items:center;min-height:44px}
.nav-links a:hover{color:var(--ink)}
@media(max-width:760px){.nav-links a:not(.btn){display:none}}

/* ---------- Buttons: one dark lead, one light beside it ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:48px;padding:12px 22px;border-radius:100px;
  font-family:inherit;font-size:.98rem;font-weight:700;letter-spacing:-.01em;
  text-decoration:none;border:0;cursor:pointer;
  transition:transform var(--t-micro) ease,box-shadow var(--t-micro) ease,background var(--t-micro) ease;
}
.btn-lead{
  background:linear-gradient(180deg,#3A2F28 0%,var(--ink) 62%);
  color:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.16) inset,0 6px 18px rgba(34,28,24,.22);
}
.btn-lead:hover{transform:translateY(-1px);box-shadow:0 1px 0 rgba(255,255,255,.16) inset,0 10px 24px rgba(34,28,24,.26)}
.btn-lead:active{transform:scale(.98)}
.btn-quiet{
  background:rgba(255,255,255,.72);color:var(--ink);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 2px 10px rgba(34,28,24,.08);
}
.btn-quiet:hover{background:rgba(255,255,255,.92);transform:translateY(-1px)}
.btn-quiet:active{transform:scale(.98)}
.btn svg{width:17px;height:17px;fill:currentColor;flex-shrink:0}
.btn-sm{min-height:44px;padding:10px 18px;font-size:.88rem}

/* App Store badge */
.badge{
  display:inline-flex;align-items:center;gap:11px;
  background:linear-gradient(180deg,#3A2F28 0%,var(--ink) 62%);
  color:#fff;text-decoration:none;padding:13px 24px;border-radius:16px;
  box-shadow:0 1px 0 rgba(255,255,255,.16) inset,0 8px 22px rgba(34,28,24,.22);
  transition:transform var(--t-micro) ease,box-shadow var(--t-micro) ease;
}
.badge:hover{transform:translateY(-2px);box-shadow:0 1px 0 rgba(255,255,255,.16) inset,0 12px 28px rgba(34,28,24,.26)}
.badge:active{transform:scale(.98)}
.badge svg{width:23px;height:23px;fill:currentColor;flex-shrink:0}
.badge-label{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.badge-small{font-size:.62rem;font-weight:500;opacity:.72;letter-spacing:.03em}
.badge-large{font-size:1.02rem;font-weight:700;letter-spacing:-.015em}
.badge-light{background:var(--surface);color:var(--ink);box-shadow:0 1px 0 #fff inset,0 8px 22px rgba(34,28,24,.12)}

/* Honest rating line. Real numbers, pulled from the App Store. */
.rating{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:.84rem;color:var(--ink-2);font-weight:500}
.rating .stars{color:var(--clay-deep);letter-spacing:1.5px;font-size:.8rem}

/* ---------- Device frame ---------- */
.device{
  position:relative;width:100%;max-width:288px;margin:0 auto;
  border-radius:44px;padding:9px;
  background:linear-gradient(155deg,#4a423c 0%,#221C18 40%,#3d3630 100%);
  box-shadow:0 32px 64px rgba(34,28,24,.20),0 10px 26px rgba(34,28,24,.12);
  transition:transform .6s var(--ease);
}
.device:hover{transform:translateY(-6px)}
.device img{border-radius:36px;width:100%;height:auto;background:var(--paper)}
.device-pair{display:flex;gap:20px;justify-content:center;align-items:flex-start}
.device-pair .device{max-width:212px}
.device-pair .device:last-child{margin-top:38px}
@media(max-width:520px){.device-pair{gap:12px}.device-pair .device:last-child{margin-top:26px}}

/* ---------- Hero ---------- */
.hero{position:relative;padding:76px 0 84px;overflow:hidden}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.hero h1{margin-bottom:20px}
.hero .lede{margin-bottom:32px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
@media(max-width:860px){
  .hero{padding:52px 0 60px}
  .hero-inner{grid-template-columns:1fr;gap:44px}
  .hero .lede{max-width:100%}
}

/* ---------- Cards ---------- */
.card{
  position:relative;background:var(--surface);border-radius:var(--radius);
  padding:26px;box-shadow:var(--shadow-card);
}
/* Paper thickness, to PaperStackBackground's numbers: 3px slide, 0.994
   scale, full opacity, soft shadow at radius 7 / y 3. One hairline edge
   says "this is a sheet" and promises nothing behind it. Counted sheets
   are a content claim and this is not that. */
.card-paper,.mini,.arche{position:relative}
.card-paper::before,.mini::before,.arche::before{
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;
  background:var(--surface);
  transform:translateX(3px) scale(.994);
  box-shadow:0 3px 7px rgba(34,28,24,.07);
}

/* ---------- Feature rows ---------- */
.features{padding:8px 0 0}
.feature{
  display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;
  padding:76px 0;border-bottom:1px solid var(--border);
}
.feature:last-child{border-bottom:none}
.feature.flip .feature-visual{order:-1}
.feature h2{margin-bottom:14px}
.feature-note{
  margin-top:22px;display:inline-flex;align-items:center;gap:8px;
  background:var(--clay-soft);color:var(--clay-text);
  padding:8px 15px;border-radius:100px;font-size:.83rem;font-weight:700;
}
@media(max-width:860px){
  .feature{grid-template-columns:1fr;gap:40px;padding:56px 0}
  .feature.flip .feature-visual{order:0}
  .feature .body{max-width:100%}
}

/* ---------- Sections ---------- */
.section{padding:84px 0;position:relative}
.section-head{max-width:640px;margin-bottom:44px}
.section-head h2{margin-bottom:14px}
.section-tint{background:var(--card-tint)}
.section-ink{background:var(--ink);color:#fff}
.section-ink h2,.section-ink h3{color:#fff}
.section-ink p{color:rgba(255,255,255,.74)}
.section-ink .eyebrow{color:#D99B76}

/* ---------- Grid of small cards ---------- */
.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:860px){.grid-3{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.grid-3,.grid-2{grid-template-columns:1fr}}
.tile h3{margin-bottom:8px}
.tile p{font-size:.94rem;line-height:1.62}

/* ---------- FAQ ---------- */
.faq{max-width:760px}
.faq details{
  background:var(--surface);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-card);margin-bottom:10px;overflow:hidden;
}
.faq summary{
  cursor:pointer;list-style:none;padding:18px 22px;min-height:44px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  font-weight:700;font-size:1rem;color:var(--ink);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";width:9px;height:9px;flex-shrink:0;border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);transform:rotate(45deg) translateY(-2px);transition:transform var(--t-state) var(--ease)}
.faq details[open] summary::after{transform:rotate(225deg) translateY(-2px)}
.faq .faq-body{padding:0 22px 20px;font-size:.96rem;line-height:1.68;color:var(--ink-2)}
.faq .faq-body a{color:var(--clay-deep);text-decoration:underline;text-underline-offset:2px}

/* ---------- Social wall ---------- */
.wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.quote{background:var(--surface);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-card)}
.quote blockquote{font-size:1rem;line-height:1.6;color:var(--ink);font-weight:500}
.quote figcaption{margin-top:14px;font-size:.82rem;color:var(--ink-2);font-weight:500}
.quote .stars{color:var(--clay-deep);letter-spacing:1.5px;font-size:.8rem;margin-bottom:10px;display:block}
.embed{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-card);background:var(--surface)}
.embed iframe{width:100%;border:0;display:block;aspect-ratio:9/16}

/* ---------- Bottom CTA ---------- */
.cta{position:relative;background:var(--ink);color:#fff;text-align:center;padding:96px 0;overflow:hidden}
.cta h2{color:#fff;margin-bottom:26px}
.cta .eyebrow{color:#D99B76}
.cta-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.cta .fineprint{margin-top:26px;font-size:.78rem;color:rgba(255,255,255,.6)}

/* ---------- Footer ---------- */
.footer{background:var(--ink);color:rgba(255,255,255,.6);padding:0 0 44px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding:52px 0 36px;border-top:1px solid rgba(255,255,255,.09)}
.footer h4{font-size:.78rem;font-weight:700;color:rgba(255,255,255,.62);margin-bottom:14px;letter-spacing:.02em}
.footer-grid a:not(.badge){display:block;color:rgba(255,255,255,.68);text-decoration:none;font-size:.9rem;padding:7px 0;transition:color var(--t-micro) ease}
.footer-grid a:not(.badge):hover{color:#fff}
.footer .legal a{color:rgba(255,255,255,.62)}
.footer .mark{font-size:1.02rem;font-weight:900;letter-spacing:.14em;color:#fff;margin-bottom:12px}
.footer .legal{font-size:.78rem;color:rgba(255,255,255,.6);line-height:1.7}
@media(max-width:760px){.footer-grid{grid-template-columns:1fr 1fr;gap:24px}}

/* ---------- Breadcrumb ---------- */
.crumb{font-size:.82rem;color:var(--ink-2);padding:22px 0 0}
.crumb a{color:var(--ink-2);text-decoration:none}
.crumb a:hover{color:var(--ink)}

/* ---------- Prose (privacy / terms) ---------- */
.prose{max-width:760px;padding:44px 0 72px}
.prose h1{font-size:clamp(2rem,4vw,2.8rem);margin-bottom:12px}
.prose h2{font-size:1.35rem;margin:38px 0 12px;letter-spacing:-.02em}
.prose h3{font-size:1.06rem;margin:26px 0 8px}
.prose p,.prose li{font-size:.98rem;line-height:1.74;color:var(--ink-2);margin-bottom:12px}
.prose ul,.prose ol{padding-left:22px;margin-bottom:16px}
.prose a{color:var(--clay-deep)}
.prose .updated{color:var(--ink-3);font-size:.86rem;margin-bottom:28px}

/* ---------- Content arrival ---------- */
/* Gated on .js so the page is fully legible when the script fails, is blocked,
   or has not run yet. Content must never depend on an animation having fired. */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity var(--t-arrive) var(--ease),transform var(--t-arrive) var(--ease)}
.js .reveal.in{opacity:1;transform:none}
/* A target arrived at by anchor is revealed outright, never waiting on scroll. */
.js .reveal.arrived{opacity:1;transform:none;transition:opacity .28s ease-out}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  /* Reduce Motion keeps the duration, not the speed-up. */
  .reveal{transform:none;transition:opacity .28s ease-in-out}
  .device:hover,.btn:hover,.badge:hover{transform:none}
  *{animation-duration:.001ms!important;animation-iteration-count:1!important}
}
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:12px 18px;border-radius:0 0 12px 0;z-index:100}
.skip:focus{left:0}

/* ---------- Legal page leftovers from the old shell ---------- */
.prose .updated{display:block;color:var(--ink-2);font-size:.86rem;margin-bottom:26px;line-height:1.7}
.prose .updated a{color:var(--clay-deep)}
.prose .eyebrow{margin-bottom:10px}
.uppercase-block{
  background:var(--tonal);border-radius:var(--radius-sm);padding:18px 20px;
  font-size:.82rem;line-height:1.7;color:var(--ink-2);margin:14px 0 18px;
}
.prose table{width:100%;border-collapse:collapse;margin:16px 0;font-size:.92rem}
.prose th,.prose td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);color:var(--ink-2)}
.prose th{color:var(--ink);font-weight:700}
.prose code{background:var(--tonal);padding:2px 6px;border-radius:6px;font-size:.9em}

/* ---------- Hero / feature children ---------- */
.hero-visual,.feature-visual{display:flex;justify-content:center;align-items:center}

/* ---------- Privacy band ---------- */
/* The one dark surface above the fold-line other than the closing CTA.
   Weight is the point: this is the story, not a footnote. */
.points{margin-top:30px;display:grid;gap:24px}
.point h3{font-size:1.08rem;margin-bottom:7px;letter-spacing:-.015em}
.point p{font-size:.95rem;line-height:1.66;max-width:46ch}
.section-ink .point h3{color:#fff}
.section-ink .point p{color:rgba(255,255,255,.74)}
.section-ink .lede{color:rgba(255,255,255,.78)}
.section-ink .card{background:rgba(255,255,255,.06);box-shadow:none;border:1px solid rgba(255,255,255,.11)}
.section-ink .card-paper::before{display:none}
.closing-line{
  margin-top:38px;padding-top:26px;border-top:1px solid rgba(255,255,255,.12);
  font-size:1.06rem;line-height:1.55;color:#fff;font-weight:700;letter-spacing:-.015em;max-width:52ch;
}

/* ---------- Bento ---------- */
/* The launch screen's collection composition, on the web. Three tiles:
   the closet lands first, the capabilities sit together, privacy closes.
   In the app each tile presses into its demonstration; here it scrolls to it. */
.bento{display:grid;gap:11px;width:100%;max-width:392px;margin:0 auto}
.bento-tile{
  background:var(--surface);border-radius:18px;padding:16px 18px;
  box-shadow:var(--shadow-card);text-decoration:none;color:var(--ink);display:block;
  transition:transform var(--t-micro) ease,box-shadow var(--t-micro) ease;
}
a.bento-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}
a.bento-tile:active{transform:scale(.985)}
.bento-row{display:flex;align-items:center;gap:14px;min-height:64px}
.bento-row img{width:46px;height:46px;flex-shrink:0}
.bento-row span{font-size:.97rem;font-weight:700;letter-spacing:-.015em;line-height:1.32}
.bento-caps{padding:18px}
.bento-heading{font-size:1rem;font-weight:700;letter-spacing:-.015em;margin-bottom:13px;color:var(--ink)}
.cap-row{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.cap{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;
  text-decoration:none;color:var(--ink);padding:9px 4px;border-radius:12px;min-height:44px;
  transition:background var(--t-micro) ease;
}
.cap:hover{background:var(--tonal)}
.cap:active{background:var(--clay-soft)}
.cap img{width:42px;height:42px}
/* 11.5px floor, and ink-2 rather than ink-3 so it clears 4.5:1 on white */
.cap span{font-size:.72rem;font-weight:700;text-align:center;line-height:1.22;color:var(--ink-2)}
@media(max-width:420px){
  .cap img{width:36px;height:36px}
  .cap span{font-size:.68rem}
  .bento-row img{width:40px;height:40px}
}

/* ---------- What does leave ---------- */
.leaves{
  margin-top:24px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.11);
  border-radius:var(--radius);padding:22px;
}
.leaves h3{font-size:1rem;color:#fff;margin-bottom:9px}
.leaves p{font-size:.92rem;line-height:1.68;color:rgba(255,255,255,.74)}
.leaves a{color:#E8B08C;text-decoration:underline;text-underline-offset:3px}
/* The bezel is espresso, which vanishes on an espresso section. Lift it. */
.section-ink .device{
  background:linear-gradient(155deg,#6b615a 0%,#3a332e 40%,#564d46 100%);
  box-shadow:0 28px 64px rgba(0,0,0,.5);
}
@media(max-width:900px){#privacy .grid-2{grid-template-columns:1fr;gap:40px}}

/* The nav is sticky and 64px tall, so an anchor target must clear it or the
   bento scrolls a heading underneath the bar. */
.feature[id],section[id],#how,#privacy{scroll-margin-top:88px}

/* ---------- The letter ---------- */
.prose.letter{max-width:660px;padding-top:8px}
.prose.letter p{font-size:1.06rem;line-height:1.82;color:var(--ink-2);margin-bottom:22px}
.prose.letter p strong{color:var(--ink);font-weight:700}
.prose.letter .signoff{
  margin-top:34px;padding-top:24px;border-top:1px solid var(--border);
  color:var(--ink);font-weight:700;font-size:1.02rem;
}

/* ---------- The smaller things ---------- */
.mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.mini{background:var(--surface);border-radius:var(--radius-sm);padding:20px;box-shadow:var(--shadow-card)}
.mini h3{font-size:1rem;margin-bottom:7px;letter-spacing:-.015em}
.mini p{font-size:.89rem;line-height:1.6;color:var(--ink-2)}
@media(max-width:900px){.mini-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.mini-grid{grid-template-columns:1fr}}

/* ---------- Archetypes ---------- */
.arche-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.arche{
  display:flex;flex-direction:column;gap:6px;background:var(--surface);
  border-radius:var(--radius-sm);padding:20px;box-shadow:var(--shadow-card);
  text-decoration:none;min-height:44px;
  transition:transform var(--t-micro) ease,box-shadow var(--t-micro) ease;
}
.arche:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}
.arche:active{transform:scale(.99)}
.arche span{font-size:1.02rem;font-weight:700;color:var(--ink);letter-spacing:-.015em}
.arche em{font-style:normal;font-size:.88rem;line-height:1.5;color:var(--ink-2)}
@media(max-width:860px){.arche-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.arche-grid{grid-template-columns:1fr}}
/* Letter head and letter body share one measure so they align on the left. */
.letter-head{max-width:660px}
.letter-head h1{font-size:clamp(2.2rem,4.6vw,3.4rem)}
/* Sign-off: the lowercase line is the editorial accent, the name is the signature. */
.prose.letter .signoff{color:var(--clay-deep);font-weight:700}
.prose.letter .signoff span{display:block;margin-top:6px;color:var(--ink)}
.prose.letter .signoff a{color:var(--clay-deep);text-decoration:underline;text-underline-offset:3px}

/* ---------- Facet read-out ---------- */
.facets{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.facet{
  background:var(--surface);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow-card);
  display:flex;flex-direction:column;gap:3px;
}
/* Sentence case, no tracking. styld-design killed tracked caps app-wide and
   the reason holds here: it reads as filing-cabinet chrome. */
.facet span{font-size:.78rem;font-weight:700;letter-spacing:-.005em;color:var(--clay-text)}
.facet em{font-style:normal;font-size:.88rem;font-weight:500;color:var(--ink);line-height:1.35}
@media(max-width:900px){#main .facets{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.facets{grid-template-columns:1fr}}

/* A sheet edge on the smaller cards too. .thickness is safe on any card,
   standalone included, because it promises nothing behind it. */
.mini::before,.arche::before{box-shadow:0 2px 5px rgba(34,28,24,.06)}

/* ---------- The pipeline ---------- */
.pipe-section{padding-top:64px}
.pipeline{
  list-style:none;display:grid;grid-template-columns:repeat(4,1fr);
  gap:16px;align-items:start;counter-reset:pipe;
}
.pipe{position:relative;display:flex;flex-direction:column;gap:14px}
/* The connector. One light source, so it reads as a crease between sheets. */
.pipe:not(:last-child)::after{
  content:"";position:absolute;top:78px;right:-11px;width:14px;height:1px;
  background:linear-gradient(90deg,rgba(166,156,145,.55),rgba(166,156,145,0));
}
.pipe-art{
  background:var(--surface);border-radius:18px;
  box-shadow:0 3px 7px rgba(34,28,24,.07),var(--shadow-card);
  display:flex;align-items:center;justify-content:center;
  height:172px;overflow:hidden;
}
.pipe-photo{padding:0}
.pipe-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.pipe-icon img{width:96px;height:96px}
/* The cutouts overlap the way they settle in the app's flat lay. */
.pipe-cuts{background:var(--card-tint);gap:0;position:relative}
.pipe-cuts img{width:82px;height:82px;margin-left:-18px}
.pipe-cuts img:first-child{margin-left:0;transform:rotate(-4deg)}
.pipe-cuts img:nth-child(2){transform:translateY(6px) rotate(2deg)}
.pipe-cuts img:last-child{transform:rotate(5deg)}
.pipe h3{font-size:1rem;letter-spacing:-.015em;margin-bottom:4px}
.pipe p{font-size:.88rem;line-height:1.55;color:var(--ink-2)}
.pipe-foot{margin-top:30px;font-size:.92rem;color:var(--ink-2);font-weight:500}
@media(max-width:900px){
  .pipeline{grid-template-columns:repeat(2,1fr);gap:22px}
  .pipe:nth-child(2)::after{display:none}
}
@media(max-width:560px){
  .pipeline{grid-template-columns:1fr;gap:26px}
  .pipe::after{display:none!important}
  .pipe-art{height:150px}
}
