/* Sigló · Wappen-Generator
   Visual language derived from the shop's theme (Shopify Horizon, custom sections):
   Deep Forest #041A17, Cream #F5F3E6, Sand #E7E4D1, square corners, Work Sans body,
   serif display headings with slight negative tracking, 11px uppercase kickers. */

@font-face { font-family: "Work Sans"; font-weight: 300; font-display: swap; src: url(/fonts/work-sans-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-weight: 300; font-display: swap; src: url(/fonts/work-sans-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url(/fonts/work-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url(/fonts/work-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-weight: 500; font-display: swap; src: url(/fonts/work-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-weight: 500; font-display: swap; src: url(/fonts/work-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Pinyon Script"; font-weight: 400; font-display: swap; src: url(/fonts/pinyon-script-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pinyon Script"; font-weight: 400; font-display: swap; src: url(/fonts/pinyon-script-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pinyon Script"; font-weight: 400; font-display: swap; src: url(/fonts/pinyon-script-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --forest: #041a17;
  --forest-2: #0c2821;
  --cream: #f5f3e6;
  --sand: #e7e4d1;
  --white: #ffffff;
  --photo: #fdfdfb; /* background of the ring photography */
  --line: rgb(4 26 23 / 0.12);
  --line-strong: rgb(4 26 23 / 0.2);
  --muted: rgb(4 26 23 / 0.7);
  --error: #8a3b12;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: 20px;
  /* face of the signet ring in stage coordinates (updated per layout) */
  --face-x: 49.1%;
  --face-y: 47.4%;
  --face-rx: 29.6%;
  --face-ry: 31%;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--forest);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { -webkit-tap-highlight-color: transparent; }
/* anchored scrolling lands below the sticky header */
.step, .form, .drafts, .sizes, .crest { scroll-margin-top: 72px; }
[hidden] { display: none !important; }
/* while the name field is focused on a phone: room below the page as tall as the keyboard (app.js) */
body::after { content: ""; display: block; height: var(--kb, 0px); }

/* ── top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 var(--gutter);
  background: var(--forest); color: var(--cream);
}
.wordmark { display: block; padding: 5px 0; color: var(--cream); text-decoration: none; line-height: 0; }
/* vector wordmark (public/img/siglo-wordmark.svg) tinted with the current text colour; the artwork
   fills its viewBox edge to edge, so it keeps air above and below inside the 56 px bar */
.wordmark__logo {
  display: inline-block; width: 72px; height: 46px; vertical-align: middle;
  background: currentColor;
  -webkit-mask: url(/img/siglo-wordmark.svg) no-repeat center / contain;
  mask: url(/img/siglo-wordmark.svg) no-repeat center / contain;
}
.wordmark__logo--footer { width: 72px; height: 46px; color: var(--forest); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── layout ──────────────────────────────────────────────────────────────── */
.page { display: block; }
@media (min-width: 990px) {
  :root { --gutter: 32px; }
  .page { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); align-items: start; max-width: 1440px; margin: 0 auto; }
  .stage { position: sticky; top: 56px; }
}

/* ── stage (the ring) ────────────────────────────────────────────────────── */
.stage { background: var(--photo); }
.stage__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--photo);
  --base-scale: 0.94; /* whole ring incl. its shadow always visible */
  --cut: 50%;
  --face-rx: 29.6%; --face-ry: 31%;
  touch-action: pan-y; /* vertical page scroll stays native, horizontal drags move the divider */
  -webkit-user-select: none; user-select: none;
}
@media (min-width: 990px) { .stage__frame { aspect-ratio: auto; height: calc(100vh - 56px - 96px); min-height: 480px; } }
.stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 50%;
  transform-origin: var(--face-x) var(--face-y);
  transform: scale(var(--base-scale));
  -webkit-user-drag: none; pointer-events: none;
}
/* the engraved photo is clipped in (untransformed) frame coordinates → divider = exact cut */
.stage__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut)); transition: opacity 900ms var(--ease); }
.stage__frame[data-state="blank"] .stage__after { opacity: 0; }
.stage__frame[data-animating="1"] .stage__after,
.stage__frame[data-animating="1"] .compare__line { transition: none; }
/* view switch: short cross-fade */
.stage__img, .stage__after { will-change: opacity; }
.stage__frame[data-switching="1"] .stage__img { opacity: 0; transition: opacity 160ms var(--ease); }
.stage__frame:not([data-switching="1"]) .stage__img { opacity: 1; transition: opacity 320ms var(--ease); }

/* while generating: a slow, continuous stream of warm light across the signet face and a soft
   breathing glow – clearly "something is happening", never hectic. The bands follow each other
   closely enough that one is always on the face (no quiet gap), each a little softer instead. */
.stage__sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, rgb(255 246 222 / 0.32), transparent 70%);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse var(--face-rx) var(--face-ry) at var(--face-x) var(--face-y), #000 96%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--face-rx) var(--face-ry) at var(--face-x) var(--face-y), #000 96%, transparent 100%);
  transition: opacity 900ms var(--ease);
}
/* three tiles of 70 % frame width; moving by one tile (a third of the strip) loops without a seam */
.stage__sheen::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 210%;
  background: linear-gradient(112deg, transparent 0%, transparent 16.5%, rgb(255 244 214 / 0.15) 33.2%, rgb(255 252 240 / 0.52) 50%, rgb(255 244 214 / 0.15) 66.8%, transparent 83.5%, transparent 100%) 0 0 / 33.3333% 100% repeat-x;
  will-change: transform;
}
.stage__frame[data-working="1"] .stage__sheen { opacity: 1; animation: glow 4.2s ease-in-out infinite; }
.stage__frame[data-working="1"] .stage__sheen::before { animation: sheen 2.8s linear infinite; }
@keyframes sheen { from { transform: translateX(0); } to { transform: translateX(33.3333%); } }
@keyframes glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .stage__frame[data-working="1"] .stage__sheen { animation: none; opacity: 0.5; }
  .stage__frame[data-working="1"] .stage__sheen::before { animation: none; transform: translateX(16.6667%); }
}

/* before / after */
.compare { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.compare__range { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* the divider: a 1 px line inside a 44 px grip – grabbing it drags, a tap anywhere else zooms */
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--cut); width: 44px; margin-left: -22px;
  pointer-events: auto; cursor: ew-resize;
}
.compare__line::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px;
  background: rgb(4 26 23 / 0.5);
}
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid var(--forest); border-radius: 50%; background: rgb(253 253 251 / 0.9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 2px 14px rgb(4 26 23 / 0.12);
  transition: transform 220ms var(--ease);
}
.compare__knob::before, .compare__knob::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-top: 1px solid var(--forest); border-left: 1px solid var(--forest);
}
.compare__knob::before { left: 12px; transform: rotate(-45deg); }
.compare__knob::after { right: 12px; transform: rotate(135deg); }
.stage__frame[data-dragging="1"] .compare__knob { transform: scale(1.12); }
.compare__range:focus-visible + .compare__line .compare__knob { outline: 1px solid var(--forest); outline-offset: 3px; }
.stage__frame:has(.compare:not([hidden])) { cursor: zoom-in; }
.stage__frame[data-dragging="1"], .stage__frame[data-dragging="1"] * { cursor: ew-resize; }
.compare__label {
  position: absolute; bottom: 14px; z-index: 1;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75;
  transition: opacity 240ms var(--ease);
}
.compare__label--before { left: var(--gutter); }
.compare__label--after { right: var(--gutter); }
.compare__label[data-off="1"] { opacity: 0; }

.stage__caption {
  position: absolute; top: 12px; left: calc(var(--gutter) - 8px); z-index: 3; margin: 0; padding: 5px 8px;
  background: rgb(253 253 251 / 0.92); color: rgb(4 26 23 / 0.8);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; pointer-events: none;
}
.stage__zoom {
  position: absolute; top: 8px; right: 8px; z-index: 4; min-height: 44px;
  padding: 7px 14px; border: 1px solid var(--line-strong); background: rgb(253 253 251 / 0.9);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; cursor: zoom-in;
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
.stage__zoom:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
/* a tap / click on the ring opens Detail – the button only appears for keyboard users */
.stage__zoom:not(:focus-visible) {
  width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}

/* the engraved photo did not load: calm note on the ring, one tap to try again */
.stage__notice {
  position: absolute; left: 50%; bottom: 14px; z-index: 5; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; margin: 0; padding: 4px 16px;
  background: rgb(253 253 251 / 0.94); border: 1px solid var(--line); white-space: nowrap;
  font-size: 13px; color: var(--muted);
}
.stage__notice p { margin: 0; }
.stage__notice .textlink { color: var(--forest); }

/* view switcher (front / side / on a hand) */
.views { display: flex; justify-content: center; align-items: flex-start; gap: 8px; padding: 12px var(--gutter) 16px; background: var(--photo); }
@media (max-width: 989px) { .views { padding: 26px var(--gutter) 16px; } }
/* landing page: the row keeps its space while the example photos load (no layout jump) */
.views.views--reserve[hidden] { display: flex !important; visibility: hidden; }
.views__btn { flex: 0 1 92px; min-width: 0; }
/* elegant arrows beside the thumbnails: thin chevron in a fine circle */
.views__arrow, .lightbox__arrow {
  position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgb(253 253 251 / 0.9); color: var(--forest); cursor: pointer;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease), opacity 240ms var(--ease);
}
.views__arrow { margin-top: 6px; }
.views__arrow::before, .lightbox__arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -2px;
  border-top: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(-45deg);
}
.views__arrow--next::before, .lightbox__arrow--next::before { margin-left: -6px; transform: rotate(135deg); }
.views__arrow:hover, .lightbox__arrow:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.views__arrow:focus-visible, .lightbox__arrow:focus-visible { outline: 1px solid var(--forest); outline-offset: 3px; }
.lightbox__arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; }
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.views__btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; transition: opacity 240ms var(--ease);
}
.views__btn[aria-selected="true"], .views__btn:hover { opacity: 1; }
.views__thumb { display: block; width: 100%; max-width: 84px; aspect-ratio: 3 / 2; height: auto; border: 1px solid transparent; background: var(--photo); overflow: hidden; transition: border-color 240ms var(--ease); }
.views__btn[aria-selected="true"] .views__thumb { border-color: var(--forest); }
.views__thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.views__btn[data-pending="1"] { cursor: progress; }
.views__btn[data-pending="1"] .views__thumb img { opacity: 0.35; }
.views__label { white-space: nowrap; }
/* the second line ("wird graviert" / "lädt") always keeps its place – the row never changes height,
   so nothing below it (e.g. the name field under an open keyboard) jumps */
.views__label::after { content: "\00a0"; display: block; margin-top: 2px; font-size: 9px; letter-spacing: 0.12em; visibility: hidden; }
.views__btn[data-pending="1"] .views__label::after,
.views__btn[data-loading="1"] .views__label::after {
  content: "wird graviert"; visibility: visible; opacity: 0.8;
  animation: pulse 2.4s ease-in-out infinite;
}
.views__btn[data-loading="1"] .views__label::after { content: "lädt"; }
.views__btn[data-new="1"] .views__thumb { animation: attention 1.4s var(--ease) 2; }
@keyframes attention { 50% { border-color: var(--forest); box-shadow: 0 0 0 4px rgb(4 26 23 / 0.08); } }

/* ── lightbox (Detail) ───────────────────────────────────────────────────── */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--photo); color: var(--forest); overflow: hidden;
}
.lightbox::backdrop { background: var(--photo); }
.lightbox[open] { display: flex; flex-direction: column; animation: fadein 260ms var(--ease) both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lightbox__stage[data-zoomed="1"] { cursor: grab; }
.lightbox__stage[data-panning="1"] { cursor: grabbing; }
.lightbox__img {
  position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform;
  -webkit-user-drag: none; user-select: none;
}
.lightbox__img[data-anim="1"] { transition: transform 360ms var(--ease); }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px; border-bottom: 1px solid var(--line); background: var(--photo);
  position: relative; z-index: 2;
}
.lightbox__views { display: flex; gap: 6px; }
.lightbox__views button, .lightbox__close {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); background: none; cursor: pointer;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.lightbox__views button[aria-selected="true"], .lightbox__close:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.lightbox__views button[hidden] { display: none; }
.lightbox__close { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.lightbox__views { min-width: 0; }
@media (max-width: 520px) {
  .lightbox__bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .lightbox__views { gap: 4px; }
  .lightbox__views button { padding: 8px 9px; font-size: 10px; letter-spacing: 0.14em; white-space: nowrap; }
  .lightbox__close { width: 44px; padding: 0; justify-content: center; }
  .lightbox__close .lightbox__close-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lightbox__close span[aria-hidden] { font-size: 16px; }
}
.lightbox__close span { font-size: 13px; letter-spacing: 0; line-height: 1; }
.lightbox__hint {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0;
  padding: 5px 10px; background: rgb(253 253 251 / 0.85); pointer-events: none; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
  transition: opacity 400ms var(--ease);
}
.lightbox__stage[data-zoomed="1"] .lightbox__hint { opacity: 0; }

/* ── panel ───────────────────────────────────────────────────────────────── */
.panel { padding: 40px var(--gutter) 48px; }
@media (min-width: 990px) { .panel { padding: 72px clamp(32px, 4vw, 72px) 96px; min-height: calc(100vh - 56px); } }
.step { max-width: 520px; animation: rise 700ms var(--ease) both; }
.step:not([hidden]) ~ .step { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

.kicker {
  margin: 0 0 14px; font-size: 11px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.75;
}
.headline {
  margin: 0 0 18px; font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(38px, 9vw, 60px); line-height: 1.02; letter-spacing: -0.015em;
}
.headline--sm { font-size: clamp(30px, 6.5vw, 42px); line-height: 1.05; }
.lede { margin: 0 0 28px; font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 44ch; }

/* ── offer (price, availability, promises) ─────────────────────────────────── */
.offer { margin: 0 0 28px; padding: 18px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.offer__row .price { margin: 0; }
.offer__row--order { margin: -6px 0 22px; }
.stock { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; letter-spacing: 0.02em; color: var(--error); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.usp { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.usp li { display: flex; gap: 12px; align-items: center; }
/* thin check mark in forest green */
.usp li::before {
  content: ""; flex: none; width: 13px; height: 13px; background: var(--forest);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.6l3.6 3.6 7.4-8.4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.6l3.6 3.6 7.4-8.4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.usp--order { margin: 16px 0 10px; }
/* ── drafts: returning visitors (thumbnail, price, quick add with size) ────── */
.drafts { margin: 32px 0 0; }
.drafts .kicker { margin-bottom: 12px; }
.drafts__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.draft {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center;
  padding: 10px; border: 1px solid var(--line-strong); background: var(--white);
  animation: rise 500ms var(--ease) both;
}
.draft__open { display: block; padding: 0; border: 0; background: var(--photo); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.draft__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.draft__open:hover img { transform: scale(1.06); }
.draft__body { min-width: 0; }
.draft__title {
  display: block; max-width: 100%; margin: -10px 0; padding: 10px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-size: 20px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.draft__title:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.draft__meta { margin: 12px 0 8px; font-size: 13px; color: var(--muted); }
.draft__meta b { font-weight: 400; color: var(--forest); }
.draft__meta s { margin-left: 4px; opacity: 0.7; }
.draft__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn--small { width: auto; min-height: 44px; padding: 8px 16px; font-size: 13px; }
.draft__actions .textlink { font-size: 11px; }
.draft__sizes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; animation: rise 300ms var(--ease) both; }
.draft__sizes span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-right: 4px; }
.draft__size {
  flex: none; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); background: var(--white); cursor: pointer;
  font-size: 14px; transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.draft__size:hover:not([disabled]) { background: var(--forest); color: var(--white); border-color: var(--forest); }
.draft__size[disabled] { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.draft__size[aria-busy="true"] { background: var(--forest); color: var(--white); }
.draft--pending { cursor: pointer; }
.draft--pending .draft__meta::after { content: " · wird gerade erstellt"; }
@media (prefers-reduced-motion: reduce) { .stock::before { animation: none; } }

/* ── form ────────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field__label {
  display: flex; justify-content: space-between; align-items: baseline; width: 100%;
  font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
}
.field__input {
  width: 100%; height: 56px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 0;
  background: var(--white); color: var(--forest);
  font-family: var(--font-heading); font-size: 24px; font-weight: 400; letter-spacing: 0.01em;
  transition: border-color 280ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: rgb(4 26 23 / 0.35); }
.field__input:focus { outline: none; border-color: var(--forest); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.form__error { margin: 0; font-size: 14px; color: var(--error); }
.turnstile:empty { display: none; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px;
  padding: 18px 32px; border: 1px solid var(--forest); border-radius: 0;
  font-family: var(--font-body); font-size: 15px; font-weight: 400; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease), opacity 320ms var(--ease);
}
.btn--primary { background: var(--forest); color: var(--white); }
.btn--primary:hover { background: #000; border-color: #000; }
.btn--outline { background: transparent; color: var(--forest); margin-top: 12px; }
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }

.fineprint { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.fineprint a { text-underline-offset: 3px; }

/* ── progress ────────────────────────────────────────────────────────────── */
.status { margin: 0 0 22px; min-height: 1.7em; color: var(--muted); transition: opacity 400ms var(--ease); }
.status[data-fade="1"] { opacity: 0; }
.bar { position: relative; height: 1px; background: var(--line); overflow: hidden; }
.bar__fill {
  position: absolute; inset: 0 auto 0 0; width: 0; background: var(--forest);
  transition: width 1.2s var(--ease);
}
.stages {
  display: flex; gap: 22px; margin: 18px 0 0; padding: 0; list-style: none;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.stages li { opacity: 0.35; transition: opacity 400ms var(--ease); }
.stages li[data-state="active"], .stages li[data-state="done"] { opacity: 1; }
.stages li[data-state="done"]::after { content: " ·"; }

/* ── crest ───────────────────────────────────────────────────────────────── */
.crest { margin: 0 0 22px; background: var(--cream); padding: clamp(18px, 5vw, 36px); }
.crest__img { width: 100%; height: auto; mix-blend-mode: multiply; }
.reason { margin: 0 0 8px; font-family: var(--font-heading); font-style: italic; font-size: 22px; line-height: 1.35; }
.meaning { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0 16px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.meaning dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; padding-top: 2px; }
.meaning dd { margin: 0; }
.crest__note { margin-top: 0; }

/* ── order ───────────────────────────────────────────────────────────────── */
.price { margin: -6px 0 26px; font-size: 18px; font-weight: 400; }
.price__was { margin-left: 8px; opacity: 0.5; font-weight: 300; }
.sizes { margin: 0 0 18px; padding: 0; border: 0; }
.sizes legend { margin-bottom: 10px; }
.sizes__help {
  padding: 13px 0; margin: -13px 0; border: 0; background: none; cursor: pointer; color: inherit;
  font: inherit; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; opacity: 0.75;
}
.sizes__help:hover { opacity: 1; }
.sizes__guide { margin: 0 0 14px; padding: 16px 18px; background: var(--cream); font-size: 13px; line-height: 1.6; }
.sizes__guide p { margin: 0 0 10px; color: var(--muted); }
.sizes__guide p:last-child { margin: 10px 0 0; }
.sizes__guide table { width: 100%; border-collapse: collapse; }
.sizes__guide th, .sizes__guide td { padding: 6px 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.sizes__guide th { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.sizes__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.size {
  position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column;
  min-height: 56px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 15px; font-weight: 400;
  transition: border-color 280ms var(--ease), background-color 280ms var(--ease);
}
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size small { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; line-height: 1.2; }
.size:hover { border-color: var(--forest); }
.size:has(input:checked) { background: var(--forest); color: var(--white); border-color: var(--forest); }
.size:has(input:focus-visible) { outline: 1px solid var(--forest); outline-offset: 2px; }
.size:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.size:has(input:disabled) span { text-decoration: line-through; }

.textlink {
  display: inline-block; min-height: 44px; padding: 13px 0; border: 0; background: none; cursor: pointer;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: opacity 280ms var(--ease);
}
.textlink:hover { opacity: 0.6; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 36px var(--gutter); background: var(--cream);
  font-size: 12px; letter-spacing: 0.04em;
}
.footer__brand { margin: 0; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand em { font-family: var(--font-heading); font-size: 16px; }
.footer__credit { margin: 0; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
@media (max-width: 989px) {
  .footer { gap: 6px 16px; padding: 18px var(--gutter); }
  .wordmark__logo--footer { width: 50px; height: 32px; }
  .footer__brand em { font-size: 15px; }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translateX(-50%);
  padding: 12px 18px; background: var(--forest); color: var(--cream); font-size: 13px;
  animation: rise 400ms var(--ease) both;
}

/* ── loading: calm and typographic – every line appears once it is known ───── */
.story__name {
  margin: 4px 0 4px; min-height: 1.1em;
  font-family: "Pinyon Script", var(--font-heading); font-size: clamp(44px, 11vw, 68px); line-height: 1.1;
  animation: fadein 900ms var(--ease) both;
}
.story__hook {
  margin: 0 0 6px; font-family: var(--font-heading); font-style: italic; font-size: 22px; line-height: 1.35;
  animation: rise 900ms var(--ease) both;
}
.story__meaning { margin: 16px 0 24px; }
.story__origin { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); animation: rise 800ms var(--ease) 600ms both; }
.story__signs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.story__signs li {
  display: grid; grid-template-columns: max-content 1fr; gap: 18px; align-items: baseline;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  animation: rise 800ms var(--ease) both;
}
.story__signs b { font-weight: 400; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.story__signs em { font-family: var(--font-heading); font-size: 20px; }
.story__eta { margin: 12px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* the finished crest simply fades in – together with its story, as one block */
.step--crest.is-in { animation: fadein 700ms var(--ease) both; }
.crest__img.is-inking { animation: fadein 1.2s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .story__name, .story__hook, .story__origin, .story__signs li, .step--crest.is-in, .crest__img.is-inking, .lightbox[open] { animation: none; }
  .stage__after, .lightbox__img[data-anim="1"] { transition: none; }
}

/* ── mobile: sticky call to action ───────────────────────────────────────── */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; gap: 14px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(0); transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.cta-bar[data-off="1"] { transform: translateY(110%); opacity: 0; pointer-events: none; }
.cta-bar__price { margin: 0; white-space: nowrap; font-size: 16px; font-weight: 400; }
.cta-bar__price s { margin-left: 6px; font-weight: 300; opacity: 0.5; font-size: 14px; }
.cta-bar__btn { flex: 1; min-height: 48px; }
@media (min-width: 990px) { .cta-bar { display: none !important; } }
@media (max-width: 989px) {
  /* the loading story fills the screen below the ring – the footer stays out of sight */
  .step--progress { min-height: calc(100svh - 56px - 75vw); }
  body:has(.cta-bar:not([hidden])) .footer { padding-bottom: calc(18px + 65px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }

/* while generating: the engraving template is ready further down – a quiet note, one tap away */
.crest-hint {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 14;
  display: inline-flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px);
  min-height: 48px; padding: 6px 18px 6px 6px;
  border: 1px solid var(--line-strong); background: rgb(253 253 251 / 0.95); color: var(--forest);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgb(4 26 23 / 0.10);
  font-size: 12px; letter-spacing: 0.08em; white-space: nowrap; cursor: pointer;
  transform: translate(-50%, 0); opacity: 1;
  transition: transform 520ms var(--ease), opacity 520ms var(--ease);
}
.crest-hint[data-off="1"] { transform: translate(-50%, 14px); opacity: 0; pointer-events: none; }
.crest-hint__img { flex: none; width: 34px; height: 34px; padding: 3px; background: var(--cream); object-fit: contain; }
.crest-hint__arrow {
  flex: none; width: 7px; height: 7px; margin: -4px 0 0 2px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); animation: nudge 2.6s var(--ease) infinite;
}
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
/* desktop: centred under the text column, not over the ring */
@media (min-width: 990px) { .crest-hint { left: min(79vw, calc(50vw + 417.6px)); } } /* 58 % + 21 % of the ≤ 1440 px grid */
@media (prefers-reduced-motion: reduce) { .crest-hint { transition: none; } .crest-hint__arrow { animation: none; } }
