/* ellwand.app. The display face is served from here: nothing is fetched from other companies. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --brand: #2f5d50; --brand-deep: #1b352e; --brand-deeper: #142923; --brand-soft: #3d6d5f;
  --brass: #e8d46a; --brass-deep: #d4bd4e;
  --ink: #1e2b27; --ink-2: #4b5853; --muted: #7d8883; --line: #e1e5de;
  --paper: #fffffd; --canvas: #f4f3ec; --wash: #eef5f1; --wash-2: #e4efe9; --tint: #e9ece4;
  --on-dark: rgba(255,255,255,.76); --on-dark-2: rgba(255,255,255,.52);
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
  /* A settle with no overshoot: things rise and come to rest. */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: var(--ease);
  --gutter: clamp(20px, 5vw, 72px);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0.000, 0.036, 0.120, 0.224, 0.333, 0.437, 0.532, 0.615, 0.686, 0.746, 0.796, 0.837, 0.871, 0.898, 0.919, 0.937, 0.950, 0.961, 0.970, 0.976, 0.982, 0.986, 0.989, 0.992, 0.993, 0.995, 0.996, 0.997, 0.998, 0.998, 0.999, 0.999, 1.000); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 56px; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--brand-deep); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.028em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font: inherit; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; border-radius: 4px; }

.wide { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--display); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin: 0 0 20px; }
.eyebrow .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brass-deep); margin-right: 9px; vertical-align: 1px; }
.mid { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.026em; }
.display { font-size: clamp(42px, 7vw, 100px); line-height: .98; letter-spacing: -0.038em; }
.big { font-size: clamp(32px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -0.032em; }
.lede { font-size: clamp(19px, 2vw, 25px); line-height: 1.38; letter-spacing: -0.012em; color: var(--ink-2); max-width: 34em; margin-top: 28px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.2; padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.brass { background: var(--brass); color: var(--brand-deeper); }
.btn.brass:hover { background: #f0de7c; }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.deep { background: var(--brand); color: #fff; }
.btn.deep:hover { background: var(--brand-soft); }
.btn.line { background: #fff; color: var(--brand); border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- nav ---- */
.hero-quick { margin: 14px 0 0; font-size: 14.5px; color: rgba(255,255,255,.66); }
.hero-quick a { color: #fff; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: rgba(20,41,35,.55); box-shadow: 0 .5px 0 rgba(255,255,255,.1); transition: background .35s var(--ease), box-shadow .35s var(--ease); --nav-ink: #fff; --nav-ink-2: rgba(255,255,255,.72); }
.nav.on-light { background: rgba(250,249,244,.72); box-shadow: 0 .5px 0 rgba(30,43,39,.14); --nav-ink: var(--ink); --nav-ink-2: var(--ink-2); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1240px; margin: 0 auto; height: 48px; padding-inline: var(--gutter); }
.logo { display: flex; align-items: center; gap: 9px; color: var(--nav-ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; transition: color .35s var(--ease); }
.logo img { border-radius: 5px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav ul a { color: var(--nav-ink-2); text-decoration: none; font-size: 13.5px; transition: color .25s var(--ease); }
.nav ul a:hover { color: var(--nav-ink); }
.nav-cta { font-family: var(--display); font-weight: 500; font-size: 13.5px; color: var(--nav-ink); padding: 5px 0; text-decoration: none; white-space: nowrap; transition: color .35s var(--ease), background .35s var(--ease), padding .35s var(--ease); border-radius: 999px; }
.nav.past .nav-cta { background: var(--brand); color: #fff; padding: 5px 13px; }
@media (max-width: 800px) { .nav ul { display: none; } }

/* ---- things rising into place ---- */
.rise-on .rise { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--spring) var(--d, 0ms), transform 1.1s var(--spring) var(--d, 0ms); }
.rise-on .rise.in { opacity: 1; transform: none; }
/* The first screen needs no script to arrive. */
.up { animation: rise .9s var(--spring) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.calm .rise { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---- windows: the app, in a frame that tips into place ---- */
.persp { perspective: 1800px; perspective-origin: 50% 40%; }
.window { margin: 0; --lx: 0; --ly: 0; border-radius: 14px; overflow: hidden; background: #f4f3ec; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 6px rgba(5,16,12,.14), 0 40px 90px -20px rgba(5,16,12,.5); transform-origin: 50% 100%; will-change: transform; }
.window img { width: 100%; }
@media (max-width: 600px) { .window { border-radius: 9px; } }

/* ---- hero ---- */
.hero { position: relative; color: #fff; background: radial-gradient(90% 60% at 50% 0%, #2a5146 0%, var(--brand-deep) 62%); padding: clamp(76px, 10vh, 96px) 0 0; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(232,212,106,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,212,106,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 28%, #000 25%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 28%, #000 25%, transparent 72%); pointer-events: none; }
.hero-words { position: relative; text-align: center; padding-inline: var(--gutter); max-width: 1120px; margin-inline: auto; }
.hero .eyebrow { color: var(--brass); }
.hero .eyebrow .dot { background: var(--brass); }
.hero h1 { font-size: clamp(46px, 7.4vw, 108px); line-height: .96; letter-spacing: -0.042em; }
.hero .eyebrow { margin-bottom: 14px; }
.hero-sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.36; letter-spacing: -0.012em; color: var(--on-dark); max-width: 34em; margin: 18px auto 0; text-wrap: balance; }
.hero .actions { justify-content: center; margin-top: 22px; }
.hero-persp { position: relative; max-width: 1240px; margin: clamp(28px, 4vh, 44px) auto 0; padding-inline: var(--gutter); perspective: 1500px; }

/* ---- bands ---- */
.band { padding: clamp(72px, 11vh, 130px) 0; position: relative; }
.paper, .cream, .faq { background: var(--canvas); }
.paper { padding-bottom: clamp(60px, 10vh, 120px); overflow: clip; }
.paper-head { text-align: center; }
.paper-head .lede { margin-inline: auto; max-width: 30em; }
.seq { margin-top: clamp(40px, 7vh, 72px); }
.seq-list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1320px; display: grid; gap: clamp(48px, 9vh, 90px); }
.view .window { box-shadow: 0 0 0 .5px rgba(30,43,39,.14), 0 40px 90px -30px rgba(27,53,46,.45); }
.cap { max-width: 44em; margin: 22px auto 0; text-align: center; }
.cap h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.026em; }
.cap h3 small { display: inline-block; vertical-align: middle; font: 500 12px var(--display); letter-spacing: .02em; color: var(--brand); border: 1px solid rgba(47,93,80,.35); border-radius: 999px; padding: 3px 10px; margin-left: 6px; }
.cap p { margin-top: 8px; color: var(--ink-2); font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.42; }
.cap .kick { display: block; font-size: 13.5px; color: var(--brand); margin-bottom: 6px; }
.seq-live .seq { height: 560vh; }
.seq-live .seq-pin { position: sticky; top: 48px; height: calc(100vh - 48px); height: calc(100svh - 48px); perspective: 1800px; perspective-origin: 50% 30%; overflow: clip; }
.seq-live .seq-list { position: relative; display: block; height: 100%; max-width: none; padding: 0; transform-origin: 50% 80%; will-change: transform; }
/* Each view lands on top of the last, so the shell stays put and only the work on the sheet changes, as it does in the app. */
.seq-live .view { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 14px var(--gutter) 0; visibility: hidden; }
.seq-live .view:first-child { visibility: visible; }
.seq-live .view .window { width: min(100%, calc((100vh - 48px - 14px - 192px) * 1.594)); flex: none; background: var(--canvas); will-change: opacity, transform; }
.seq-live .cap { margin-top: 14px; will-change: opacity, transform; }
.seq-rail { display: none; }
.seq-live .seq-rail { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tint, #e9ece4); z-index: 2; }
.seq-rail i { position: absolute; left: 0; top: 3px; bottom: 3px; width: var(--w, 80px); border-radius: 999px; background: var(--paper); box-shadow: 0 1px 3px rgba(30,43,39,.16), 0 0 0 .5px rgba(30,43,39,.08); transform: translateX(var(--x, 3px)); will-change: transform; }
.seq-rail button { position: relative; font: 500 13.5px var(--display); letter-spacing: -0.005em; color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 6px 15px; cursor: pointer; transition: color .18s var(--ease); }
.seq-rail button:hover, .seq-rail button.on { color: var(--ink); }
.dark { background: var(--brand-deep); color: #fff; }
.dark .eyebrow { color: var(--brass); }
.dark .eyebrow .dot { background: var(--brass); }
.dark .lede { color: var(--on-dark); }

/* ---- try it ---- */
.try { background: #fff; }
.try { padding-block: clamp(64px, 9vh, 96px); }
.try-in { text-align: left; }
.try-in .big { font-size: clamp(30px, 3.8vw, 52px); }
.try-lead { margin-top: 8px; color: var(--ink-2); font-size: clamp(16.5px, 1.4vw, 19px); }
.try-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: clamp(22px, 3.4vw, 52px); align-items: start; margin-top: clamp(20px, 3vh, 32px); }
.try-paper { position: relative; display: flex; justify-content: center; height: clamp(320px, calc(100vh - 340px), 680px); border-radius: 18px; padding: 10px; background: var(--paper) linear-gradient(rgba(47,93,80,.06) 1px, transparent 1px) 0 0 / 100% 16px, var(--paper) linear-gradient(90deg, rgba(47,93,80,.06) 1px, transparent 1px) 0 0 / 16px 100%; background-color: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 30px 70px -30px rgba(27,53,46,.35); }
#try-svg { display: none; width: 100%; height: 100%; }
.try-ready #try-svg { display: block; }
.try-ready .try-still { display: none; }
.try-still { height: 100%; width: auto; object-fit: contain; }
#try-svg .g { stroke: #a7b0aa; stroke-width: .09; fill: none; stroke-dasharray: .55 .4; }
#try-svg .p { stroke: var(--ink); stroke-width: .2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
#try-svg .moved { stroke: var(--brand); stroke-width: .3; }
#try-svg .h { fill: var(--brass); stroke: var(--brand-deeper); stroke-width: .16; }
#try-svg .h-hit { fill: transparent; cursor: grab; touch-action: none; }
#try-svg .h-hit:focus-visible { outline: none; }
#try-svg .h-hit:focus-visible ~ .h { stroke-width: .34; stroke: var(--brand); }
#try-svg .h-hit:focus-visible ~ .h-ring { opacity: 1; stroke: var(--brand); stroke-width: .24; }
#try-svg .h-ring { fill: none; stroke: var(--brass-deep); stroke-width: .12; opacity: 0; transform-box: fill-box; transform-origin: center; }
#try-svg .h-ring.hello { animation: hello 1.6s var(--ease) 2; }
@keyframes hello { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.6); } }
#try-svg.grabbing .h-hit { cursor: grabbing; }
#try-svg text { font: 500 1.05px var(--font); fill: var(--muted); paint-order: stroke; stroke: var(--paper); stroke-width: .25; font-variant-numeric: tabular-nums; }
.try-hint { position: absolute; left: 16px; bottom: 12px; font-size: 13.5px; color: var(--ink-2); transition: opacity .3s var(--ease); pointer-events: none; }
.try-hint.gone { opacity: 0; }
.size-pick { margin-top: 12px; }
/* Its room is kept before the shapes arrive, so nothing below it moves. */
.js .size-pick[hidden] { display: block; visibility: hidden; }
.size-ticks { min-height: 32px; }
.size-pick label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); margin-bottom: 0; }
.size-pick output { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.size-pick input { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: grab; --fill: 50%; }
.size-pick input:active { cursor: grabbing; }
.size-pick input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--brand), var(--brand)) 0 0 / var(--fill) 100% no-repeat, var(--line); }
.size-pick input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 3px 9px rgba(0,0,0,.2); transition: transform .14s var(--ease); }
.size-pick input:active::-webkit-slider-thumb { transform: scale(1.1); }
.size-pick input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.size-pick input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brand); }
.size-pick input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.size-ticks { display: flex; justify-content: space-between; margin: 2px 2px 0; }
.size-ticks button { font: 500 13px var(--display); color: var(--ink-2); background: none; border: 0; padding: 6px 4px; cursor: pointer; font-variant-numeric: tabular-nums; }
.size-ticks button.on { color: var(--brand); }
.reads { margin: 0; }
.reads > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.reads dt { color: var(--ink-2); font-size: 15px; }
.reads dd { margin: 0; font-family: var(--display); font-size: clamp(21px, 2vw, 27px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); transition: color .18s var(--ease); }
.reads .hot dd { color: var(--brand); }
.try-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.try-cta { margin-top: 22px; }

/* ---- the table: tiles that lean towards the pointer ---- */
.table { padding-bottom: clamp(70px, 12vh, 150px); }
.two { margin-top: clamp(40px, 7vh, 72px); }
.tiles { display: grid; grid-template-columns: minmax(0, 1.22fr) repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(28px, 5vh, 48px); perspective: 1600px; }
.tile { --lx: 0; --ly: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: clamp(340px, 30vw, 440px); padding: clamp(24px, 2.8vw, 40px); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.rise-on .tile.rise.in { transform: rotateX(calc(var(--ly) * -2.2deg)) rotateY(calc(var(--lx) * 2.6deg)); transition: opacity .9s var(--spring) var(--d, 0ms), transform .9s var(--spring); }
.tile-green { background: var(--brand-deep); color: #fff; box-shadow: none; }
.tile h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.06; letter-spacing: -0.03em; }
.tile p { margin-top: 12px; color: var(--ink-2); font-size: clamp(15.5px, 1.25vw, 17.5px); line-height: 1.42; max-width: 32em; }
.tile-green p { color: var(--on-dark); }
.tile-art { display: block; width: 100%; flex: none; }
/* A real front bodice: the shoulder dart swings shut round the bust point, and the same amount opens at the side seam. */
.art-slash { height: clamp(220px, 21vw, 300px); overflow: visible; }
.art-slash path { stroke-linejoin: round; stroke-linecap: round; }
.slash-still { fill: var(--paper); stroke: var(--brand-deeper); stroke-width: 1.2; }
.slash-swing { fill: var(--brass); stroke: var(--brand-deeper); stroke-width: 1.2; transform-box: view-box; transform-origin: var(--ox) var(--oy); transform: rotate(var(--swing)); transition: transform 1.9s var(--spring) .35s; }
.slash-ghost { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 1; stroke-dasharray: 3 4; }
.slash-dart { fill: none; stroke: var(--brand); stroke-width: 1.1; }
.slash-pivot { fill: var(--brand-deeper); stroke: var(--brass); stroke-width: 1.4; }
.rise-on .tile:not(.in) .slash-swing { transform: none; }
.art-flat { height: clamp(190px, 17vw, 240px); }
.art-flat path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset 2s var(--ease) .25s; }
.art-flat .art-flat-2 { stroke: var(--brand); stroke-width: 1.3; }
.rise-on .tile:not(.in) .art-flat path { stroke-dashoffset: 1; }
.art-sheets { position: relative; height: 150px; }
.sheet-card { position: absolute; bottom: -44px; width: 58%; padding: 14px 16px 44px; border-radius: 12px; background: var(--wash); box-shadow: 0 0 0 1px var(--wash-2), 0 18px 30px -18px rgba(27,53,46,.4); transition: transform 1.3s var(--spring) .2s; }
.sheet-card b { font-family: var(--display); font-weight: 500; font-size: 16px; }
.sheet-card dl { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.sheet-card dl div { display: flex; justify-content: space-between; padding: 2px 0; border-top: 1px solid rgba(47,93,80,.14); }
.sheet-card dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.sheet-card:nth-child(1) { left: 0; transform: rotate(-2.5deg); }
.sheet-card:nth-child(2) { right: 0; transform: rotate(2deg) translateY(-8px); background: #fffef8; }
.rise-on .tile:not(.in) .sheet-card { transform: translateY(60px); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---- the statement, lit by the scroll ---- */
.statement { padding-block: clamp(80px, 15vh, 140px) clamp(30px, 6vh, 60px); }
.lit { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4.6vw, 66px); line-height: 1.08; text-wrap: balance; letter-spacing: -0.032em; max-width: 21em; color: var(--ink); }
.lit span { opacity: .16; transition: opacity .25s linear; }
.lit span.on { opacity: 1; }

/* ---- two ways in ---- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; }
.two b { color: var(--ink); font-family: var(--display); font-weight: 500; }
.two p { padding-top: 16px; border-top: 1px solid #dedfd4; }
.two b { display: block; font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -0.012em; margin-bottom: 6px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }

/* ---- yours ---- */
.yours { overflow: clip; }
.yours-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.plain { list-style: none; margin: 30px 0 0; padding: 0; color: var(--on-dark); }
.plain li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.link-brass { display: inline-block; margin-top: 24px; color: var(--brass); }
.files { perspective: 1400px; min-height: 340px; display: grid; place-items: center; }
.files-in { position: relative; width: min(320px, 74vw); height: 240px; transform-style: preserve-3d; transform: rotateX(54deg) rotateZ(-24deg); --spread: 1; }
.file { position: absolute; inset: 0; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 22px; display: grid; align-content: end; gap: 2px; box-shadow: 0 30px 50px -18px rgba(5,16,12,.6); }
.file img { position: absolute; left: 22px; top: 22px; border-radius: 9px; }
.file b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; }
.file span { color: var(--ink-2); font-size: 13px; }
.file:nth-child(1) { transform: translateZ(calc(var(--spread) * 0px)); }
.file:nth-child(2) { transform: translateZ(calc(var(--spread) * 54px)) translateX(calc(var(--spread) * 10px)); }
.file:nth-child(3) { transform: translateZ(calc(var(--spread) * 108px)) translateX(calc(var(--spread) * 20px)); }
@media (max-width: 800px) { .yours-grid { grid-template-columns: 1fr; } .files { min-height: 300px; } }
@media (max-width: 420px) { .files-in { width: min(280px, 66vw); transform: rotateX(54deg) rotateZ(-24deg) scale(.88); } }

/* ---- if you want it ---- */
.fine { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }

/* ---- the close ---- */
.close { background: linear-gradient(180deg, var(--canvas), #fbf7df 42%, #fbf7df); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.close .display { font-size: clamp(40px, 5.6vw, 80px); }
.facts-wrap { margin-top: clamp(40px, 7vh, 72px); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 600; }
.discord { margin-top: 26px; padding-top: 18px; border-top: 1px solid #e6e0c2; font-size: 15px; color: var(--ink-2); }
.form-card { background: #fff; border-radius: 26px; padding: clamp(22px, 3vw, 38px); box-shadow: 0 0 0 1px rgba(212,189,78,.5), 0 40px 80px -40px rgba(27,53,46,.35); }
.get h3 { font-size: 26px; color: var(--brand-deep); margin: 0 0 16px; }
.get-row { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 10px 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.get-row .btn { justify-content: center; }
.get-row p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.get-row b { color: var(--ink); font-weight: 600; }
.get-row .get-help { grid-column: 1 / -1; background: var(--wash); border-radius: 12px; padding: 12px 16px; }
.get-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.get-foot p { margin: 0; font-size: 14.5px; }
.btn.line:hover { border-color: var(--brand); }
@media (max-width: 600px) { .get-row { grid-template-columns: 1fr; } }
/* In a narrow card (a laptop's width beside the words) the button goes above its note, so the note isn't a thin column. */
.form-card.get { container-type: inline-size; }
@container (max-width: 520px) { .get-row { grid-template-columns: 1fr; } .get-row .btn { justify-self: start; min-width: 220px; } }
@media (max-width: 900px) { .close-grid { grid-template-columns: 1fr; } }

/* ---- questions and the name ---- */
.faq .list { margin-top: 30px; }
.faq details { border-top: 1px solid #dedfd4; }
.faq details:last-child { border-bottom: 1px solid #dedfd4; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.012em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { transition: color .18s var(--ease); }
.faq summary:hover { color: var(--brand); }
.faq summary::after { content: '+'; flex: none; font-size: 24px; line-height: 1; color: var(--brand); transition: transform .25s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { animation: open-up .5s var(--spring); }
@keyframes open-up { from { opacity: 0; transform: translateY(-8px); } }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }
.name { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start; margin-top: clamp(48px, 7vh, 80px); }
.name img { border-radius: 16px; }
.name p { color: var(--ink-2); font-size: 16px; }
.name b { color: var(--brand); font-family: var(--display); font-weight: 500; }

.foot { background: var(--brand-deeper); color: rgba(255,255,255,.6); padding: 44px 0 58px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot-in > div:first-child { max-width: 46em; }
.foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-links a { transition: color .18s var(--ease); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---- no motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .window { transform: none !important; }
  .lit span { opacity: 1 !important; }
}
.calm .lit span, html:not(.js) .lit span { opacity: 1; }

/* ---- phones: the paper gets the full width ---- */
@media (max-width: 760px) {
  .try-grid { grid-template-columns: 1fr; }
  .try-hint { top: auto; bottom: 12px; right: 12px; }
}
#try-svg .h, #try-svg .h-ring, #try-svg text { pointer-events: none; }

/* ---- lessons: a block drawn a line at a time (site.js draws it; without the script the steps are a list to read) ---- */
.learn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.learn .lede { margin-top: 22px; }
.learn-blocks { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.learn-blocks li { font: 500 14px var(--display); color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 6px 14px; }
.learn .plain { margin-top: 26px; }
.lesson { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(14px, 1.8vw, 22px); box-shadow: 0 40px 90px -30px rgba(5,16,12,.6); }
.lesson-paper { position: relative; border-radius: 16px; aspect-ratio: 1.18; background: var(--paper) linear-gradient(rgba(47,93,80,.06) 1px, transparent 1px) 0 0 / 100% 16px, var(--paper) linear-gradient(90deg, rgba(47,93,80,.06) 1px, transparent 1px) 0 0 / 16px 100%; box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; }
.lesson-paper svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lesson-paper path { fill: none; stroke: var(--ink); stroke-width: .5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease); }
.lesson-paper path.con { stroke: #a7b0aa; stroke-width: .3; stroke-dasharray: .018 .014; }
.lesson-paper path.now { stroke: var(--brand); stroke-width: .8; }
.lesson-live .lesson-paper path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lesson-live .lesson-paper path.con.drawn { stroke-dasharray: .018 .014; stroke-dashoffset: 0; }
.lesson-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: step; display: grid; gap: 2px; }
.lesson-steps li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; font-size: 15px; line-height: 1.35; transition: background .25s var(--ease), opacity .25s var(--ease); }
.lesson-steps li::before { content: counter(step); font: 500 13px var(--display); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.lesson-steps b { font-weight: 500; }
.lesson-steps span { grid-column: 2 / -1; color: var(--ink-2); font-size: 14px; }
.lesson-steps i { font-style: normal; font-size: 13px; color: #3e7f4f; white-space: nowrap; }
.lesson-live .lesson-steps li { opacity: .38; }
.lesson-live .lesson-steps li span, .lesson-live .lesson-steps li i { display: none; }
.lesson-live .lesson-steps li.now { opacity: 1; background: var(--wash); }
.lesson-live .lesson-steps li.now span { display: block; }
.lesson-live .lesson-steps li.done { opacity: 1; }
.lesson-live .lesson-steps li.done i { display: inline; }
.lesson-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 0 10px 2px; font-size: 13.5px; color: var(--muted); }
.lesson-foot button { font: 500 13.5px var(--display); color: var(--brand); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.lesson-foot button[hidden] { display: none; }
@media (max-width: 860px) { .learn-grid { grid-template-columns: 1fr; } }

/* ---- more on the table: the smaller things, as cards (.more-grid and .more-card are in ell.css) ---- */
.table .more-grid { margin-top: clamp(12px, 1.4vw, 20px); }
.art-lesson path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- sewing instructions: a page of the booklet, drawn from the same bodice ---- */
.sew { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(56px, 9vh, 104px); }
.sew h2, .sew h3 { font-size: clamp(27px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.sew-words > p { margin-top: 16px; color: var(--ink-2); font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.45; max-width: 30em; }
.sew-list { list-style: none; margin: 24px 0 0; padding: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.sew-list li { padding: 12px 0; border-top: 1px solid #dedfd4; }
.sew-list b { color: var(--ink); font-weight: 600; }
.booklet { margin: 0; }
.sheets { position: relative; padding: clamp(10px, 2vw, 26px) clamp(14px, 2.4vw, 30px) clamp(10px, 1.6vw, 20px) clamp(4px, 1vw, 12px); }
.sheets::before { content: ""; position: absolute; inset: clamp(22px, 3vw, 40px) 0 0 clamp(26px, 4vw, 56px); background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); transform: rotate(2.2deg); }
.page { position: relative; margin: 0; background: #fff; border-radius: 6px; padding: clamp(18px, 2.6vw, 34px); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(27,53,46,.45); transform: rotate(-1deg); }
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-family: var(--display); }
.page-head b { font-weight: 500; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -.015em; }
.page-head span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.page-sec { margin: 14px 0 0; font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.page ol { list-style: none; margin: 0; padding: 0; }
.page li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.page li:last-child { border-bottom: 0; padding-bottom: 0; }
.page li b { display: block; font: 500 16px var(--display); letter-spacing: -.01em; }
.page li b em { font-style: normal; color: var(--brand); margin-right: 7px; font-variant-numeric: tabular-nums; }
.page li p { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.page li small { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--brand); background: var(--wash); border-radius: 999px; padding: 2px 9px; }
.page svg { width: 100%; height: auto; display: block; }
.page .pc { fill: #dfeae4; stroke: #7f958c; stroke-width: .22; stroke-linejoin: round; }
.page .sewn { fill: none; stroke: #2f6f5c; stroke-width: .7; stroke-linecap: round; }
.page .st { fill: none; stroke: #2f6f5c; stroke-width: .22; stroke-dasharray: .7 .5; }
.page text { font: 500 2.1px var(--font); fill: var(--ink-2); }
.page text.g { fill: #2f6f5c; }
.booklet figcaption { margin-top: 16px; max-width: 34em; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 860px) { .sew { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .page li { grid-template-columns: 1fr; } }
.dark .sew-words > p, .dark .sew-list { color: var(--on-dark); }
.dark .sew-list li { border-color: rgba(255,255,255,.14); }
.dark .sew-list b { color: #fff; }
.dark .booklet figcaption { color: var(--on-dark-2); }
