/* MorphMill website. One family (Archivo, variable width): wide for headings, like engraved plate lettering;
   normal width for reading. Colours come from the logo: wood on one side, circuit traces on the other. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations"), url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #15191c;   /* the logo's background */
  --panel: #1b2125;
  --rule: #2b343a;
  --text: #e9eef1;
  --muted: #9aa9b5;      /* the logo's tagline */
  --wood: #e0913a;
  --maple: #f2b866;
  --cyan: #2ec3df;
  --blue: #1b79b8;
  --measure: 66ch;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #7fdcee; }
:focus-visible { outline: 2px solid var(--maple); outline-offset: 3px; border-radius: 2px; }

/* Type scale (about 1.25), wide headings */
h1, h2, h3 { font-stretch: 125%; line-height: 1.08; margin: 0; letter-spacing: -.012em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 820; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-weight: 780; }
h3 { font-size: 1.22rem; font-weight: 720; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: #cfd8de; max-width: 60ch; }
.muted { color: var(--muted); }
small, .small { font-size: .9rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--maple); color: #111; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .98rem; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a[aria-current="page"] { color: var(--maple); }
.nav .cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); color: var(--text); border-radius: 6px; padding: 8px 12px; font: inherit; }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--graphite); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; z-index: 5; }
  .nav.open { display: flex; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
  .site-header { position: relative; }
}

/* Buttons */
.button { display: inline-block; font: 650 1rem/1 "Archivo", sans-serif; font-stretch: 112%; padding: 14px 20px; border-radius: 8px;
  text-decoration: none; border: 1px solid transparent; }
.button.primary { background: var(--wood); color: #1d1206; }
.button.primary:hover { background: var(--maple); color: #1d1206; }
.button.trial-unavailable:disabled { position: relative; background: #2c353b; color: #b4bfc6; border-color: #46525a; cursor: not-allowed; opacity: 1; box-shadow: none; }
.soon-badge { position: absolute; top: -.65em; right: -.4em; padding: 4px 7px; border: 1px solid #63717b; border-radius: 4px; background: #c7d0d6; color: #202a30; font-size: .8125rem; font-weight: 750; letter-spacing: .06em; line-height: 1; }
.button.quiet { border-color: var(--rule); color: var(--text); }
.button.quiet:hover { border-color: var(--muted); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 22px; }
.status { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--maple); margin-right: 10px; vertical-align: .08em; }

/* The board: the example design in 3D. The poster image shows until WebGL has drawn. */
.board { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 1400px; padding: 0 var(--gutter); }
.board-view { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 50% 58%, #222a30 0%, #181d21 60%, var(--graphite) 100%); }
.board-view img.poster, .board-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.board-view img.poster { object-fit: contain; }
.board-view canvas { opacity: 0; cursor: grab; touch-action: pan-y; outline-offset: -4px; }
.board-view canvas:active { cursor: grabbing; }
.board.live canvas { opacity: 1; }
.board.live img.poster { visibility: hidden; }
.board-controls { display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 18px auto 0; }
.board.static .board-controls { display: none; }
.board-controls .lbl { font-stretch: 112%; font-weight: 650; font-size: .95rem; color: var(--muted); transition: color .2s; }
.board[data-stage="picture"] .lbl.pic { color: var(--text); }
.board[data-stage="carving"] .lbl.carv { color: var(--maple); }
.board-controls input { flex: 1; appearance: none; -webkit-appearance: none; background: none; height: 28px; margin: 0; cursor: pointer; }
.board-controls input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--wood)); }
.board-controls input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--wood)); }
.board-controls input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--text); border: 4px solid var(--graphite); box-shadow: 0 0 0 1px var(--muted); }
.board-controls input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--graphite); box-shadow: 0 0 0 1px var(--muted); }
.board figcaption { text-align: center; color: var(--muted); font-size: .95rem; margin: 12px auto 0; max-width: 60ch; }
@media (max-width: 700px) { .board-view { aspect-ratio: 1 / 1; } }

/* One edition, one price */
.oneprice { display: grid; grid-template-columns: minmax(240px, .8fr) 2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.oneprice h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.oneprice dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--wood); }
.oneprice dl > div { padding: 18px 24px 0 0; }
.oneprice dl > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.oneprice dt { font-stretch: 118%; font-weight: 760; font-size: 1.25rem; color: var(--maple); }
.oneprice dd { margin: 10px 0 0; color: #cdd6dc; }
@media (max-width: 960px) { .oneprice { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .oneprice dl { grid-template-columns: 1fr; } .oneprice dl > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } .oneprice dl > div { padding-bottom: 18px; } }

/* Price comparison */
.compare { width: 100%; border-collapse: collapse; }
.compare caption { text-align: left; color: var(--muted); font-size: .95rem; padding-bottom: 10px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { color: var(--muted); font-weight: 560; font-size: .92rem; }
.compare tbody th { font-stretch: 118%; font-weight: 740; width: 16%; }
.compare td:nth-child(2) { width: 22%; }
.compare td:nth-child(3) { width: 22%; color: #cdd6dc; }
.compare td:nth-child(4) { color: #cdd6dc; }
.compare tr.us th, .compare tr.us b { color: var(--maple); }
.compare tr.us td, .compare tr.us th { border-bottom-color: var(--wood); }
.footnote { color: var(--muted); font-size: .85rem; margin-top: 14px; max-width: 80ch; }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { display: block; width: auto !important; border: 0; padding: 3px 0; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 + p { margin-top: 16px; }

/* Four steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps figure { margin: 0 0 16px; border-radius: 10px; overflow: hidden; background: #0f1214; aspect-ratio: 5 / 3; }
.steps figure img { width: 100%; height: 100%; object-fit: cover; }
.steps h3::before { content: counter(step); display: inline-block; min-width: 1.6em; color: var(--maple); font-stretch: 125%; }
.steps p { margin-top: 8px; color: #cdd6dc; font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows: text beside a picture or diagram, alternating */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 112px); }
.feature.flip .feature-media, .feature.flip .media-stack { order: -1; }
.feature-media { margin: 0; border-radius: 12px; overflow: hidden; }
.feature-media figcaption.pad { color: var(--muted); font-size: .92rem; padding: 10px 0 0; }
.media-stack { display: grid; gap: 16px; }
.feature-media img { width: 100%; }
.feature h2 + p { margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.ticks li { padding-left: 26px; position: relative; color: #d6dee3; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--wood); }
.feature.digital .ticks li::before { background: var(--cyan); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media, .feature.flip .media-stack { order: 0; } }

/* Diagrams drawn in SVG */
.diagram { background: var(--panel); border-radius: 12px; padding: clamp(16px, 3vw, 28px); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { color: var(--muted); font-size: .92rem; margin-top: 12px; }

/* Wood swatches */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.swatches div { aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 8px 10px; font-size: .85rem; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 2px rgba(0,0,0,.6); background-size: cover; background-position: center; }

/* Price */
.price-block { display: grid; grid-template-columns: minmax(260px, 1fr) 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.price { margin: 0; font-stretch: 125%; font-weight: 800; font-size: clamp(3.2rem, 7vw, 5rem); line-height: 1; color: var(--maple); }
.price .cur { font-size: .4em; font-weight: 650; color: var(--text); margin-left: .25em; }
.price-note { margin-top: 10px; color: var(--muted); }
.terms { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.terms li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 11rem 1fr; gap: 16px; }
.terms b { font-weight: 680; }
@media (max-width: 760px) { .price-block { grid-template-columns: 1fr; } .terms li { grid-template-columns: 1fr; gap: 4px; } }

/* Simple tables (requirements) */
.spec { width: 100%; border-collapse: collapse; max-width: 860px; }
.spec th, .spec td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th { font-weight: 680; width: 26%; }
.spec td.min { color: var(--text); }
.spec thead th { color: var(--muted); font-weight: 560; font-size: .95rem; }

/* Feature lists on the features page */
.group { display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 4vw, 56px); padding: 40px 0; border-top: 1px solid var(--rule); }
.group:first-of-type { border-top: 0; }
.group h2 { font-size: 1.5rem; }
.group p.group-intro { color: var(--muted); margin-top: 10px; font-size: .98rem; }
.group dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.group dt { font-weight: 680; }
.group dd { margin: 4px 0 0; color: #c9d3d9; font-size: 1rem; }
.tag { display: inline-block; font-size: .8rem; color: var(--maple); border: 1px solid #5a4325; border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: .1em; font-weight: 560; }
@media (max-width: 900px) { .group { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .group dl { grid-template-columns: 1fr; } }

/* FAQ */
.faq h2 { margin-bottom: 14px; }
.faq details, .faq h2 { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 660; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--maple); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #cdd6dc; }

/* Page header for inner pages */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-head p { margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer img { height: 26px; width: auto; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.section.tight { padding-top: 0; }
.spaced { margin-top: 28px; }

/* Editorial workshop: warm wood accents, precise cyan details, generous space. */
body { background: #12181b; }
.site-header { background: #151d21; }
.site-header .wrap { min-height: 80px; }
.brand img { height: 36px; }
.nav a { font-size: .94rem; }
.nav a[aria-current="page"] { background: #263035; }
.hero, .page-head { background: radial-gradient(ellipse at 90% 0%, #253b414d, transparent 65%); }
.hero { padding-top: clamp(56px, 9vw, 112px); }
.hero h1 { max-width: 17ch; font-size: clamp(3rem, 6.5vw, 5.7rem); letter-spacing: -.045em; }
.hero .lede { max-width: 56ch; }
.eyebrow { color: var(--maple); font-size: .875rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 20px; }
.page-head h1 { max-width: 22ch; letter-spacing: -.035em; }
.page-head p.eyebrow { margin-top: 0; }
.button { border-radius: 5px; line-height: 1.25; }
.button.primary { box-shadow: 0 4px 24px #e0913a16; }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid var(--rule); padding: 24px 0 8px; margin-top: 32px; }
.jump-links a { color: #cbd6dc; font-size: .94rem; text-decoration: none; }
.jump-links a:hover { color: var(--cyan); }
[id] { scroll-margin-top: 24px; }
.feature-opening { padding: 36px 0 72px; }
.feature-opening h2 { margin-bottom: 20px; max-width: 24ch; }
.feature-opening > p:not(.eyebrow) { color: #bac8ce; }
.journey-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 32px; }
.editorial-media { margin: 24px 0 0; }
.editorial-media img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 8px; background: #0f1417; border: 1px solid #344148; }
.editorial-media figcaption { font-size: .875rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.journey-grid .editorial-media { margin: 0; }
.journey-grid figcaption { color: var(--text); font-weight: 600; }
.group { grid-template-columns: minmax(240px,.85fr) 1.4fr; padding: 56px 0; gap: clamp(28px,5vw,72px); }
.group h2 { font-size: 1.85rem; }
.group .eyebrow { margin-bottom: 14px; }
.group dl { gap: 28px 32px; align-content: start; }
.group dt { color: #edf1f3; font-size: 1.065rem; }
.group dd { color: #adbdc6; line-height: 1.65; }
.render-options { padding: 64px 0; border-top: 1px solid var(--rule); }
.render-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.render-card { padding: clamp(24px,3vw,36px); background: #1b272d; border: 1px solid #3b5b63; border-radius: 10px; }
.render-card.future { background: #211f1b; border-color: #5d4930; }
.availability { display: block; color: var(--cyan); font-size: .875rem; margin-bottom: 18px; }
.future .availability { color: var(--maple); }
.render-card h3 { font-size: 1.5rem; }
.render-card p { color: #c5d0d6; }
.process-line { display: flex; gap: 8px; align-items: center; margin: 28px 0; font-size: .875rem; }
.process-line span { flex: 1; text-align: center; border: 1px solid #49616b; padding: 16px 4px; border-radius: 4px; }
.process-line span + span::before { content: ''; }
.process-line span:nth-child(2) { border-color: var(--cyan); color: var(--cyan); background: #2ec3df0a; }
.future .process-line span:nth-child(2) { border-color: var(--maple); color: var(--maple); background: #e0913a0a; }
.closing-cta { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.closing-cta h2 { max-width: 22ch; }
.closing-cta p { margin-top: 18px; color: var(--muted); }
.closing-cta .actions { flex-shrink: 0; margin: 0; }
.faq-page { max-width: 1080px; }
.faq-page section { padding: 40px 0 56px; }
.faq-page section + section { border-top: 1px solid var(--rule); }
.faq-page h2 { margin-bottom: 28px; }
.faq-page details { max-width: none; }
.faq-page summary { padding: 24px 0; font-size: 1.125rem; }
.faq-page details[open] { padding-bottom: 12px; }
.faq-page details p { max-width: 75ch; }
.notice { padding: 28px; margin: 40px 0 0; border-left: 3px solid var(--cyan); background: #1b272d; }
.notice h2 { font-size: 1.4rem; margin-bottom: 16px; }
.notice p { max-width: 80ch; }
.site-footer { background: #101619; }
.ownership-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; border-top: 2px solid var(--wood); padding-top: 28px; }
.ownership-grid h3 { margin-bottom: 14px; color: var(--maple); }
.ownership-grid p { color: #c5d0d6; }
.requirements-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 32px; }
.requirements-card { padding: 24px; }
.requirements-card h2 { font-size: 1.65rem; margin-bottom: 18px; }
.requirements-card dl { margin: 24px 0 0; }
.requirements-card dl > div { border-top: 1px solid #3b4c54; padding: 18px 0; }
.requirements-card dt { font-weight: 680; }
.requirements-card dd { margin: 6px 0 0; color: #bdcbd2; font-size: 1rem; }
@media (max-width: 1050px) { .requirements-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ownership-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 960px) { .nav a { padding: 8px; } .group { grid-template-columns: 1fr; } .group .editorial-media { max-width: 560px; } .closing-cta { flex-direction: column; align-items: flex-start; } }
@media (max-width: 760px) { .nav { top: 80px; } .render-grid { grid-template-columns: 1fr; } .journey-grid { grid-template-columns: 1fr; gap: 28px; } .hero h1 { font-size: clamp(2.7rem,9vw,4rem); } .group dl { grid-template-columns: 1fr; } .process-line { font-size: .875rem; } .spec th, .spec td { overflow-wrap: anywhere; font-size: .94rem; padding-right: 8px; } }
.sw-walnut { background-image: linear-gradient(transparent 45%, rgba(0,0,0,.5)), url("/img/wood/walnut.jpg"); } .sw-cherry { background-image: linear-gradient(transparent 45%, rgba(0,0,0,.5)), url("/img/wood/cherry.jpg"); }
.sw-maple { background-image: linear-gradient(transparent 45%, rgba(0,0,0,.5)), url("/img/wood/maple.jpg"); } .sw-oak { background-image: linear-gradient(transparent 45%, rgba(0,0,0,.5)), url("/img/wood/oak.jpg"); }
.sw-pine { background-image: linear-gradient(transparent 45%, rgba(0,0,0,.5)), url("/img/wood/pine.jpg"); } .sw-basswood { background-image: linear-gradient(transparent 45%, rgba(0,0,0,.5)), url("/img/wood/basswood.jpg"); }
.sw-mahogany { background-image: linear-gradient(transparent 45%, rgba(0,0,0,.5)), url("/img/wood/mahogany.jpg"); } .sw-cedar { background-image: linear-gradient(transparent 45%, rgba(0,0,0,.5)), url("/img/wood/cedar.jpg"); }
