/* ============================================================
   I2TIG — Brand Token System
   Color:  navy (primary/ink), red (accent/signal), paper (ground)
   Type:   Source Serif 4 (display) / Inter (body) / IBM Plex Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --navy: #3E5064;
  --navy-deep: #232C35;
  --navy-soft: #5A6E82;
  --red: #D42A2A;
  --red-deep: #A81F1F;
  --paper: #F7F5F0;
  --paper-dim: #EFEAE1;
  --card: #FFFFFF;
  --ink: #1E242B;
  --slate: #6D7A87;
  --line: #DFD9CC;
  --line-soft: #E9E4D9;

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --max: 1120px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--red);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; color: var(--ink); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--navy-soft);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.9em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover { text-decoration: none; border-bottom-color: var(--red); }
.nav-link.active { border-bottom-color: var(--red); color: var(--red-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 720px) {
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.4rem;
    gap: 0.9rem;
    display: none;
  }
  nav.primary-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 0.45em; }

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-facts {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.hero-fact strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--navy);
}
.hero-fact span {
  font-size: 0.78rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Stat metrics (bold headline numbers) ---------- */

.stat-row {
  display: flex;
  gap: clamp(1.8rem, 5vw, 3.2rem);
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.stat-item span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy-soft);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.2rem;
}
.eyebrow-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

/* ---------- Textured surfaces ---------- */

.texture {
  position: relative;
}
.texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.texture > * { position: relative; z-index: 1; }

.strip.texture::before {
  background-image: radial-gradient(#3B4855 1px, transparent 1px);
  opacity: 0.6;
}

/* ---------- Pull quote ---------- */

.pull-quote {
  position: relative;
  padding: 0.4rem 0 0.4rem 2rem;
  border-left: 4px solid var(--red);
  margin: 0.5rem 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 0.6rem;
}
.pull-quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.strip .pull-quote { border-left-color: #E98F8F; }
.strip .pull-quote p { color: #fff; }
.strip .pull-quote cite { color: #9AA7B2; }

/* ---------- Fact grid (identity strip) ---------- */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  margin: 1.6rem 0;
}
@media (max-width: 720px) {
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
}
.fact-grid div {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact-grid div:nth-child(4n) { border-right: none; }
.fact-grid strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--red-deep);
}
.fact-grid span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* ---------- Leadership ---------- */

.leader-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 3px;
  padding: 2rem;
}
@media (max-width: 640px) {
  .leader-card { grid-template-columns: 1fr; }
}
.leader-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  border: 3px solid var(--red);
}
.leader-card h3 { margin-bottom: 0.1em; }
.leader-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-deep);
  margin-bottom: 0.9rem;
  display: block;
}

/* ---------- Parent company badge ---------- */

.parent-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.1rem 1.4rem;
}
.parent-strip .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

/* ---------- Signature diagram (node convergence) ---------- */

.node-diagram {
  width: 100%;
  height: auto;
  overflow: visible;
}

.node-diagram .ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.4;
  opacity: 0.55;
}

.node-diagram .link {
  fill: none;
  stroke: var(--navy-soft);
  stroke-width: 1.4;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.4s ease forwards;
}

.node-diagram .link.d2 { animation-delay: 0.15s; }
.node-diagram .link.d3 { animation-delay: 0.3s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.node-diagram .node-circle {
  fill: var(--paper);
  stroke: var(--navy);
  stroke-width: 1.6;
}

.node-diagram .core {
  fill: var(--red);
}

.node-diagram .node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--navy);
  letter-spacing: 0.02em;
}

.node-diagram .pulse {
  animation: pulse 3.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulse {
  0%, 100% { r: 5; }
  50% { r: 6.4; }
}

@media (prefers-reduced-motion: reduce) {
  .node-diagram .link { animation: none; stroke-dashoffset: 0; }
  .node-diagram .pulse { animation: none; }
}

/* ---------- Sections / Cards ---------- */

section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 1.8rem 1.6rem;
  border-radius: 3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(35, 44, 53, 0.09);
}

.card-icon {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.7rem;
  line-height: 1;
}

.card .eyebrow { margin-bottom: 0.6em; }

.card h3 { margin-bottom: 0.5em; }

.card p:last-child { margin-bottom: 0; }

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}
.card li { margin-bottom: 0.4em; }

.strip {
  background: var(--navy-deep);
  color: #EDEFF1;
}

.strip h2, .strip h3 { color: #fff; }
.strip p { color: #C7CFD6; }
.strip .eyebrow { color: #E98F8F; }

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 780px) {
  .fact-row { grid-template-columns: repeat(2, 1fr); }
}

.fact-row div strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: #fff;
}
.fact-row div span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9AA7B2;
}

.cta-band {
  background: var(--red);
  color: #fff;
  padding: clamp(2.4rem, 6vw, 3.6rem) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #FBE1E1; max-width: 55ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--red-deep); }

/* ---------- Data table (classification) ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-weight: 600;
}
.data-table td.code { font-family: var(--font-mono); color: var(--red-deep); white-space: nowrap; }
.data-table tr.primary td { background: var(--paper-dim); }

/* ---------- Timeline ---------- */

.timeline {
  border-left: 2px solid var(--line);
  margin-left: 0.4rem;
  padding-left: 1.6rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.9rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.86rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline-item .mono { display: block; margin-bottom: 0.3em; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 3px;
}
.contact-card .eyebrow { color: var(--navy); }
.contact-card a.big-link {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--red-deep);
  word-break: break-word;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-deep);
  color: #B9C2CA;
  padding: 2.8rem 0 1.6rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid #3B4855;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.8rem; }
.footer-brand img { height: 30px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); }

footer.site-footer h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9em;
}

footer.site-footer a { color: #C7CFD6; display: block; margin-bottom: 0.5em; }
footer.site-footer a:hover { color: #fff; }

.footer-legal {
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #8794A0;
}
.footer-legal .mono { color: #8794A0; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: clamp(2.4rem, 6vw, 3.6rem) 0 clamp(1.6rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { margin-top: 0.4rem; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--slate); }

/* ---------- Utility ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-check li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.7em;
}
.list-check li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
