/* The machine showroom uses two faces: maker's marks in Plex, reading text in DM Sans. */
@font-face {
  font-family: "Studio Sans";
  src: url("demos/cv/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root[data-vibe="studio"] {
  --steel: #dce5e4;
  --black: #0a0d0e;
  --graphite: #151a1c;
  --panel: #1a2022;
  --text: #e5e9e7;
  --muted: #b3c1c0;
  --line: #354143;
  --edge: #5a696b;
  --bevel: 8px;
  --display: "Studio Sans", "Segoe UI", sans-serif;

  & body {
    font-family: var(--display);
    background: radial-gradient(ellipse 75rem 52rem at 50% 0, #243033 0, transparent 72%), var(--black);
  }
  & .mast {
    inline-size: var(--circuit-width);
    padding-inline: clamp(8px, 2vw, 26px);
    background: linear-gradient(180deg, #192022d9, #0e1315);
  }
  & .wordmark {
    gap: .28em;
    color: #f2f5f3;
    font: 700 clamp(2.25rem, 3.6vw, 3.8rem)/.99 var(--display);
    letter-spacing: -.068em;
  }
  & .wordmark::before {
    inline-size: 1.01em;
    block-size: 1.01em;
    border: 1px solid color-mix(in srgb, var(--green) 68%, #eaf3eb);
    border-radius: .18em;
    box-shadow: inset 0 1px 3px #ffffff3b, 0 2px 5px #0009;
  }
  & .identity { gap: .48rem; }
  & .identity small {
    max-inline-size: 36ch;
    color: var(--muted);
    font: 400 clamp(.73rem, .93vw, .88rem)/1.35 var(--display);
    letter-spacing: .01em;
  }
  & .mast nav { gap: clamp(.78rem, 1.65vw, 1.65rem); }
  & .mast nav a { color: var(--steel); font: 600 .88rem/1 var(--display); }
  & .mast nav a[aria-current] { color: var(--green); }
  & .mast nav a[aria-current]::after {
    content: ""; position: absolute; inset: auto 26% 5px; height: 2px;
    background: var(--green); box-shadow: 0 0 5px rgb(var(--accent-rgb) / .25);
  }
  & .theme-options { gap: .26rem; }
  & .theme-options label { min-width: 0; }
  & .theme-options label > span, & .theme-options .vibe-label {
    min-width: 0; padding: .46em .7em; border-color: #4d5859; border-radius: 4px;
    color: #ced8d7; background: #161b1d; font: 500 .73rem/1.2 var(--mono);
    box-shadow: inset 0 1px #ffffff0c;
  }
  & .theme-options label > span::before {
    content: ""; display: inline-block; margin-right: .4em; vertical-align: .07em;
    width: .42em; aspect-ratio: 1; border-radius: 50%; background: var(--swatch);
  }
  & .theme-options input[value="green"] + span { --swatch: #59ff83; }
  & .theme-options input[value="blue"] + span { --swatch: #529eff; }
  & .theme-options input[value="pink"] + span { --swatch: #ff62c0; }
  & .theme-options input:checked + span { border-color: var(--green); color: var(--green); background: #111a18; }
  & .theme-options .vibe-label { background: transparent; color: var(--muted); }
  & .reel::before {
    animation: none; opacity: 1;
    box-shadow: 0 0 0 1px #111718, 0 4px 14px #0007, 0 0 22px rgb(var(--accent-rgb) / .09);
  }
  & :is(.housing, .viewer-window) {
    background: linear-gradient(150deg, #c1c8c6, #657073 9%, #3b4547 43%, #161a1c 65%, #899699 91%, #465051);
  }
  & .housing::before { background: linear-gradient(165deg, #353d3e, #151b1c 42%, #080a0b 72%, #586164); }
  & #showroom-door { --door-art: url("media/studio-titanium-doors.webp"); }
  & .door-caption {
    padding: .52em 1em; border-radius: 3px;
    background: linear-gradient(#2e3637, #141a1b); border-color: #778082;
    color: #f1f5f2; font: 600 clamp(.82rem, 2.8cqh, 1rem)/1.15 var(--display);
    letter-spacing: .035em;
  }
  & .travel { gap: clamp(1.3rem, 4.2vw, 3.5rem); }
  & .travel .control-label, & .gallery-controls .position {
    color: #edf2ee; font: 500 clamp(.92rem, 1.2vw, 1.1rem)/1 var(--mono); letter-spacing: .025em;
  }
  & .travel button { color: var(--green); }
  & .browse-examples { color: var(--steel); font: 600 .98rem/1.25 var(--display); text-decoration-color: var(--edge); }
  & .browse-examples:hover { text-decoration-color: var(--green); color: var(--green); }
  & .utilities button { color: var(--muted); font-family: var(--mono); }
  & :is(.section.offer, .questions, .cursor-main) { background: linear-gradient(160deg, #192022, #101517 55%); }
  & :is(.process, .enquiry) { background: #111719; }
  & .founder-note { background: linear-gradient(115deg, #192124, #101618 65%); }
  & :is(.section h2, .questions h1, .cursor-main h1, .examples-head h1) {
    font-family: var(--display); font-weight: 700; letter-spacing: -.055em; color: var(--steel);
  }
  & :is(.plan-grid h3, .process h3, .offer-extras h3, .question-list summary) { font-family: var(--display); letter-spacing: -.02em; }
  & .plan-grid th.plan { background: linear-gradient(#242c2e, #171d1e); }
  & .plan-grid tr[data-plan-row="monthly"] .plan { background: #171d1e; }
  & .plan-grid .amount strong { font-family: var(--display); letter-spacing: -.065em; }
  & .plan-grid tbody tr:nth-child(even) { background: #ffffff03; }
  & .section-type { font: 600 .74rem/1.4 var(--mono); letter-spacing: .14em; }
  & #enquiry-form :is(input:not([type="checkbox"]), select, textarea) {
    background: #0c1214; color: var(--text); font-family: var(--display);
  }
  & .action { border-radius: 3px; font-family: var(--display); }
  & .line-trace .trace-track { stroke: #465658; opacity: .69; }
  & .line-trace .trace-head { stroke: #eefff5; stroke-width: 2; }
  & .line-trace .trace-core { stroke-width: 1.65; }
  & .line-trace .trace-glow { stroke-width: 4; filter: blur(2px); }
  & .examples-head .wordmark { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
  & .gallery-controls h2 { color: var(--steel); font-family: var(--display); }
  & .viewer-bar, & .gallery-controls, & .examples-head { color: var(--steel); }
  & .tier-stamp {
    padding: .32em .59em .25em; border: 1px solid #aab7b2; border-radius: 3px;
    background: linear-gradient(135deg, #20282a, #101414); color: #edf1ec;
    box-shadow: inset 0 0 0 2px #192023, 0 3px 8px #0006; text-shadow: none;
    font: 600 clamp(.8rem, 2.45cqw, 1.72rem)/1.05 var(--display); letter-spacing: .035em;
  }
  & .tier-stamp::after { display: none; }
  & .stamp-action { color: var(--green); font: 500 clamp(.64rem, 1.45cqw, .88rem)/1.25 var(--mono); }
}
@container (max-aspect-ratio: 1/1) {
  :root[data-vibe="studio"] #showroom-door { --door-art: url("media/studio-titanium-doors-tall.webp"); }
}
@media (min-width: 1100px) {
  :root[data-vibe="studio"] .mast {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "nav brand palette"; gap: 1.1rem; align-items: center;
    min-height: clamp(96px, 12vh, 132px); padding-block: 1rem 1.35rem;
  }
  :root[data-vibe="studio"] .mast .identity { grid-area: brand; }
  :root[data-vibe="studio"] .mast nav { grid-area: nav; justify-self: center; }
  :root[data-vibe="studio"] .mast .theme-options { grid-area: palette; justify-self: center; }
}
@media (max-width: 1099px) {
  :root[data-vibe="studio"] .identity small { max-inline-size: none; }
}
@media (max-width: 440px) {
  :root[data-vibe="studio"] .mast { padding-block: .85rem .35rem; gap: 2px; }
  :root[data-vibe="studio"] .mast .wordmark { font-size: 2.2rem; }
}
@media (max-height: 470px) and (orientation: landscape) {
  :root[data-vibe="studio"] .mast { padding-block: .25rem; gap: 0; }
  :root[data-vibe="studio"] .mast .wordmark { font-size: 1.45rem; }
  :root[data-vibe="studio"] .identity { gap: 0; }
}
@media (forced-colors: active) {
  :root[data-vibe="studio"] .theme-options input:checked + span { border: 2px solid Highlight; }
  :root[data-vibe="studio"] .mast nav a[aria-current]::after { background: Highlight; }
  :root[data-vibe="studio"] .door-caption { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
}

/* Quiet mode prints the words as a whole, preserving kerning and selection. */
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  :root[data-vibe="studio"] .matrix-run > .text-source {
    position: static !important; width: auto; height: auto;
    clip-path: none; white-space: inherit;
  }
  :root[data-vibe="studio"] .matrix-run > [aria-hidden="true"] { display: none; }
}
