/* AI Towkay · The website studio ("Your name on the signboard")
   The morning after the night build: the same street, shutters up, paper
   grounds and ink from top to bottom. One signboard follows the visitor down
   the page with their own business name on it. */

:root {
  --ink: #16120C;
  --paper: #F4F1EA;
  --paper-2: #EBE5D8;
  --dawn: #F3E3CE;
  --white: #FFFDF8;
  --seal: #C8321E;
  --seal-deep: #A32615;
  --lamp: #F2A93B;
  --soft: #5E5548;
  --line: rgba(22, 18, 12, .16);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4.4vw, 72px);
  --max: 1320px;
  --bar: 68px;
  --curve: clamp(28px, 4.4vw, 72px);
  --sign: 6.2 / 2.66; /* the signboard's box: same numbers as OBJECT in sign.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); position: relative; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* ---------- small parts */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); display: flex; align-items: center; gap: 10px; }
.tick { width: 8px; height: 8px; background: var(--seal); display: inline-block; flex: none; }
.display {
  font-family: var(--display); font-weight: 900; font-stretch: 66%;
  font-size: clamp(46px, 8vw, 140px); line-height: .88; letter-spacing: -.01em;
  text-transform: uppercase; margin-top: 18px;
}
.display--sm { font-size: clamp(42px, 5.8vw, 100px); }
.display--fit { font-size: clamp(40px, 5.3vw, 92px); white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; min-height: 44px;
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  padding: 16px 24px; border-radius: 3px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 16px; font-size: 12px; }
.btn--seal { background: var(--seal); color: #FFF7EC; }
.btn--seal:hover { background: var(--seal-deep); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--bar);
  display: flex; align-items: center; gap: 20px; padding: 0 var(--gut);
  background: rgba(244, 241, 234, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.bar.is-stuck { border-bottom-color: rgba(22, 18, 12, .12); }
.bar__mark { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 17px; letter-spacing: .02em; text-decoration: none; display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.bar__mark i { color: var(--seal); font-style: normal; }
.bar__mark span { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.bar__links { display: flex; gap: 28px; margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.bar__links a { text-decoration: none; color: var(--soft); padding: 12px 0; }
.bar__links a:hover { color: var(--ink); }
.bar__go { margin-left: 8px; }

/* ---------- docks: empty boxes that say where the signboard (or the chop) stands */
.dock { position: relative; pointer-events: none; }
[data-dock="sign"] { aspect-ratio: var(--sign); }

/* the painted fallback signboard: shown with scripts off, or if 3D fails */
.psign { position: absolute; inset: 0; container-type: size; transition: opacity .5s ease; }
.has-stage .psign { opacity: 0; }
.psign i { position: absolute; display: block; }
.psign__rail { left: 1%; right: 1%; top: 17.6%; height: 2.4%; min-height: 3px; background: #1d1a15; border-radius: 4px; }
.psign__chain { left: 14.2%; top: 19%; width: 1.2%; min-width: 3px; height: 25%; background: repeating-linear-gradient(180deg, #c99a4b 0 4px, #7b5a22 4px 6px); }
.psign__chain--r { left: auto; right: 14.2%; }
.psign__board {
  position: absolute; left: 4.8%; right: 4.8%; bottom: 0; height: 56.4%;
  display: grid; place-items: center; border-radius: 1.2cqw;
  background: radial-gradient(ellipse at 50% 45%, #a3271a 0%, #8f1b10 55%, #5e1008 100%);
  border: 1.6cqw solid #d0a04f;
  box-shadow: inset 0 0 0 .5cqw #7b1a0f, inset 0 0 0 .8cqw #e3b862, 0 1.4cqw 3cqw -1cqw rgba(22, 18, 12, .45);
  overflow: hidden;
}
.psign__board b {
  font-family: var(--display); font-weight: 900; font-stretch: 62%; letter-spacing: .02em; line-height: 1; white-space: nowrap;
  font-size: 20px; font-size: min(30cqh, calc(140cqw / var(--len, 14)));
  background: linear-gradient(180deg, #fff3cf 0%, #f8d272 32%, #d99430 58%, #f2c461 80%, #b8761d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .18cqh 0 rgba(30, 4, 0, .6));
  max-width: 86%; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 1. hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); }
.hero__scene { position: relative; height: clamp(400px, 54svh, 640px); overflow: hidden; }
.hero__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(calc(1.02 + var(--hp, 0) * .06)); transform-origin: 50% 30%; }
.hero__scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, .55) 0, rgba(244, 241, 234, 0) 22%),
    linear-gradient(0deg, var(--paper) 0, rgba(244, 241, 234, .92) 12%, rgba(244, 241, 234, 0) 46%);
}
.dock--hero {
  position: absolute; z-index: 1; left: 50%; transform: translateX(-50%);
  top: calc(var(--bar) + clamp(8px, 2svh, 28px));
  width: min(60vw, 820px, calc((54svh - var(--bar) - 64px) * 2.33));
}
.hero__body { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); column-gap: clamp(28px, 4.5vw, 80px); align-items: start; padding-top: 14px; padding-bottom: clamp(36px, 6svh, 72px); flex: 1; position: relative; z-index: 1; }
.hero__h1 {
  font-family: var(--display); font-weight: 900; font-stretch: 62%;
  font-size: clamp(54px, min(7.3vw, 12svh), 150px); line-height: .84; white-space: nowrap; letter-spacing: -.012em; text-transform: uppercase;
  margin: 16px 0 0;
}
.hero__h1 .line { display: block; overflow: hidden; padding-top: .04em; }
.hero__h1 .line > span { display: block; }
.line--seal { color: var(--seal); }
.js .hero__h1 .line > span { transform: translateY(108%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.js.ready .hero__h1 .line > span { transform: none; }
.js .hero__h1 .line:nth-child(2) > span { transition-delay: .1s; }
.hero__door { padding-top: 14px; }
.hero__lede { font-size: clamp(16px, 1.22vw, 19px); color: var(--soft); max-width: 31em; }
.js .hero .kicker, .js .hero__door { transition: opacity .8s ease .45s, transform .8s ease .45s; }
.js:not(.ready) .hero .kicker, .js:not(.ready) .hero__door { opacity: 0; transform: translateY(14px); }

/* the door: the one input and the one button */
.door { margin-top: 22px; }
.door__label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.door__row { display: flex; gap: 8px; }
.door__input {
  flex: 1; min-width: 0; height: 58px; padding: 0 18px;
  font-family: var(--text); font-size: 18px; color: var(--ink); background: var(--white);
  border: 2px solid var(--ink); border-radius: 3px; box-shadow: 5px 5px 0 0 var(--ink);
  scroll-margin-top: calc(var(--bar) + 24px); scroll-margin-bottom: 120px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.door__input::placeholder { color: #7A7062; }
.door__input:focus { outline: none; box-shadow: 5px 5px 0 0 var(--seal); border-color: var(--seal); }
.door__go { height: 58px; padding: 0 22px; font-size: 13.5px; box-shadow: 5px 5px 0 0 var(--ink); }
.door__go:hover { transform: translate(-1px, -2px); }
.door__go:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 0 var(--ink); }
.door__note { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--soft); }

/* ---------- section blocks: curved tops, so scrolling feels like moving through rooms */
.why, .deal, .how, .work, .pass, .close { border-radius: var(--curve) var(--curve) 0 0; margin-top: calc(var(--curve) * -1); position: relative; }

/* ---------- 1b. why a website (figures and wording copied from the fact-checked page) */
.why { background: var(--paper-2); padding: clamp(72px, 11vh, 140px) 0 clamp(96px, 14vh, 170px); }
.why__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.why__intro { max-width: 34em; margin-top: 24px; color: var(--soft); font-size: clamp(17px, 1.3vw, 20px); }
.dock--why { width: min(36%, 400px); flex: none; }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); margin-top: clamp(48px, 8vh, 90px); }
.figs__item { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; }
.figs__num { font-family: var(--display); font-weight: 900; font-stretch: 64%; font-size: clamp(64px, 6.6vw, 118px); line-height: .84; letter-spacing: -.01em; color: var(--seal); white-space: nowrap; }
.figs__item p { margin-top: 14px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.figs__src { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--soft); }
.why__sub { margin-top: clamp(64px, 10vh, 120px); font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: clamp(30px, 3.4vw, 56px); line-height: .95; text-transform: uppercase; }
.checks { margin-top: 26px; border-top: 2px solid var(--ink); }
.check { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 24px 0 20px; border-bottom: 1px solid var(--line); }
.check__n { font-family: var(--mono); font-size: 13px; color: var(--seal); padding-top: 8px; }
.check h4 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: clamp(22px, 2vw, 32px); line-height: 1.08; }
.check__lead { margin-top: 8px; color: var(--soft); max-width: 46em; }
.check__more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.check__more summary::-webkit-details-marker { display: none; }
.check__more summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--seal); color: var(--seal); border-radius: 50%; font-size: 15px; line-height: 1; }
.check__more[open] summary::before { content: "\2212"; }
.check__more summary:hover { color: var(--seal); }
.check__full { padding: 4px 0 8px; max-width: 46em; }
.check__full p { margin-top: 12px; color: var(--ink); }
.check__full p:first-child { margin-top: 0; }
.nothelp {
  margin-top: clamp(48px, 8vh, 90px); padding: clamp(26px, 3.4vw, 48px); max-width: 980px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 10px 10px 0 0 var(--seal);
}
.nothelp h3 { font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: clamp(32px, 3.6vw, 60px); line-height: .92; text-transform: uppercase; color: var(--seal); }
.nothelp p { margin-top: 18px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 44em; }
.sources { margin-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sources summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::after { content: "+ show all nine"; color: var(--soft); letter-spacing: .06em; text-transform: none; }
.sources[open] summary::after { content: "\2212  hide"; }
.sources ul { padding: 4px 0 20px; display: grid; gap: 10px; }
.sources li { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--soft); max-width: 70em; overflow-wrap: anywhere; }
.sources a { color: var(--ink); }
.why__close { margin-top: clamp(48px, 8vh, 80px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.why__close span { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; }

/* ---------- 2. the deal */
.deal { background: var(--paper); padding: clamp(72px, 11vh, 140px) 0 clamp(80px, 12vh, 150px); }
.deal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head head" "old new"; column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(28px, 4vh, 48px); align-items: end; }
.deal__head { grid-area: head; }
.deal__hang { grid-area: hang; display: flex; justify-content: center; }
.dock--deal { width: min(100%, 470px); }
.paper { position: relative; padding: 30px 32px 34px; border-radius: 3px; align-self: stretch; }
.paper h3 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; text-transform: uppercase; padding-bottom: 18px; border-bottom: 2px solid currentColor; }
.paper ol { counter-reset: r; }
.paper li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px 0; min-height: 5.1em; align-items: start; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.paper li::before { content: "0" counter(r); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; padding-top: 4px; }
.paper li:last-child { border-bottom: 0; }
.paper--old { grid-area: old; background: #DEDAD1; color: #4A443B; transform: rotate(-1.1deg); box-shadow: 0 18px 30px -22px rgba(22, 18, 12, .5); }
.paper--old::after { /* a cup ring and a folded corner: the tired sheet */
  content: ""; position: absolute; right: 26px; top: 20px; width: 74px; height: 74px; border-radius: 50%;
  border: 3px solid rgba(120, 92, 60, .16); box-shadow: inset 0 0 0 7px rgba(120, 92, 60, .05); pointer-events: none;
}
.paper--old h3 { color: #5A5348; }
.paper--new { grid-area: new; background: var(--white); color: var(--ink); transform: rotate(.7deg); box-shadow: 0 34px 60px -30px rgba(22, 18, 12, .55), 0 0 0 1px rgba(22, 18, 12, .06); }
.paper--new li::before { color: var(--seal); }
.paper--new h3 { color: var(--seal); }

/* the seal (same artwork as the night build) */
.seal {
  position: absolute; right: 18px; bottom: 14px; width: 104px; height: 104px;
  color: var(--seal); mix-blend-mode: multiply; transform: rotate(-9deg) scale(1.35); opacity: 0;
  display: grid; place-items: center; pointer-events: none;
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal b { position: relative; font-family: var(--display); font-weight: 900; font-stretch: 78%; font-size: 14px; letter-spacing: .03em; white-space: nowrap; margin-top: 1px; }
.seal.is-inked, .deal__grid.on .paper--new .seal { opacity: .93; transform: rotate(-9deg) scale(1); transition: transform .2s cubic-bezier(.2, 1.6, .4, 1) .25s, opacity .05s linear .25s; }
html:not(.js) .seal, .no-stage .seal--big, html:not(.js) .paper--new .seal { opacity: .93; transform: rotate(-9deg); }
.paper--new .seal { right: 22px; bottom: -26px; }

/* ---------- 3. how it works */
.how { background: var(--paper-2); padding: clamp(80px, 12vh, 150px) 0 clamp(110px, 15vh, 180px); }
.how__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.dock--how { width: min(42%, 440px); flex: none; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); margin-top: clamp(48px, 8vh, 90px); }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; position: relative; }
.steps b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 66%; font-size: clamp(84px, 8.4vw, 150px); line-height: .82; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.steps__you { border-top-color: var(--seal) !important; }
.steps__you b { color: var(--seal); -webkit-text-stroke: 0; }
.steps h3 { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: clamp(23px, 1.9vw, 31px); line-height: 1.05; margin: 18px 0 10px; }
.steps p { color: var(--soft); font-size: 16px; }
.steps__tag { position: absolute; top: 18px; right: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #FFF7EC; background: var(--seal); padding: 4px 8px; border-radius: 2px; }

/* ---------- 4. our work */
.work { background: var(--paper); padding: clamp(72px, 11vh, 140px) 0 clamp(110px, 15vh, 180px); }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.work__sub { max-width: 32em; margin-top: 24px; color: var(--soft); font-size: clamp(17px, 1.3vw, 20px); }
.dock--work { width: min(38%, 420px); flex: none; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.6vw, 56px) clamp(20px, 3vw, 48px); margin-top: clamp(48px, 8vh, 90px); }
.card a { display: block; text-decoration: none; color: var(--ink); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #2A231B; box-shadow: 0 30px 50px -34px rgba(22, 18, 12, .6); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 12, 8, .82) 0%, rgba(16, 12, 8, .35) 34%, rgba(16, 12, 8, 0) 60%); pointer-events: none; }
.card__ground, .card__poster, .card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__ground { transform: scale(1.04); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card__poster, .card__video { z-index: 1; }
.card.has-poster .card__media::after, .card.has-poster .card__big { display: none; }
.card__tag { position: absolute; z-index: 2; left: 14px; top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(255, 253, 248, .92); padding: 5px 9px; border-radius: 2px; }
.card__big { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 16px; font-family: var(--display); font-weight: 900; font-stretch: 64%; font-size: clamp(40px, 4.6vw, 76px); line-height: .86; text-transform: uppercase; color: #FFF7EC; }
.card a:hover .card__media { transform: translateY(-6px); box-shadow: 0 44px 60px -36px rgba(22, 18, 12, .7); }
.card a:hover .card__ground { transform: scale(1.08); }
.card__meta { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; padding-top: 20px; }
.card__no { grid-row: 1 / span 4; font-family: var(--mono); font-size: 13px; color: var(--seal); padding-top: 7px; }
.card__title { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: clamp(24px, 2vw, 32px); line-height: 1.05; }
.card__kind { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-top: 6px; }
.card__line { color: var(--soft); margin-top: 10px; max-width: 34em; }
.card__open { margin-top: 14px; justify-self: start; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--seal); padding: 10px 0 4px; }

/* ---------- 5. the bar it has to clear */
.pass { background: var(--dawn); padding: clamp(80px, 12vh, 150px) 0 clamp(110px, 15vh, 180px); }
.pass__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "words score" "count score"; column-gap: clamp(28px, 5vw, 90px); row-gap: 40px; align-items: start; }
.pass__words { grid-area: words; }
.pass .display--fit { font-size: clamp(40px, 4.5vw, 80px); }
.pass__body { margin-top: 24px; font-size: clamp(18px, 1.5vw, 23px); color: var(--ink); max-width: 24em; }
.score { grid-area: score; align-self: center; }
.score__num { display: flex; align-items: baseline; gap: .12em; font-family: var(--display); font-weight: 900; font-stretch: 62%; line-height: .78; letter-spacing: -.02em; }
.score__num b { font-size: clamp(170px, 24vw, 380px); color: var(--seal); }
.score__num span { font-size: clamp(44px, 5.4vw, 88px); color: var(--ink); }
.score__rule { position: relative; height: 14px; margin-top: clamp(18px, 3vh, 30px); border: 2px solid var(--ink); border-radius: 2px; background: var(--white); }
.score__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 85%; background: repeating-linear-gradient(135deg, var(--seal) 0 6px, #B02A17 6px 12px); transform-origin: left; }
.js .score .score__fill { transform: scaleX(0); transition: transform .9s cubic-bezier(.3, .7, .2, 1) .15s; }
.js .score.on .score__fill { transform: none; }
.score__mark { position: absolute; left: 85%; top: -14px; bottom: -14px; width: 2px; background: var(--ink); }
.score__mark em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 500; background: var(--ink); color: var(--paper); padding: 2px 6px; border-radius: 2px; margin-bottom: 2px; }
.score__under { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--soft); }
.pass__count { grid-area: count; border-top: 2px solid var(--ink); padding-top: 20px; }
.pass__629 { font-size: 18px; max-width: 26em; }
.pass__629 b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 66%; font-size: clamp(72px, 7.4vw, 124px); line-height: .86; margin-bottom: 8px; }
.pass__foot { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--soft); }

/* ---------- 6. questions */
.faq { background: var(--paper); padding: clamp(80px, 12vh, 150px) 0 clamp(110px, 15vh, 180px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(28px, 5vw, 90px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--bar) + 36px); }
.dock--faq { width: min(100%, 420px); margin-top: 40px; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; min-height: 44px;
  padding: 22px 56px 22px 0; font-family: var(--display); font-weight: 750; font-stretch: 84%; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: var(--seal); transition: transform .3s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 56px 24px 0; color: var(--soft); max-width: 38em; }

/* ---------- 7. close */
.close { background: var(--paper); padding-bottom: clamp(80px, 12vh, 140px); overflow: hidden; }
.close__band {
  height: min(52vh, 560px); border-radius: var(--curve) var(--curve) 0 0;
  background: linear-gradient(180deg, rgba(244, 241, 234, 0) 0%, rgba(244, 241, 234, 0) 55%, var(--paper) 100%), url("../assets/morning-shop.webp") 72% 42% / cover no-repeat;
}
.close__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "words words" "form hang" "chop chop"; column-gap: clamp(28px, 5vw, 90px); margin-top: clamp(-120px, -10vh, -60px); }
.close__words { grid-area: words; }
.close__form { grid-area: form; }
.close__hang { grid-area: hang; align-self: center; padding-top: 20px; }
.dock--close { width: min(100%, 600px); margin-left: auto; }
.close__h2 { font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: clamp(64px, 10.4vw, 188px); line-height: .82; letter-spacing: -.012em; text-transform: uppercase; }
.close__h2 span { color: var(--seal); }
.door--close { margin-top: 34px; max-width: 560px; }
.chopbtn {
  grid-area: chop; position: relative; display: inline-grid; grid-template-columns: auto auto; align-items: center; justify-self: start; gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(56px, 8vh, 96px); padding: 0 200px 0 0; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.chopbtn__pad { position: relative; width: clamp(160px, 14vw, 210px); aspect-ratio: 1; display: block; background: var(--white); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 10px 10px 0 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.chopbtn__pad::before { content: "Chop here"; position: absolute; inset: 16px; border: 1.5px dashed rgba(22, 18, 12, .35); border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.chopbtn:hover .chopbtn__pad { transform: translate(-2px, -2px); box-shadow: 12px 12px 0 0 var(--ink); }
.chopbtn.is-down .chopbtn__pad { transform: translate(6px, 6px); box-shadow: 4px 4px 0 0 var(--ink); }
.seal--big { right: auto; bottom: auto; left: 50%; top: 50%; width: 78%; height: 78%; margin: -39% 0 0 -39%; }
.seal--big b { font-size: clamp(17px, 1.7vw, 24px); }
.chopbtn__label b { display: block; white-space: nowrap; font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: clamp(34px, 4vw, 64px); line-height: .9; text-transform: uppercase; }
.chopbtn__label i { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--soft); margin-top: 12px; }
.dock--chop { position: absolute; right: 30px; bottom: -6px; width: 110px; height: clamp(180px, 18vw, 250px); transition: transform .28s ease; }
.dock--chop.is-aim { transform: translate(var(--aim-x, 0), var(--aim-y, 0)); }

/* ---------- footer */
.foot { background: var(--paper); color: var(--ink); border-top: 2px solid var(--ink); padding-top: 44px; overflow: hidden; position: relative; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; font-size: 15px; }
.foot__grid p { display: flex; flex-direction: column; gap: 4px; color: var(--soft); }
.foot__grid span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
.foot__grid a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(22, 18, 12, .25); align-self: flex-start; padding: 8px 0 2px; }
.foot__grid a:hover { border-bottom-color: var(--seal); }
.foot__about b { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 20px; color: var(--ink); }
.foot__word { font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 25.5vw; line-height: .74; letter-spacing: -.012em; color: var(--seal); text-align: center; white-space: nowrap; margin: 46px 0 -0.06em; user-select: none; }
.foot__legal { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #FFF1E6; pointer-events: none; }
.foot__legal span { background: var(--ink); padding: 4px 8px; border-radius: 2px; }

/* ---------- reveals */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .paper--old[data-reveal] { transform: translateY(30px) rotate(-3deg); }
.js .paper--new[data-reveal] { transform: translateY(40px) rotate(3deg); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .paper--old[data-reveal].in { transform: rotate(-1.1deg); }
.js .paper--new[data-reveal].in { transform: rotate(.7deg); transition-delay: .12s; }
.js .steps li:nth-child(2) { transition-delay: .08s; }
.js .steps li:nth-child(3) { transition-delay: .16s; }
.js .steps li:nth-child(4) { transition-delay: .24s; }

/* ---------- tablet */
@media (max-width: 1180px) {
  .bar__links { gap: 20px; }
}
@media (max-width: 1080px) {
  .bar__links { display: none; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .bar__go { margin-left: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}

/* ---------- phone */
@media (max-width: 760px) {
  :root { --bar: 60px; }
  body { font-size: 16px; }
  .bar { gap: 10px; }
  .bar__mark { font-size: 16px; }
  .bar__mark span { font-size: 10px; letter-spacing: .1em; }
  .bar__go { padding: 10px 12px; font-size: 11px; letter-spacing: .08em; }

  /* the signboard sits ABOVE the headline, in its own reserved space */
  .hero { min-height: 0; }
  .hero__scene { height: calc(var(--bar) + 94vw / 2.33 + 9vw); }
  .hero__scene img { object-position: 50% 30%; }
  .dock--hero { top: calc(var(--bar) + 4px); width: 94vw; }
  .hero__body { grid-template-columns: 1fr; padding-bottom: 44px; }
  .hero__h1 { font-size: min(14.2vw, 64px); margin-top: 12px; }
  .hero__door { padding-top: 16px; }
  .hero__lede { font-size: 16px; }
  .door { margin-top: 20px; }
  .door__row { flex-direction: column; gap: 12px; }
  .door__input, .door__go { height: 56px; width: 100%; flex: none; }
  .door__input { font-size: 17px; }
  .door__go { font-size: 14px; }

  .display { font-size: clamp(44px, 14.4vw, 72px); }
  .display--sm { font-size: clamp(40px, 12.6vw, 64px); }
  .display--fit, .pass .display--fit { font-size: min(10.6vw, 56px); }

  .deal__grid { grid-template-columns: 1fr; grid-template-areas: "head" "old" "new"; row-gap: 26px; }
  .deal__hang { margin-top: 18px; }
  .dock--deal { width: 86vw; }
  .paper { padding: 24px 20px 28px; }
  .paper li { min-height: 0; font-size: 16px; }
  .paper--new .seal { width: 88px; height: 88px; right: 12px; bottom: -22px; }

  .why__head { flex-direction: column; align-items: stretch; gap: 26px; }
  .dock--why { width: 80vw; align-self: center; }
  .figs { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .figs__num { font-size: min(19vw, 84px); }
  .figs__item p { font-size: 16px; }
  .check { grid-template-columns: 1fr; gap: 4px; padding: 22px 0 16px; }
  .check__n { padding-top: 0; }
  .nothelp { box-shadow: 6px 6px 0 0 var(--seal); margin-right: 6px; }
  .why__close .btn { width: 100%; }
  .how__head { flex-direction: column; align-items: stretch; gap: 26px; }
  .dock--how { width: 80vw; align-self: center; }
  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .steps b { font-size: 88px; }

  .work__head { flex-direction: column; align-items: stretch; }
  .dock--work { display: none; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card__big { font-size: 13vw; left: 16px; bottom: 12px; }

  .pass__grid { grid-template-columns: 1fr; grid-template-areas: "words" "score" "count"; }
  .score__num b { font-size: 46vw; }
  .score__num span { font-size: 14vw; }
  .score__under span:nth-child(2) { text-align: center; }

  .faq__grid { grid-template-columns: 1fr; }
  .faq__side { position: static; }
  .dock--faq { display: none; }
  .faq__list { margin-top: 36px; }
  .faq summary { padding-right: 44px; }
  .faq details p { padding-right: 0; }

  .close__band { height: 42vh; background-position: 80% 40%; }
  .close__body { grid-template-columns: 1fr; grid-template-areas: "hang" "words" "form" "chop"; margin-top: -34vw; }
  .close__hang { padding-top: 0; }
  .close__hang { margin-bottom: 26px; }
  .dock--close { width: 92vw; margin: 0 auto; }
  .close__h2 { font-size: min(17vw, 96px); }
  .chopbtn { grid-template-columns: 1fr; padding: 0; gap: 20px; width: 100%; }
  .chopbtn__pad { width: 180px; }
  .dock--chop { left: 200px; right: auto; top: 0; bottom: auto; width: 86px; height: 170px; }

  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
  .foot__grid p:last-child { grid-column: 1 / -1; }
  .foot__legal { font-size: 9.5px; bottom: 8px; }
}
@media (max-width: 370px) {
  .bar__mark span, .bar__mark i { display: none; }
}

/* ---------- calm modes */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .paper[data-reveal] { opacity: 1; transition: none; }
  .js .paper--old[data-reveal] { transform: rotate(-1.1deg); }
  .js .paper--new[data-reveal] { transform: rotate(.7deg); }
  .js .score .score__fill { transform: none; transition: none; }
  .js .hero__h1 .line > span { transform: none; transition: none; }
  .hero__scene img { transform: none; }
  .paper--new .seal { opacity: .93; transform: rotate(-9deg); transition: none; }
}

/* ---------- motion redesign (2026-11-25): one calm moment per section, once */

/* the signboard's own canvas, inside its dock; reaches past the dock by PAD in signview.js */
.signwrap { position: absolute; left: -4%; right: -4%; top: -6%; bottom: -16%; pointer-events: none; z-index: 1; }
.signwrap canvas { display: block; width: 100%; height: 100%; }

/* why a website: the four figures rise in, one after another */
.js .figs__item:nth-child(2) { transition-delay: .14s; }
.js .figs__item:nth-child(3) { transition-delay: .28s; }
.js .figs__item:nth-child(4) { transition-delay: .42s; }

/* the deal: the tired sheet dims as the seal lands */
.paper--old { transition: opacity .5s ease .25s, filter .5s ease .25s; }
.js .deal__grid.on .paper--old, html:not(.js) .paper--old { opacity: .8; filter: saturate(.6); }

/* how it works: one line-drawn icon per step, drawn in turn */
.icon { display: block; width: min(100%, 190px); height: auto; margin: 18px 0 4px; overflow: visible; }
.icon .draw { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon .draw--seal { stroke: var(--seal); stroke-width: 3.2; }
.icon .draw--thin { stroke-width: 1.4; }
.icon__type { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; fill: var(--ink); }
.icon__mark { font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: 10.5px; letter-spacing: .06em; fill: var(--seal); }
.icon .star { fill: var(--seal); stroke: var(--seal); stroke-width: 1.2; stroke-linejoin: round; }
.icon .block { fill: var(--seal); opacity: .9; }
.icon .block + .block { fill: #D9CFBF; opacity: 1; }
.js .steps .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .steps .star { fill-opacity: 0; }
.js .steps .block { transform: scaleX(0); transform-box: fill-box; transform-origin: left; }
.js .steps .icon__mark { opacity: 0; }
.js .steps li .draw { transition: stroke-dashoffset .6s cubic-bezier(.4, .1, .2, 1) var(--d, 0s); }
.js .steps .star { transition: fill-opacity .12s linear calc(var(--d) + .35s + var(--i) * .07s); }
.js .steps .block { transition: transform .22s ease-out calc(var(--d) + .4s + var(--i) * .1s); }
.js .steps .icon__mark { transition: opacity .25s ease calc(var(--d) + .5s); }
.steps li:nth-child(1) { --d: 0s; }
.steps li:nth-child(2) { --d: .65s; }
.steps li:nth-child(3) { --d: 1.3s; }
.steps li:nth-child(4) { --d: 1.95s; }
.js .steps.on .draw { stroke-dashoffset: 0; }
.js .steps.on .star { fill-opacity: 1; }
.js .steps.on .block { transform: none; }
.js .steps.on .icon__mark { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .figs__item { transition: none; }
  .js .steps .draw, .js .steps .star, .js .steps .block, .js .steps .icon__mark, .paper--old { transition: none; }
  .js .steps .draw { stroke-dashoffset: 0; }
  .js .steps .star { fill-opacity: 1; }
  .js .steps .block { transform: none; }
  .js .steps .icon__mark { opacity: 1; }
  .js .paper--old { opacity: .8; filter: saturate(.6); }
}

/* orchestrator: a tilted card mid-reveal must never cause sideways scroll */
html, body { overflow-x: clip; }
