/* Reset, type, layout frame, header, footer, buttons, forms, drawers. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--rail); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
:root[data-motion="calm"] { scroll-behavior: auto; }
body { margin: 0; font: 400 18px/1.55 var(--f-body); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
picture { display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(60px, 10.4vw, 184px); }
h2 { font-size: clamp(46px, 6.6vw, 112px); }
h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--blue); }
.lede { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
p { text-wrap: pretty; }

.frame { max-width: var(--frame); margin-inline: auto; background: var(--bg); box-shadow: 0 0 0 1px var(--line); min-height: 100vh; }
.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--blue); color: var(--night); padding: 12px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- small parts ---------- */
.tag { display: inline-flex; align-items: center; gap: 10px; font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tag i, .lamp { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.tag-red i, .lamp-stop { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 24%, transparent); }
.lamp-easy { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 24%, transparent); }
:root[data-motion="full"] .tag i { animation: lamp 2.4s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .35; } }

.lane { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.lane i { display: block; height: 3px; background: repeating-linear-gradient(90deg, var(--line-2) 0 46px, transparent 46px 78px); transform-origin: left; }
.js .lane[data-reveal] i { transform: scaleX(0); transition: transform 1.3s var(--ease); }
.js .lane[data-reveal].is-in i { transform: none; }

.js [data-reveal="up"] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal="up"].is-in { opacity: 1; transform: none; }
:root[data-motion="calm"] [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
:root[data-motion="calm"] .lane i { transform: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 24px; font: 700 15px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn .ico { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: var(--night); }
.btn-primary:hover { background: #5b97ff; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: #e8413f; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); color: var(--ink); transition: border-color .2s, background .2s; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.icon-btn .ico { width: 20px; height: 20px; }
.link-btn { font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.tel { text-decoration: none; font-variant-numeric: tabular-nums; }
.fine { font-size: 14px; color: var(--ink-3); }
.fine a { color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-in { position: relative; display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { display: flex; gap: 4px; height: 34px; transform: skewX(-14deg); }
.brand-mark i { width: 9px; background: var(--blue); }
.brand-mark i + i { background: var(--red); }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 800 27px/.9 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.brand-word small { font: 500 8.6px/1 var(--f-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); margin-top: 5px; white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 30px; }
.nav a { position: relative; display: block; padding: 8px 0; font: 600 14px/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-tel { font: 600 14px/1 var(--f-mono); letter-spacing: .04em; margin-right: 8px; }
.header-tel:hover { color: var(--blue-ink); }
.ticket-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s; }
.ticket-btn:hover, .ticket-btn[aria-expanded="true"] { border-color: var(--ink); }
.ticket-btn .ico { width: 18px; height: 18px; }
.ticket-count, .dock b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; font: 600 11px/1 var(--f-mono); background: var(--bg-3); color: var(--ink-2); border-radius: 11px; }
.ticket-count.has-items, .dock b.has-items { background: var(--blue); color: var(--night); }
.menu-btn { display: none; }
.header-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(var(--progress, 0)); transform-origin: left; }

/* Display settings: lives inside .header-in so it always sits under its button, whatever the screen width. */
.prefs { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: min(310px, 100%); padding: 18px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.prefs-title { font: 800 22px/1 var(--f-display); text-transform: uppercase; margin-bottom: 14px; }
.prefs-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; padding: 8px 0; }
.prefs-label { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 8px; font: 600 13px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); }
.swatch-night { background: #090b10; }
.swatch-day { background: #f3f5f8; }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; background: var(--bg); padding: 28px var(--gut) 120px; overflow-y: auto; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 16px 0; font: 800 clamp(38px, 11vw, 60px)/1 var(--f-display); text-transform: uppercase; text-decoration: none; }
.mobile-menu-tel { margin-top: 26px; font: 500 13px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mobile-menu-tel a { display: inline; padding: 0; font: inherit; color: var(--blue-ink); }

@media (max-width: 1240px) { .header-tel { display: none; } }
@media (max-width: 1060px) {
  .nav, .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 700px) {
  :root { --header-h: 62px; }
  .ticket-btn { display: none; }
  .brand-word b { font-size: 24px; }
  .brand-mark { height: 30px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-bottom: 28px; overflow: hidden; }
.footer-shout { padding: clamp(40px, 6vw, 90px) var(--gut) clamp(26px, 4vw, 56px); text-align: center; }
.footer-shout span { display: block; font: 900 clamp(30px, 8.2vw, 148px)/.86 var(--f-display); text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.footer-in { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr .8fr; gap: 48px; padding-block: 56px; }
.footer-brand p { margin-top: 18px; max-width: 36ch; color: var(--ink-2); font-size: 16px; }
.footer-brand .footer-area { font: 500 11.5px/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.footer-col .tag { margin-bottom: 16px; }
.footer-col p, .footer-col li { font-size: 16px; color: var(--ink-2); margin-bottom: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-col .footer-big { font: 800 clamp(34px, 3.2vw, 46px)/1 var(--f-display); color: var(--ink); margin-bottom: 12px; }
.footer-big a:hover { color: var(--blue-ink); text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.footer-legal a { color: var(--ink-2); }
.footer-credit { margin-left: auto; }
@media (max-width: 1000px) { .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .footer-in { grid-template-columns: 1fr; gap: 36px; padding-block: 40px; }
  .footer-credit { margin-left: 0; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- forms ---------- */
.form-box { background: var(--bg-2); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 44px); }
.form-box fieldset + fieldset { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-box legend { font: 800 30px/1 var(--f-display); text-transform: uppercase; padding: 0; margin-bottom: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field .opt { color: var(--ink-3); margin-left: 6px; }
.field input, .field textarea, .field select { width: 100%; min-height: 54px; padding: 14px 16px; font-size: 17px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 0; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 28%, transparent); }
.field ::placeholder { color: var(--ink-3); opacity: 1; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }
.field-msg { font-size: 14px; color: var(--red-ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin-top: 14px; font-size: 16px; }
.form-status.err { color: var(--red-ink); }
.form-status.ok { color: var(--blue-ink); }
.form-thanks h3 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 14px; }
.form-thanks p { color: var(--ink-2); }
.form-thanks a { color: var(--blue-ink); }
.from-ticket { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 24px; border: 1px solid var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); font-size: 16px; }
.from-ticket .ico { flex: none; color: var(--blue-ink); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- job toggles (add to ticket) ---------- */
.jobs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.job { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 10px; border: 1px solid var(--line-2); text-decoration: none; font: 500 16px/1.15 var(--f-body); color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.job-box { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.job-box .ico { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease); }
.job:hover { border-color: var(--ink); }
.job[aria-pressed="true"] { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.job[aria-pressed="true"] .job-box { background: var(--blue); border-color: var(--blue); color: var(--night); }
.job[aria-pressed="true"] .job-box .ico { opacity: 1; transform: none; }
.job-state::after { content: 'Add'; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.job[aria-pressed="true"] .job-state::after { content: 'On ticket'; color: var(--blue-ink); }

/* ---------- ticket drawer ---------- */
.ticket { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0, 0, 0, .45); overflow-y: auto; }
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(135deg, var(--blue) 0 14px, transparent 14px 28px); }
.ticket-head { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.ticket-empty { color: var(--ink-2); font-size: 16px; }
.ticket-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 17px; }
.ticket-items small { display: block; font: 500 10px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.ticket-items button { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-3); }
.ticket-items button:hover { color: var(--red-ink); }
.ticket-items .ico { width: 16px; height: 16px; }
.ticket-add label { display: block; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.ticket-add-row { display: flex; gap: 8px; }
.ticket-add input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-2); font-size: 16px; }
.ticket-add input:focus { outline: none; border-color: var(--blue); }
.ticket-foot { margin-top: auto; display: grid; gap: 14px; justify-items: start; }
.ticket-note { font-size: 14px; color: var(--ink-3); }

.dock { display: none; }
@media (max-width: 700px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.3fr; background: var(--bg-2); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); }
  .dock > * { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; font: 700 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); }
  .dock .dock-main { background: var(--blue); color: var(--night); border-right: 0; }
  .ticket { top: auto; max-height: 82vh; border-left: 0; border-top: 1px solid var(--line-2); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translateX(-50%); padding: 12px 18px; background: var(--ink); color: var(--bg); font: 600 14px/1.2 var(--f-body); letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 700px) { .toast { bottom: 76px; } }
.wipe { position: fixed; inset: 0; z-index: 150; background: var(--blue); transform: translateX(-130%) skewX(-14deg); pointer-events: none; }

@media print { .site-header, .dock, .ticket, .site-footer, .toast, .wipe { display: none !important; } }
