/* Contibl — consulting-inspired typography (IBM Plex pairs well with enterprise sites) */
:root {
  --ink: #0d1b2a;
  --ink-muted: #415a77;
  --surface: #f8f7f3;
  --surface-alt: #f2f0ea;
  --line: #e2e8f0;
  --accent: #1b4965;
  --accent-hover: #163a52;
  --button-blue: var(--ink);
  --button-blue-hover: #08111c;
  --accent-soft: #cae9ff;
  --max: 72rem;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(13, 27, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.nav-desktop .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--button-blue);
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-desktop .nav-cta:hover {
  background: var(--button-blue-hover);
  color: #fff;
}

.menu-toggle {
  display: none;
  padding: 0.5rem;
  background: var(--button-blue);
  border: 1px solid var(--button-blue);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-desktop {
    position: fixed;
    inset: 0 0 auto 0;
    top: 3.75rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 0;
    display: none;
  }

  .nav-desktop.is-open {
    display: flex;
  }

  .nav-desktop a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-desktop a:last-of-type {
    border-bottom: none;
  }

  .nav-desktop .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 14vw, 10rem) 0 clamp(4.5rem, 10vw, 8rem);
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 auto;
  color: var(--ink);
  width: 100%;
  max-width: none;
  text-align: center;
  animation: heroTitleIn 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  text-wrap: balance;
}

.hero h1 .hero-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .hero-line:last-child {
  animation: heroLineIn 1000ms 140ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: clamp(4.5rem, 14vw, 6rem) 0 clamp(3.5rem, 10vw, 5rem);
  }

  .hero h1 .hero-line {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero h1 .hero-line:last-child {
    animation: none;
  }
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--button-blue);
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--button-blue);
}

.btn-primary:hover {
  background: var(--button-blue-hover);
  border-color: var(--button-blue-hover);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

/* Sections */
section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 2.8vw, 2.125rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-intro {
  color: var(--ink-muted);
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

.bg-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

/* Grid cards */
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Corporate / Apple alignment */
.corporate-panel {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .corporate-panel {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.dl-grid {
  display: grid;
  gap: 1.25rem;
}

.dl-grid dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

.dl-grid dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.apple-note {
  font-size: 0.875rem;
  color: var(--ink-muted);
  padding: 1.25rem 1.35rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.55;
}

.apple-note strong {
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 0;
  font-size: 0.9375rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.footer-meta {
  margin: 0;
  line-height: 1.6;
  max-width: 28rem;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.footer-wordmark {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 1.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0.45rem 1.25rem 0;
  background: #f3f2ef;
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 20vw, 16rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #000;
  user-select: none;
  white-space: nowrap;
  height: clamp(4.4rem, 10vw, 8.5rem);
  overflow: hidden;
}

@media (max-width: 640px) {
  .footer-bottom {
    font-size: 0.8125rem;
  }
}


/* Legal pages */
.legal-page {
  padding: clamp(2.5rem, 5vw, 4rem) 0 4rem;
  max-width: 42rem;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}
