/* ==========================================================
   STP Specialty Turn Products, Inc. — site styles
   Palette: precision red, graphite, brushed titanium, white,
   restrained cool-blue technical accent.
   ========================================================== */

:root {
  --red: #d83a2e;
  --red-dark: #b32d23;
  --graphite: #16181b;
  --graphite-2: #1f2327;
  --graphite-3: #2a2f34;
  --ti: #8e949b;
  --ti-light: #c4c8cd;
  --ti-pale: #eceef0;
  --paper: #f5f6f7;
  --white: #ffffff;
  --blue: #5aa9e6;
  --blue-ink: #2a6fa8;
  --text: #16181b;
  --text-muted: #4a5057;
  --line: rgba(22, 24, 27, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);

  --f-head: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Franklin Gothic Medium", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.005em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; font-family: var(--f-head); text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- utility bar ---------- */
.topbar { background: var(--graphite); color: var(--ti-light); font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--red); }
.topbar__tag { display: none; }
@media (min-width: 720px) { .topbar__tag { display: inline; } }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(22, 24, 27, 0.10); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { height: 62px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font-family: var(--f-head); font-size: 1.12rem; letter-spacing: 0.05em; text-transform: uppercase; }
.brand__text span { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
@media (max-width: 520px) { .brand img { height: 52px; } .brand__text strong { font-size: 0.92rem; } .brand__text span { display: none; } }
@media (max-width: 380px) { .brand__text { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; font-family: var(--f-head); font-size: 1rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 10px 14px;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--line); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--graphite); content: ""; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: max-height 0.3s, opacity 0.25s, visibility 0.3s;
  }
  .nav-open .nav { max-height: 520px; visibility: visible; opacity: 1; box-shadow: 0 18px 30px rgba(22, 24, 27, 0.12); }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .nav a:not(.btn)::after { left: 0; right: auto; width: 36px; bottom: -1px; right: auto; }
  .nav .btn { margin: 18px 0 0; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; border: 1px solid transparent;
  font-family: var(--f-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1;
  padding: 16px 24px; border-radius: 0; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--red); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--primary:focus-visible { clip-path: none; }
.btn--outline { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn--outline:hover { background: var(--graphite); color: #fff; }
.on-dark .btn--outline { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.on-dark .btn--outline:hover { background: #fff; color: var(--graphite); }
.btn--light { background: #fff; color: var(--graphite); }
.btn--light:hover { background: var(--graphite); color: #fff; }
.btn--sm { padding: 13px 18px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-family: var(--f-head); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: inherit; border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.text-link:hover { color: var(--red); }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--paper { background: var(--paper); background-image: linear-gradient(to right, rgba(22,24,27,0.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(22,24,27,0.045) 1px, transparent 1px); background-size: 72px 72px; }
.section--dark { background-color: var(--graphite); background-image: linear-gradient(rgba(22,24,27,0.80), rgba(22,24,27,0.90)), url("../assets/img/brushed-dark.jpg"); background-size: auto, 480px; color: #fff; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn):not(.text-link) { color: var(--blue); }
.section--dark a:not(.btn):not(.text-link):hover { color: #fff; }
.section--dark p { color: #d7dade; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--ti-light); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { color: var(--text-muted); font-size: 1.15rem; }
.section--dark .section-head p { color: #d7dade; }
.lead { font-size: 1.2rem; color: var(--text-muted); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background-color: var(--graphite); background-image: linear-gradient(105deg, rgba(22,24,27,0.96) 0%, rgba(22,24,27,0.86) 55%, rgba(22,24,27,0.78) 100%), url("../assets/img/brushed-dark.jpg"); background-size: auto, 480px; color: #fff; }
.hero__rings { position: absolute; right: -14%; top: 50%; width: min(980px, 110vw); aspect-ratio: 1; transform: translateY(-50%); opacity: 0.9; pointer-events: none; animation: spin 140s linear infinite; }
.hero__ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background-image: repeating-linear-gradient(to right, rgba(196,200,205,0.5) 0 1px, transparent 1px 10px), repeating-linear-gradient(to right, rgba(196,200,205,0.75) 0 1px, transparent 1px 100px); background-size: 100% 8px, 100% 16px; background-repeat: no-repeat; background-position: left bottom, left bottom; }
.hero .container { position: relative; display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 120px); }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.02fr 0.98fr; } }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #dfe2e5; max-width: 40em; margin-bottom: 2em; }
.hero__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hero__links a { color: var(--ti-light); text-decoration: none; border-bottom: 1px solid rgba(196,200,205,0.4); padding-bottom: 2px; }
.hero__links a:hover { color: #fff; border-color: var(--red); }

.drawing-frame { position: relative; border: 1px solid rgba(196, 200, 205, 0.45); background: #171a1e; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.drawing-frame::before, .drawing-frame::after, .corner-b::before, .corner-b::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--red); pointer-events: none; z-index: 2; }
.drawing-frame::before { left: -7px; top: -7px; border-right: 0; border-bottom: 0; }
.drawing-frame::after { right: -7px; top: -7px; border-left: 0; border-bottom: 0; }
.drawing-frame .corner-b::before { left: -7px; bottom: -7px; border-right: 0; border-top: 0; }
.drawing-frame .corner-b::after { right: -7px; bottom: -7px; border-left: 0; border-top: 0; }
.title-block { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid rgba(196, 200, 205, 0.45); position: relative; }
.title-block__logo { background: #fff; padding: 10px 14px; display: flex; align-items: center; border-right: 1px solid rgba(196, 200, 205, 0.45); }
.title-block__logo img { height: 66px; width: auto; }
.title-block__fields { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ti-light); }
.title-block__fields div { padding: 8px 12px; border-bottom: 1px solid rgba(196,200,205,0.22); border-right: 1px solid rgba(196,200,205,0.22); }
.title-block__fields div:nth-child(2n) { border-right: 0; }
.title-block__fields div:nth-last-child(-n+2) { border-bottom: 0; }
.title-block__fields b { display: block; color: var(--ti); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.16em; margin-bottom: 2px; }
.title-block__fields span { color: #fff; }
@media (max-width: 520px) {
  .title-block { grid-template-columns: 1fr; }
  .title-block__logo { border-right: 0; border-bottom: 1px solid rgba(196,200,205,0.45); justify-content: center; }
}
.fig-note { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ti); text-transform: uppercase; margin-top: 14px; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background-color: var(--graphite); background-image: linear-gradient(100deg, rgba(22,24,27,0.97), rgba(22,24,27,0.84)), url("../assets/img/brushed-dark.jpg"); background-size: auto, 480px; color: #fff; }
.page-hero__rings { position: absolute; right: -10%; top: 50%; width: min(640px, 90vw); aspect-ratio: 1; transform: translateY(-50%); opacity: 0.8; pointer-events: none; animation: spin 160s linear infinite; }
.page-hero .container { position: relative; padding-block: clamp(52px, 7vw, 92px); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18em; }
.page-hero p { color: #dfe2e5; font-size: 1.18rem; max-width: 42em; margin: 0; }
.crumbs { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px; color: var(--ti); }
.crumbs a { color: var(--ti-light); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0 120px, rgba(196,200,205,0.35) 120px); }

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ---------- spec strip ---------- */
.spec-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.spec-strip .container { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .spec-strip .container { grid-template-columns: repeat(4, 1fr); } }
.spec-strip__item { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
.spec-strip__item:nth-child(2n) { border-right: 0; padding-left: 24px; }
@media (min-width: 900px) {
  .spec-strip__item { padding: 32px 24px; }
  .spec-strip__item:first-child { padding-left: 0; }
  .spec-strip__item:nth-child(2n) { border-right: 1px solid var(--line); }
  .spec-strip__item:last-child { border-right: 0; }
}
@media (max-width: 899px) { .spec-strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.spec-strip__no { font-family: var(--f-mono); font-size: 0.75rem; color: var(--red); letter-spacing: 0.14em; }
.spec-strip__item h3 { font-size: 1.15rem; margin: 6px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.spec-strip__item p { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- layout helpers ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr 0.85fr; } .split--wide-right { grid-template-columns: 0.85fr 1.15fr; } }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* ---------- spec cards ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); padding: 32px 28px 30px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 38px; height: 3px; background: var(--red); transition: width 0.35s; }
.card:hover { transform: translateY(-3px); border-color: rgba(22,24,27,0.4); box-shadow: 0 16px 34px rgba(22,24,27,0.10); }
.card:hover::before { width: calc(100% + 2px); }
.card__no { position: absolute; right: 22px; top: 20px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: #6b7178; }
.card h3 { margin-top: 6px; padding-right: 36px; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card p + p { margin-top: 1em; }
.card__icon { width: 46px; height: 46px; color: var(--red); margin-bottom: 20px; }
.section--dark .card { background: rgba(255,255,255,0.04); border-color: var(--line-dark); }
.section--dark .card p { color: #cfd3d7; }
.section--dark .card:hover { border-color: rgba(255,255,255,0.5); box-shadow: none; }
.section--dark .card__no { color: var(--ti-light); }

/* ---------- process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 36px 64px; margin: 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.85rem; color: #fff; border: 1px solid var(--blue); background: var(--graphite); z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: rgba(90,169,230,0.45); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin: 6px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.steps p { margin: 0; color: #cfd3d7; font-size: 1rem; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 22px; }
  .steps li { padding: 64px 0 0; }
  .steps li::after { left: 44px; right: -22px; top: 21px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- spec block (definition list) ---------- */
.spec-block { border: 1px solid var(--line); background: #fff; font-size: 1rem; }
.spec-block__head { background: var(--graphite); color: #fff; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 20px; display: flex; justify-content: space-between; border-bottom: 3px solid var(--red); }
.spec-block dl { margin: 0; }
.spec-block .row { display: grid; grid-template-columns: 130px 1fr; border-bottom: 1px solid var(--line); }
.spec-block .row:last-child { border-bottom: 0; }
.spec-block dt { padding: 16px 20px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); background: var(--paper); border-right: 1px solid var(--line); }
.spec-block dd { margin: 0; padding: 14px 20px; overflow-wrap: anywhere; }
.spec-block dd a { font-weight: 600; }
@media (max-width: 480px) { .spec-block .row { grid-template-columns: 1fr; } .spec-block dt { border-right: 0; padding-bottom: 8px; } .spec-block dd { padding-top: 10px; } }

/* ---------- checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 18px; height: 10px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg) scale(0.9); transform-origin: center; top: 0.35em; }
.section--dark .checklist li { color: #e3e5e8; }

/* ---------- concept diagram + figure ---------- */
.figure { border: 1px solid var(--line-dark); background: #171a1e; }
.figure img { width: 100%; }
.figure--light { border-color: var(--line); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,0.0) 0 22px, rgba(255,255,255,0.05) 22px 23px); }
.cta-band .container { position: relative; display: grid; gap: 28px; align-items: center; padding-block: clamp(48px, 6vw, 76px); }
@media (min-width: 860px) { .cta-band .container { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-row { justify-content: flex-end; } }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cta-band p { margin: 0; color: #fff; opacity: 0.95; font-size: 1.1rem; }
.cta-band .btn--outline { border-color: #fff; color: #fff; }
.cta-band .btn--outline:hover { background: #fff; color: var(--red); }

/* ---------- forms ---------- */
.form-panel { border: 1px solid var(--line); background: #fff; position: relative; }
.form-panel__head { background: var(--graphite); color: #fff; padding: 22px 28px; border-bottom: 3px solid var(--red); }
.form-panel__head h2, .form-panel__head h3 { color: #fff; margin: 0 0 4px; font-size: 1.6rem; }
.form-panel__head p { margin: 0; color: #cfd3d7; font-size: 0.98rem; }
.form-panel form { padding: 28px; }
.form-grid { display: grid; gap: 20px 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; padding: 13px 14px; border: 1px solid #aab0b6; border-radius: 0; border-bottom: 2px solid #aab0b6; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-ink); border-bottom-color: var(--red); box-shadow: 0 0 0 3px rgba(90,169,230,0.25); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field .hint { display: block; margin-top: 7px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
.file-drop { border: 1px dashed var(--ti); background: var(--paper); padding: 18px; }
.file-drop input[type="file"] { padding: 8px; background: #fff; border-bottom-width: 1px; }
.file-list { margin: 10px 0 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 0.8rem; color: var(--text-muted); }
.file-list li { margin: 0 0 4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--text-muted); margin: 18px 0 0; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--blue-ink); background: #eef5fb; font-size: 0.98rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: var(--red); background: #fdeeec; }
.form-status.is-ok { border-color: #2e7d4f; background: #edf7f0; }

/* ---------- policy pages ---------- */
.policy { display: grid; gap: 44px; }
@media (min-width: 960px) { .policy { grid-template-columns: 280px 1fr; align-items: start; } .policy__toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.policy__toc { border: 1px solid var(--line); background: var(--paper); padding: 22px 22px 14px; font-size: 0.95rem; }
.policy__toc h2 { font-size: 0.78rem; font-family: var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; font-weight: 500; }
.policy__toc ol { margin: 0; padding-left: 1.3em; }
.policy__toc li { margin-bottom: 8px; line-height: 1.35; }
.policy__toc a { text-decoration: none; color: var(--text); }
.policy__toc a:hover { color: var(--red); }
.policy__body { max-width: 760px; }
.policy__body h2 { font-size: 1.55rem; margin-top: 2.1em; padding-top: 0.2em; border-top: 1px solid var(--line); padding-top: 1.1em; }
.policy__body h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.policy__body ul { margin-bottom: 1.3em; }
.updated { display: inline-block; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.35); padding: 8px 12px; margin-top: 22px; color: #fff; }
.callout { border-left: 4px solid var(--red); background: var(--paper); padding: 18px 22px; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: #cfd3d7; font-size: 0.98rem; position: relative; }
.site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--red) 0 160px, var(--graphite-3) 160px); }
.site-footer .container { display: grid; gap: 40px; padding-block: 64px 44px; }
@media (min-width: 900px) { .site-footer .container { grid-template-columns: 1.3fr 1.1fr 0.7fr 0.7fr; } }
.site-footer h2 { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ti); font-weight: 500; margin-bottom: 18px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer .biz { font-family: var(--f-head); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; line-height: 1.15; margin-bottom: 14px; display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; margin-bottom: 20px; }
.footer-logo img { height: 52px; width: auto; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; font-size: 0.85rem; color: var(--ti); }
@media (min-width: 900px) { .footer-bottom .container { grid-template-columns: none; display: flex; } }

/* ---------- reveal motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__rings, .page-hero__rings { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

@media print {
  .topbar, .site-header, .cta-band, .hero__rings, .page-hero__rings, .policy__toc, .nav-toggle { display: none !important; }
  .page-hero { background: #fff; color: #000; }
  .page-hero h1, .page-hero p, .updated { color: #000; border-color: #000; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, .site-footer .biz { color: #000; }
}
