/* Juli's worktable. Plaster paper around a green cutting mat; the active sample floods the desk. */
:root {
  --plaster: #f3f5f2;
  --paper: #ffffff;
  --ink: #102a3a;
  --ink-2: #3d5666;
  --ink-3: #4d6470;
  --steel: #7b8d93;
  --line: #cfd8d6;
  --sea: #0b6e77;
  --sea-bright: #19a3ad;
  --mat: #1f4d43;
  --mat-deep: #183e36;
  --mat-print: #cfe7dc;
  --tape: #efe4c3;
  --error: #b42318;
  --flood: #f3f5f2;
  --flood-ink: #102a3a;
  --desk-cta: #0b6e77;
  --desk-cta-ink: #ffffff;

  --display: Karantina, "Rubik", sans-serif;
  --body: Rubik, "Arial Hebrew", system-ui, sans-serif;
  --hand: "Gveret Levin", Rubik, cursive;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--plaster); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-variant-numeric: tabular-nums;
  caret-color: var(--sea);
  scrollbar-color: #9fb0b3 var(--plaster);
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--plaster); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--sea); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 6px; }
.mat :focus-visible, .contact-side :focus-visible { outline-color: var(--sea-bright); }
.intro :focus-visible, .top:not(.scrolled) :focus-visible { outline-color: var(--flood-ink); } /* readable on any flood */
.sprite { position: absolute; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; top: -100px; right: 16px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.skip:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 6px 18px -8px rgb(16 42 58 / .55); }
.btn-primary:hover { background: var(--sea); color: var(--paper); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-quiet { border-color: currentColor; color: inherit; background: transparent; }
.btn-quiet:hover { background: rgb(16 42 58 / .06); color: inherit; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: var(--flood); color: var(--flood-ink);
  transition: background-color .4s, color .4s, box-shadow .3s;
}
.top.scrolled { background: var(--plaster); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.wordmark { font: 700 2.1rem/1 var(--display); color: inherit; text-decoration: none; letter-spacing: .01em; }
.topnav { display: flex; gap: 26px; margin-inline-start: auto; }
.topnav a { color: inherit; text-decoration: none; font-weight: 500; opacity: .85; }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.topnav-cta { opacity: 1 !important; font-weight: 700 !important; }
.top-ig { color: inherit; display: inline-flex; padding: 6px; }
.top-ig .ic { width: 26px; height: 26px; }

/* ---------- the desk (first viewport) ---------- */
.desk {
  view-transition-name: desk;
  background: var(--flood); color: var(--flood-ink);
  display: grid; grid-template-columns: minmax(300px, 34fr) minmax(0, 66fr); gap: clamp(24px, 3vw, 48px);
  padding: clamp(12px, 2vw, 28px) var(--gutter) clamp(32px, 4vw, 56px);
  min-height: calc(100svh - 68px);
  transition: background-color .5s, color .5s;
}
.intro { align-self: center; display: grid; gap: 24px; padding-block: 24px; }
h1 { font: 700 clamp(4.4rem, 8.2vw, 6rem)/.84 var(--display); letter-spacing: -.01em; display: grid; }
h1 span:last-child { font-weight: 400; }
.lede { font-size: clamp(1.125rem, 1.3vw, 1.3rem); line-height: 1.55; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.desk .btn-primary { background: var(--desk-cta); color: var(--desk-cta-ink); }
.desk .btn-primary:hover { background: var(--ink); color: var(--paper); }
.honest { font-size: .875rem; line-height: 1.5; color: var(--mat-print); margin-top: 10px; }

/* the cutting mat: printed grid, edge ruler, diagonal guide */
.mat {
  position: relative; align-self: stretch; min-width: 0;
  background-color: var(--mat);
  background-image:
    linear-gradient(to left, rgb(207 231 220 / .26) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(207 231 220 / .26) 1px, transparent 1px),
    linear-gradient(to left, rgb(207 231 220 / .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(207 231 220 / .09) 1px, transparent 1px),
    linear-gradient(135deg, transparent calc(50% - .5px), rgb(207 231 220 / .16) 50%, transparent calc(50% + .5px));
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, 100% 100%;
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgb(10 30 26 / .55), inset 0 0 0 1px rgb(255 255 255 / .06);
  color: var(--mat-print);
  display: grid; grid-template-rows: auto auto 1fr auto auto;
  padding: 16px 20px 18px;
  min-height: 600px;
  overflow: hidden;
}
.mat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sizes { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--mat-deep); box-shadow: inset 0 0 0 1px rgb(207 231 220 / .18); }
.sizes button {
  border: 0; background: none; color: var(--mat-print); cursor: pointer;
  padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: .9375rem;
  transition: background-color .2s, color .2s;
}
.sizes button:hover { background: rgb(207 231 220 / .12); }
.sizes button[aria-checked="true"] { background: var(--mat-print); color: var(--mat-deep); font-weight: 700; }
.reading { font-size: .875rem; letter-spacing: .02em; }
.reading b { font: 700 1.125rem/1 var(--body); color: #fff; margin-inline-start: 6px; display: inline-block; min-width: 2.6em; }

.ruler {
  height: 26px; margin: 10px 0 6px; position: relative;
  border-bottom: 1px solid rgb(207 231 220 / .35);
}
.ruler .tick { position: absolute; bottom: 0; width: 1px; background: rgb(207 231 220 / .55); height: 7px; }
.ruler .tick.major { height: 13px; background: var(--mat-print); }
.ruler .tick span { position: absolute; bottom: 14px; transform: translateX(50%); font-size: .6875rem; color: rgb(207 231 220 / .8); }
.ruler .span { position: absolute; bottom: -1px; height: 3px; background: var(--sea-bright); border-radius: 2px; transition: width .45s var(--ease-out), right .45s var(--ease-out); }
.mat.dragging .ruler .span { transition: none; }

.stage { position: relative; display: flex; align-items: center; justify-content: flex-start; min-height: 0; padding-inline-end: 34px; }
.rig { position: relative; transition: width .45s var(--ease-out), height .45s var(--ease-out); }
.mat.dragging .rig, .mat.dragging .device, .mat.dragging .viewport { transition: none !important; }
.mat.dragging { user-select: none; cursor: ew-resize; }

/* device frames: drawn in the device's own pixels, then scaled as one object */
.device { position: absolute; top: 0; right: 0; transform-origin: top right; transition: transform .45s var(--ease-out); }
.frame { position: relative; background: #0d1114; padding: 14px; border-radius: 54px; box-shadow: 0 2px 0 1px #2a3136 inset, 0 40px 70px -24px rgb(0 0 0 / .6), 0 8px 18px -6px rgb(0 0 0 / .45); transition: border-radius .3s, padding .3s; }
.device[data-kind="phone"] .frame::before { content: ""; position: absolute; top: 26px; left: 50%; translate: -50% 0; width: 118px; height: 34px; border-radius: 20px; background: #0d1114; z-index: 4; }
.device[data-kind="tablet"] .frame { border-radius: 38px; padding: 20px; }
.device[data-kind="laptop"] .frame { border-radius: 22px 22px 6px 6px; padding: 18px 18px 22px; }
.device[data-kind="laptop"] .frame::before { content: ""; position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #2c3439; }
.screen { position: relative; overflow: hidden; background: #fff; border-radius: 40px; transition: border-radius .3s; }
.device[data-kind="tablet"] .screen { border-radius: 18px; }
.device[data-kind="laptop"] .screen { border-radius: 4px; }
.viewport { container-type: inline-size; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; transition: width .45s var(--ease-out), height .45s var(--ease-out); }
.viewport::-webkit-scrollbar { display: none; }
.base { display: none; height: 30px; margin: 0 -7%; border-radius: 4px 4px 26px 26px; background: linear-gradient(#d9dee0, #a9b2b6 70%, #8c969b); position: relative; box-shadow: 0 30px 40px -20px rgb(0 0 0 / .55); }
.base::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 18%; height: 11px; border-radius: 0 0 12px 12px; background: #8a9499; }
.device[data-kind="laptop"] .base { display: block; }

.grip {
  position: absolute; top: 50%; left: -22px; translate: 0 -50%; z-index: 5;
  width: 40px; height: 64px; border-radius: 20px; border: 0; cursor: ew-resize; touch-action: none;
  background: var(--mat-print); color: var(--mat-deep);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgb(0 0 0 / .5);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.grip .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.grip:hover, .mat.dragging .grip { transform: scale(1.08); background: #fff; }

/* Juli's handwritten notes, pinned with tape, arrows drawn to the live controls */
.note {
  position: absolute; z-index: 6; max-width: 15ch;
  font: 400 1.65rem/1.05 var(--hand); color: var(--ink);
  background: #fbfaf4; padding: 14px 16px 12px; border-radius: 3px;
  box-shadow: 0 10px 18px -10px rgb(0 0 0 / .55);
  pointer-events: none;
}
.note::before { content: ""; position: absolute; top: -10px; left: 50%; translate: -50% 0; rotate: -4deg; width: 64px; height: 20px; background: rgb(239 228 195 / .9); }
.note-grip { left: 26px; top: 120px; rotate: -3deg; }
.note-tap { left: 34px; bottom: 120px; rotate: 2.5deg; }
.arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; overflow: visible; }
.arrows path { fill: none; stroke: #fbfaf4; stroke-width: 2.4; stroke-linecap: round; }
.arrows marker path { fill: none; stroke: #fbfaf4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrows path.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .9s .15s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* shop-sign tabs */
.signs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 4px 4px; margin-top: 10px; scrollbar-width: none; }
.signs::-webkit-scrollbar { display: none; }
.sign {
  scroll-snap-align: start; flex: none; cursor: pointer;
  display: grid; gap: 2px; text-align: start; min-width: 104px;
  padding: 11px 16px 10px; border: 0; border-radius: 4px;
  background: var(--sb); color: var(--si);
  box-shadow: inset 0 0 0 4px var(--sb), inset 0 0 0 5.5px var(--si), 0 6px 12px -6px rgb(0 0 0 / .5);
  transition: transform .25s var(--ease-out), box-shadow .25s, opacity .25s;
  opacity: .78;
}
.sign:hover { opacity: 1; transform: translateY(-2px); }
.sign[aria-selected="true"] { opacity: 1; transform: translateY(-6px) rotate(-1.5deg); box-shadow: inset 0 0 0 4px var(--sb), inset 0 0 0 5.5px var(--si), 0 0 0 2px var(--mat-print), 0 14px 20px -8px rgb(0 0 0 / .6); }
.sign-name { font-family: var(--sf); font-weight: 900; font-size: 1.35rem; line-height: 1.05; white-space: nowrap; }
.sign-type { font-size: .8125rem; opacity: .85; white-space: nowrap; }
.noscript { color: var(--mat-print); }

/* the flood: a new sample's colour spreads from the sign that was tapped */
::view-transition-group(root) { animation: none; }
::view-transition-old(desk) { animation: none; }
::view-transition-new(desk) { animation: flood .7s var(--ease-out); }
@keyframes flood { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); } to { clip-path: circle(160% at var(--vt-x, 50%) var(--vt-y, 50%)); } }

/* demo toast inside the samples */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% calc(100% + 48px); z-index: 60; visibility: hidden;
  max-width: min(92vw, 440px); padding: 14px 20px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 500; text-align: center;
  box-shadow: 0 16px 30px -12px rgb(16 42 58 / .6);
  transition: translate .45s var(--ease-out), visibility 0s .45s;
}
.toast.show { translate: -50% 0; visibility: visible; transition: translate .45s var(--ease-out); }

/* ---------- anatomy ---------- */
section:not(.desk) { padding: clamp(64px, 9vw, 128px) var(--gutter); }
h2 { font: 700 clamp(3rem, 5.4vw, 4.6rem)/.92 var(--display); letter-spacing: -.005em; max-width: 16ch; }
.anatomy-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.anatomy-head p, .about-text p, .contact-side p { color: var(--ink-2); max-width: 58ch; font-size: 1.125rem; }
.anatomy-body { display: grid; grid-template-columns: 1fr minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.anatomy-phone { position: sticky; top: 96px; justify-self: center; }
.anat-rig { position: relative; }
.spot {
  position: absolute; z-index: 3; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--sea-bright), 0 0 0 999px rgb(16 42 58 / .55);
  transition: top .5s var(--ease-out), left .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out), opacity .3s;
  opacity: 0;
}
.spot.on { opacity: 1; }
.feats { list-style: none; padding: 0; display: grid; }
.feats li { padding: 28px 0 30px; border-top: 1px solid var(--line); min-height: 36vh; cursor: pointer; }
.feats h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; margin-bottom: 10px; color: var(--ink-2); transition: color .35s; }
.feats p { color: var(--ink-3); max-width: 46ch; }
.feats li.on { border-top-color: var(--sea); }
.feats li.on h3 { color: var(--sea); }
.feats li.on p { color: var(--ink); }

/* ---------- how ---------- */
.how { background: var(--paper); }
.steps { list-style: none; padding: 0; margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); position: relative; }
.steps::before { content: ""; position: absolute; top: 46px; inset-inline: 0; height: 1px; background: var(--line); }
.steps li { display: grid; gap: 10px; align-content: start; position: relative; }
.step-n { font: 700 5.5rem/1 var(--display); color: var(--sea); background: var(--paper); width: fit-content; padding-inline-end: 14px; }
.steps h3 { font-size: 1.375rem; line-height: 1.3; }
.steps p { color: var(--ink-2); max-width: 36ch; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Juli's photo: a print taped to the desk, like the notes on the mat */
.portrait { position: relative; margin: 0; rotate: -2deg; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: #fbfaf4; padding: 10px 10px 36px; border-radius: 3px;
  box-shadow: 0 18px 30px -18px rgb(16 42 58 / .45);
}
.portrait::before { content: ""; position: absolute; z-index: 1; top: -10px; left: 50%; translate: -50% 0; rotate: 3deg; width: 84px; height: 22px; background: rgb(239 228 195 / .9); }
.about-text { display: grid; gap: 18px; }

/* ---------- contact: a sheet of paper on the mat ---------- */
.contact {
  background-color: var(--mat);
  background-image:
    linear-gradient(to left, rgb(207 231 220 / .2) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(207 231 220 / .2) 1px, transparent 1px),
    linear-gradient(to left, rgb(207 231 220 / .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(207 231 220 / .07) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: #eaf4ef;
  display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.contact-side { display: grid; gap: 20px; position: sticky; top: 110px; }
.contact-side p { color: #cfe3da; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail { color: #fff; font-size: 1.25rem; font-weight: 700; }
.mail:hover { color: var(--tape); }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid rgb(207 231 220 / .5); background: none; border-radius: 999px; padding: 6px 14px; cursor: pointer; color: #eaf4ef; font-size: .9375rem; }
.copy:hover { background: rgb(207 231 220 / .12); }

.sheet {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 4px; padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 2px 0 #e7ece9, 0 30px 50px -24px rgb(0 0 0 / .55);
  rotate: -.6deg;
}
.sheet::before, .sheet::after { content: ""; position: absolute; top: -12px; width: 92px; height: 26px; background: rgb(239 228 195 / .92); }
.sheet::before { right: 34px; rotate: 4deg; }
.sheet::after { left: 34px; rotate: -5deg; }
.form { display: grid; gap: 26px; rotate: .6deg; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
input:not([type="radio"]), textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: #f6f8f7; border: 0; border-bottom: 2px solid var(--steel); border-radius: 8px 8px 0 0;
  padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:hover, textarea:hover { border-bottom-color: var(--ink-2); }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--sea); background: #eef6f6; }
input:focus-visible, textarea:focus-visible { box-shadow: 0 3px 0 0 var(--sea); }
input::placeholder { color: #5a6d76; }
[aria-invalid="true"] { border-bottom-color: var(--error) !important; background: #fdf1f0 !important; }
.err { color: var(--error); font-size: .9375rem; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.err::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.4h.01'/%3E%3C/svg%3E") center / contain no-repeat; }

.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .seg label { position: relative; cursor: pointer; }
.chips input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span, .seg span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--steel); background: var(--paper);
  font-weight: 500; transition: background-color .2s, color .2s, border-color .2s;
}
.chips label:hover span, .seg label:hover span { border-color: var(--ink); }
.chips input:checked + span, .seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
.reveal:not([hidden]) { animation: open .4s var(--ease-out); }
@keyframes open { from { opacity: .3; translate: 0 -6px; } }
.count { font-size: .875rem; color: var(--ink-2); text-align: end; }
.count.near { color: var(--error); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-send { min-width: 200px; position: relative; }
.btn-send .spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-send[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn-send[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { rotate: 360deg; } }
.draft { font-size: .875rem; color: var(--ink-2); }
.form-error { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: #fdf1f0; color: #7a1a12; }
.form-error[hidden] { display: none; }
.form-error .ic { color: var(--error); margin-top: 3px; }
.form-error a { color: #7a1a12; font-weight: 700; }

.sent { display: grid; gap: 14px; justify-items: start; padding: 12px 0; rotate: .6deg; }
.sent[hidden] { display: none; }
.sent:focus { outline: none; }
.sent-ic { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--sea); color: #fff; stroke-width: 2.4; animation: pop .6s var(--ease-out); }
@keyframes pop { from { scale: .4; } }
.sent h3 { font: 700 3rem/1 var(--display); }
.sent p { color: var(--ink-2); max-width: 44ch; }

/* ---------- footer, mobile bar ---------- */
.foot { padding: 48px var(--gutter) 120px; display: grid; gap: 10px; color: var(--ink-2); font-size: .9375rem; }
.foot-mark { font: 700 2.6rem/1 var(--display); color: var(--ink); }
.foot-small { font-size: .8125rem; max-width: 70ch; }

.mbar { display: none; }

/* ---------- sample sites (one responsive markup, read through a container query) ---------- */
.ss { position: relative; min-height: 100%; background: var(--bg); color: var(--fg); font: 400 15px/1.45 var(--fb, Heebo), sans-serif; }
.ss button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ss-head { display: flex; align-items: center; gap: 22px; padding: 58px 20px 14px; }
.ss-logo { font: 900 24px/1 var(--fh); margin-inline-end: auto; }
.ss-nav, .ss-hbtn { display: none; }
.ss-burger { width: 22px; height: 13px; border-block: 2.5px solid currentColor; }
.ss-hero { position: relative; margin: 0 12px; border-radius: 20px; overflow: hidden; min-height: 470px; display: flex; align-items: flex-end; }
.ss-ph { position: absolute; inset: 0; background: var(--img) var(--pos, center) / cover; }
.ss-overlay .ss-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--shade) 18%, transparent 78%); }
.ss-copy { position: relative; z-index: 1; padding: 20px; color: #fff; }
.ss-meta { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgb(255 255 255 / .2); }
.ss-h { font: 900 36px/1.04 var(--fh); margin-top: 12px; }
.ss-p { font-size: 15px; opacity: .88; margin-top: 10px; }
.ss-btns { display: flex; gap: 8px; margin-top: 16px; }
.ss-b1, .ss-b2 { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700 !important; font-size: 14.5px !important; padding: 14px 10px !important; border-radius: var(--r, 99px) !important; }
.ss-b1 { background: var(--acc) !important; color: var(--accfg) !important; }
.ss-b2 { border: 1.5px solid rgb(255 255 255 / .6) !important; }
.ss-b1 .ic { width: 18px; height: 18px; }
.ss-split .ss-hero { display: block; min-height: 0; margin: 0; border-radius: 0; overflow: visible; }
.ss-split .ss-ph { position: relative; height: 220px; margin: 0 12px; border-radius: 20px; }
.ss-split .ss-copy { color: var(--fg); padding: 20px 20px 4px; }
.ss-split .ss-meta { background: var(--card); color: var(--acc2, var(--acc)); }
.ss-split .ss-b2 { border-color: var(--line, rgb(0 0 0 / .15)) !important; }
.ss-cards { display: grid; gap: 8px; margin: 14px 12px; }
.ss-cards div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 16px; border-radius: 14px; background: var(--card); font-weight: 700; }
.ss-cards span { color: var(--acc2, var(--acc)); font-weight: 700; font-size: 14px; }
.ss-info { margin: 18px 12px 0; padding: 18px 16px; border-radius: 16px; background: var(--card); display: grid; gap: 10px; }
.ss-info h4 { margin: 0; font: 900 18px/1.2 var(--fh); }
.ss-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.ss-info dt { font-weight: 700; }
.ss-info dd { margin: 0; }
.ss-go { display: flex; gap: 8px; }
.ss-go button { flex: 1; padding: 11px; border-radius: 12px; border: 1.5px solid var(--line, rgb(127 127 127 / .35)) !important; font-weight: 700; }
.ss-foot { padding: 22px 20px 96px; font-size: 12px; opacity: .6; text-align: center; }
.ss-bar { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; padding: 10px 12px 22px; background: var(--bg); box-shadow: 0 -10px 24px -8px rgb(0 0 0 / .18); }
.ss-bar button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border-radius: 14px; font-weight: 800; background: var(--card) !important; }
.ss-bar button:first-child { background: var(--acc) !important; color: var(--accfg) !important; }
.ss-bar .ic { width: 18px; height: 18px; }
.ss button:focus-visible { outline: 3px solid var(--sea-bright); outline-offset: 2px; }

@container (min-width: 700px) {
  .ss { font-size: 17px; }
  .ss-head { padding: 22px 56px; gap: 34px; }
  .ss-nav { display: flex; gap: 30px; font-size: 16px; font-weight: 600; opacity: .8; }
  .ss-hbtn { display: block; background: var(--acc); color: var(--accfg); font-weight: 700; font-size: 15px; padding: 11px 22px; border-radius: var(--r, 99px); }
  .ss-burger, .ss-bar { display: none; }
  .ss-hero { margin: 0 56px; min-height: 500px; border-radius: 26px; align-items: center; }
  .ss-overlay .ss-hero::after { background: linear-gradient(to left, var(--shade) 32%, transparent 78%); }
  .ss-copy { padding: 0 60px; max-width: 620px; }
  .ss-h { font-size: 60px; }
  .ss-p { font-size: 19px; }
  .ss-meta { font-size: 14px; }
  .ss-btns { max-width: 460px; }
  .ss-b1, .ss-b2 { font-size: 16.5px !important; padding: 16px !important; }
  .ss-split .ss-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; margin: 10px 56px 0; }
  .ss-split .ss-ph { height: 500px; margin: 0; border-radius: 26px; }
  .ss-split .ss-copy { padding: 0; }
  .ss-cards { grid-template-columns: repeat(3, 1fr); margin: 26px 56px; gap: 16px; }
  .ss-cards div { padding: 26px 26px; font-size: 19px; border-radius: 20px; flex-direction: column; align-items: flex-start; }
  .ss-cards span { font-size: 16px; }
  .ss-info { margin: 0 56px; grid-template-columns: 1fr 1fr; padding: 28px 32px; column-gap: 40px; }
  .ss-info h4 { font-size: 22px; }
  .ss-foot { padding-bottom: 40px; }
}

/* ---------- load sequence: the device is set down on the mat, signs dealt beside it ---------- */
@media (prefers-reduced-motion: no-preference) {
  .loaded .rig { animation: setdown .9s var(--ease-out) both; }
  .loaded .sign { animation: deal .6s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms + .25s); }
  @keyframes setdown { from { transform: translateY(-28px) rotate(-2deg); } }
  @keyframes deal { from { transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-new(desk) { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .desk { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .intro { padding-block: 16px 4px; }
  .note, .arrows { display: none; }
  .mat { min-height: 0; }
  .anatomy-body, .contact, .about { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .topnav { display: none; }
  .top-ig { margin-inline-start: auto; }
  .wordmark { font-size: 1.9rem; }
  h1 { font-size: clamp(3.6rem, 17vw, 4.6rem); }
  .intro { gap: 16px; }
  .lede { font-size: 1.0625rem; }
  .actions { flex-wrap: nowrap; }
  .actions .btn-primary { flex: 1; }
  .actions .btn-quiet { width: 52px; padding: 0; flex: none; }
  .actions .btn-quiet span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .actions .btn-quiet .ic { width: 24px; height: 24px; }
  .desk { padding-inline: 0; }
  .intro { padding-inline: 16px; }
  .mat { border-radius: 0; padding: 12px 12px 14px; }
  .reading { font-size: .8125rem; }
  .sizes button { padding: 8px 12px; }
  .stage { padding-inline-end: 0; justify-content: center; }
  .grip { left: -14px; width: 34px; height: 56px; }
  .anatomy-phone { top: 64px; z-index: 2; background: var(--plaster); width: 100%; display: grid; justify-items: center; padding-bottom: 10px; }
  .feats li { min-height: 46vh; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .about { justify-items: start; }
  .portrait { width: min(280px, 80%); }
  .contact { padding-inline: 12px; }
  .sheet { rotate: 0deg; padding: 28px 18px; }
  .form, .sent { rotate: 0deg; }
  .mbar {
    display: flex; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--plaster); box-shadow: 0 -10px 24px -10px rgb(16 42 58 / .35);
    translate: 0 110%; transition: translate .35s var(--ease-out);
  }
  .mbar.show { translate: 0 0; }
  .mbar .btn { flex: 1; }
  .mbar-form { display: grid; place-items: center; width: 52px; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); }
  .toast { bottom: 88px; }
}
