/* Frostline Skeleton. Original work, (c) 2026 Frostline Design & Fabrication.
   Website preview styles. Colours and type follow Frostline Trace's "Titanium" web look;
   the birch-and-black stacked sheets come from Skeleton's own layered logo. */

:root {
  /* Titanium (from the live Trace site) */
  --ti-bg: #e4e8e5;
  --ti-bg-2: #eef1ee;
  --ti-panel: #f4f6f4;
  --ink: #20313b;
  --ink-2: #4d5f6a;
  --ink-3: #6c7d87;
  --accent: #4c6e84;
  --eyebrow: #496778;
  --cta: #1c3a4d;
  --cta-ink: #f2f7f6;
  --line: #c6d0d0;
  --steel-hi: #a9bcc6;
  --steel-mid: #6f8a9b;
  --steel-lo: #2d4656;
  --ice: #a8d7f5;
  --focus: #15516f;
  /* Skeleton's own: stacked sheets */
  --birch: #dec6a5;
  --birch-dk: #c4a67f;
  --face: #1b1a18;
  --face-2: #2a2926;

  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-tech: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .8, .25, 1);

  /* A sheet stack: five birch plies under the top sheet, offset like the logo layers */
  --ply: 1.6px;
  --stack:
    calc(var(--ply) * 1) calc(var(--ply) * 1) 0 var(--birch-dk),
    calc(var(--ply) * 2) calc(var(--ply) * 2) 0 var(--birch),
    calc(var(--ply) * 3) calc(var(--ply) * 3) 0 var(--birch-dk),
    calc(var(--ply) * 4) calc(var(--ply) * 4) 0 var(--birch),
    calc(var(--ply) * 5) calc(var(--ply) * 5) 0 var(--face),
    calc(var(--ply) * 5 + 6px) calc(var(--ply) * 5 + 10px) 22px rgba(20, 30, 36, .16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-motion="off"] { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ti-bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- preview banner ---------- */
.preview-bar {
  background: var(--face);
  color: var(--birch);
  font: 600 12px/1.4 var(--font-text);
  letter-spacing: .06em;
  text-align: center;
  padding: 7px var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(rgba(238, 241, 238, .96), rgba(229, 233, 229, .91));
  border-bottom: 1px solid rgba(82, 103, 115, .18);
  backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand [data-mark] { width: 44px; height: 44px; flex: none; }
.brand [data-mark] svg { width: 100%; height: 100%; overflow: visible; }
.brand-name { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name b { font: 700 15px/1 var(--font-tech); letter-spacing: .12em; }
.brand-name span { font: 400 21px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--accent); }
.brand-name span::after { content: "."; color: var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--accent); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 30px;
  font: 600 14px/1.1 var(--font-text); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pill-dark { background: var(--cta); color: var(--cta-ink); }
.pill-dark:hover { background: #24495f; }
.pill-ghost { background: rgba(238, 241, 237, .5); color: #405e70; border-color: rgba(82, 103, 115, .25); font-weight: 400; font-size: 13px; }
.pill-ghost:hover { border-color: var(--accent); }
.pill[aria-disabled="true"] { background: #cfd8da; color: #4d5f6a; cursor: not-allowed; }
.pill small { font-weight: 400; opacity: .85; }

@media (max-width: 860px) {
  .nav a:not(.keep) { display: none; }
  .nav { gap: 10px; }
  .brand-name span { font-size: 18px; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100svh - 100px); }
.hero-copy { padding: clamp(36px, 7vw, 96px) var(--gutter) 48px; align-self: center; max-width: 640px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 12px/1.3 var(--font-text); letter-spacing: .15em; text-transform: uppercase; color: var(--eyebrow);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 0; }
h1 { font-size: clamp(48px, 7.4vw, 108px); line-height: .94; letter-spacing: -.055em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); margin: 26px 0 30px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { color: var(--ink); text-decoration: none; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--ink-3); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; font: 500 13px/1.3 var(--font-tech); letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; background: var(--face); box-shadow: 1.5px 1.5px 0 var(--birch); }

/* the 3D stage */
.stage {
  position: relative; overflow: hidden; min-height: 420px;
  background:
    radial-gradient(120% 80% at 62% 38%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(100deg, var(--ti-bg) 0%, var(--steel-hi) 18%, var(--steel-mid) 55%, var(--steel-lo) 100%);
}
.stage::after { /* soft floor shadow */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 7%;
  background: radial-gradient(closest-side, rgba(14, 22, 28, .32), rgba(14, 22, 28, 0));
  pointer-events: none;
  transition: opacity .6s ease;
}
.stage.is-flat::after { opacity: 0; }
#stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#stage-canvas:active { cursor: grabbing; }
.stage-fallback { display: none; position: absolute; inset: 12%; }
.stage.no-webgl .stage-fallback { display: block; }
.stage.no-webgl #stage-canvas, .stage.no-webgl .stage-ui, .stage.no-webgl .tag { display: none; }
.stage-fallback [data-mark] svg { width: 100%; height: 100%; }

.stage-ui {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px clamp(16px, 3vw, 28px) 18px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  color: #eef3f5; font: 500 12px/1.3 var(--font-tech); letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none;
}
.stage-ui > * { pointer-events: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: 30px; background: rgba(17, 24, 32, .38); border: 1px solid rgba(236, 245, 248, .22); backdrop-filter: blur(6px); }
.seg button, .stage-btn {
  font: 600 13px/1 var(--font-text); letter-spacing: 0; text-transform: none;
  min-height: 40px; padding: 0 16px; border-radius: 30px; border: 0; cursor: pointer;
  background: transparent; color: #e7eef1;
}
.seg button[aria-pressed="true"] { background: var(--ti-bg); color: var(--ink); }
.stage-btn { background: rgba(17, 24, 32, .38); border: 1px solid rgba(236, 245, 248, .22); }
.counter { display: inline-flex; align-items: baseline; gap: 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.counter b { font: 600 22px/1 var(--font-tech); letter-spacing: 0; }
.stage-hint { position: absolute; top: 16px; right: clamp(16px, 3vw, 28px); color: rgba(238, 243, 245, .82); font: 500 12px/1.3 var(--font-text); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.stage.assembled .stage-hint { opacity: 1; }
.stage.is-flat .stage-hint { opacity: 0; }

/* labels that follow ribs in the 3D scene */
.tag {
  position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  font: 600 12px/1.25 var(--font-text); color: var(--ink); white-space: nowrap;
}
.tag span {
  display: inline-block; transform: translate(12px, -50%);
  background: rgba(244, 246, 244, .94); border: 1px solid rgba(28, 58, 77, .25); border-radius: 30px; padding: 6px 11px;
  box-shadow: 0 6px 18px rgba(17, 24, 32, .18);
}
.tag::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 3px rgba(168, 215, 245, .35); }
.tag.flip span { transform: translate(calc(-100% - 12px), -50%); }
#lbl-slice span { transform: translate(-50%, 14px); }
#lbl-slice::before { left: -4px; }
.stage.show-rib-labels #lbl-angled, .stage.show-rib-labels #lbl-slice { opacity: 1; }
#lbl-flat { left: 50%; top: 18px; transform: translateX(-50%); }
#lbl-flat span { transform: none; }
#lbl-flat::before { display: none; }
.stage.show-flat-label #lbl-flat { opacity: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-bottom: 28px; }
  .stage { min-height: 0; height: min(118vw, 640px); }
  .stage-hint { display: none; }
  .tag span { font-size: 11px; padding: 5px 9px; }
}

/* ---------- interlocking rib divider (replaces Trace's laser line) ---------- */
.rib-divider {
  height: 38px; margin: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='38' viewBox='0 0 96 38'%3E%3Crect x='0' y='16' width='96' height='8' fill='%23dec6a5'/%3E%3Crect x='0' y='15' width='96' height='7' fill='%231b1a18'/%3E%3Cpath d='M44 3h8v13h-8z' fill='%23dec6a5'/%3E%3Cpath d='M43 2h7v13h-7z' fill='%231b1a18'/%3E%3Cpath d='M44 24h8v12h-8z' fill='%23dec6a5'/%3E%3Cpath d='M43 22h7v13h-7z' fill='%231b1a18'/%3E%3Crect x='43' y='15' width='7' height='7' fill='%23c4a67f'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
  opacity: .9;
}
.rib-divider.light { opacity: .55; }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(38px, 5.4vw, 78px); line-height: .98; letter-spacing: -.05em; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin: 20px 0 0; max-width: 36em; }

/* stacked-sheet card */
.sheet {
  position: relative; background: var(--ti-panel); border-radius: 3px;
  box-shadow: var(--stack);
  padding: 26px 24px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sheet:hover { transform: translate(-2px, -2px); }
.sheet.dark { background: var(--face); color: #e9e2d6; }
.sheet.dark h3 { color: #f3ece0; }
.sheet h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.sheet p { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }
.sheet.dark p { color: #cfc6b8; }
.chip {
  display: inline-block; margin-bottom: 14px;
  font: 600 11px/1 var(--font-tech); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 2px; border: 1px solid currentColor;
}
.chip.now { color: #1c3a4d; background: rgba(168, 215, 245, .45); border-color: #8bb8d4; }
.chip.soon { color: #7b5b33; background: rgba(222, 198, 165, .35); border-color: var(--birch-dk); }
.sheet.dark .chip.soon { color: var(--birch); background: transparent; }

/* stack-in animation: sheets land on the pile as they scroll in */
html[data-motion="on"] .stack-in.waiting { opacity: 0; transform: translate(-18px, -26px) rotate(-1.6deg); box-shadow: 0 0 0 transparent; }
html[data-motion="on"] .stack-in.waiting.landed {
  opacity: 1; transform: none; box-shadow: var(--stack);
  transition: opacity .35s ease, transform .55s var(--ease), box-shadow .45s ease .25s;
}
.stack-in.landed:nth-child(2) { transition-delay: .07s, .07s, .32s !important; }
.stack-in.landed:nth-child(3) { transition-delay: .14s, .14s, .39s !important; }
.stack-in.landed:nth-child(4) { transition-delay: .21s, .21s, .46s !important; }
.stack-in.landed:nth-child(5) { transition-delay: .28s, .28s, .53s !important; }
.stack-in.landed:nth-child(6) { transition-delay: .35s, .35s, .6s !important; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: flex; flex-direction: column; }
.step .num { font: 600 12px/1 var(--font-tech); letter-spacing: .14em; color: var(--eyebrow); margin-bottom: 14px; }
.step .art { height: 110px; margin: -6px -6px 14px; }
.step .art svg { width: 100%; height: 100%; }
.step h3 { font-size: 20px; }
.step p { font-size: 14.5px; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps .step:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- any angle ---------- */
.angle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.angle-grid figure { margin: 0; }
.angle-grid .art { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #eef1ee, #d9e0e0); border-radius: 2px; margin-bottom: 18px; }
.angle-grid .art svg { width: 100%; height: 100%; }
.angle-grid figcaption h3 { font-size: 22px; }
.angle-grid figcaption p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .angle-grid { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.feature-list { display: grid; gap: 22px; }
.col-title { font: 600 13px/1 var(--font-tech); letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 18px; display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .feature-cols { grid-template-columns: 1fr; } }

/* ---------- roadmap (layers) ---------- */
.roadmap-band { background: linear-gradient(180deg, var(--ti-bg-2), var(--ti-bg)); }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.layer {
  position: relative; display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; margin-top: -1px;
  background: transparent; border: 1px dashed #9aa9b0; color: var(--ink-3);
}
.layer b { font: 600 13px/1 var(--font-tech); letter-spacing: .12em; text-transform: uppercase; }
.layer span { font-size: 15.5px; }
.layer em { font-style: normal; font: 600 11px/1 var(--font-tech); letter-spacing: .12em; text-transform: uppercase; }
.layer.built { background: var(--face); color: #efe7da; border: 0; box-shadow: var(--stack); margin-bottom: 12px; z-index: 1; }
.layer.built em { color: var(--birch); }
.layers .layer:nth-child(2) { margin-left: 2.4%; } .layers .layer:nth-child(3) { margin-left: 4.8%; }
.layers .layer:nth-child(4) { margin-left: 7.2%; } .layers .layer:nth-child(5) { margin-left: 9.6%; }
.layers .layer:nth-child(6) { margin-left: 12%; }
@media (max-width: 600px) {
  .layer { grid-template-columns: 1fr auto; padding: 14px 14px; }
  .layer span { grid-column: 1 / -1; grid-row: 2; }
  .layers .layer:nth-child(n) { margin-left: 0; }
}

/* ---------- machines strip ---------- */
.shop { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.tags li { padding: 9px 13px; background: var(--ti-panel); border: 1px solid var(--line); border-radius: 2px; font-size: 14px; }
.note { color: var(--ink-3); font-size: 14px; margin-top: 18px; }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }

/* ---------- family ---------- */
.family { background: linear-gradient(115deg, #1d2a33 0%, #24384a 55%, #2f4a5c 100%); color: #e7eef1; }
.family .wrap { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.family [data-mark] { width: 100%; max-width: 340px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(222, 198, 165, .2), rgba(222, 198, 165, 0)); }
.family [data-mark] svg { width: 100%; height: 100%; overflow: visible; }
.family h2 { color: #f2f6f7; }
.family h2 em { color: var(--birch); }
.family p { color: #c4d1d8; font-size: 18px; max-width: 34em; }
.family a { color: var(--ice); }
@media (max-width: 760px) { .family .wrap { grid-template-columns: 1fr; } .family [data-mark] { max-width: 220px; } }

/* ---------- footer ---------- */
.site-footer { padding: 36px 0 48px; color: var(--ink-3); font-size: 13.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* ---------- motion off ---------- */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { transition-duration: 0s !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
