/* ---------------------------------------------------------------
   GoSim — gosimulate.com
   Static site, system fonts only, no external requests.
   --------------------------------------------------------------- */

:root{
  --bg: #0a0d10;
  --bg-raised: #0f1317;
  --line: rgba(230, 236, 240, 0.10);
  --line-strong: rgba(230, 236, 240, 0.16);
  --text: #e9edf0;
  --text-muted: #99a3ac;
  --text-faint: #7d868f; /* keep ≥4.5:1 on --bg and --bg-raised (WCAG AA) */
  --accent: #00b0f0;
  --accent-dim: rgba(0, 176, 240, 0.35);
  --accent-glow: rgba(0, 176, 240, 0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --measure: 62ch;
  --content-w: 1320px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
}

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

html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

section[id]{
  scroll-margin-top: 5.5rem;
}

.skip-link{
  position: absolute;
  left: -9999px;
  z-index: 20;
  padding: 0.6em 1em;
  background: var(--bg-raised);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.skip-link:focus-visible{
  left: var(--space-3);
  top: var(--space-3);
}

body{
  margin: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(230, 236, 240, 0.04) 0,
      rgba(230, 236, 240, 0.04) 1px,
      transparent 1px,
      transparent 96px
    ),
    repeating-linear-gradient(
      to right,
      rgba(230, 236, 240, 0.04) 0,
      rgba(230, 236, 240, 0.04) 1px,
      transparent 1px,
      transparent 96px
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection{
  background: var(--accent-dim);
  color: #fff;
}

a{
  color: var(--accent);
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover, a:focus-visible{
  text-decoration-color: var(--accent);
}
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-2);
  display: flex;
  align-items: center;
  gap: 0.65em;
}
.eyebrow::before{
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

h1, h2, h3{
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h2{
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
  line-height: 1.12;
  text-wrap: balance;
}

p{
  margin: 0 0 var(--space-2);
  max-width: var(--measure);
  color: var(--text-muted);
}
p:last-child{ margin-bottom: 0; }

.accent{ color: var(--accent); }

/* ---------------- header ---------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 13, 16, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.wordmark{
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .o{ color: var(--accent); }

.site-nav ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.site-nav a{
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 0.2em 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible{
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------------- hero ---------------- */

.hero{
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0 calc(var(--space-6) + 1rem);
  border-bottom: 1px solid var(--line);
}

.hero h1.wordmark-hero{
  font-size: clamp(4rem, 1rem + 10vw, 9.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 0 -0.04em;
}
.wordmark-hero .o{ color: var(--accent); }

.lede-mark{
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--text);
  margin: 1.9rem 0 0 0.2rem;
  max-width: none;
}

.hire-mark{
  font-family: var(--font-mono);
  font-size: 1rem;
  margin: 1rem 0 0 0.2rem;
}

/* header wordmark stays hidden until the hero wordmark scrolls away */
@supports (animation-timeline: scroll()) {
  .site-header .wordmark{
    animation: reveal-mark linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 420px;
  }
  @keyframes reveal-mark{
    from{ opacity: 0; visibility: hidden; }
    to{ opacity: 1; visibility: visible; }
  }
}

/* signature: the brand "O" as a faint engineering ring off the right edge */
.hero-ring{
  position: absolute;
  top: 50%;
  right: -160px;
  transform: translateY(-50%);
  width: 780px;
  height: 780px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  box-shadow:
    inset 0 0 180px var(--accent-glow),
    0 0 220px var(--accent-glow);
  pointer-events: none;
}
.hero-ring::after{
  content: "";
  position: absolute;
  inset: 90px;
  border-radius: 50%;
  border: 1px solid rgba(0, 176, 240, 0.14);
}
/* innermost dashed ring for depth */
.hero-ring::before{
  content: "";
  position: absolute;
  inset: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 176, 240, 0.20);
}

/* soft bloom behind the wordmark so it sits in atmosphere */
.hero .wrap{ position: relative; }
.hero .wrap::before{
  content: "";
  position: absolute;
  left: -4%;
  top: 8%;
  width: 60%;
  height: 70%;
  background: radial-gradient(60% 60% at 30% 40%, var(--accent-glow), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

/* ---------------- sections ---------------- */

section{
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type{
  border-bottom: none;
}

.section-grid{
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-3) var(--space-5);
  align-items: center;
}

/* title-block metadata caption — gives the section rail a job */
.rail-meta{
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: var(--space-3) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  max-width: 22ch;
  line-height: 1.6;
}

.section-grid > .section-head{
  margin: 0;
}

.prose{
  display: grid;
  gap: var(--space-2);
  max-width: var(--measure);
}

.full{
  grid-column: 1 / -1;
}

/* ---------------- who we are ---------------- */

.team-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

/* four cards must land 4x1, 2x2, or 1x4 — never 3+1 */
@media (max-width: 1150px){
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 561px){
  .team-card .role{ min-height: 2.6em; }
}

.team-card{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: 10px;
  padding: var(--space-3);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.avatar{
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  background: radial-gradient(circle at 30% 25%, var(--accent-glow), transparent 70%), var(--bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card h3{
  font-size: 1.05rem;
  color: var(--text);
}

.team-card .role{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin: 0.3em 0 0.6em;
}

.team-card a{
  font-size: 0.9rem;
}

.team-card.open-role{
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.team-card.open-role .avatar{
  border-style: dashed;
  background: transparent;
  color: var(--text-faint);
}

/* ---------------- careers ---------------- */

.careers-box{
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: var(--space-4);
  background:
    radial-gradient(600px 200px at 0% 0%, var(--accent-glow), transparent 60%),
    var(--bg-raised);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-4) var(--space-5);
  align-items: center;
  margin-top: var(--space-4);
}

.careers-box h2{
  max-width: 14ch;
}

.btn{
  display: inline-block;
  margin-top: var(--space-3);
  padding: 0.75em 1.4em;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, .btn:focus-visible{
  background: var(--accent-glow);
  box-shadow: 0 0 0 3px var(--accent-glow);
  text-decoration: none;
}

/* ---------------- footer ---------------- */

.site-footer{
  padding: var(--space-4) 0 var(--space-5);
}

.site-footer p{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 80ch; /* widest hand-broken line is 75ch; keep the <br> structure intact */
}

.site-footer .foot-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.site-footer .wordmark{ font-size: 1rem; }

.site-footer .foot-links{
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------------- subpages (privacy etc.) ---------------- */

.page{
  padding: var(--space-5) 0 var(--space-6);
}
.page h1{
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: var(--space-4);
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px){
  .section-grid,
  .careers-box{
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .hero-ring{
    width: 460px;
    height: 460px;
    right: -220px;
  }
  .hero-ring::before{ inset: 110px; }
}

@media (max-width: 560px){
  :root{ font-size: 15.5px; }
  .wrap{ padding: 0 var(--space-3); }
  .hero{ padding: var(--space-5) 0; }
  section{ padding: var(--space-5) 0; }
  .team-grid{ grid-template-columns: minmax(0, 1fr); }
  .team-card{ flex-direction: column; }
  .hero-ring{ display: none; }

  /* keep the header to one row and the wordmark always visible */
  .site-header .wrap{ gap: var(--space-2); }
  .site-nav ul{ gap: var(--space-2); }
  .wordmark{ font-size: 1.1rem; }
  .site-header .wordmark{ animation: none; opacity: 1; visibility: visible; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
  html{ scroll-behavior: auto; }
  .site-header .wordmark{ animation: none !important; opacity: 1 !important; }
}
