:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #141418;
  --bg-elevated: #1a1a22;
  --accent-crimson: #dc2626;
  --accent-crimson-hover: #b91c1c;
  --accent-silver: #c0c4cc;
  --silver-hairline: #2e3038;
  --silver-border: #444754;
  --text-main: #f1f2f5;
  --text-muted: #9fa4b2;
  --text-dim: #6d7280;
  --font-serif: Charter, Cambria, Georgia, "Times New Roman", serif;
  --font-mono: "Courier New", Courier, monospace;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-silver);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-crimson);
}

.site-header {
  border-bottom: 2px solid var(--accent-crimson);
  background-color: #08080a;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
}

.kiln-insignia {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.insignia-svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--accent-crimson);
  stroke-width: 2;
  stroke-linecap: square;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.brand-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-silver);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.primary-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  border-top: 1px solid var(--silver-hairline);
  padding-top: 0.75rem;
}

.primary-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  position: relative;
}

.primary-nav a.active,
.primary-nav a:hover {
  color: #ffffff;
  border-bottom: 2px solid var(--accent-crimson);
}

.btn-crimson {
  display: inline-block;
  background-color: var(--accent-crimson);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border: 1px solid #ef4444;
  box-shadow: 4px 4px 0 #000000;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  text-align: center;
}

.btn-crimson:hover {
  background-color: var(--accent-crimson-hover);
  color: #ffffff;
}

.btn-crimson:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #000000;
}

.btn-silver {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-silver);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--silver-border);
  box-shadow: 4px 4px 0 #000000;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-silver:hover {
  color: #ffffff;
  border-color: var(--accent-silver);
}

.btn-silver:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #000000;
}

.crimson-stripe {
  background: linear-gradient(90deg, #dc2626 0%, #7f1d1d 100%);
  color: #ffffff;
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  border: 1px solid var(--silver-hairline);
  background: var(--bg-surface);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.hero-thesis h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-subhead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.process-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-crimson);
  display: block;
  margin-bottom: 0.5rem;
}

.hero-image-wrap {
  position: relative;
  border: 1px solid var(--silver-border);
  background: #000000;
}

.hero-image-wrap img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
}

.hero-badge-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(11, 11, 13, 0.9);
  border: 1px solid var(--silver-hairline);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-silver);
  letter-spacing: 0.1em;
}

.section-head {
  border-bottom: 1px solid var(--silver-hairline);
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.section-head .section-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-crimson);
  letter-spacing: 0.15em;
}

.bento-matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

.bento-tile {
  background: var(--bg-surface);
  border: 1px solid var(--silver-hairline);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.bento-tile:hover {
  border-color: var(--silver-border);
}

.bento-tile h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0.5rem 0 0.85rem;
}

.bento-tile p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento-tile .tile-figure {
  margin: 1rem 0;
  border: 1px solid var(--silver-hairline);
}

.bento-tile .tile-figure img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.bento-meta {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--silver-hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.linear-spec-list {
  border: 1px solid var(--silver-hairline);
  background: var(--bg-surface);
  margin-bottom: 3rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 2fr 110px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--silver-hairline);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:hover {
  background-color: var(--bg-elevated);
}

.cone-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent-silver);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000;
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.1;
}

.cone-badge .cone-val {
  font-size: 0.88rem;
  color: #ffffff;
}

.cone-badge .cone-lbl {
  font-size: 0.55rem;
  color: var(--accent-crimson);
  letter-spacing: 0.05em;
}

.cone-badge.cone-hi {
  border-color: var(--accent-crimson);
}

.spec-title h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.spec-title span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.spec-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spec-temp {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-silver);
  text-align: right;
  font-weight: 700;
}

.tool-panel {
  background: var(--bg-surface);
  border: 1px solid var(--accent-crimson);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
}

.tool-header {
  margin-bottom: 1.5rem;
}

.tool-header h3 {
  font-size: 1.5rem;
  color: #ffffff;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tool-inputs label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-silver);
  margin-bottom: 0.4rem;
}

.tool-inputs input,
.tool-inputs select {
  width: 100%;
  padding: 0.75rem;
  background: #08080a;
  border: 1px solid var(--silver-border);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.tool-inputs input:focus,
.tool-inputs select:focus {
  outline: none;
  border-color: var(--accent-crimson);
}

.tool-display {
  background: #08080a;
  border: 1px solid var(--silver-hairline);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-metric {
  margin-bottom: 1rem;
}

.calc-metric .metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.calc-metric .metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.calc-status {
  padding: 0.75rem;
  border-left: 3px solid var(--accent-crimson);
  background: var(--bg-surface);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--silver-hairline);
  background: var(--bg-surface);
  margin-bottom: 3rem;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

table.data-table th,
table.data-table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--silver-hairline);
}

table.data-table th {
  background: #08080a;
  color: var(--accent-silver);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--silver-border);
}

table.data-table tr:hover td {
  background: var(--bg-elevated);
}

.site-footer {
  background: #060608;
  border-top: 1px solid var(--silver-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.footer-col p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--silver-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.legal-notice {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .bento-col-4,
  .bento-col-6,
  .bento-col-8 {
    grid-column: span 12;
  }
  .spec-row {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }
  .spec-desc {
    grid-column: span 2;
  }
  .spec-temp {
    grid-column: span 2;
    text-align: left;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
