/* ==========================================================
   akether.com, signal trace theme
   Same tokens, typography and component vocabulary as the
   sibling site, so the two read as related without either
   claiming the relationship. What differs is the voice: this
   one is an entity speaking, never a person.
   ========================================================== */

:root {
  --bg: #0C1322;
  --bg-raised: #121C30;
  --bg-card: #101a2d;
  --line: rgba(148, 168, 199, 0.14);
  --line-strong: rgba(148, 168, 199, 0.28);
  --ink: #E9EEF7;
  --muted: #93A1B8;
  --amber: #FFB24D;
  --amber-dim: rgba(255, 178, 77, 0.14);
  --cyan: #57C7E3;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1080px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: #14100a; }
.mono { font-family: var(--font-mono); }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 115%;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--pad);
  background: rgba(12, 19, 34, 0.9);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.16em; text-decoration: none; }
.brand-dot { color: var(--amber); }
.topnav { display: flex; gap: clamp(0.7rem, 2.4vw, 1.6rem); align-items: center; }
.topnav a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.topnav a:hover, .topnav a:focus-visible { color: var(--amber); }
.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  color: var(--ink) !important;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--amber); }

/* ---------- hero ----------
   No 3D scene here. The globe is the other site's signature and
   copying it would read as a clone rather than a sibling. A flat
   trace grid does the same job at a fraction of the weight. */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 7.5rem var(--pad) 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(87, 199, 227, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 199, 227, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 75% 65% at 72% 45%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 72% 45%, #000 10%, transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 19, 34, 0.2), rgba(12, 19, 34, 0) 45%, rgba(12, 19, 34, 0.9));
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; width: 100%; }

.eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--amber); margin-bottom: 1.1rem; }

.hero-title {
  font-size: clamp(2.1rem, 7.6vw, 5rem);
  font-stretch: 100%;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero-title .line { display: block; }
.hero-title .line:last-child { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

.hero-sub { max-width: 40rem; font-size: clamp(1rem, 2.2vw, 1.13rem); color: var(--muted); margin-bottom: 1.8rem; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.hero-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid rgba(87, 199, 227, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--amber); color: #14100a; font-weight: 700; }
.btn-solid:hover { background: #ffc272; box-shadow: 0 8px 28px rgba(255, 178, 77, 0.25); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--pad); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 750; max-width: 40rem; }
.section-sub { color: var(--muted); margin-top: 0.8rem; max-width: 40rem; }

/* ---------- capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: rgba(255, 178, 77, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.card-proto { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--cyan); margin-bottom: 0.7rem; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.55rem; }
.card p { font-size: 0.92rem; color: var(--muted); }

.chipset { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.95rem; }
.chipset span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* ---------- engagement steps ---------- */
.steps { list-style: none; display: grid; gap: 0.9rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(255, 178, 77, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.step p { font-size: 0.93rem; color: var(--muted); max-width: 56ch; }

/* ---------- domains strip ---------- */
/* 1px grid gaps over a line-coloured background draw the separators, so the
   strip stays correct at any column count and at any wrap point. Per-item
   borders and nth-child rules cannot do that once the count changes. */
.domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.domain { padding: 1.5rem 1.1rem; text-align: center; background: var(--bg-raised); }
.domain-name { font-family: var(--font-display); font-stretch: 110%; font-weight: 750; font-size: 1.05rem; }
.domain-note { display: block; margin-top: 0.35rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- company / contact rows ---------- */
.rows { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.4rem;
  text-decoration: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.row:last-child { border-bottom: 0; }
a.row:hover { background: var(--bg-raised); }
a.row:hover .row-arrow { transform: translateX(5px); }
.row-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--amber); }
.row-value { font-size: 0.95rem; overflow-wrap: anywhere; }
.row-arrow { color: var(--amber); transition: transform 0.2s; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 2.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-sig { color: var(--cyan); }

/* ---------- reveal ----------
   Scoped to .js-reveal, which main.js puts on <html> only when it is about to
   run the observer. Hide content by default and a JS failure, a blocked file
   or a slow network leaves the page blank. The animation is an enhancement,
   never a precondition for reading the site. */
.js-reveal .reveal,
.js-reveal .card,
.js-reveal .step,
.js-reveal .section-head,
.js-reveal .rows,
.js-reveal .domain {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js-reveal .in-view { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.42s; }

/* ---------- responsive ---------- */
@media (max-width: 620px) {
  .topnav a:not(.nav-cta) { display: none; }
  .step { grid-template-columns: 1fr; gap: 0.7rem; }
  .step-num { justify-self: start; }
  .row { grid-template-columns: 1fr auto; }
  .row-label { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal, .js-reveal .card, .js-reveal .step, .js-reveal .section-head, .js-reveal .rows, .js-reveal .domain { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

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