/* Tungsten Grid Systems — capability statement
   Vendored fonts, latin subset only. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('vendor/fonts/plex-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('vendor/fonts/plex-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('vendor/fonts/plex-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/fonts/plex-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('vendor/fonts/plex-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1A1714;
  --bg-soft: #25201C;
  --ink: #F1ECE3;
  --ink-dim: #A89B8C;
  --rule: #F1ECE3;
  --rule-soft: rgba(241,236,227,0.16);
  --card: #221E1A;
  --dot: rgba(241,236,227,0.10);
  --accent: oklch(0.74 0.10 75);
  --dot-grid-display: block;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0);
  background-size: 22px 22px;
  background-position: 0 0;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  display: var(--dot-grid-display, block);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.tgs-doc { position: relative; z-index: 1; min-height: 100vh; }

/* ---------- header ---------- */
.tgs-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}
.tgs-header.scrolled { background: color-mix(in srgb, var(--bg) 96%, transparent); }
.tgs-header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.tgs-mark { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tgs-mark-words { display: flex; flex-direction: column; line-height: 1.05; }
.tgs-mark-name { font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; }
.tgs-nav { display: flex; gap: 22px; align-items: center; }
.tgs-nav a { position: relative; padding: 4px 0; transition: color 0.15s ease; }
.tgs-nav a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .tgs-nav { gap: 14px; }
  .tgs-nav a { font-size: 11px; }
  .tgs-mark-name { font-size: 12.5px; }
}

/* ---------- main + sections ---------- */
.tgs-main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.tgs-section { padding: 88px 0 24px; scroll-margin-top: 80px; }
.tgs-section-label {
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 36px; color: var(--accent);
}
.tgs-section-index {
  display: inline-block; padding: 2px 8px;
  border: 1px solid var(--accent); margin-right: 14px;
  color: var(--accent); font-weight: 500;
}
.tgs-section-name { letter-spacing: 0.16em; }

/* ---------- hero ---------- */
.tgs-hero { padding: 56px 0 72px; position: relative; }
.tgs-hero-title {
  font-size: clamp(34px, 5.4vw, 68px); line-height: 1.04;
  letter-spacing: -0.025em; font-weight: 500;
  margin: 0 0 36px; max-width: 18ch; text-wrap: balance;
}
.tgs-hero-lede {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55;
  max-width: 60ch; color: var(--ink); margin: 0 0 56px; text-wrap: pretty;
}
.tgs-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.tgs-stat {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.tgs-stat:nth-child(odd) { padding-left: 0; }
.tgs-stat:not(:first-child) { padding-left: 24px; }
.tgs-stat:last-child { border-right: 0; }
.tgs-stat-value { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; font-weight: 500; margin-top: 6px; }
.tgs-stat-label { font-size: 13px; color: var(--ink-dim); margin-top: 2px; }
.tgs-stat-sub {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim); margin-top: 4px;
}
@media (max-width: 720px) {
  .tgs-hero-stats { grid-template-columns: 1fr; }
  .tgs-stat { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding: 16px 0; }
  .tgs-stat:not(:first-child) { padding-left: 0; }
  .tgs-stat:last-child { border-bottom: 0; }
}

/* ---------- capabilities ---------- */
.tgs-caps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft);
}
.tgs-cap {
  background: var(--bg); padding: 28px 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: background 0.2s ease;
}
.tgs-cap:hover { background: var(--card); }
.tgs-cap:hover .tgs-cap-title { color: var(--accent); }
.tgs-cap-head { display: flex; flex-direction: column; gap: 8px; }
.tgs-cap-title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 0; line-height: 1.2; transition: color 0.2s ease; }
.tgs-cap-body { font-size: 14.5px; line-height: 1.55; color: var(--ink-dim); margin: 0; text-wrap: pretty; flex: 1; }
.tgs-cust-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .tgs-caps-grid { grid-template-columns: 1fr; } }

/* ---------- differentiators ---------- */
.tgs-diff-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft);
}
.tgs-diff { background: var(--bg); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; transition: background 0.2s ease; }
.tgs-diff:hover { background: var(--card); }
.tgs-diff:hover .tgs-diff-h { color: var(--accent); }
.tgs-diff-h { font-size: 19px; font-weight: 500; letter-spacing: -0.005em; margin: 0; transition: color 0.2s ease; }
.tgs-diff-b { font-size: 15px; line-height: 1.55; margin: 0; color: var(--ink-dim); text-wrap: pretty; }
@media (max-width: 720px) { .tgs-diff-grid { grid-template-columns: 1fr; } }

/* ---------- customers ---------- */
.tgs-cust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft);
}
.tgs-cust {
  background: var(--bg); padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.2s ease;
}
.tgs-cust:hover { background: var(--card); }
.tgs-cust:hover .tgs-cust-label { color: var(--accent); }
.tgs-cust-label { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; transition: color 0.2s ease; }
.tgs-cust-desc { font-size: 14.5px; line-height: 1.5; color: var(--ink-dim); }
@media (max-width: 720px) { .tgs-cust-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.tgs-contact-stack {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 720px;
}
.tgs-contact-h {
  font-size: clamp(22px, 2.2vw, 32px); font-weight: 500;
  letter-spacing: -0.015em; margin: 0; line-height: 1.2; text-wrap: balance;
}
.tgs-contact-sub { font-size: 14.5px; line-height: 1.55; color: var(--ink-dim); margin: 0; max-width: 60ch; }
.tgs-contact-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  align-items: center; width: 100%;
  padding: 22px 24px;
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  text-align: left; cursor: pointer; color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.tgs-contact-row:hover { background: var(--card); border-color: var(--accent); }
.tgs-contact-row:hover .tgs-contact-addr { color: var(--accent); }
.tgs-contact-row:hover .tgs-contact-copy { color: var(--accent); border-color: var(--accent); }
.tgs-contact-addr {
  font-family: var(--mono); font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}
.tgs-contact-copy {
  border: 1px solid var(--rule-soft); padding: 4px 10px;
  color: var(--ink-dim); min-width: 68px; text-align: center; box-sizing: border-box;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tgs-contact-row:focus { outline: none; }
.tgs-contact-row:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ---------- footer ---------- */
.tgs-footer { margin-top: 88px; }
.tgs-footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--pad-x) 56px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; font-size: 13px; color: var(--ink-dim);
}
.tgs-footer-col { display: flex; flex-direction: column; gap: 6px; }
.tgs-footer-col > div { color: var(--ink); }
.tgs-footer-copy {
  align-self: flex-start;
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--rule-soft);
  padding: 3px 10px;
  color: var(--ink-dim);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tgs-footer-copy:hover { color: var(--accent); border-color: var(--accent); }
.tgs-footer-copy:focus { outline: none; }
.tgs-footer-copy:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) { .tgs-footer-inner { flex-direction: column; gap: 20px; } }
