/* Shilprint landing page. Colours, radii and type sizes come from tokens.css (generated from
   docs/design-tokens.json). Phones use the token type scale as is; wider screens scale it up. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
}
/* Indic faces load only when their script is on the page (unicode-range). One bold file each. */
@font-face {
  font-family: "Noto Sans Telugu";
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/noto-sans-telugu-telugu-700-normal.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/noto-sans-devanagari-devanagari-700-normal.woff2") format("woff2");
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "Noto Sans Tamil";
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/noto-sans-tamil-tamil-700-normal.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Noto Sans Kannada";
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/noto-sans-kannada-kannada-700-normal.woff2") format("woff2");
  unicode-range:
    U+0951-0952, U+0964-0965, U+0C80-0CF3, U+1CD0, U+1CD2-1CD3, U+1CDA, U+1CF2, U+1CF4, U+200C-200D,
    U+20B9, U+25CC;
}

:root {
  --gutter: var(--sp-screen-padding);
  --wrap: 1160px;
  /* The token scale was drawn for phone screens. This page multiplies it for big type. */
  --t-hero: clamp(
    calc(var(--fs-display) * 1.4),
    min(7.2vw, 11.5vh),
    calc(var(--fs-display) * 2.85)
  );
  --t-display: clamp(var(--fs-display), 4.4vw + 10px, calc(var(--fs-display) * 2.2));
  --t-heading: clamp(var(--fs-h1), 2.3vw + 17px, calc(var(--fs-h1) * 1.5));
  --r-phone: calc(var(--r-header) + 12px);
  --t-body: var(--fs-body);
  --section: clamp(56px, 9vw, 120px);
  --head-h: 72px;
}
@media (min-width: 900px) {
  :root {
    --gutter: 40px;
    --t-body: calc(var(--fs-body) + 2px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  --focus: var(--c-info);
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
fieldset {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--r-chip-small);
  background: var(--c-ink);
  color: var(--c-surface);
  font-weight: var(--fw-body-strong);
}
.skip:focus {
  top: 12px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons. Ink is the main action; orange is kept for the one action on a dark surface. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--size-button-height);
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-button);
  font-size: var(--fs-body-strong);
  font-weight: var(--fw-title);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn[hidden] {
  display: none;
}
.btn-ink {
  background: var(--c-ink);
  color: var(--c-surface);
}
.btn-ink:hover {
  background: var(--c-ink-raised);
}
.btn-hero {
  background: var(--c-filament);
  color: var(--c-ink);
}
.btn-hero:hover {
  background: var(--c-logo-mid);
}
.btn-store {
  height: calc(var(--size-button-height) + 8px);
  padding: 0 32px 0 26px;
  font-size: var(--fs-h2);
}
.btn-store svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke-width: 1.5;
}
@media (hover: hover) {
  .btn-store svg {
    transition: transform 0.2s;
  }
  .btn-store:hover svg {
    transform: translateX(3px);
  }
}
.btn-compact {
  height: var(--size-icon-button);
  padding: 0 18px;
  border-radius: var(--r-icon-button);
  background: var(--c-ink);
  color: var(--c-surface);
  font-size: var(--fs-small);
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Header, laid over the orange hero */
.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  --focus: var(--c-ink);
}
.site-head-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--head-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}
/* The "sp" monogram on its ink square (docs/brand/logo). Raster only for now. */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-tag);
}
.brand-word {
  font-size: var(--fs-h1);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height: 1;
}
/* On the orange hero the wordmark's "i" is white; on light surfaces it is filament. */
.brand-i {
  color: var(--c-surface);
}
.brand-foot .brand-i {
  color: var(--c-filament);
}
.site-nav {
  display: none;
  gap: 28px;
  font-size: var(--fs-body);
  font-weight: var(--fw-title);
}
.site-nav a {
  text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

/* Phone frame for real app screens */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  padding: 8px;
  border-radius: var(--r-phone);
  background: var(--c-ink);
  box-shadow:
    0 0 0 1px var(--c-ink2),
    0 40px 70px -30px color-mix(in srgb, var(--c-ink) 60%, transparent);
}
.phone img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: calc(var(--r-phone) - 8px);
  object-fit: cover;
  object-position: top;
  background: var(--c-canvas);
}

/* Hero: one orange field, printed with faint layer lines. */
.hero {
  --focus: var(--c-ink);
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--head-h) + 20px);
  background-color: var(--c-filament);
  background-image: repeating-linear-gradient(
    0deg,
    color-mix(in srgb, var(--c-filament-deep) 16%, transparent) 0 1px,
    transparent 1px 8px
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}
.hero-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-surface);
  font-size: var(--fs-small);
  font-weight: var(--fw-title);
}
.hero-place svg {
  width: 16px;
  height: 16px;
  color: var(--c-filament-soft);
}
.hero h1 {
  font-size: var(--t-hero);
  font-weight: var(--fw-display);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
/* Each line sits in its own clipped box so it can rise into place on load. */
.hero h1 > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero h1 > span > span {
  display: block;
}
.lede {
  max-width: 34ch;
  margin-top: 22px;
  font-size: var(--fs-title);
  font-weight: var(--fw-small);
  line-height: 1.4;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 30px;
}
.hero-link {
  font-weight: var(--fw-title);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* The phone rises from the bottom edge, with three prints floating around it. */
.hero-show {
  position: relative;
  width: min(66vw, 290px);
  margin: 64px auto -120px;
}
.float {
  position: absolute;
  z-index: 1;
  width: 42%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--r-card);
  object-fit: cover;
  box-shadow: 0 7px 0 var(--c-filament-deep);
}
.float-a {
  top: -11%;
  left: -24%;
  transform: rotate(-9deg);
}
.float-b {
  top: 24%;
  right: -27%;
  transform: rotate(7deg);
}
.float-c {
  top: 50%;
  left: -27%;
  z-index: 2;
  transform: rotate(5deg);
}
.phone-hero {
  transform: rotate(-3deg);
}
@media (max-width: 520px) {
  .hero-cta .btn {
    width: 100%;
  }
}
@media (min-width: 960px) {
  .hero {
    padding-top: calc(var(--head-h) + 44px);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px;
  }
  .hero-copy {
    padding-bottom: 88px;
  }
  .lede {
    font-size: calc(var(--fs-title) + 2px);
  }
  .hero-show {
    align-self: end;
    width: min(100%, 330px);
    margin: 0 auto -150px;
  }
  .float-a {
    top: 4%;
    left: -46%;
  }
  .float-b {
    top: 27%;
    right: -40%;
  }
  .float-c {
    top: 54%;
    left: -44%;
  }
}

/* One arrival sequence, once: the headline rises line by line, then the phone and prints. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 > span > span {
    animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero h1 > span:nth-child(2) > span {
    animation-delay: 0.08s;
  }
  .hero h1 > span:nth-child(3) > span {
    animation-delay: 0.16s;
  }
  .phone-hero {
    animation: phone-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
  }
  .float {
    animation: pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both;
  }
  .float-a {
    animation-delay: 0.55s;
  }
  .float-b {
    animation-delay: 0.67s;
  }
  .float-c {
    animation-delay: 0.79s;
  }
}
/* As the hero scrolls away, the phone and the three prints drift at different speeds. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .phone-hero {
      animation:
        phone-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both,
        drift-near linear both;
      animation-timeline: auto, scroll(root);
      animation-range:
        normal,
        0 100vh;
    }
    .float {
      animation:
        pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both,
        drift-far linear both;
      animation-timeline: auto, scroll(root);
      animation-range:
        normal,
        0 100vh;
    }
    .float-a {
      animation-delay: 0.55s, 0s;
    }
    .float-b {
      animation-name: pop, drift-mid;
      animation-delay: 0.67s, 0s;
    }
    .float-c {
      animation-name: pop, drift-mid;
      animation-delay: 0.79s, 0s;
    }
  }
}
@keyframes drift-near {
  to {
    translate: 0 -40px;
  }
}
@keyframes drift-mid {
  to {
    translate: 0 -110px;
  }
}
@keyframes drift-far {
  to {
    translate: 0 -170px;
  }
}
@keyframes rise {
  from {
    transform: translateY(105%);
  }
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(90px) rotate(0deg);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    scale: 0.6;
  }
}

/* Gallery: an ink room. The categories run across the top, the finished pieces hang below. */
.gallery {
  position: relative;
  z-index: 1;
  padding-bottom: var(--section);
  background: var(--c-ink);
  color: var(--c-surface);
  --focus: var(--c-filament-soft);
}
.gallery .section-head p {
  color: var(--c-subtle);
}
.ticker {
  padding: 30px 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.ticker-row {
  display: flex;
  width: max-content;
}
.ticker-words {
  display: flex;
  flex: none;
  align-items: center;
}
.ticker-words li {
  display: flex;
  align-items: center;
  font-size: var(--t-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height: 1;
  white-space: nowrap;
}
/* A filament dot between words: the print head moving on. */
.ticker-words li::after {
  content: "";
  width: 0.26em;
  height: 0.26em;
  margin: 0 0.5em;
  border-radius: var(--r-pill);
  background: var(--c-filament);
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-row {
    animation: slide 46s linear infinite;
  }
}
/* Without motion the row would hide most of the list: wrap it so every category can be read. */
@media (prefers-reduced-motion: reduce) {
  .ticker-row {
    display: block;
    width: auto;
    padding-inline: var(--gutter);
  }
  .ticker-words {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .ticker-copy {
    display: none;
  }
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
/* Finished pieces: a grid of squares, three of them large. Every picture is shown whole. */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 1;
  background: var(--c-ink-raised);
}
.shot-big {
  grid-column: span 2;
}
/* Thirteen small tiles leave one over on a two-column phone: the last one takes the full row. */
.shot-n {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shot:hover img {
  transform: scale(1.045);
}
.shot figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 900px) {
  .shots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-areas:
      "A A b c d"
      "A A e J J"
      "f g h J J"
      "K K i j k"
      "K K l m n";
    gap: 12px;
  }
  .shot-big,
  .shot-n {
    grid-column: auto;
    aspect-ratio: 1;
  }
  .shot-ax {
    grid-area: A;
  }
  .shot-jx {
    grid-area: J;
  }
  .shot-kx {
    grid-area: K;
  }
  .shot-b {
    grid-area: b;
  }
  .shot-c {
    grid-area: c;
  }
  .shot-d {
    grid-area: d;
  }
  .shot-e {
    grid-area: e;
  }
  .shot-f {
    grid-area: f;
  }
  .shot-g {
    grid-area: g;
  }
  .shot-h {
    grid-area: h;
  }
  .shot-i {
    grid-area: i;
  }
  .shot-j {
    grid-area: j;
  }
  .shot-k {
    grid-area: k;
  }
  .shot-l {
    grid-area: l;
  }
  .shot-m {
    grid-area: m;
  }
  .shot-n {
    grid-area: n;
  }
  .shot-big figcaption {
    left: 16px;
    bottom: 16px;
    font-size: var(--fs-body);
  }
}
/* The pieces arrive a beat apart when the grid scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .shot {
    transition:
      opacity 0.6s,
      transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .js .shots:not(.is-in) .shot {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  .shot:nth-child(2) {
    transition-delay: 0.06s;
  }
  .shot:nth-child(3) {
    transition-delay: 0.12s;
  }
  .shot:nth-child(4) {
    transition-delay: 0.18s;
  }
  .shot:nth-child(5) {
    transition-delay: 0.24s;
  }
  .shot:nth-child(6) {
    transition-delay: 0.3s;
  }
  .shot:nth-child(7) {
    transition-delay: 0.36s;
  }
  .shot:nth-child(8) {
    transition-delay: 0.42s;
  }
  .shot:nth-child(n + 9) {
    transition-delay: 0.48s;
  }
}

/* Story: the phone stays put while the three steps scroll past and swap its screen. */
.story {
  padding-block: var(--section);
  background: var(--c-surface);
}
.story-phone {
  display: none;
}
.story-steps {
  display: grid;
  gap: 56px;
}
.step {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.phone-inline {
  width: min(70vw, 280px);
  justify-self: center;
}
.step-copy h3 {
  font-size: var(--t-heading);
  font-weight: var(--fw-h1);
  letter-spacing: var(--ls-h1);
  line-height: var(--lh-h1);
}
.step-copy p {
  max-width: 40ch;
  margin-top: 12px;
  font-size: var(--fs-title);
  line-height: 1.45;
  color: var(--c-muted);
}
@media (min-width: 900px) {
  .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
  }
  .story-phone {
    /* As tall as the screen allows, so the whole phone is visible while it is stuck. */
    --phone-h: min(680px, calc(100vh - 96px));
    position: sticky;
    top: calc((100vh - var(--phone-h)) / 2);
    display: block;
    align-self: start;
    width: calc(var(--phone-h) * 390 / 844);
    margin-inline: auto;
  }
  /* A soft disc behind the phone takes the colour of the current step. */
  .story-phone::before {
    content: "";
    position: absolute;
    inset: 12% -32%;
    border-radius: var(--r-pill);
    background: var(--c-filament-tint);
    transition: background-color 0.4s;
  }
  .story-grid[data-step="1"] .story-phone::before {
    background: var(--c-info-tint);
  }
  .story-grid[data-step="2"] .story-phone::before {
    background: var(--c-success-tint);
  }
  /* Screens wait below, and leave upwards: the swap follows the direction of the scroll. */
  .story-phone .phone img {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition:
      opacity 0.35s,
      transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .story-grid[data-step="1"] .story-phone img:nth-child(1),
  .story-grid[data-step="2"] .story-phone img:nth-child(-n + 2) {
    transform: translateY(-22px) scale(0.985);
  }
  .story-grid[data-step="0"] .story-phone img:nth-child(1),
  .story-grid[data-step="1"] .story-phone img:nth-child(2),
  .story-grid[data-step="2"] .story-phone img:nth-child(3) {
    opacity: 1;
    transform: none;
  }
  .phone-inline {
    display: none;
  }
  .story-steps {
    gap: 0;
  }
  .step {
    min-height: 72vh;
    align-content: center;
    opacity: 0.42;
    transition: opacity 0.3s;
  }
  .step:first-child {
    min-height: 54vh;
    align-content: start;
    padding-top: 6vh;
  }
  .story-grid[data-step="0"] .step[data-step="0"],
  .story-grid[data-step="1"] .step[data-step="1"],
  .story-grid[data-step="2"] .step[data-step="2"] {
    opacity: 1;
  }
}

/* Make it yours: the live preview. The band takes the colour of the design on show
   (main.js sets --stage and data-tone from the template). */
.studio {
  --stage: var(--stage-default);
  --on: var(--c-ink);
  --on-muted: var(--c-muted);
  --field: var(--c-surface);
  --field-line: var(--c-line);
  --ok: var(--c-success);
  --warn: var(--c-filament-ink);
  --bad: var(--c-danger);
  padding-block: clamp(40px, 6vw, 80px);
  border-radius: var(--r-header);
  background: var(--stage);
  color: var(--on);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.studio[data-tone="dark"] {
  --on: var(--c-surface);
  --on-muted: var(--c-subtle);
  --field: var(--c-ink-raised);
  --field-line: var(--c-ink2);
  --ok: var(--c-success-on-dark);
  --warn: var(--c-filament-soft);
  --bad: var(--c-warning);
  --focus: var(--c-filament-soft);
}
.studio .section-head p {
  color: var(--on-muted);
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.stage {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
}
.stage-view {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.stage-art,
.stage-live,
.stage-drag {
  position: absolute;
  inset: 0;
}
/* Feather the edges so the picture and the 3D view melt into the band colour. Image
   compression and the ground shadow would otherwise leave a faint rectangle. */
.stage-art,
.stage-live {
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
/* A lamp glows well past its own shape: fade that out as a circle, not a box. */
.studio[data-lamp="true"] .stage-art,
.studio[data-lamp="true"] .stage-live {
  -webkit-mask-image:
    radial-gradient(circle farthest-side, #000 50%, transparent 100%),
    linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image:
    radial-gradient(circle farthest-side, #000 50%, transparent 100%),
    linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
/* --zoom-h (set by main.js) is the height at which the model fills the stage. */
.stage-poster,
.stage-live iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  height: var(--zoom-h, 100%);
  transform: translate(-50%, -50%);
}
.stage-poster {
  width: auto;
  max-width: none;
  aspect-ratio: 4 / 3;
  transition: opacity 0.2s;
}
.stage-live iframe {
  width: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.18s;
}
body[data-preview="live"] .stage-live iframe {
  opacity: 1;
}
body[data-preview="live"] .stage-poster,
.stage.is-swapping .stage-poster {
  opacity: 0;
}
body[data-preview="live"] .stage.is-swapping .stage-live iframe {
  opacity: 0;
}
.stage-drag {
  touch-action: pan-y;
  cursor: grab;
}
.stage-drag.is-dragging {
  cursor: grabbing;
}
.stage-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stage-tools[hidden],
.stage-load[hidden] {
  display: none;
}
.stage-hint {
  font-size: var(--fs-small);
  font-weight: var(--fw-small);
  color: var(--on-muted);
  white-space: nowrap;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: var(--size-icon-button);
  height: var(--size-icon-button);
  border: 1px solid var(--field-line);
  border-radius: var(--r-icon-button);
  background: var(--field);
  cursor: pointer;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.stage-load {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  height: var(--size-icon-button);
  padding: 0 16px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-icon-button);
  background: var(--field);
  font-size: var(--fs-small);
  font-weight: var(--fw-body-strong);
  white-space: nowrap;
  cursor: pointer;
}

/* Personalise controls */
.tune {
  display: grid;
  align-content: center;
  gap: 16px;
}
.tune-title {
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
  letter-spacing: var(--ls-title);
}
.tune-title:focus {
  outline: none;
}
.tune-fields {
  display: grid;
  gap: 16px;
}
.tf-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: var(--fs-small);
  font-weight: var(--fw-small);
  color: var(--on-muted);
}
.tf input[type="text"] {
  width: 100%;
  height: var(--size-button-height);
  padding: 0 16px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-field);
  background: var(--field);
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
}
.tf input[type="text"]:focus-visible {
  outline-offset: 0;
  border-color: transparent;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip {
  min-height: var(--size-touch-target-min);
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-body);
  font-weight: var(--fw-body-strong);
  cursor: pointer;
}
.chip:hover {
  background: var(--field);
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.opt legend {
  margin-bottom: 4px;
  font-size: var(--fs-small);
  font-weight: var(--fw-small);
  color: var(--on-muted);
}
.opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* Colour swatch: 44px target, 28px dot, ring on the chosen one */
.sw {
  display: grid;
  place-items: center;
  width: var(--size-touch-target-min);
  height: var(--size-touch-target-min);
  cursor: pointer;
}
.sw-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--sw);
  box-shadow: inset 0 0 0 1px var(--field-line);
}
.sw input:checked + .sw-dot {
  box-shadow:
    inset 0 0 0 1px var(--field-line),
    0 0 0 3px var(--stage),
    0 0 0 5px var(--on);
}
.sw input:focus-visible + .sw-dot {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
}
/* Choice pill (font, shape, style) */
.pick {
  cursor: pointer;
}
.pick span {
  display: grid;
  place-items: center;
  min-height: var(--size-touch-target-min);
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-chip-small);
  font-size: var(--fs-small);
  font-weight: var(--fw-body-strong);
}
.pick input:checked + span {
  border-color: var(--on);
  background: var(--on);
  color: var(--stage);
}
.pick input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--size-touch-target-min);
  font-size: var(--fs-small);
  font-weight: var(--fw-body-strong);
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch-track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--field-line);
  transition: background-color 0.15s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  transition: transform 0.15s;
}
.switch input:checked + .switch-track {
  background: var(--c-filament);
}
.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}
.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.status {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 2.6em;
  font-size: var(--fs-small);
  font-weight: var(--fw-small);
  color: var(--on-muted);
}
.status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: currentColor;
  transform: translateY(-1px);
}
.status[data-state="ok"] {
  color: var(--ok);
}
.status[data-state="warn"] {
  color: var(--warn);
}
.status[data-state="error"] {
  color: var(--bad);
}
.status-size {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-tag);
  color: var(--on);
  font-size: var(--fs-tag);
  font-weight: var(--fw-tag);
  white-space: nowrap;
}
/* Design switcher: small pictures of the personalisable designs */
.thumbs {
  display: flex;
  gap: 8px;
  margin: 28px calc(var(--gutter) * -1) 0;
  padding: 6px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.thumbs::-webkit-scrollbar {
  display: none;
}
.thumb {
  display: grid;
  gap: 6px;
  width: 104px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: var(--fs-caption);
  font-weight: var(--fw-body-strong);
  text-align: left;
  cursor: pointer;
}
.thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-chip-small);
  box-shadow: inset 0 0 0 1px var(--field-line);
}
.thumb[aria-pressed="true"] img {
  outline: 2px solid var(--on);
  outline-offset: 2px;
}
@media (min-width: 960px) {
  .studio {
    margin-inline: 16px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 40px;
  }
  .stage {
    margin-inline: 0;
  }
  .stage-view {
    aspect-ratio: 4 / 3;
  }
  .thumbs {
    margin-inline: 0;
    padding-inline: 2px;
  }
}

/* Sections */
.section {
  padding-block: var(--section);
}
.section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  max-width: 20ch;
  font-size: var(--t-heading);
  font-weight: var(--fw-h1);
  letter-spacing: var(--ls-h1);
  line-height: var(--lh-h1);
}
.section-head-big h2,
.makers h2,
.get h2 {
  max-width: 16ch;
  font-size: var(--t-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height: 1.04;
}
.section-head p {
  max-width: 46ch;
  margin-top: 14px;
  font-size: var(--fs-title);
  line-height: 1.45;
  color: var(--c-muted);
}

/* How it works: three printed layers in the filament shades, each step one layer wider. */
.layers {
  display: grid;
  gap: 8px;
}
.layer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-card-large);
}
.layer:nth-child(1) {
  margin-right: 40px;
  background: var(--c-logo-top);
}
.layer:nth-child(2) {
  margin-right: 20px;
  background: var(--c-logo-mid);
}
.layer:nth-child(3) {
  background: var(--c-logo-base);
}
.layer-n {
  min-width: 1ch;
  font-size: var(--t-heading);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height: 1;
}
.layer p {
  max-width: 50ch;
  margin-top: 4px;
}
@media (min-width: 700px) {
  .layer {
    gap: 28px;
    padding: 28px 36px;
  }
  .layer:nth-child(1) {
    margin-right: 38%;
  }
  .layer:nth-child(2) {
    margin-right: 19%;
  }
}

/* The three layers are laid down one after another when they scroll into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .layer {
    clip-path: inset(0 0 0 0 round var(--r-card-large));
    transition: clip-path 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .js .layers:not(.is-in) .layer {
    clip-path: inset(0 100% 0 0 round var(--r-card-large));
  }
  .layer:nth-child(2) {
    transition-delay: 0.14s;
  }
  .layer:nth-child(3) {
    transition-delay: 0.28s;
  }
}

.care {
  display: grid;
  gap: 0 48px;
  margin-top: clamp(40px, 6vw, 80px);
}
.care-item {
  padding: 20px 0 24px;
  border-top: 1px solid var(--c-line);
}
.care dt,
.layer h3 {
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
  letter-spacing: var(--ls-title);
}
.care dd {
  max-width: 46ch;
  margin-top: 8px;
  color: var(--c-muted);
}
@media (min-width: 700px) {
  .care {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Makers: ink band, with the maker app rising from its bottom edge */
.makers-band {
  --focus: var(--c-filament-soft);
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-surface);
}
.makers {
  display: grid;
  gap: 40px;
  padding-top: var(--section);
}
.makers-copy p {
  max-width: 44ch;
  margin-top: 18px;
  font-size: var(--fs-title);
  line-height: 1.45;
  color: var(--c-subtle);
}
.makers-facts {
  margin: 28px 0 32px;
}
.makers-facts li {
  padding: 16px 0;
  border-top: 1px solid var(--c-ink2);
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
  letter-spacing: var(--ls-title);
}
.makers-facts li:last-child {
  border-bottom: 1px solid var(--c-ink2);
}
.makers-show {
  width: min(70vw, 290px);
  margin: 0 auto -150px;
}
.makers-show .phone {
  background: var(--c-ink-raised);
  transform: rotate(3deg);
}
@media (min-width: 900px) {
  .makers {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
  }
  .makers-copy {
    padding-bottom: var(--section);
  }
  .makers-show {
    align-self: end;
    width: min(100%, 320px);
    margin-bottom: -170px;
  }
}

/* Get the app: the page ends where it began, on the orange field. */
.get {
  --focus: var(--c-ink);
  padding-block: var(--section);
  background-color: var(--c-filament);
  background-image: repeating-linear-gradient(
    0deg,
    color-mix(in srgb, var(--c-filament-deep) 16%, transparent) 0 1px,
    transparent 1px 8px
  );
}
.get-grid {
  display: grid;
  gap: 32px 64px;
}
.get h2 {
  font-size: var(--t-hero);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.get-copy p {
  max-width: 34ch;
  margin: 20px 0 28px;
  font-size: var(--fs-title);
  font-weight: var(--fw-small);
  line-height: 1.4;
}
@media (min-width: 900px) {
  .get-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }
}
/* The "send me the link" form */
.form,
.form-done {
  padding: clamp(20px, 4vw, 36px);
  border-radius: var(--r-sheet);
  background: var(--c-surface);
  box-shadow: 0 8px 0 var(--c-filament-deep);
}
.form {
  display: grid;
  gap: 20px;
}
.form[hidden],
.form-done[hidden] {
  display: none;
}
.form label,
.seg legend {
  font-size: var(--fs-small);
  font-weight: var(--fw-body-strong);
  color: var(--c-ink2);
}
.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.seg legend {
  margin-bottom: 8px;
}
.seg input {
  position: absolute;
  opacity: 0;
}
.seg label span {
  display: grid;
  place-items: center;
  height: var(--size-button-secondary-height);
  padding: 0 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-field);
  color: var(--c-ink);
  font-size: var(--fs-body);
  text-align: center;
  cursor: pointer;
}
.seg input:checked + span {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-surface);
}
.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.field {
  display: grid;
  gap: 8px;
}
.field input,
.phone-field {
  width: 100%;
  height: var(--size-button-height);
  border: 1px solid var(--c-line);
  border-radius: var(--r-field);
  background: var(--c-canvas);
}
.field input {
  padding: 0 16px;
  font-size: var(--fs-h2);
  font-weight: var(--fw-small);
}
.field input::placeholder {
  color: var(--c-subtle);
}
.phone-field {
  display: flex;
  align-items: center;
  padding-left: 16px;
  font-size: var(--fs-h2);
  font-weight: var(--fw-small);
}
.phone-field span {
  color: var(--c-muted);
}
.phone-field input {
  height: 100%;
  padding-left: 10px;
  border: 0;
  background: none;
}
.phone-field input:focus-visible {
  outline: none;
}
.phone-field:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 0;
}
.field > input:focus-visible {
  outline-offset: 0;
}
.field input[aria-invalid="true"],
.phone-field:has(input[aria-invalid="true"]) {
  border-color: var(--c-danger);
}
.field-hp {
  position: absolute;
  left: -9999px;
}
.consent label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  font-weight: var(--fw-body);
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--c-ink);
}
.field-error,
.form-error {
  font-size: var(--fs-small);
  font-weight: var(--fw-small);
  color: var(--c-danger);
}
.consent .field-error {
  margin-top: 8px;
}
.form-error {
  padding: 12px 16px;
  border-radius: var(--r-chip-small);
  background: var(--c-danger-tint);
}
.form-done {
  align-self: start;
}
.form-done:focus {
  outline: none;
}
.form-done svg {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: var(--r-pill);
  background: var(--c-success-tint);
  color: var(--c-success);
  stroke-width: 2.5;
}
.form-done h3 {
  margin-top: 20px;
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
  letter-spacing: var(--ls-title);
}
.form-done p {
  margin-top: 8px;
  color: var(--c-muted);
}

/* Confirmation: the panel settles in and the tick draws itself. */
@media (prefers-reduced-motion: no-preference) {
  .form-done:not([hidden]) {
    animation: done-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .form-done:not([hidden]) path {
    stroke-dasharray: 22;
    animation: draw 0.45s ease-out 0.2s both;
  }
}
@keyframes done-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 22;
  }
}

/* Dock: "Get the app" stays in reach once the hero has scrolled away (the app's floating pill). */
.dock {
  position: fixed;
  left: 50%;
  bottom: var(--size-bottom-nav-inset);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: var(--r-header);
  background: var(--c-ink);
  color: var(--c-surface);
  box-shadow: var(--elev-bottom-nav);
  visibility: hidden;
  transform: translate(-50%, calc(100% + 32px));
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s 0.4s;
  --focus: var(--c-filament-soft);
}
.dock.is-on {
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s;
}
.dock .brand-mark {
  width: 32px;
  height: 32px;
}
.dock-word {
  margin-right: 14px;
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}
.dock .btn-compact {
  border-radius: var(--r-card-large);
}

/* Footer */
.site-foot {
  padding: 28px 0 96px;
  background: var(--c-surface);
}
.site-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.brand-foot {
  margin-right: 0;
}
.brand-foot .brand-word {
  font-size: var(--fs-title);
}
.brand-foot .brand-mark {
  width: 28px;
  height: 28px;
}
/* Footer links to the policy pages (built by scripts/legal.mjs). */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  width: 100%;
  font-size: var(--fs-small);
  font-weight: var(--fw-body-strong);
}
.foot-links a {
  color: var(--c-ink2);
  text-underline-offset: 3px;
}
.foot-tag {
  font-weight: var(--fw-body-strong);
}
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: var(--fs-small);
  color: var(--c-muted);
}
.foot-meta [hidden] {
  display: none;
}
@media (min-width: 900px) {
  .foot-meta {
    margin-left: auto;
  }
}

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