/* Utkal Foundry — site stylesheet, "Molten Dark" (Option A). Hand-written, no build step.
   Idea: a charcoal foundry floor, one ember accent, full-bleed photography. Technical drawings always sit on
   light cream panels (they are black-on-white scans). White header strip keeps the grey logo legible.
   Legibility rule: ember/amber are for accents and large type; body text is warm off-white or muted grey on charcoal. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #0f0d0c;
  --bg2: #181513;
  --card: #1d1917;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f4efe9;
  --mute: #a89f96;
  --ember: #ff6a2b;
  --ember2: #ffb347;
  --crimson: #8a150f;
  /* paper: drawing sheets, form, tables */
  --paper: #fffdf9;
  --cream: #f6f1ea;
  --ink: #2a1a14;
  --graphite: #5b5f58;
  --rule: #d9cfc4;

  --wrap: 76rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --space-section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ember2); outline-offset: 3px; }
.sheet :focus-visible, .form :focus-visible, .plate :focus-visible, .site-header :focus-visible { outline-color: var(--ember); }

.skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 30; background: var(--ember2); color: #1a0a03; padding: 0.6rem 1rem; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-stretch: 85%; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-stretch: 85%; }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 1.25rem; line-height: 1.55; color: #d8d0c8; max-width: 40rem; }
.muted { color: var(--mute); }
.small { font-size: 0.9375rem; }
.accent { background: linear-gradient(90deg, var(--ember), var(--ember2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember2); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--ember); }

/* ---------- top bar + header ---------- */
.topbar { background: #000; color: var(--mute); font-size: 0.82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; flex-wrap: wrap; }
.topbar p { margin: 0; max-width: none; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contact { display: flex; gap: 1.25rem; }

/* white strip so the grey wordmark stays legible */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px); border-bottom: 3px solid var(--ember); color: #25201d; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.7rem; }
.brand { display: block; }
.brand img { width: clamp(9.5rem, 20vw, 13rem); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); }
.nav a:not(.btn) { color: #25201d; text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--ember); }
.nav a[aria-current="page"] { border-bottom-color: var(--ember); font-weight: 600; }

.menu-btn { display: none; font: inherit; font-weight: 600; background: none; color: #25201d; border: 1.5px solid #25201d; padding: 0.45rem 0.9rem; border-radius: 999px; cursor: pointer; }

@media (max-width: 52rem) {
  .topbar-contact a:last-child { display: none; }
  .topbar .wrap { flex-direction: column; gap: 0.1rem; }
  .js .menu-btn { display: block; }
  .site-header .bar { flex-wrap: wrap; }
  .nav { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid #e6dfd8; }
  .nav .btn { margin-top: 0.9rem; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  padding: 1rem 1.6rem; border: 0; border-radius: 999px;
  color: #1a0a03; background: var(--ember);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { background: var(--ember2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 106, 43, 0.35); text-decoration: none; }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.btn-line:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px #fff; }
.nav .btn { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- sections ---------- */
.section { padding-block: var(--space-section); background: var(--bg); }
.section.paper { background: var(--bg2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2.5rem; }
.section-head p { margin-bottom: 0; color: var(--mute); }

/* call-to-action band: the furnace mouth */
.section.dark { background: var(--bg); }
.section.dark > .wrap.cta {
  border-radius: 1.75rem; padding: clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(70% 140% at 90% 120%, #ffb347 0%, #ff6a2b 30%, #8a150f 70%), #8a150f;
}
.section.dark h2 { color: #fff; }
.section.dark p { color: #ffe8d6; }
.section.dark .btn { background: #fff; color: #3a0d05; }
.section.dark .btn:hover { background: #fff3e6; }
.section.dark > .wrap.cta { max-width: calc(var(--wrap) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }

/* ---------- drawing sheets: light panels ---------- */
.sheet { background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; }
.sheet-frame { display: flex; flex-direction: column; height: 100%; }
.sheet-art { display: grid; place-items: center; padding: clamp(1rem, 2.5vw, 1.75rem); flex: 1; }
.sheet-art img { mix-blend-mode: multiply; width: 100%; }
.tb { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: baseline; padding: 1rem 1.4rem 1.2rem; background: var(--card); color: var(--text); border-top: 1px solid var(--line); font-size: 0.9375rem; }
.tb > * { margin: 0; max-width: none; }
.tb strong { font-weight: 700; font-size: 1.2rem; font-stretch: 85%; }
.tb > * + * { color: var(--ember2); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
.tb.single { grid-template-columns: 1fr; }
.sheet .muted { color: var(--graphite); }
.text-sheet { background: var(--card); color: var(--text); }
.text-sheet .sheet-art { color: #d8d0c8; }

a.sheet { display: block; text-decoration: none; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
a.sheet:hover { transform: translateY(-6px); border-color: rgba(255, 106, 43, 0.6); box-shadow: 0 24px 60px rgba(255, 106, 43, 0.14); }
a.sheet:hover .tb strong { text-decoration: underline; text-decoration-color: var(--ember); }

/* ---------- hero (home): full-bleed photograph ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(86vh, 50rem); padding-block: 0; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 13, 12, 0.96) 0%, rgba(15, 13, 12, 0.78) 45%, rgba(15, 13, 12, 0.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero .inner { max-width: 46rem; padding-block: 5rem 7.5rem; }
.hero h1 { margin-bottom: 0.4em; }
.badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2.5rem; }
.badges span { font-size: 0.82rem; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); }
@media (max-width: 38rem) { .hero .inner { padding-block: 3.5rem 6rem; } }

/* ---------- stats / title block ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -4rem; }
.titleblock { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.titleblock > div { padding: 1.8rem 1.6rem; border-left: 1px solid var(--line); }
.titleblock > div:first-child { border-left: 0; }
.titleblock dt { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 0.5rem; }
.titleblock dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; font-stretch: 85%; line-height: 1.05; color: #fff; }
.titleblock dd span { display: block; }
.titleblock dd .sub { font-stretch: 100%; font-weight: 400; font-size: 0.9rem; color: var(--mute); line-height: 1.4; margin-top: 0.4rem; }
@media (max-width: 60rem) {
  .titleblock { grid-template-columns: repeat(2, 1fr); }
  .titleblock > div:nth-child(3) { border-left: 0; }
  .titleblock > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- make grid on home ---------- */
.make-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.make-grid .text-sheet .sheet-art { place-items: start; align-content: start; }
.make-grid ul { margin: 0; padding-left: 1.1rem; }
.make-grid li { margin-bottom: 0.5rem; }
@media (max-width: 60rem) { .make-grid { grid-template-columns: 1fr; } }

.after-block { margin-top: 2rem; color: var(--mute); }

/* split band: photo + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.split p { color: var(--mute); }
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.pills span { padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.92rem; }
@media (max-width: 60rem) { .split { grid-template-columns: 1fr; } }

/* ---------- schedule table: light panel ---------- */
.schedule { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); color: var(--ink); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.schedule caption { text-align: left; font-weight: 700; font-stretch: 85%; font-size: 1.7rem; letter-spacing: -0.02em; padding: 0 0 0.8rem; color: var(--text); caption-side: top; }
.schedule th, .schedule td { text-align: left; padding: 0.95rem 1.2rem; border-top: 1px solid var(--rule); vertical-align: top; }
.schedule thead th { border-top: 0; border-bottom: 3px solid var(--ember); font-weight: 700; color: var(--graphite); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--cream); }
.schedule td:last-child, .schedule th:last-child { white-space: nowrap; }
.schedule tbody th { font-weight: 500; }
.schedule td:last-child { font-weight: 600; color: #8a150f; }
.schedule a { color: inherit; }
@media (max-width: 40rem) { .schedule td:last-child, .schedule th:last-child { white-space: normal; } }

/* ---------- catalogue plates ---------- */
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1rem; }
.plates.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.plate { background: var(--cream); color: var(--ink); margin: 0; display: flex; flex-direction: column; border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); }
.plate .art { padding: 1rem; display: grid; place-items: center; flex: 1; min-height: 10rem; }
.plate img { mix-blend-mode: multiply; max-height: 15rem; width: auto; max-width: 100%; }
.plate figcaption { padding: 0.75rem 1rem; border-top: 3px solid var(--ember); background: var(--card); color: var(--text); font-weight: 500; font-size: 0.9375rem; }
.plates.wide .plate img { max-height: 22rem; }

.group { margin-bottom: 3.5rem; }
.group:last-child { margin-bottom: 0; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; margin-bottom: 1.25rem; }
.group-head h2 { margin: 0; }
.group-head p { margin: 0; color: var(--ember2); font-weight: 500; }

.subnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.subnav a { display: block; padding: 0.5rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.subnav a:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, 0.08); }
.subnav a[aria-current="page"] { background: var(--ember); color: #1a0a03; font-weight: 700; box-shadow: none; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 160% at 92% -20%, rgba(255, 106, 43, 0.4), rgba(138, 21, 15, 0.18) 50%, transparent 75%), var(--bg); }
.page-head h1 { margin-bottom: 0.3em; font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-head p { margin-bottom: 0; }

/* ---------- long-form rows ---------- */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 3rem; padding-block: 1.8rem; border-bottom: 1px solid var(--line); }
.row h3 { margin: 0; }
.row p { color: #d8d0c8; }
.row p:last-child { margin-bottom: 0; }
@media (max-width: 52rem) { .row { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #d8d0c8; }
.prose ul { padding-left: 1.2rem; max-width: 62ch; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--ember); }
.prose a:not(.btn) { color: var(--ember2); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .two-col { grid-template-columns: 1fr; } }

.people { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
.people li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.people strong { display: block; font-size: 1.125rem; color: var(--text); }

/* ---------- certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; align-items: start; }
.cert .sheet-art { padding: 0.9rem; }
.cert img { width: 100%; max-width: 260px; margin-inline: auto; mix-blend-mode: normal; border-radius: 4px; }
.cert p { margin: 0.9rem 0 0.3rem; font-size: 0.9375rem; }

/* ---------- form: light panel ---------- */
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; border-top: 4px solid var(--ember); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { font-weight: 400; color: var(--graphite); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: #fff; width: 100%; border: 1.5px solid #b9aea3; border-radius: 10px; padding: 0.75rem 0.9rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(255, 106, 43, 0.5); outline-offset: 1px; border-color: var(--ember); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 40rem) { .field-pair { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 0.8rem 1rem; border-left: 4px solid var(--ink); border-radius: 6px; background: var(--cream); color: var(--ink); max-width: none; }
.status[hidden] { display: none; }
.status.ok { border-left-color: #1f6b3a; }
.status.err { border-left-color: #c0310b; }
.form .muted { color: var(--graphite); }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form a { color: #8a150f; }

/* ---------- office blocks ---------- */
.office { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.office:last-child { border-bottom: 0; }
.office h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.office address { font-style: normal; color: #d8d0c8; }
.office p { margin-bottom: 0.5em; color: #d8d0c8; }
.office a:not(.btn) { color: var(--ember2); }

/* ---------- cta band ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin: 0 0 0.3em; }
.cta p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--line); color: var(--mute); padding-top: 4rem; font-size: 0.95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ember2); text-decoration: underline; }
.footer-block { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.7fr; gap: 2.5rem; }
.footer-block h2 { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; font-stretch: 100%; color: #fff; margin: 0 0 1rem; line-height: 1.3; }
.footer-block p { margin: 0 0 0.7em; max-width: none; }
.footer-block ul { list-style: none; margin: 0; padding: 0; }
.footer-block li { margin-bottom: 0.45rem; }
.footer-block .k { color: #d8d0c8; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.footer-base p { margin: 0; max-width: none; }
@media (max-width: 60rem) { .footer-block { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .footer-block { grid-template-columns: 1fr; } }

/* ---------- small utilities (no inline styles: the CSP forbids them) ---------- */
figure.sheet { margin: 0; }
.gap-top { margin-top: 2.2rem; }
.flush { margin: 0; }

@media print {
  *, *::before, *::after { background: none !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  .topbar, .site-header .nav, .menu-btn, .site-footer .footer-base, .cta { display: none; }
}
