/* ============================================================
   2N2 — 2n2offshore.com
   A trading name of Graftr Systems Ltd
   Fonts: Oswald (display), IBM Plex Sans (body), IBM Plex Mono (data)
   ============================================================ */

/* WOFF2 only — universally supported, and roughly a fifth of the TTF weight.
   Oswald ships as a variable font; IBM Plex is the latin subset. */
@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Sans";
  src: url("fonts/PlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Sans";
  src: url("fonts/PlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("fonts/PlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ----------
   Committed dark navy. The accent is deliberately restrained — hairlines,
   small marks and single words, never large fills. */
:root {
  --navy-950: #040c14;
  --navy-900: #071522;
  --navy-850: #0a1b2b;
  --navy-800: #0e2434;

  --accent: #3fa9dd;
  --accent-bright: #6cc6f0;
  --accent-dim: rgba(63, 169, 221, 0.16);

  --text: #edf4f9;
  --text-soft: #c3d4e0;
  --text-muted: #8ba4b8;
  --border: rgba(146, 183, 209, 0.16);
  --border-strong: rgba(146, 183, 209, 0.3);

  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --wrap: 1140px;
  --pad: clamp(20px, 5vw, 32px);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* Keeps anchored sections clear of the sticky header. */
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
  line-height: 1.08;
}

p {
  margin: 0;
  max-width: 64ch;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--navy-950);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  line-height: 1;
}

.wordmark .mark {
  font-size: 1.5rem;
}

.wordmark .descriptor {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  font-weight: 400;
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(4, 12, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

/* ---------- Coming-soon pill ----------
   Deliberately not a link or a button: there is nowhere for it to go yet,
   so it is presented as a status marker rather than a dead control. */
.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid rgba(63, 169, 221, 0.34);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.pill .pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(108, 198, 240, 0.5);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(108, 198, 240, 0);
  }
}

.pill-lg {
  font-size: 0.8rem;
  padding: 13px 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 11vw, 108px) 0 clamp(52px, 9vw, 92px);
  overflow: hidden;
}

/* Horizon glow — the only atmospheric flourish, no stock imagery. */
.hero::before {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 130%);
  height: 620px;
  background: radial-gradient(
    ellipse at center,
    rgba(63, 169, 221, 0.17) 0%,
    rgba(63, 169, 221, 0.05) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.5rem, 17vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  margin: 22px 0 0;
}

.hero-descriptor {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 2.4vw, 1.05rem);
  letter-spacing: clamp(0.3em, 1.6vw, 0.62em);
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 0;
}

.hero h1 {
  font-size: clamp(1.65rem, 4.4vw, 2.9rem);
  margin: 34px 0 0;
  max-width: 17ch;
}

.hero .lede {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--text-soft);
  margin-top: 22px;
  max-width: 56ch;
}

.hero .lede + .lede {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Section shell ---------- */
.section {
  padding: clamp(56px, 9vw, 92px) 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(34px, 5vw, 52px);
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  margin-top: 16px;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1.02rem;
}

/* Used where the heading is a grid column beside its content rather than
   stacked above it, so the trailing gap comes from the grid instead. */
.section-head.flush {
  margin-bottom: 0;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feature {
  background: var(--navy-900);
  padding: clamp(24px, 3vw, 32px);
  transition: background 0.18s ease;
}

.feature:hover {
  background: var(--navy-850);
}

.feature-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.feature h3 {
  font-size: 1.02rem;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-top: 20px;
  color: var(--text);
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
}

/* ---------- Toolbox ---------- */
.toolbox {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 68px);
  align-items: start;
}

.toolbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.toolbox-list li {
  background: var(--navy-900);
  padding: 17px 20px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 13px;
}

.toolbox-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 68px);
  align-items: start;
}

.about-body p + p {
  margin-top: 18px;
}

.about-body p {
  color: var(--text-soft);
  font-size: 1.04rem;
}

.about-body .attribution {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* ---------- Coming soon ---------- */
.coming {
  text-align: center;
}

.coming h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.coming p {
  margin: 20px auto 0;
  color: var(--text-muted);
  text-align: center;
}

.platforms {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.platform {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 15px 30px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.platform svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 44px);
}

.contact-block h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-block .value {
  margin-top: 12px;
  font-size: 1.06rem;
  color: var(--text);
}

.contact-block .value a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(108, 198, 240, 0.35);
}

.contact-block .value a:hover {
  border-color: var(--accent-bright);
}

.contact-block address {
  font-style: normal;
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.98rem;
}

.contact-block .note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Legal / long-form pages ---------- */
.page-header {
  padding: clamp(46px, 8vw, 78px) 0 clamp(28px, 4vw, 40px);
}

.page-header h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  margin-top: 16px;
}

.page-header .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 18px;
}

.prose {
  padding-bottom: clamp(56px, 9vw, 92px);
  max-width: 760px;
}

.prose h2 {
  font-size: 1.3rem;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 28px;
  line-height: 1.5;
}

.prose p {
  margin-top: 16px;
  color: var(--text-soft);
  max-width: none;
}

.prose ul {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--text-soft);
}

.prose li {
  margin-top: 9px;
}

.prose li::marker {
  color: var(--accent);
}

.prose address {
  font-style: normal;
  margin-top: 16px;
  color: var(--text-soft);
  line-height: 1.8;
}

.callout {
  margin-top: 22px;
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
}

.callout p {
  margin-top: 0;
}

.callout p + p {
  margin-top: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--navy-900);
  padding: clamp(44px, 6vw, 64px) 0 clamp(32px, 4vw, 44px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 40ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 0.92rem;
}

.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.legal-block {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px 44px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-block address {
  font-style: normal;
}

.legal-block strong {
  color: var(--text-soft);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.legal-block a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

.legal-block a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.copyright {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .toolbox,
  .about-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header .wrap {
    min-height: 64px;
  }

  /* The nav links matter more than a decorative status marker, so on narrow
     screens the header pill goes and the links stay. "Coming Soon" is still
     shown twice further down the page. */
  .header-pill {
    display: none;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.84rem;
  }

  .hero-actions {
    gap: 14px;
  }

  .platform {
    flex: 1 1 auto;
    justify-content: center;
  }

  .copyright {
    flex-direction: column;
    gap: 8px;
  }
}

.nav-links {
  display: contents;
}
