/* =========================================================
   OpenIR — Corporate site styles
   Palette pulled from logo: deep navy + teal on cream
   ========================================================= */

:root {
  /* Brand */
  --ink:        #0B2A4A;     /* deep navy from logo wordmark */
  --ink-soft:   #1A3D63;
  --ink-muted:  #4B637E;
  --teal:       #1B8B9E;     /* accent from logo "IR" */
  --teal-deep:  #146F80;
  --teal-soft:  #E6F2F4;

  /* Surface */
  --paper:      #F5F1EA;     /* warm cream — same off-white as logo bg */
  --paper-2:    #EFE9DE;
  --paper-3:    #E7DFD0;
  --line:       #D8CFBE;
  --line-soft:  #E8E2D5;
  --white:      #FFFFFF;

  /* Type */
  --serif:  "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans:   "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --max:    1240px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--teal-deep); }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__mark {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__name { color: var(--ink); }
.brand__name em { font-style: normal; color: var(--teal); }

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  transition: background 180ms ease, color 180ms ease;
}
.nav__cta:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white) !important; }

@media (max-width: 720px) {
  .nav { gap: 18px; font-size: 13px; }
  .nav__link--hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 36px;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(27,139,158,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(27,139,158,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(27,139,158,0.06); }
}

.hero__h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 14ch;
}
.hero__h1 em {
  font-style: italic;
  color: var(--teal-deep);
  font-weight: 400;
}
.hero__lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 44px;
}
@media (min-width: 981px) {
  .hero__lede { max-width: 42ch; }
  .hero__h1   { max-width: 12ch; }
}
.hero__actions {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: transform 200ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 220ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero decorative chart */
.hero__chart {
  position: absolute;
  right: 0;
  top: 22%;
  width: min(46%, 580px);
  opacity: 0.92;
  pointer-events: none;
}
.hero__chart svg { width: 100%; height: auto; }
@media (max-width: 980px) {
  .hero__chart { position: static; width: 100%; margin-top: 56px; opacity: 1; }
}

/* Hero meta strip */
.hero__meta {
  margin-top: clamp(64px, 9vw, 110px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.hero__meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}
@media (max-width: 720px) {
  .hero__meta { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Section ---------- */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3, .section--ink p { color: var(--paper); }
.section--paper-2 { background: var(--paper-2); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(48px, 8vw, 80px);
  align-items: end;
}
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; } }

.section__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section--ink .section__label { color: rgba(245, 241, 234, 0.55); }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.section__title em { font-style: italic; color: var(--teal); font-weight: 400; }

/* ---------- About / Two-column body ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

.about__lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
}
.about__body p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 52ch;
}
.about__body p:last-child { margin-bottom: 0; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 241, 234, 0.12);
  border: 1px solid rgba(245, 241, 234, 0.12);
}
.pillar {
  padding: clamp(28px, 3vw, 44px);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.pillar__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--teal);
}
.pillar__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}
.pillar__body {
  font-size: 15px;
  color: rgba(245, 241, 234, 0.72);
  line-height: 1.6;
  margin: 0;
}
.pillar__rule {
  margin-top: auto;
  height: 1px;
  background: linear-gradient(to right, var(--teal), transparent);
}
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Timeline / Status ---------- */
.status {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.status:last-child { border-bottom: 1px solid var(--line); }
.status__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  padding-top: 6px;
}
.status__phase {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.status__phase .badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  border: 1px solid var(--teal);
}
.status__phase .badge--ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.status__desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 540px) {
  .status { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

.contact__big {
  font-family: var(--serif);
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  font-weight: 400;
}
.contact__big a {
  color: var(--teal);
  font-style: italic;
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
  transition: color 180ms ease, border-color 180ms ease;
}
.contact__big a:hover { color: var(--paper); border-color: var(--paper); }

.contact__card {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 4px;
  border: 1px solid var(--line);
}
.contact__card h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.contact__card p {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--ink);
}
.contact__card .muted { font-family: var(--sans); font-size: 14px; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.foot {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

.foot__about p { max-width: 38ch; margin: 14px 0 0; color: var(--ink-muted); }
.foot__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 500;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot__col a { color: var(--ink-soft); }
.foot__col a:hover { color: var(--ink); }

.foot__bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: clamp(64px, 10vw, 120px) 0 clamp(80px, 12vw, 140px);
}
.legal__head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}
.legal__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 16px;
}
.legal__title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.legal__updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0;
}

.legal__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) { .legal__grid { grid-template-columns: 1fr; } }

.legal__toc {
  position: sticky;
  top: 100px;
  font-family: var(--sans);
  font-size: 13px;
}
.legal__toc h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-weight: 500;
}
.legal__toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal__toc li { counter-increment: toc; padding: 6px 0; }
.legal__toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal);
  margin-right: 10px;
}
.legal__toc a { color: var(--ink-soft); }
.legal__toc a:hover { color: var(--ink); }

.legal__body h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
  scroll-margin-top: 120px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal__body p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  max-width: 68ch;
}
.legal__body ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink-soft);
  max-width: 68ch;
}
.legal__body li { margin-bottom: 8px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
