/* TN Holdings website. Tokens mirror src/theme/theme.ts in the app. */

:root {
  --ink-950: #0B0D10;
  --ink-900: #121519;
  --ink-850: #171B20;
  --ink-800: #1D2228;
  --ink-700: #293038;
  --ink-600: #3B4450;
  --ink-500: #556070;
  --ivory-50: #F9F6EF;
  --ivory-100: #F2EDE1;
  --ivory-200: #E8E1CF;
  --slate-300: #AEB7C4;
  --slate-400: #8A94A3;
  --oxide-300: #F59A6B;
  --oxide-400: #EE7A3C;
  --oxide-500: #E05A1F;
  --oxide-600: #C24A15;
  --oxide-700: #93380E;
  --moss-400: #7FA889;

  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --text: var(--ivory-50);
  --text-body: var(--slate-300);
  --text-muted: var(--slate-400);
  --accent: var(--oxide-500);
  --accent-text: var(--oxide-400);
  --paper: var(--ivory-100);
  --paper-surface: var(--ivory-50);
  --paper-text: var(--ink-900);
  --paper-body: #3B4450;
  --paper-accent: var(--oxide-700);
  --line: rgba(242, 237, 225, 0.12);
  --paper-line: rgba(11, 13, 16, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --radius: 5px;
  --section-y: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--oxide-500); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--oxide-500); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--oxide-500); color: var(--ink-950); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }

/* ---------- type ---------- */
.svg-ico { width: 22px; height: 22px; flex: none; color: var(--paper-accent); }
.kicker {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
}
.kicker--paper { color: var(--paper-accent); }
.display { font-family: var(--font-display); font-weight: 600; color: var(--text); letter-spacing: -0.01em; line-height: 1.08; }
.display--paper { color: var(--paper-text); }
.display-xl { font-size: clamp(2.6rem, 6vw, 4.9rem); }
.display-l { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.display-m { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.display-s { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--text-body); max-width: 40rem; }
.body-copy { font-size: 1rem; line-height: 1.75; max-width: 42rem; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.em { font-family: var(--font-display); font-style: normal; color: var(--accent); }

/* ---------- surfaces ---------- */
.blueprint {
  background-image:
    linear-gradient(to right, rgba(242, 237, 225, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 237, 225, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.band { position: relative; padding-block: var(--section-y); }
.band--dark { background: var(--bg); }
.band--raised { background: var(--surface); }
.band--paper { background: var(--paper); color: var(--paper-body); }
.band--paper .display { color: var(--paper-text); }
.band--bordered { border-top: 1px solid var(--line); }
.arc { position: absolute; pointer-events: none; color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__tile { position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; }
.brand__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-body); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px; min-height: 44px; border-radius: 3px; cursor: pointer;
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 3px; border: 1px solid transparent;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn--solid { background: var(--accent); color: var(--ink-950); }
.btn--solid:hover { background: var(--oxide-400); }
.btn--outline { border-color: rgba(242, 237, 225, 0.35); color: var(--text); }
.btn--outline:hover { border-color: var(--text); }
.btn--paper-outline { border-color: rgba(11, 13, 16, 0.35); color: var(--paper-text); }
.btn--paper-outline:hover { border-color: var(--paper-text); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text); text-decoration: none; font-weight: 600;
}
.text-link:hover { color: var(--text); }
.text-link--paper { color: var(--paper-accent); }
.text-link--paper:hover { color: var(--paper-text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero__copy h1 { margin-top: 22px; }
.hero__copy .lead { margin-top: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__figure { margin: 0; position: relative; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.hero__figure figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.hero .arc { top: -120px; right: -140px; width: 420px; height: 420px; opacity: 0.9; }

/* ---------- sections ---------- */
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 52rem; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }

/* sector index and lists */
.rows { border-top: 1px solid var(--paper-line); }
.rows--dark { border-top-color: var(--line); }
.row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--paper-line); text-decoration: none; color: inherit;
}
.rows--dark .row { border-bottom-color: var(--line); }
.row:hover .row__title { color: var(--accent); }
.row__index { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--paper-accent); }
.row__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--paper-text); transition: color 180ms ease; }
.row__meta { font-size: 0.875rem; color: var(--paper-body); margin-top: 4px; }
.row__arrow { font-family: var(--font-mono); color: var(--paper-accent); }
.rows--dark .row__title { color: var(--text); }
.rows--dark .row__meta { color: var(--text-muted); }
.rows--dark .row__arrow, .rows--dark .row__index { color: var(--accent-text); }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--paper-line); border-radius: 3px; color: var(--paper-body);
}
.tag--dark { border-color: var(--line); color: var(--text-body); }
.tag--accent { background: var(--accent); border-color: var(--accent); color: var(--ink-950); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-body); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--slate-400); }
.status--ongoing::before { background: var(--oxide-400); }
.status--completed::before { background: var(--moss-400); }

/* cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 230px; object-fit: cover; }
.card__body { padding: 24px; display: grid; gap: 12px; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--text); line-height: 1.2; }
.card__text { font-size: 0.95rem; color: var(--text-body); }
.card a.card__link { text-decoration: none; }
.card:hover { border-color: rgba(224, 90, 31, 0.5); }
.card--paper { background: var(--paper-surface); border-color: var(--paper-line); }
.card--paper .card__title { color: var(--paper-text); }
.card--paper .card__text { color: var(--paper-body); }
.card--paper .card__body { padding: 22px; }
.card--paper .card__link { color: var(--paper-accent); }
.card--sector img { height: 180px; }
.sector-foot { display: flex; flex-wrap: wrap; gap: 10px 18px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

.thumb-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; }
.thumb-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 3px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 22px 8px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--text); line-height: 1; }
.stat__label { margin-top: 12px; font-weight: 600; color: var(--text); font-size: 0.95rem; }
.stat__note { font-size: 0.8125rem; color: var(--text-muted); }

/* facts and lists */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 18px 20px; background: var(--paper-surface); border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.fact:nth-child(2n) { border-right: 0; }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-body); }
.fact__value { margin-top: 6px; font-weight: 600; color: var(--paper-text); font-size: 0.95rem; }
.fact--dark { background: var(--surface); border-color: var(--line); }
.fact--dark .fact__value { color: var(--text); }

.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.milestones li { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--paper-line); color: var(--paper-text); }
.milestones .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(11, 13, 16, 0.3); margin-top: 4px; }
.milestones .done .dot { background: var(--moss-400); border-color: var(--moss-400); }
.milestones .when { font-family: var(--font-mono); font-size: 0.75rem; color: var(--paper-body); }
.milestones .state { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-body); }
.milestones .done .state { color: #4E7A5A; font-weight: 600; }

.updates { display: grid; gap: 16px; }
.update { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
.update time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--paper-body); }
.update p { color: var(--paper-text); margin-top: 4px; }

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.pillar:nth-child(2n) { border-right: 0; }
.pillar:nth-last-child(-n+2) { border-bottom: 0; }
.pillar svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); font-weight: 600; }
.pillar p { margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); }

.progress { margin-top: 18px; }
.progress__head { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; color: var(--text); font-weight: 600; }
.progress__value { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-muted); font-weight: 400; }
.progress__track { margin-top: 10px; height: 6px; background: var(--ink-700); border-radius: 3px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--accent); border-radius: 3px; }

.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.leader { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.leader__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); }
.leader__role { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-top: 6px; }
.leader p { margin-top: 12px; font-size: 0.95rem; color: var(--text-body); }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.value { padding: 26px; background: var(--paper-surface); border: 1px solid var(--paper-line); border-radius: var(--radius); }
.value h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--paper-text); font-weight: 600; margin-top: 10px; }
.value p { margin-top: 8px; font-size: 0.95rem; color: var(--paper-body); }
.value .mono { color: var(--paper-accent); }

.quote { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--text); }

.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step .mono { color: var(--accent-text); }
.step h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); font-weight: 600; }
.step p { margin-top: 6px; color: var(--text-body); }

.govlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.govlist li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--paper-line); color: var(--paper-body); }
.govlist .num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--paper-accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--paper-accent); }

.channel { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.channel .ico { width: 44px; height: 44px; border: 1px solid rgba(224, 90, 31, 0.4); border-radius: 3px; display: grid; place-items: center; color: var(--accent); }
.channel .ico svg { width: 18px; height: 18px; }
.channel__label { font-size: 0.8125rem; color: var(--text-muted); }
.channel__value { font-weight: 600; color: var(--text); font-size: 1.05rem; margin-top: 2px; overflow-wrap: anywhere; }
a.channel:hover .channel__value { color: var(--accent-text); }
.channel__arrow { font-family: var(--font-mono); color: var(--accent-text); }

.notice { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); font-size: 0.9rem; color: var(--text-body); }
.notice--paper { background: var(--paper-surface); border-color: var(--paper-line); color: var(--paper-body); }

.pull { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* article */
.article { display: grid; gap: 22px; max-width: 46rem; }
.article p { color: var(--paper-body); font-size: 1.02rem; line-height: 1.8; overflow-wrap: anywhere; }
.article .lead-p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--paper-text); }

/* footer */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line); padding-block: 64px 40px; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer .display { font-size: 1.5rem; }
.site-footer p { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); max-width: 30rem; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-body); text-decoration: none; min-height: 40px; display: flex; align-items: center; }
.footer-links a:hover { color: var(--accent-text); }
.site-footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

.page-head { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-head h1 { margin-top: 18px; }
.page-head .lead { margin-top: 22px; }
.crumb { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.crumb a { color: var(--text-body); text-decoration: none; }
.crumb a:hover { color: var(--accent-text); }

.hero-image { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 48px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__figure img { aspect-ratio: 16 / 11; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { padding-left: 0; }
  .site-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-950); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 48px; }
  .site-header { position: sticky; }
  .grid--2, .grid--3, .grid--4, .leaders, .values, .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; }
  .pillar:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .fact { border-right: 0; }
  .fact:nth-last-child(2) { border-bottom: 1px solid var(--paper-line); }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-right: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 36px 1fr; }
  .row__arrow { display: none; }
  .thumb-row { grid-template-columns: 72px 1fr; }
  .thumb-row img { width: 72px; height: 56px; }
  .thumb-row .tag { display: none; }
  .hero .arc { width: 280px; height: 280px; top: -90px; right: -110px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; flex: 1 1 200px; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 1.05rem; }
  .display-xl { font-size: 2.3rem; }
}
