*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--g-sand);
  color: var(--ss-ink);
  font: 400 1.0625rem/1.55 var(--ss-font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:root {
  --gut: clamp(18px, 4.4vw, 60px);
  --max: 1280px;
  --seam: clamp(6px, 0.8vw, 10px);
  --t-hero: clamp(3rem, 1.3rem + 6.3vw, 6.4rem);
  --t-h2: clamp(2.15rem, 1.3rem + 3.5vw, 4.1rem);
  --t-h3: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  --t-voice: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  --g-sand: #F3E9DB;
  --g-pink: #F8E6E3;
  --g-blue: #E2EDEF;
  --g-panel: var(--ss-cream);
  --g-latte: #D9C3A7;
  --g-latte-deep: #CBB291;
  --g-lilac: #E6DEEE;
  --ss-cocoa: #6B4A39;
  --ss-cocoa-deep: #5B3E2F;
  --ss-cocoa-night: #46302A;
  --ss-mauve: #6E4C68;
  --ss-plum: #5D4470;
  --ss-plum-ink: #3E2D47;
  --ss-slate: #4C6B84;
  --ss-slate-deep: #3D576C;
  --ss-rosewood: #A8606E;
  --ss-sky: #84ACC8;
  --ss-sky-pale: #E2EBF2;
  --ss-error: #A3352A;
  --ss-heading: var(--ss-cocoa);
  --ss-voice: var(--ss-mauve);
  --ss-link: var(--ss-cocoa);
  --ss-link-hover: var(--ss-cocoa-night);
  --ss-button-bg: var(--ss-cocoa-deep);
  --ss-button-text: var(--ss-cream);
  --ss-button-bg-hover: var(--ss-cocoa-night);
  --ss-button-2-bg: var(--ss-slate);
  --ss-button-2-bg-hover: var(--ss-slate-deep);
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

h1, h2, h3 { font-family: var(--ss-font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: 0; }
p { text-wrap: pretty; }
.voice { font-family: var(--ss-font-accent); font-style: italic; font-size: var(--t-voice); line-height: 1.3; }

.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }

a { color: var(--ss-link); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--ss-link-hover); }
:focus-visible { outline: 3px solid var(--ss-focus); outline-offset: 3px; border-radius: 2px; }
.on-color :focus-visible { outline-color: var(--ss-cocoa-deep); }
.on-dark :focus-visible { outline-color: var(--ss-cream); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 0.7rem 1rem; background: var(--ss-ink); color: var(--ss-cream); font-weight: 700; }
.skip:focus { top: 12px; color: var(--ss-cream); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.85rem 1.5rem;
  border: 0; border-radius: 3px;
  background: var(--ss-button-bg); color: var(--ss-button-text);
  font: 700 1.0625rem/1.15 var(--ss-font-text); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 5px; border: 1.5px dashed currentColor; border-radius: 1px;
  opacity: 0.6; pointer-events: none; transition: inset 0.16s ease, opacity 0.16s ease;
}
.btn:hover { background: var(--ss-button-bg-hover); color: var(--ss-button-text); }
.btn:hover::after { inset: 3px; opacity: 0.9; }
.btn--cream { background: var(--ss-cream); color: var(--ss-cocoa-deep); }
.btn--cream:hover { background: var(--ss-paper); color: var(--ss-cocoa-night); }
.btn--teal { background: var(--ss-button-2-bg); }
.btn--teal:hover { background: var(--ss-button-2-bg-hover); }
.btn--ink { background: var(--ss-ink); color: var(--ss-cream); }
.btn--ink:hover { background: #000; color: var(--ss-cream); }
.btn--small { min-height: 2.75rem; padding: 0.6rem 1.05rem; font-size: 1rem; }

.textlink { font-weight: 700; }
.on-color { color: var(--ss-cocoa-deep); }
.on-dark { color: var(--ss-cream); }
.on-color a:not(.btn), .on-dark a:not(.btn) { color: inherit; }
.on-color a:not(.btn):hover { color: inherit; text-decoration-thickness: 3px; }
.on-dark a:not(.btn):hover { color: var(--ss-paper); text-decoration-thickness: 3px; }

.tbd { font-style: italic; }

.edge { position: relative; }
.edge::after {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% - 2px); height: var(--eh, 24px);
  background: var(--edge) repeat-x center top / auto var(--eh, 24px); pointer-events: none;
}

.site-head { position: relative; z-index: 20; background: var(--g-latte) url("/img/tex/stripe-latte.svg") center top / 40px; --edge: url("/img/edge/shell-row-latte.svg"); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(14px, 1.6vw, 22px); }
.site-head__logo { display: block; flex: none; --logo-h: clamp(52px, 5.4vw, 78px); }
.site-head__logo img { height: var(--logo-h); width: auto; }
.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 2rem); }
.site-nav a { font-weight: 600; font-size: 1.0625rem; text-decoration: none; padding-block: 0.4rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.menu-btn { background: none; border: 0; padding: 0.55rem 0.2rem; font-weight: 700; font-size: 1.0625rem; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; cursor: pointer; }
@media (min-width: 1040px) {
  .site-nav { display: block; }
  .menu-btn { display: none; }
}
.menu { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--g-latte) url("/img/tex/stripe-latte.svg") center top / 40px; color: var(--ss-cocoa-deep); padding: 18px var(--gut) 40px; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top img { height: 44px; width: auto; }
.menu ul { margin-top: 1.6rem; }
.menu li a { display: block; padding: 0.5rem 0; font-family: var(--ss-font-display); font-size: 2rem; line-height: 1.15; text-decoration: none; }
.menu li a:hover { text-decoration: underline; }
.menu .btn { margin-top: 1.6rem; width: 100%; }
.menu__chain { margin: 1.6rem 0 0; }

.photo { width: 100%; height: 100%; object-fit: cover; background: var(--tint, var(--ss-linen)); }
.ph {
  display: flex; align-items: flex-start; width: 100%; height: 100%;
  background-color: var(--tint, #CDB9A5);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0 2px, transparent 2px 16px);
  color: #fff;
}
.ph__note { margin: 0.6rem; padding: 0.25rem 0.45rem; background: rgba(46, 26, 36, 0.72); font: 600 0.75rem/1.3 var(--ss-font-text); text-decoration: none; }

.chain { display: block; height: 12px; border: 0; margin: 0; background: url("/brand/pattern/chain-rule.svg") repeat-x left center / auto 100%; }
.chain--reversed { background-image: url("/brand/pattern/chain-rule-reversed.svg"); }

.site-foot { position: relative; background: var(--g-lilac) url("/img/tex/botanical-lilac.svg") repeat center top / 420px; color: var(--ss-plum-ink); }
.site-foot h2 { color: var(--ss-plum); }
.site-foot .voice { color: var(--ss-voice); }
.site-foot::before { content: ""; display: block; height: 26px; background: url("/img/edge/shell-row-sand.svg") repeat-x center top / auto 26px; }
.page-about .site-foot::before { background-image: url("/img/edge/shell-row-blue.svg"); }
.page-thanks:has(.demo-mail:not([hidden])) .site-foot::before { background-image: url("/img/edge/shell-row-blue.svg"); }
.page-links .site-foot::before { background-image: url("/img/edge/shell-row-latte.svg"); }
.site-foot__cta { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: 1.6rem; }
.site-foot__cta h2 { max-width: 14ch; }
.site-foot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.site-foot__grid { display: grid; gap: 2.2rem; padding-block: 2.4rem 2rem; border-top: 2px dashed rgba(62, 45, 71, 0.35); }
.site-foot__logo img { height: 118px; width: auto; }
.site-foot h3 { font: 700 1rem/1.3 var(--ss-font-text); letter-spacing: 0; margin-bottom: 0.6rem; }
.site-foot li { margin: 0.3rem 0; }
.site-foot li a { text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; }
.site-foot__thanks { max-width: 18ch; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.1rem 1.6rem; font-size: 0.9375rem; }
@media (min-width: 820px) {
  .site-foot__cta { grid-template-columns: 1fr auto; align-items: end; }
  .site-foot__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
}

.piece {
  border: var(--sh) solid transparent;
  border-image: url("/img/edge/shell-border-latte.svg") 21 round;
  background: var(--g-latte) url("/img/tex/stripe-latte.svg") center / 40px;
  background-clip: padding-box;
  padding: var(--pad, 0px);
}
.frame { position: relative; }
.frame__art { position: relative; }
.frame__photo { position: absolute; display: block; overflow: hidden; text-decoration: none; }
.gf { width: 100%; height: auto; overflow: visible; }
.gf .st, .gs--live .st {
  transform-box: fill-box; transform-origin: center;
  animation: stitch-in 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  animation-delay: calc(0.35s + var(--i) * 17ms);
}
@keyframes stitch-in { from { opacity: 0; transform: scale(0.25); } to { opacity: 1; transform: none; } }

.tag {
  position: absolute; left: clamp(8px, 1vw, 14px); bottom: clamp(9px, 1vw, 15px);
  max-width: calc(100% - 2 * clamp(8px, 1vw, 14px));
  padding: 0.62rem 1.7rem 0.66rem;
  color: var(--k); background-color: var(--c);
  background-image:
    linear-gradient(90deg, rgba(29, 15, 22, 0.34), rgba(29, 15, 22, 0) 6px, rgba(255, 255, 255, 0.2) 8px, rgba(255, 255, 255, 0) 12px, rgba(255, 255, 255, 0) calc(100% - 12px), rgba(255, 255, 255, 0.2) calc(100% - 8px), rgba(29, 15, 22, 0) calc(100% - 6px), rgba(29, 15, 22, 0.34)),
    linear-gradient(var(--s), var(--s)), linear-gradient(var(--s), var(--s)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, var(--rl, 0.09)) 0 1px, rgba(29, 15, 22, var(--rd, 0.1)) 1px 2px, rgba(255, 255, 255, 0) 2px 3px),
    repeating-linear-gradient(90deg, rgba(29, 15, 22, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 3px);
  background-size: 100% 100%, 100% 1.5px, 100% 1.5px, auto, auto;
  background-position: 0 0, 0 4px, 0 calc(100% - 4px), 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  border-radius: 3px / 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(29, 15, 22, 0.28), 0 1px 1px rgba(29, 15, 22, 0.55), 0 3px 8px rgba(29, 15, 22, 0.4);
  font-family: var(--ss-font-display); font-size: clamp(1.02rem, 0.92rem + 0.5vw, 1.36rem); line-height: 1.1;
  transform: rotate(var(--r, -1.2deg)); transform-origin: left bottom;
}
.tag::before, .tag::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 8px; background: var(--th) repeat-y center top / 8px 7px; }
.tag::before { left: 8px; }
.tag::after { right: 8px; }
.tag__txt { position: relative; display: block; text-shadow: 0 1px 0 var(--ts, rgba(29, 15, 22, 0.4)); }
.tag__txt::after { content: ""; position: absolute; inset: -1px 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0) 0 2px, var(--c) 2px 3px); opacity: 0.12; pointer-events: none; }

.swatch-square { display: grid; grid-template-columns: clamp(140px, 38vw, 250px) 1fr; gap: 1.1rem 1.4rem; align-items: center; }
.swatch-square__art { background: var(--ss-cream); aspect-ratio: 1; }
.swatch-square__art svg { width: 100%; height: 100%; }
.swatch-square__said { display: grid; gap: 0.7rem; }
.swatch-square__said small { display: block; font-size: 0.875rem; font-weight: 600; }
.swatch-square__said b { font-weight: 700; }
.swatch-square__said i { display: inline-block; width: 0.85em; height: 0.85em; margin-right: 0.45em; vertical-align: -0.06em; background: var(--y); box-shadow: 0 0 0 1px rgba(29, 15, 22, 0.25); }
.gs--live .gs__round, .gs--live .gs__center { transition: stroke 0.25s ease; }
.gs--live .st { animation: none; }
.gs--live .gs__round.is-working .st { animation: stitch-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; animation-delay: calc(var(--i) * 26ms); }
.yarn-defs { position: absolute; }

.wall { --wp: clamp(3px, 0.5vw, 6px); position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: var(--wp); background: var(--ss-paper); box-shadow: 0 2px 0 rgba(29, 15, 22, 0.12), 0 14px 26px -14px rgba(29, 15, 22, 0.45); }
.wall::after {
  content: ""; position: absolute; inset: var(--wp); pointer-events: none;
  --dot: #fff 0 calc(var(--wp) * 1.7 + 1px), rgba(29, 15, 22, 0.3) calc(var(--wp) * 1.7 + 1px) calc(var(--wp) * 1.7 + 2px), rgba(29, 15, 22, 0.1) calc(var(--wp) * 1.7 + 2px) calc(var(--wp) * 1.7 + 4px), rgba(255, 255, 255, 0) calc(var(--wp) * 1.7 + 4.5px);
  background:
    radial-gradient(circle at 0 0, var(--dot)), radial-gradient(circle at 100% 0, var(--dot)),
    radial-gradient(circle at 0 100%, var(--dot)), radial-gradient(circle at 100% 100%, var(--dot));
  background-size: calc(100% / 6) calc(100% / 4);
}
.wall__hint { margin-bottom: 0.7rem; font-weight: 600; }
.cubby {
  position: relative; aspect-ratio: 1; padding: 0; border: var(--wp) solid var(--ss-paper); border-radius: 0;
  background: var(--y); color: var(--y); cursor: pointer; overflow: hidden;
}
.cubby svg { width: 100%; height: 100%; transition: transform 0.2s ease; }
.cubby:hover svg { transform: scale(1.06); }
.cubby[aria-pressed="true"] { border-color: var(--ss-ink); z-index: 1; }
.cubby__round { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.1rem 0.2rem 0.16rem; background: var(--ss-cream); color: var(--ss-ink); box-shadow: 0 -2px 0 var(--ss-ink); font: 400 1.0625rem/1.15 var(--ss-font-display); text-align: center; white-space: nowrap; }
.cubby__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cubby:focus-visible { outline-offset: -3px; z-index: 2; }
@media (min-width: 900px) {
  .cubby__round { font-size: 1.0625rem; padding: 0.18rem 0.3rem 0.24rem; }
  .cubby__word { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

.steps { display: grid; }
.steps li { position: relative; padding: 0 0 2.3rem 4.4rem; min-height: 5.4rem; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: -6px; width: 2.5rem; height: calc(100% + 12px);
  border: 8px solid var(--link); border-radius: 50%;
}
.steps li:last-child { padding-bottom: 0.6rem; }
.steps h3 { color: var(--link); margin-bottom: 0.4rem; }
.steps p { max-width: 30rem; }
.steps .tbd { display: block; margin-top: 0.35rem; }
.steps.will-chain li::before { clip-path: inset(-12px -12px 110% -12px); }
.steps.will-chain li > * { opacity: 0; transform: translateY(10px); }
.steps.will-chain.is-chained li::before { clip-path: inset(-12px); transition: clip-path 0.6s cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--n) * 0.34s); }
.steps.will-chain.is-chained li > * { opacity: 1; transform: none; transition: opacity 0.45s ease calc(var(--n) * 0.34s + 0.28s), transform 0.45s ease calc(var(--n) * 0.34s + 0.28s); }

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps li { padding: 6.6rem 1.6rem 0 0.4rem; min-height: 0; }
  .steps li::before { left: -9px; top: 0; width: calc(100% + 18px); height: 4.6rem; border-width: 11px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps p { font-size: 1.0625rem; }
  .steps.will-chain li::before { clip-path: inset(-12px 110% -12px -12px); }
}

.review-on [data-confirm] { outline: 3px dashed #0B6E99 !important; outline-offset: 3px; }
.review-tag { position: absolute; z-index: 90; transform: translateY(-100%); padding: 2px 6px; background: #0B6E99; color: #fff; font: 700 11px/1.3 var(--ss-font-text); white-space: nowrap; pointer-events: none; }
.review-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-height: 60vh; overflow-y: auto; padding: 0.55rem var(--gut); background: #0B6E99; color: #fff; font: 600 0.875rem/1.35 var(--ss-font-text); }
.review-bar summary { cursor: pointer; }
.review-bar ol { margin: 0.5rem 0 0.3rem; font-weight: 400; }
.review-bar li { margin-top: 0.35rem; }
.review-bar b { margin-right: 0.4rem; }

.closed-line { position: relative; z-index: 2; background: var(--ss-butter); color: var(--ss-ink); font-weight: 600; padding-block: 2.1rem 0.9rem; }
.closed-line a { color: var(--ss-ink); }
.site-foot__base[data-demo-line] { justify-content: flex-start; align-items: center; gap: 0.4rem 1.4rem; }
.site-foot__base[data-demo-line] .demo-open { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
}
