/* ============================================================
   IRON HOLDING — design system
   Fe · 26 — dark steel, rust accent, engineering-spec aesthetic
   ============================================================ */

:root {
  --bg: #0b0e11;
  --bg-raised: #10151a;
  --bg-panel: #131a20;
  --line: rgba(148, 163, 178, 0.14);
  --line-strong: rgba(148, 163, 178, 0.28);
  --text: #e8ecf1;
  --text-dim: #98a3af;
  --text-faint: #5d6873;
  --rust: #ff5c1f;
  --rust-soft: rgba(255, 92, 31, 0.12);
  --steel: #7fa0b8;
  --ok: #3ecf8e;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--rust); color: #0b0e11; }

/* ---------- blueprint grid backdrop ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 178, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 178, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 70% -10%, rgba(255, 92, 31, 0.07), transparent 70%);
}

a { color: inherit; text-decoration: none; }

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

/* ---------- typography ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

.mono { font-family: var(--mono); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.label .idx { color: var(--rust); margin-right: 10px; }

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 17, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--rust);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "26";
  position: absolute;
  top: 1px; right: 2px;
  font-size: 6px;
  font-weight: 500;
  color: var(--text-faint);
}
.brand-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand-name span { color: var(--text-faint); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--text); border-color: var(--line); }
.site-nav a.active { color: var(--rust); }
.site-nav a.nav-cta {
  color: var(--bg);
  background: var(--text);
  font-weight: 600;
  margin-left: 8px;
}
.site-nav a.nav-cta:hover { background: var(--rust); color: #0b0e11; border-color: transparent; }

.header-meta {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
@media (min-width: 1100px) { .header-meta { display: block; } }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; border-bottom: 1px solid var(--line); }
  .site-nav a.nav-cta { margin: 12px 0 0; text-align: center; }
  .header-meta { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(72px, 12vh, 140px) 0 clamp(56px, 8vh, 96px); position: relative; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  margin-bottom: 32px;
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(42px, 7.2vw, 96px);
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--rust); }
.hero .lede { margin-top: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 26px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: all 0.18s;
  cursor: pointer;
  background: none;
}
.btn:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-primary { background: var(--rust); border-color: var(--rust); color: #0b0e11; }
.btn-primary:hover { background: #ff7a45; border-color: #ff7a45; }
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* element tile floating in hero */
.element-tile {
  position: absolute;
  right: var(--gutter);
  top: clamp(72px, 12vh, 140px);
  width: 168px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 92, 31, 0.06), transparent 60%);
  padding: 14px 16px 16px;
  font-family: var(--mono);
  display: none;
  user-select: none;
}
@media (min-width: 980px) { .element-tile { display: block; } }
.element-tile .num { font-size: 13px; color: var(--text-dim); }
.element-tile .sym { font-size: 56px; font-weight: 700; color: var(--rust); line-height: 1.1; letter-spacing: -0.02em; }
.element-tile .name { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.element-tile .mass { font-size: 10px; color: var(--text-faint); margin-top: 8px; }
.element-tile::before, .element-tile::after {
  content: "+";
  position: absolute;
  font-size: 14px;
  color: var(--text-faint);
}
.element-tile::before { top: -8px; left: -5px; }
.element-tile::after { bottom: -9px; right: -5px; }

/* ---------- spec strip ---------- */
.spec-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.spec-cell {
  padding: 22px 20px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
}
.spec-cell:first-child { border-left: none; padding-left: 0; }
.spec-cell .k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.spec-cell .v { font-size: 15px; margin-top: 6px; color: var(--text); }
.spec-cell .v em { font-style: normal; color: var(--rust); }
@media (max-width: 760px) {
  .spec-strip .wrap { grid-template-columns: 1fr 1fr; }
  .spec-cell { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
  .spec-cell:nth-child(-n+2) { border-top: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vh, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vh, 56px); }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 16px; max-width: 22ch; }
.section-head .lede { margin-top: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--text-dim); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--rust); border-bottom: 1px solid rgba(255, 92, 31, 0.35); }
.prose a:hover { border-bottom-color: var(--rust); }

/* ---------- principle cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
  transition: background 0.2s;
}
.card:hover { background: var(--bg-raised); }
.card .card-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rust);
  letter-spacing: 0.1em;
}
.card h3 { font-size: 18px; margin: 14px 0 10px; }
.card p { font-size: 14.5px; color: var(--text-dim); }
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width 0.25s ease;
}
.card:hover::after { width: 100%; }

/* ---------- registry table ---------- */
.registry { border: 1px solid var(--line); overflow-x: auto; }
.registry table { width: 100%; border-collapse: collapse; min-width: 720px; }
.registry th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-raised);
}
.registry td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-dim);
  vertical-align: top;
}
.registry tr:last-child td { border-bottom: none; }
.registry tbody tr { transition: background 0.15s; }
.registry tbody tr:hover { background: var(--bg-raised); }
.registry .r-name { font-weight: 600; color: var(--text); }
.registry .r-name a { border-bottom: 1px solid var(--line-strong); }
.registry .r-name a:hover { color: var(--rust); border-bottom-color: var(--rust); }
.registry .r-id { font-family: var(--mono); font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.registry .redacted {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(148,163,178,0.06) 4px, rgba(148,163,178,0.06) 8px);
  padding: 2px 8px;
  border: 1px dashed var(--line-strong);
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status.operating { color: var(--ok); }
.status.operating::before { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.status.building { color: var(--rust); }
.status.building::before { background: var(--rust); box-shadow: 0 0 6px var(--rust); }
.status.undisclosed { color: var(--text-faint); }
.status.undisclosed::before { background: var(--text-faint); }

/* ---------- feature panel (Simple Analytics) ---------- */
.feature-panel {
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  margin-top: 40px;
}
.feature-panel::before {
  content: "FLAGSHIP";
  position: absolute;
  top: -1px; right: -1px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  background: var(--rust);
  color: #0b0e11;
  font-weight: 700;
  padding: 5px 14px;
}
.feature-panel h3 { font-size: clamp(22px, 3vw, 30px); }
.feature-panel .fp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .feature-panel .fp-grid { grid-template-columns: 1fr; } }
.fp-specs { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
@media (max-width: 860px) { .fp-specs { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }
.fp-specs dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 13.5px; }
.fp-specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding-top: 2px; }
.fp-specs dd { color: var(--text-dim); }

/* ---------- numbered list (approach) ---------- */
.num-list { counter-reset: item; border-top: 1px solid var(--line); }
.num-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 620px) { .num-item { grid-template-columns: 1fr; gap: 10px; } }
.num-item .n {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--rust);
}
.num-item h3 { font-size: 20px; margin-bottom: 10px; }
.num-item p { color: var(--text-dim); max-width: 68ch; }

/* ---------- terminal block ---------- */
.terminal {
  border: 1px solid var(--line-strong);
  background: #0d1116;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.terminal-bar .tdot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.terminal-bar .t-title { font-size: 11px; color: var(--text-faint); margin-left: 8px; letter-spacing: 0.08em; }
.terminal-body { padding: 20px 22px; color: var(--text-dim); overflow-x: auto; }
.terminal-body .prompt { color: var(--rust); }
.terminal-body .out { color: var(--text-faint); }
.terminal-body .hl { color: var(--text); }
.terminal-body .ok { color: var(--ok); }
.cursor-blink {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--rust);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- timeline ---------- */
.timeline { border-left: 1px solid var(--line-strong); margin-left: 6px; padding-left: 32px; }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -37px; top: 7px;
  width: 9px; height: 9px;
  background: var(--bg);
  border: 2px solid var(--rust);
  transform: rotate(45deg);
}
.tl-item .tl-date { font-family: var(--mono); font-size: 12px; color: var(--rust); letter-spacing: 0.08em; }
.tl-item h3 { font-size: 17px; margin: 6px 0 6px; }
.tl-item p { font-size: 14.5px; color: var(--text-dim); max-width: 58ch; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 22px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field label .req { color: var(--rust); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  border-radius: 0;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px var(--rust-soft);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2398a3af'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(72px, 10vh, 120px); }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 7vh, 80px) 0;
}
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 14px; color: var(--text-dim); margin-top: 16px; max-width: 34ch; }
.footer-col .label { margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.15s; }
.footer-col a:hover { color: var(--rust); }

.footer-status {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.footer-status .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: center;
}
.footer-status .sys { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-status .ok-dot { color: var(--ok); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-tag .dot, .cursor-blink { animation: none; }
}

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: clamp(56px, 9vh, 100px) 0 clamp(40px, 6vh, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 64px); margin-top: 18px; }
.page-hero .lede { margin-top: 20px; }
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--rust); }
.breadcrumb .sep { margin: 0 8px; color: var(--line-strong); }

/* ---------- misc ---------- */
.crosshair { position: relative; }
.crosshair::before, .crosshair::after {
  content: "+";
  position: absolute;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
}
.crosshair::before { top: -7px; left: -3px; }
.crosshair::after { bottom: -7px; right: -3px; }

.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 48px 0 24px;
}
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.big-cta { text-align: left; }
.big-cta h2 { font-size: clamp(30px, 4.5vw, 52px); max-width: 20ch; }
.big-cta .email-line {
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 22px);
  margin-top: 28px;
  display: inline-block;
  color: var(--rust);
  border-bottom: 1px solid rgba(255, 92, 31, 0.4);
  padding-bottom: 4px;
  transition: border-color 0.15s;
}
.big-cta .email-line:hover { border-bottom-color: var(--rust); }

.kbd {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  padding: 2px 7px;
  color: var(--text-dim);
  background: var(--bg-raised);
}

.note-box {
  border: 1px dashed var(--line-strong);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-dim);
  background: var(--bg-raised);
}
.note-box .label { margin-bottom: 8px; }

/* 404 */
.err-wrap { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err-code {
  font-family: var(--mono);
  font-size: clamp(80px, 18vw, 180px);
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  letter-spacing: -0.04em;
}
