/* ================================================================
   IDNA Partners — monochrome editorial theme
   Warm off-white paper, warm near-black ink, one deep blue accent
   used sparingly. Grotesque display type at large scale,
   mono for labels and numbers. Hairline rules, ledger-grid hero.
   ================================================================ */
:root {
  --paper: #fafaf8;          /* off-white ground */
  --paper-warm: #efeeea;     /* warm alternate band */
  --white: #ffffff;
  --ink: #1b1a17;            /* warm near-black */
  --ink-soft: #605e56;
  --blue: #2743d0;           /* single accent — use rarely */
  --rule: #e0dfd9;
  --rule-strong: #cfcec6;
  --rule-dark: rgba(250, 250, 248, 0.14);
  --grotesk: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--grotesk);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 500;
  color: var(--ink);
}

h1 {
  font-size: clamp(3.1rem, 9.2vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.55em;
  max-width: 21em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.eyebrow-dark { color: rgba(250, 250, 248, 0.55); }

.section { padding: 140px 0; }
.section-white { background: var(--white); }

section[id] { scroll-margin-top: 84px; }

.section-dark { background: var(--ink); }
.section-dark h2 { color: var(--paper); }

.section-lead {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  margin-bottom: 4.5rem;
}

/* ================= Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--mono);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--paper) !important;
  background: var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  padding: 110px 0 120px;
  background: var(--paper);
  overflow: hidden;
}

/* Signature: faint actuarial ledger grid fading down the page */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(27, 26, 23, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 26, 23, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
  pointer-events: none;
}

.hero-content { position: relative; }

.hero-title { margin-bottom: 0.5em; }

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;   /* keep descenders inside the clip */
  margin-bottom: -0.06em;
}
.hero-line-inner { display: block; }

.hero-word { position: relative; display: inline-block; }
.hero-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.05em;
  background: var(--blue);
  transform-origin: left center;
}

.hero-sub {
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

/* ================= Buttons & links ================= */
.btn {
  display: inline-block;
  padding: 18px 36px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.arrow-link {
  font-family: var(--mono);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.arrow-link:hover { color: var(--blue); border-color: var(--blue); }
.arrow-link span { margin-left: 6px; }

/* ================= Pillars strip ================= */
.pillars {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 84px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.pillar-item {
  border-left: 1px solid var(--rule-strong);
  padding-left: 26px;
}

.pillar-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.pillar-item p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* ================= About ================= */
.two-col {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}
.about-copy p + p { margin-top: 1.3em; }

/* ================= Expertise ================= */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}

.expertise-col {
  padding: 44px 40px 10px 0;
}
.expertise-col + .expertise-col {
  border-left: 1px solid var(--rule);
  padding-left: 40px;
}

.expertise-col h3 { margin-bottom: 1.2rem; }

.expertise-col ul { list-style: none; }

.expertise-col li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.expertise-col li:last-child { border-bottom: none; }

/* ================= Services ================= */
.service-list { border-top: 1px solid var(--rule); }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
}

.service-row h3 {
  font-size: 1.5rem;
  max-width: 11em;
  transition: color 0.2s;
}
.service-row:hover h3 { color: var(--blue); }

.service-row p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ================= Approach (dark band) ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
  margin-top: 4rem;
}

.step {
  border-top: 1px solid var(--rule-dark);
  padding-top: 26px;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 248, 0.45);
}

.step h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
  color: var(--paper);
}

.step p {
  color: rgba(250, 250, 248, 0.62);
  font-size: 0.99rem;
}

/* ================= Why ================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  margin-top: 1rem;
}

.why-item {
  border-top: 1px solid var(--rule);
  padding: 34px 0 42px;
}

.why-item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}

.why-item p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 30em;
}

/* ================= Contact ================= */
.contact {
  background: var(--ink);
  padding: 130px 0;
}

.contact h2 { color: var(--paper); }

.contact-lead {
  color: rgba(250, 250, 248, 0.65);
  max-width: 580px;
  font-size: 1.13rem;
  margin-bottom: 2.8rem;
}

/* ================= Footer ================= */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--rule-dark);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-tag {
  color: rgba(250, 250, 248, 0.5);
  font-size: 0.85rem;
}

.footer-nav { display: flex; gap: 26px; }

.footer-nav a {
  font-family: var(--mono);
  color: rgba(250, 250, 248, 0.7);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--paper); }

.footer-legal {
  font-family: var(--mono);
  color: rgba(250, 250, 248, 0.45);
  font-size: 0.72rem;
}

/* ================= Responsive ================= */
@media (max-width: 1000px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-row h3 { max-width: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 460px; }
  .site-nav a {
    width: 100%;
    padding: 16px 5%;
    border-top: 1px solid var(--rule);
  }
  .nav-cta {
    border-radius: 0;
    background: var(--ink);
  }
}

@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .hero { min-height: auto; padding: 90px 0 84px; }
  .hero-grid { background-size: 52px 52px; }
  .contact { padding: 84px 0; }

  .pillars { padding: 60px 0; }
  .pillars-grid, .steps, .why-grid, .expertise-grid { grid-template-columns: 1fr; }

  .why-item { padding: 28px 0 30px; }

  .expertise-grid { border-top: none; }
  .expertise-col {
    padding: 34px 0 6px;
    border-top: 1px solid var(--rule);
  }
  .expertise-col + .expertise-col {
    border-left: none;
    padding-left: 0;
  }

  .service-row { padding: 36px 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
