/* 01. FOUNDATION — font, design tokens and reset */
@font-face {
  font-family: "Instrument Sans";
  src: url("https://www.holli.st/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Palette */
  --paper: #fcfdfe;
  --white: #fff;
  --ink: #101113;
  --muted: #5b5e62;
  --line: #dfe6eb;
  --blue: #255684;
  --blue-deep: #173b60;
  --blue-soft: #d1e0f2;
  --blue-pale: #edf4fb;

  /* Layout */
  --container: 1180px;
  --header: 72px;
  --radius: 0;

  /* Type scale — one source of truth for the whole site */
  --type-label: .75rem;
  --type-small: .875rem;
  --type-ui: .9375rem;
  --type-body: 1.0625rem;
  --type-body-lg: 1.125rem;
  --type-lead: clamp(1.125rem, 1.35vw, 1.3125rem);
  --type-heading-sm: 1.25rem;
  --type-card: clamp(1.375rem, 1.6vw, 1.75rem);
  --type-display: clamp(1.9rem, 2.45vw, 2.85rem);
  --type-hero: clamp(2.25rem, 3.25vw, 3.5rem);
  --type-subsection: clamp(1.85rem, 2.5vw, 3rem);
  --type-section: clamp(2.1rem, 3.3vw, 3.75rem);

  /* Leading and tracking */
  --leading-body: 1.55;
  --leading-copy: 1.42;
  --leading-card: 1.1;
  --leading-title: 1.04;
  --leading-ui: 1.2;
  --leading-label: 1.3;
  --tracking-title: -.04em;
  --tracking-card: -.03em;
  --tracking-meta: .08em;
  --tracking-label: .16em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--type-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

/* 02. TYPOGRAPHY ROLES — shared across every page and component */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: var(--leading-title); letter-spacing: var(--tracking-title); text-wrap: balance; }
h1 { font-size: var(--type-display); }
h2 { font-size: var(--type-section); }
h3 { font-size: var(--type-card); }
p { text-wrap: pretty; }

/* Components choose a role instead of inventing a local title size. */
.display-title {
  font-size: var(--type-display);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
}
.card-title {
  font-size: var(--type-card);
  line-height: var(--leading-card);
  letter-spacing: var(--tracking-card);
}

.eyebrow {
  display: block;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: var(--type-label);
  font-weight: 700;
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* 03. SITE CHROME — header, navigation and shared actions */
.site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header);
  border-bottom: 1px solid rgba(37, 86, 132, .15);
  background: rgba(252, 253, 254, .92);
  backdrop-filter: blur(14px);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.brand img { display: block; width: 112px; height: auto; }

.desktop-nav { display: flex; align-items: center; gap: 25px; }
.desktop-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--type-small);
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--ink); }

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
  font-weight: 650;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.header-cta { min-height: 42px; padding-inline: 18px; font-size: var(--type-small); white-space: nowrap; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-small); color: var(--muted); }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 4px 2px; font-weight: 650; letter-spacing: .04em; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); cursor: default; pointer-events: none; }
.lang-switch .sep { color: var(--line); }
.button:hover, .header-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--blue); }
.button.secondary:hover { background: var(--blue-pale); }
.button.white { background: #fff; border-color: #fff; color: var(--blue-deep); }
.button.white:hover { background: var(--blue-pale); }
.story-actions { display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap; }

.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; margin: 5px 0; transition: transform .18s ease, opacity .18s ease; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }

/* 04. HOME — triptych and client reassurance */
.compact-home {
  display: flex;
  align-items: center;
  padding: 54px 0;
  background: var(--paper);
}
.compact-grid {
  display: grid;
  grid-template-columns: .9fr 1.28fr 1fr;
  gap: 1px;
  width: 100%;
  border: 1px solid var(--blue);
  background: var(--blue);
}
.compact-card {
  min-height: min(500px, calc(100svh - 180px));
  display: grid;
  grid-template-rows: auto 126px 1fr 112px;
  row-gap: 18px;
  padding: 32px;
  background: var(--white);
}
.compact-card:nth-child(2) { background: var(--blue-deep); color: white; }
.compact-card:nth-child(3) { background: var(--blue-soft); }
.compact-card .eyebrow { margin-bottom: 0; }
.compact-card:nth-child(2) .eyebrow { color: var(--blue-soft); }
.compact-card h1,
.compact-card h2 {
  margin: 0 0 26px;
}
.compact-card h1 span,
.compact-card h2 span { display: block; white-space: nowrap; }
.compact-card p { margin: 0 0 10px; font-size: var(--type-body-lg); line-height: var(--leading-copy); }
.compact-card .compact-body { align-self: start; }
.compact-actions { align-self: end; display: grid; gap: 12px; }
.compact-card .button { width: 100%; }

.client-strip { padding: 54px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.client-strip .container { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 40px; }
.client-strip p { margin: 0; color: var(--muted); }
.client-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.client-logo {
  min-height: 112px;
  display: grid;
  grid-template-rows: minmax(48px, 1fr) auto;
  place-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-left: 1px solid var(--line);
  font-weight: 650;
  color: #30353a;
}
.client-logo img { display: block; width: auto; max-width: 132px; max-height: 48px; object-fit: contain; }
.logo-name {
  display: block;
  align-self: end;
  color: var(--muted);
  font-size: var(--type-label);
  line-height: var(--leading-label);
  font-weight: 500;
  text-align: center;
}

/* 05. SHARED PAGE INTRO — a calm opening component used on all six pages */
.page-hero {
  min-height: 330px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 62px 0 66px;
  background: linear-gradient(120deg, var(--paper) 0%, #f0f1f2 100%);
}
.page-hero .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 86px; align-items: start; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { margin-bottom: 0; }
.hero-side { max-width: 610px; padding: 34px 0 0; }
.hero-side .lead { font-size: var(--type-lead); line-height: var(--leading-copy); color: #2e3439; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.quick-links a { padding: 9px 13px; border: 1px solid var(--line); text-decoration: none; font-size: var(--type-small); }
.split-hero .hero-grid { grid-template-columns: 1.05fr .95fr; }
.split-hero .hero-grid > div:first-child { padding-right: 24px; color: var(--ink); }
.split-hero .hero-grid > div:first-child .eyebrow { color: var(--blue); }
.split-hero h1 { max-width: 14ch; font-size: var(--type-hero); line-height: 1.06; }

/* 06. CONTENT SECTIONS — shared layouts and heading hierarchy */
.section { padding: 100px 0; border-bottom: 1px solid var(--blue); }
.section.soft { background: var(--blue-pale); }
.section.blue { background: var(--blue-deep); color: #fff; }
.section.blue .eyebrow { color: var(--blue-soft); }
.split-section { display: grid; grid-template-columns: 300px 1fr; gap: 70px; }
.section-title { position: sticky; top: calc(var(--header) + 30px); align-self: start; }
.section-title h2 { font-size: var(--type-subsection); }
.section-content { max-width: 800px; }
.section-content > p { font-size: var(--type-body-lg); color: #343a3e; }
.blue .section-content > p { color: rgba(255,255,255,.78); }

/* 07. OFFER — groups, cards and decision component */
.offer-group + .offer-group { margin-top: 90px; }
.group-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-bottom: 28px; align-items: end; }
.group-head h2 { margin-bottom: 0; }
.group-head p { margin: 0; color: var(--muted); }
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.offer-grid.one { grid-template-columns: 1fr; }
.offer-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 34px;
  border: 1px solid var(--blue);
  background: var(--white);
}
.offer-card h3 { margin: 0 0 25px; }
.offer-result { font-size: var(--type-body-lg); margin-bottom: 30px; }
.offer-facts { margin: 30px 0; }
.offer-fact { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--type-small); }
.offer-fact b { font-size: var(--type-label); text-transform: uppercase; letter-spacing: var(--tracking-meta); color: var(--muted); }
.offer-card .button { align-self: flex-start; }
.offer-card.featured { background: var(--blue-deep); color: white; }
.offer-card.featured .offer-fact b { color: var(--blue-soft); }
.offer-card.featured .offer-fact { border-color: rgba(255,255,255,.2); }

.decision-box { padding: 54px; background: var(--blue-soft); }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 36px 0; }
.decision-grid p { margin: 0; }

/* 08. HOLLI BRAIN — pillars, technical layers and proof points */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; border: 1px solid var(--blue); background: var(--blue); }
.pillar { background: var(--white); padding: 26px 20px; min-height: 240px; }
.pillar .num { color: var(--blue); font-size: var(--type-small); line-height: var(--leading-label); font-weight: 700; }
.pillar h3 { font-size: var(--type-heading-sm); margin: 56px 0 12px; }
.pillar p { color: var(--muted); font-size: var(--type-body); }

.experience-callout {
  margin: 50px 0 0;
  padding: 36px;
  border-left: 4px solid var(--blue);
  background: var(--blue-pale);
}
.experience-callout strong { display: block; font-size: var(--type-card); line-height: var(--leading-card); letter-spacing: var(--tracking-card); margin-bottom: 15px; }

.tech-layers { border-top: 1px solid var(--line); }
.tech-layers h4.eyebrow { margin: 30px 0 20px; }
.tech-layer { display: grid; grid-template-columns: 64px minmax(240px, 1fr) 2fr; gap: 25px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tech-layer .num { color: var(--blue); font-size: var(--type-small); line-height: var(--leading-label); font-weight: 700; }
.tech-layer h3 { font-size: var(--type-body-lg); line-height: var(--leading-copy); letter-spacing: -.02em; margin: 0; white-space: nowrap; }
.tech-layer p { margin: 0; color: var(--muted); }
.tech-layer + p { margin-top: 36px; }

.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 35px; }
.partner { min-height: 132px; display: grid; grid-template-rows: minmax(66px, 1fr) auto; place-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line); text-align: center; font-weight: 650; background: var(--white); }
.partner a { display: contents; color: inherit; text-decoration: none; }
.partner img { display: block; width: auto; max-width: 82%; max-height: 66px; object-fit: contain; }
.partner--text { grid-template-rows: 1fr; }

.video-placeholder {
  aspect-ratio: 16 / 9;
  margin-top: 38px;
  border: 1px solid var(--blue);
  background: var(--paper);
  overflow: hidden;
}
.video-embed { display: block; width: 100%; height: 100%; border: 0; }
.play { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid white; border-radius: 50%; font-size: var(--type-heading-sm); }

/* 09. TEAM AND ECOSYSTEM — editorial and identity components */
.prose { max-width: 760px; }
.prose h2 { margin: 70px 0 24px; font-size: var(--type-section); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #343a3e; }
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 45px; }
.founder { overflow: hidden; background: var(--blue-soft); border: 1px solid var(--blue); }
.founder-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.founder-copy { padding: 24px 26px 26px; }
.founder h3 { margin-bottom: 8px; }
.founder p { margin: 0; color: var(--muted); }
.founder-linkedin { display: inline-block; margin-top: 4px; font-size: var(--type-small); color: var(--blue); text-decoration: none; font-weight: 650; }
.founder-linkedin:hover { text-decoration: underline; }
.page-hero .founders { gap: 12px; margin-top: 22px; }
.page-hero .founder { display: grid; grid-template-columns: 82px 1fr; align-items: center; }
.page-hero .founder-photo { width: 82px; height: 94px; aspect-ratio: auto; }
.page-hero .founder-copy { padding: 12px 14px; }
.page-hero .founder h3 { margin-bottom: 4px; font-size: var(--type-body); }
.page-hero .founder p { font-size: var(--type-small); line-height: var(--leading-copy); }

/* 10. CONTACT, FINAL CTA AND FOOTER */
.contact-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-action {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid var(--blue);
  background: var(--white);
  text-decoration: none;
}
.contact-action.primary { background: var(--blue-deep); color: white; }
.contact-action .arrow { align-self: flex-end; font-size: var(--type-card); line-height: 1; }
.contact-action h2 { font-size: var(--type-display); margin: 0; }
.contact-action p { margin: 20px 0 0; color: var(--muted); }
.contact-action.primary p { color: rgba(255,255,255,.72); }

.cta-section { padding: 90px 0; background: var(--blue-deep); color: white; }
.cta-section .container { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; }
.cta-section h2 { max-width: 850px; margin-bottom: 15px; }
.cta-section p { margin: 0; color: rgba(255,255,255,.75); font-size: var(--type-body-lg); }

.site-footer { padding: 30px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--type-label); }
.site-footer .container { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }

/* 11. MOTION AND RESPONSIVE RULES */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .site-header .container { gap: 10px; }
  .header-cta { display: inline-flex; min-height: 38px; padding-inline: 12px; font-size: var(--type-label); }
  .menu-toggle { display: block; }
  .mobile-nav {
    position: fixed;
    inset: var(--header) 0 0;
    z-index: 39;
    padding: 35px 20px;
    background: var(--paper);
  }
  body.menu-open .mobile-nav { display: flex; flex-direction: column; gap: 8px; }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: var(--type-heading-sm); }
  .page-hero { min-height: 0; padding: 0; background: #f0f1f2; }
  .page-hero .hero-grid, .split-section { grid-template-columns: 1fr; }
  .page-hero .hero-grid { gap: 0; }
  .split-hero .hero-grid > div:first-child {
    padding: 46px 0 18px;
    background: transparent;
  }
  .hero-side { max-width: 650px; padding: 0 0 46px; }
  .compact-grid { grid-template-columns: 1fr; }
  .compact-card { min-height: 380px; }
  .section-title { position: static; }
  .client-strip .container, .decision-grid { grid-template-columns: 1fr; }
  .client-logos { grid-template-columns: repeat(2, 1fr); }
  .client-logo { border: 1px solid var(--line); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .cta-section .container { grid-template-columns: 1fr; align-items: start; }
  .contact-actions { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root {
    --header: 64px;
    --type-body: 1rem;
    --type-body-lg: 1.0625rem;
  }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand img { width: 98px; }
  .header-cta { min-height: 36px; padding-inline: 10px; font-size: .6875rem; }
  .menu-toggle { padding: 8px; }
  .page-hero { padding: 0; }
  .compact-home { min-height: auto; padding: 20px 0; }
  .compact-card { min-height: 360px; padding: 26px; grid-template-rows: auto auto auto auto; row-gap: 28px; }
  .compact-card .compact-body { align-self: start; }
  .section { padding: 70px 0; }
  .group-head, .offer-grid, .founders { grid-template-columns: 1fr; }
  .offer-card { min-height: auto; }
  .offer-facts { margin-top: 30px; }
  .decision-box { padding: 30px 22px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: auto; }
  .pillar h3 { margin-top: 30px; }
  .tech-layer { grid-template-columns: 42px 1fr; }
  .tech-layer p { grid-column: 2; }
  .partners { grid-template-columns: 1fr 1fr; }
  .cta-section { padding: 70px 0; }
}
