/* Ethan's combined sandbox: readable layouts with Lumen Alto's light and depth. */
:root { --max: 1240px; --h2: clamp(32px, 3.8vw, 52px); --sec-pad: clamp(56px, 6vw, 88px); --paper: #e9ecf3; --paper-2: #dfe4ee; --ink: #101935; --night-2: #151c36; }
html { scroll-padding-top: calc(var(--mast-h) + 24px); }
.sec-title { line-height: 1.1; }
.sec-head { gap: 14px; margin-bottom: 34px; }
.page-head { min-height: 0; padding: calc(var(--mast-h) + 56px) 0 56px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.08; max-width: 22ch; }
.motion .page-head h1 { color: inherit; animation: none; }
.page-head .lede { max-width: 65ch; font-size: clamp(17px, 1.4vw, 20px); }
.page-head::before { opacity: .45; }

/* Evan's full-screen opening; the wireframe appears later in Build features. */
.combined-hero { height: auto; min-height: 100svh; }
.combined-hero-in { position: relative; z-index: auto; min-height: 100svh; padding-block: calc(var(--mast-h) + 40px) 34px; display: flex; flex-direction: column; gap: 40px; }
.hero-main { flex: 1; display: flex; align-items: center; }
.hero-copy { min-width: 0; width: 100%; position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(36px, min(8.7vw, 17.5svh), 150px); line-height: .98; max-width: none; text-wrap: balance; }
.combined-hero .hero-foot { position: relative; z-index: 4; }
.combined-hero .lede { display: block; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.hero-scroll { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--mist); font: 500 15px/1.3 var(--sans); }
.hero-scroll span { font-size: 24px; color: var(--peri); }
.hero-scroll:hover { color: var(--flare); }
.combined-hero .spill { z-index: 3; }

/* Prices are visible immediately, with the original compact card layout. */
.price { background: var(--paper-2); color: var(--ink); padding: var(--sec-pad) 0; --dot: var(--cobalt); }
.price-split { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; gap: 24px; }
.pp { padding: clamp(28px, 3vw, 42px); border-radius: 22px; gap: 20px; }
.pp-price { gap: 7px; }
.price-value { font: 400 clamp(48px, 5.5vw, 76px)/1 var(--display); }
.pp :is(h2,h3) { font-size: clamp(24px, 2.2vw, 30px); }
.pp p { font-size: 17px; }
.pp-unit { font-size: 16px; }
.price-page { padding-top: 56px; }

/* Featured work keeps the desktop gallery and makes a three-card mobile list. */
.motion .hall-pin { height: 740px; min-height: 0; padding-top: var(--sec-pad); }
.hall .sec-title { font-size: var(--h2); }
.hall .hall-name { font-size: 30px; }
.hall .hall-desc { font-size: 16px; }
.hall .hall-cap { bottom: 40px; }
.hall .hall-view { outline-offset: -4px; }
.hall .hall-head .sec-head { max-width: 25rem; }
.hall .screen { border-radius: 12px; }
.hall-view-toggle { margin-left: 10px; font: 600 14px/1.3 var(--sans); color: var(--peri); background: transparent; border: 0; border-bottom: 1px solid #a9b8ec80; padding: 10px 0; cursor: pointer; }
/* Static view is available on desktop, and is the default for mobile/reduced motion. */
html:not(.motion) .hall-pin, .hall.is-grid .hall-pin { height: auto; min-height: 0; padding: var(--sec-pad) 0; }
html:not(.motion) .hall .sec-head, .hall.is-grid .sec-head { max-width: 100%; }
.hall.is-grid .hall-view { position: relative; inset: auto; perspective: none; margin-top: 34px; }
.hall.is-grid .hall-world { position: relative; inset: auto; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; transform: none; }
.hall.is-grid .screen { position: relative; inset: auto; width: auto; transform: none !important; opacity: 1 !important; filter: none !important; pointer-events: auto !important; }
.hall.is-grid .screen-shot { aspect-ratio: 4/3; height: auto; }
.hall.is-grid .screen-shot img { transform: none !important; }
.hall.is-grid .screen-cap { display: block; }
.hall.is-grid .hall-cap { display: none; }
.hall.is-grid .hall-all { display: flex; justify-content: space-between; }



/* Process: four steps along one line. The line fills with light as the section scrolls into view (site.js)
   and each step's marker and period come on as the light reaches it. The line is the order: no numbers,
   no boxes. On narrow screens the line runs down the left edge (--vert tells the script which way). */
.steps-run { position: relative; padding-top: 38px; }
.steps-beam { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.steps-beam i { position: absolute; inset: 0; background: var(--cobalt); transform-origin: 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); list-style: none; }
.steps li { position: relative; container-type: inline-size; }
.steps li::before { content: ""; position: absolute; left: 0; top: -44px; width: 14px; height: 14px; border-radius: 22%; background: var(--cobalt); }
.steps h3 { font-size: min(46px, 17cqw); line-height: 1; }   /* under the section title in size; "Launch." fits its column */
.steps h3::after { content: "."; content: "." / ""; color: var(--cobalt); }
.steps p { margin-top: 16px; color: var(--slate); font-size: 16.5px; max-width: 30ch; }
.motion .steps-beam i { transform: scale(0, 1); will-change: transform; }
.motion .steps li::before { background: var(--line); transition: background-color .35s; }
.motion .steps h3::after { color: rgba(31, 63, 174, .22); transition: color .45s; }
.motion .steps li.is-on::before { background: var(--cobalt); }
.motion .steps li.is-on h3::after { color: var(--cobalt); }
@media (max-width: 860px) {
  .steps-run { --vert: 1; padding: 0 0 0 34px; }
  .steps-beam { left: 6px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps li { container-type: normal; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8px 28px; align-items: baseline; }
  .steps li::before { left: -34px; top: 8px; }
  .steps h3 { font-size: 30px; }
  .steps p { margin-top: 0; max-width: 44ch; }
  .motion .steps-beam i { transform: scale(1, 0); }
}
@media (max-width: 560px) {
  .steps li { grid-template-columns: minmax(0, 1fr); }
  .steps h3 { font-size: 28px; }
  .steps li::before { top: 7px; }
  .steps { gap: 28px; }
}
.contact-band { background: var(--night); color: var(--flare); padding: 58px 0; --dot: var(--peri); }
.contact-band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact-band h2 { font-size: clamp(32px, 3.8vw, 48px); }
.contact-band p { color: var(--mist); margin-top: 16px; max-width: 60ch; }
.contact-band a:not(.btn) { color: var(--peri); }
.contact-band .btn { flex-shrink: 0; }
.contact-band :focus-visible { outline-color: var(--peri); }
.foot { background: var(--paper); }
.form-preview { margin-bottom: 24px; color: var(--slate); }
.page-showcase .page-head { background: var(--night); }
/* Maintain the compact two-column phone gallery, with legible card names. */
@media (max-width: 900px) {
  .motion .hall-pin { height: auto; padding: var(--sec-pad) 0; overflow: visible; }
  .motion .hall .sec-head { max-width: none; margin-bottom: 30px; }
  .motion .hall .sec-head p { display: block; }
  .motion .hall-view { position: relative; inset: auto; perspective: none; touch-action: auto; }
  .motion .hall-world { position: relative; inset: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(var(--max),100% - 2 * var(--gutter)); margin: auto; gap: 18px; transform: none; }
  .motion .hall .screen { position: relative; inset: auto; width: auto; transform: none !important; opacity: 1 !important; filter: none !important; pointer-events: auto !important; }
  .motion .hall .screen-shot { height: auto; aspect-ratio: 4/3; }
  .motion .hall .screen-shot img { transform: none !important; }
  .motion .hall .hall-cap { display: none; }
  .motion .hall .hall-all { display: flex; }
  .motion .hall .screen-cap { display: block; }
  .hall-view-toggle { display: none; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .page-head { padding: calc(var(--mast-h) + 34px) 0 36px; }
  .page-head h1 { font-size: 36px; }
  .page-head .lede { margin-top: 18px; }
  .pp { border-radius: 18px; padding: 28px; gap: 18px; }
  .price-split { gap: 18px; }
  .price-value { font-size: 54px; }
  .price-page { padding-top: 36px; }
  .motion .hall-world, .hall-world { grid-template-columns: 1fr; gap: 16px; }
  .motion .hall .screen, .hall .screen { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; border: 1px solid #a9b8ec3b; background: var(--night-2); border-radius: 14px; overflow: hidden; }
  .motion .hall .screen-frame, .hall .screen-frame { border: 0; border-radius: 0; }
  .motion .hall .screen-bar, .hall .screen-bar { display: none; }
  .motion .hall .screen-shot, .hall .screen-shot { aspect-ratio: 1; }
  .hall .screen-cap, .motion .hall .screen-cap { display: flex; flex-direction: column; justify-content: center; padding: 16px; margin: 0; }
  .hall .screen-cap b { font-size: 19px; }
  .hall .screen-cap > span { display: none; }
  .hall .screen-cap::after { content: 'View design →'; font: 600 14px/1.3 var(--sans); margin-top: 12px; color: var(--peri); }
  .hall .hall-all { justify-content: flex-start; }
  .contact-band-in { display: grid; gap: 26px; }
  .contact-band .btn { justify-self: start; }
  .contact-band { padding: 44px 0; }
  .page-showcase .samples { gap: 14px; }
  .sample-body h3 { font-size: 16px; line-height: 1.15; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .mast .wordmark { font-size: 22px; }
  .mast .btn { padding-inline: 12px; font-size: 13px; }
  .price-value { font-size: 48px; }
  .pp { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .sample, .sample-shot img { transition: none !important; }
  .sample:hover .sample-shot img, .sample:focus-visible .sample-shot img { object-position: top center; }
}

/* Reset the gallery's positioned-screen geometry when cards are in a grid. */
.hall.is-grid .screen { margin: 0; }
.hall.is-grid .screen-cap { position: static !important; width: auto; height: auto; margin: 0; padding: 18px 2px 0; overflow: visible; clip: auto; white-space: normal; }
@media (max-width: 900px) {
  .motion .hall-world { height: auto; }
  .motion .hall .screen { margin: 0; }
  .motion .hall .screen-cap { position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; padding: 16px 2px 0; }
}
@media (max-width: 600px) {
  .motion .hall .screen-cap { padding: 16px; }
}
.hall.is-grid .hall-world { height: auto; }
.mast { --mast-bg: rgba(6, 10, 24, .94); }
body[data-tone="light"] .mast { --mast-bg: rgba(245, 247, 252, .96); }
.hall.is-grid .screen-cap { display: grid; gap: 8px; }
.hall .screen:hover, .hall .screen:focus-visible { color: var(--flare); }

@media (max-width: 1100px) and (min-width: 701px) {
  .hero-main { gap: 28px; }
  .combined-hero .hero-foot { gap: 24px; }
  .hero-actions { gap: 20px; }
}
@media (max-width: 700px) {
  .combined-hero-in { padding-block: calc(var(--mast-h) + 28px) 22px; gap: 22px; justify-content: space-between; }
  .hero-main { flex: 1; }
  .hero-copy h1 { font-size: clamp(36px, 10.7vw, 62px); line-height: 1.04; max-width: 17ch; }
  .combined-hero .hero-foot { display: block; }
  .combined-hero .lede { display: block; margin-bottom: 24px; font-size: 16px; }
  .hero-actions { justify-content: space-between; gap: 18px; }
  .hero-actions .btn { font-size: 14px; padding-inline: 18px; }
  .hero-scroll { gap: 10px; font-size: 13px; }
}
@media (max-width: 360px) {
  .combined-hero-in { padding-top: calc(var(--mast-h) + 20px); }
  .hero-main { gap: 20px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { font-size: 13px; padding-inline: 14px; }
  .hero-scroll { max-width: 130px; }
}

/* Ethan's original section palette: cool gray, cobalt tint, navy accents. */
.pp-mgmt { background: #151c36; }
.hall { background: var(--paper); color: var(--ink); --dot: var(--cobalt); }
.home .hall .sec-head p, .hall-desc, .hall-n, .hall .screen-cap span { color: var(--slate); }
.hall .screen, .hall .screen:hover, .hall .screen:focus-visible { color: var(--ink); }
.hall .more, .hall .more:hover, .hall-view-toggle { color: var(--cobalt); }
.hall-view-toggle { border-color: var(--cobalt); }
.hall .screen-frame { box-shadow: 0 1px 2px #1019350f, 0 20px 40px -20px #10193540; border: 1px solid var(--rule); }
.hall-step { background: #fff; border-color: var(--rule); color: var(--cobalt); }
.hall-step:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.hall :focus-visible { outline-color: var(--cobalt); }
.build-features { overflow: hidden; background: var(--paper-2); color: var(--ink); --dot: var(--cobalt); }
.features-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 40px; }
/* The six parts as plain type beside the wireframe: two columns, three rows, spread over the height of the
   wireframe window so the text starts and ends with it (58px is the row of steps under the window). */
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; align-content: space-between; }
.motion .feature-grid { padding-bottom: 58px; }
.feature-grid h3 { font-size: 18px; line-height: 1.2; }
.feature-grid h3::after { content: "."; content: "." / ""; color: var(--cobalt); }
.feature-grid p { margin-top: 8px; color: var(--slate); font-size: 15.5px; line-height: 1.5; }
.combined-process { background: var(--paper); }
.contact-band { background: var(--paper-2); padding-block: var(--sec-pad); }
.contact-band-in { background: #0b1020; border-radius: 26px; padding: clamp(28px, 4vw, 52px); }
.foot { background: #070b17; color: var(--flare); --dot: var(--peri); }
.foot a, .foot .wordmark { color: var(--flare); }
.foot a:hover { color: var(--peri); }
.foot-top { border-top: 0; }
.foot-legal, .foot-legal a { color: var(--mist); }
body[data-tone="light"] .mast { --mast-bg: rgba(233, 236, 243, .96); }
/* Under 1200px the text no longer fits beside the wireframe within its height, so the wireframe sits on top
   and the parts run in three columns below it (two, then one, on smaller screens). */
@media (max-width: 1199px) {
  .features-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .features-in .build { width: 100%; max-width: 680px; margin-inline: auto; }
  .feature-grid, .motion .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; padding-bottom: 0; }
}
@media (max-width: 760px) { .feature-grid, .motion .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 520px) { .feature-grid, .motion .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } .feature-grid h3 { font-size: 19px; } .feature-grid p { font-size: 16px; } }
@media (max-width: 600px) {
  .motion .hall .screen, .hall .screen { background: #fff; border-color: var(--rule); }
  .hall .screen-cap::after { color: var(--cobalt); }
}
