/* Reset, type, frame, header, footer */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, .display {
  font-family: var(--f-display); font-weight: 800; font-stretch: 74%;
  line-height: .92; letter-spacing: -.012em; text-transform: uppercase; text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; font-weight: 750; font-stretch: 82%; letter-spacing: 0; }
p { text-wrap: pretty; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 48ch; }
.dim { font: 500 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.dim::before { content: ""; display: inline-block; width: 18px; height: 8px; margin-right: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 4px, var(--ink) 4px 8px); }
em { font-style: normal; }
.hl { background: var(--accent); color: var(--accent-ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* ---------- frame: full width or boxed ---------- */
.backdrop { display: none; position: fixed; inset: -40px; z-index: 0; background: var(--plate) center / cover; filter: blur(30px) saturate(.7); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(var(--bg-rgb), .6); }
.frame { position: relative; z-index: 1; width: 100%; max-width: var(--frame); margin: 0 auto; background: var(--bg); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
@media (min-width: 1100px) {
  [data-layout="boxed"] .backdrop { display: block; }
  [data-layout="boxed"] .frame { margin: 30px auto; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px rgba(0, 0, 0, .3); }
}

/* ---------- hazard stripe ---------- */
.stripe { height: 14px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, #121315 14px 28px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(var(--bg-rgb), .95); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.bar { position: relative; height: 100%; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, #121315 6px 12px); box-shadow: 0 0 0 2px #121315; }
.brand-word { display: grid; gap: 3px; line-height: 1; white-space: nowrap; }
.brand-word b { font: 850 1.16rem/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; letter-spacing: .01em; }
.brand-word > span { font: 850 1.16rem/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.brand-word i { font: 500 .56rem/1 var(--f-mono); font-style: normal; letter-spacing: .14em; background: var(--ink); color: var(--bg); padding: 3px 5px 2px; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.nav a { position: relative; display: inline-flex; align-items: center; height: 40px; text-decoration: none; font: 700 .98rem/1 var(--f-display); font-stretch: 84%; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-tel { display: inline-flex; align-items: center; height: 40px; padding: 0 4px; font: 500 .84rem/1 var(--f-mono); letter-spacing: .05em; text-decoration: none; white-space: nowrap; }
.header-tel:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.icon-btn { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border: 1.5px solid var(--line-2); transition: background .2s, color .2s, border-color .2s; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ico { width: 20px; height: 20px; flex: none; }
.menu-btn { display: none; }
.header-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left; opacity: 0; transition: opacity .3s; }
.is-scrolled .header-progress { opacity: 1; }
@media (max-width: 1160px) { .header-tel { display: none; } }
@media (max-width: 980px) {
  .site-header .nav, .site-header .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 420px) {
  .brand-mark { width: 28px; height: 28px; }
  .brand-word b, .brand-word > span { font-size: .98rem; }
  .brand-word i { display: none; }
}

/* ---------- load settings panel: sits inside .bar so it lines up under its button at any width ---------- */
.prefs { position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; width: min(310px, 100%); background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); padding: 18px 18px 12px; box-shadow: 8px 8px 0 rgba(var(--ink-rgb), .9); }
[data-theme="night"] .prefs { box-shadow: 8px 8px 0 var(--accent); }
.prefs-title { font: 500 var(--fs-mono) var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.prefs-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.prefs-label { font-size: .86rem; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line-2); }
.seg button { padding: 8px 6px; font-size: .84rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button .ico { width: 15px; height: 15px; }
.seg button + button { border-left: 1.5px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- mobile menu + dock ---------- */
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: var(--bg); padding: 24px var(--gutter) 120px; overflow: auto; display: flex; flex-direction: column; gap: 22px; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: block; padding: 16px 0; font: 800 2.3rem/1 var(--f-display); font-stretch: 74%; text-transform: uppercase; text-decoration: none; }
.mobile-menu-tel { font: 500 .9rem var(--f-mono); letter-spacing: .05em; }
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.7fr; background: var(--bg); border-top: 1.5px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .dock > * { height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 750 1rem/1 var(--f-display); font-stretch: 84%; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
  .dock-main { background: var(--accent); color: var(--accent-ink); }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
}

/* ---------- footer ---------- */
.site-footer { background: #0e0f10; color: #ebe8df; --bg: #0e0f10; --bg-rgb: 14, 15, 16; --ink: #ebe8df; --ink-2: #a9a8a1; --ink-rgb: 235, 232, 223; --line: rgba(255, 255, 255, .16); --line-2: rgba(255, 255, 255, .34); --mark: #ffcd00; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.footer-words { font: 800 clamp(2.4rem, 7vw, 6.6rem)/.9 var(--f-display); font-stretch: 72%; text-transform: uppercase; max-width: 13ch; }
.footer-words span { color: var(--accent); }
.footer-big { font: 500 clamp(1.2rem, 2.2vw, 1.9rem)/1 var(--f-mono); letter-spacing: .02em; }
.footer-big a { text-decoration: none; border-bottom: 4px solid var(--accent); padding-bottom: 6px; }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1.2fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(40px, 5vw, 72px); }
.footer-brand p { margin-top: 18px; color: var(--ink-2); max-width: 40ch; font-size: .96rem; }
.footer-ids { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 var(--fs-mono) var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink) !important; }
.footer-col .dim { margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: .96rem; margin-bottom: 6px; color: var(--ink-2); }
.footer-col a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.footer-col a:hover { background-size: 100% 2px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 22px 34px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.footer-legal a { color: var(--ink); }
.footer-legal p:first-child a { margin-left: 12px; }
@media (max-width: 980px) { .footer-in { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-news { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-in { grid-template-columns: 1fr; } }

/* ---------- motion: reveal on scroll (only when JS and Full motion) ---------- */
.js[data-motion="full"] [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js[data-motion="full"] [data-reveal].is-in { opacity: 1; transform: none; }
.wipe { position: fixed; inset: 0 -20vw; z-index: 300; background: repeating-linear-gradient(-45deg, #ffcd00 0 40px, #121315 40px 80px); pointer-events: none; transform: translateX(-130%) skewX(-8deg); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; font-size: .9rem; font-weight: 600; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
