:root {
  --bg: #0d0e10;
  --bg-2: #14161a;
  --bg-3: #1b1e24;
  --panel: #181b20;
  --line: #2a2e36;
  --text: #e8e6df;
  --muted: #9a9588;
  --gold: #c4b05a;
  --gold-2: #9a8740;
  --white: #f5f3ec;
  --danger: #c45a4a;
  --max: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--white); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.topbar {
  background: #0a0b0d;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--gold); }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,14,16,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--white);
}
.brand strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.brand span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a {
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
nav.main a.active, nav.main a:hover { color: var(--gold); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #1a1608 !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 11px 16px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: #d4c36a; }
.btn.ghost {
  background: transparent;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
}
.btn.ghost:hover { background: var(--gold); color: #1a1608 !important; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 4px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(196,176,90,0.12), transparent 50%),
    linear-gradient(180deg, #12141a 0%, #0d0e10 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.kicker {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}
h1, h2, h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: 0.02em; max-width: 16ch; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.lede { margin: 18px 0 28px; color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  overflow: hidden;
}
.hero-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 6px;
  background: #111;
}
.hero-card .caption {
  padding: 10px 8px 6px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.die-viz {
  aspect-ratio: 4/3;
  border-radius: 6px;
  background:
    linear-gradient(145deg, #2a2f38 0%, #15171c 55%, #1c1a12 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid #3a3f48;
}
.die-viz::after {
  content: "SOLIDWORKS MODEL · PROGRESSIVE DIE";
  position: absolute;
  left: 12px; bottom: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.steel-block {
  position: absolute;
  background: linear-gradient(180deg, #6d727a, #3a3e45);
  border: 1px solid #8b9098;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 24px rgba(0,0,0,0.4);
}
.steel-block.a { width: 72%; height: 28%; left: 14%; top: 22%; }
.steel-block.b { width: 18%; height: 42%; left: 22%; top: 36%; background: linear-gradient(180deg, #c4b05a, #6d5c22); border-color: #e0d08a; }
.steel-block.c { width: 18%; height: 42%; right: 22%; top: 36%; }
.steel-block.d { width: 48%; height: 10%; left: 26%; bottom: 18%; }

/* Sections */
section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.num {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  color: var(--gold);
}
.stats span { color: var(--muted); font-size: 0.88rem; }

.quote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 18px;
}
.quote p { font-size: 1.05rem; }
.quote cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; font-size: 0.88rem; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-thumb {
  height: 220px;
  background: #101216;
  position: relative;
  overflow: hidden;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-thumb.contain img { object-fit: contain; background: #d8d8d8; }
.work-thumb span {
  position: absolute;
  inset: auto 14px 12px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 1px 8px #000;
}
.work-item .body { padding: 18px; }
.work-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.work-item p { color: var(--muted); font-size: 0.95rem; }

.project { margin-bottom: 56px; }
.project-head { margin-bottom: 18px; max-width: 70ch; }
.project-head p { color: var(--muted); margin-top: 8px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery figure {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #101216;
}
.gallery img.contain {
  object-fit: contain;
  background: #cfcfcf;
  height: 260px;
}
.gallery figcaption {
  padding: 10px 14px 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.gallery figcaption strong { color: var(--text); display: block; }

form { display: grid; gap: 14px; }
label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
input, textarea, select {
  width: 100%;
  background: #0f1114;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 4px;
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note { color: var(--muted); font-size: 0.88rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer strong { color: var(--white); letter-spacing: 0.1em; }

.page-hero { padding: 56px 0 24px; }
.page-hero h1 { max-width: none; font-size: clamp(2rem, 4vw, 3.2rem); }

.dl-list { display: grid; gap: 14px; }
.dl-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.dl-item h3 { font-size: 1.15rem; color: var(--white); }
.dl-item p { color: var(--muted); font-size: 0.92rem; max-width: 40rem; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #111317;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
  }
  nav.main.open { display: flex; }
  .hero .wrap, .grid-3, .grid-2, .stats, .work-grid, .form-row, .gallery { grid-template-columns: 1fr; }
  .hero-card img { height: 240px; }
  .gallery figure.wide { grid-column: auto; }
  h1 { max-width: none; }
}
