:root {
  /* Taken from the logo: navy letterform, sunrise disc */
  --navy: #0e3178;
  --navy-deep: #0a2459;
  --sun-light: #f5be55;
  --sun: #ea8a3c;
  --sun-deep: #e05a28;

  --bg: #fbf8f2;
  --tint: #f3ede2;
  --ink: #131c33;            /* navy-tinted near-black, 15:1 on bg */
  --muted: #535b70;          /* 6.4:1 on bg */
  --line: #e2dacb;
  --line-strong: #c9bfac;

  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain, so the flat cream doesn't read as a default fill */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--navy);
}
h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--sun-deep);
  /* the serif runs small next to the grotesk */
  font-size: 1.08em;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--navy);
}
h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; text-wrap: pretty; }

a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sun-deep); }

:focus-visible {
  outline: 2px solid var(--sun-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 242, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-name {
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--navy);
}
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) {
  display: inline-block; padding: 0.5rem 0.7rem;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  background: linear-gradient(var(--sun-deep), var(--sun-deep)) no-repeat 0.7rem calc(100% - 0.35rem) / 0 1.5px;
  transition: background-size 0.25s var(--ease), color 0.2s ease;
}
.nav-list a:not(.btn):hover { color: var(--navy); background-size: calc(100% - 1.4rem) 1.5px; }
.nav-cta { margin-left: 0.6rem; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.8rem 1.6rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--navy); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -12px rgba(14, 49, 120, 0.7);
  transition: background-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn:hover { background: var(--navy-deep); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset; }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.925rem; border-radius: 6px; box-shadow: none; }

.text-link {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  font-weight: 600; color: var(--navy); text-decoration: none;
  border-bottom: 1.5px solid var(--sun); padding-bottom: 0.15rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { color: var(--navy-deep); border-color: var(--sun-deep); }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.text-link:hover .arrow { transform: translate(2px, -1px); }

/* Hero */
.hero { padding: 3.5rem 0 0; overflow: hidden; }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.kicker {
  margin: 0 0 1.5rem; font-size: 0.95rem; font-weight: 500; color: var(--muted);
}
.kicker span { color: var(--sun-deep); margin: 0 0.35rem; }
.lede { margin: 1.75rem 0 0; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 33rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2.25rem; }

.hero-art { display: none; position: relative; justify-self: end; width: 300px; aspect-ratio: 1; }
.hero-art img {
  position: relative; display: block; width: 100%; height: auto;
  filter: drop-shadow(0 28px 36px rgba(224, 90, 40, 0.28));
}
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.ring-1 { inset: -14%; }
.ring-2 { inset: -32%; border-style: dashed; opacity: 0.7; }
.ring-2::after {
  /* a small planet on the outer orbit */
  content: ""; position: absolute; top: 13%; left: 13%;
  width: 14px; height: 14px; border-radius: 50%; background: var(--navy);
}

.facts {
  margin: 4rem 0 0; display: grid; gap: 0;
  border-top: 1px solid var(--line-strong);
}
.facts > div { padding: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.925rem; color: var(--muted); font-weight: 500; }
.facts dd {
  margin: 0.35rem 0 0; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1;
  font-weight: 700; letter-spacing: -0.04em; color: var(--navy);
}
.facts dd.facts-text {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.15; padding-top: 0.35rem;
}

/* Sections */
.section { padding: 4.5rem 0 5rem; }
.section-tint { background: var(--tint); }
.body-lg { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; color: var(--ink); max-width: 38rem; }

.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 30rem; }

.split { display: grid; gap: 1.5rem; }

/* Ventures: a ledger, not a card grid */
.ventures { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.venture {
  position: relative;
  display: grid; gap: 0.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}
.venture::before {
  /* sunrise rule that draws in on hover */
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--sun-light), var(--sun-deep));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.venture:has(.venture-link):hover::before,
.venture:has(.venture-link:focus-visible)::before { transform: scaleX(1); }
.venture h3 { color: var(--navy); }
.venture h3 a { color: inherit; text-decoration: none; }
/* Whole row is clickable for ventures that link out */
.venture-link::after { content: ""; position: absolute; inset: 0; }
.venture-link:focus-visible { outline: none; }
.venture-link:focus-visible::after { outline: 2px solid var(--sun-deep); outline-offset: 4px; border-radius: 4px; }
.venture-kind { margin: 0.3rem 0 0; font-size: 0.925rem; color: var(--muted); }
.venture-desc { margin: 0; color: var(--ink); max-width: 34rem; }
.venture-meta { font-weight: 600; font-size: 0.95rem; color: var(--navy); white-space: nowrap; }
.venture-meta-quiet { font-weight: 400; color: var(--muted); }
.venture:hover .venture-meta .arrow { transform: translate(3px, -3px); }
.venture:has(.venture-link):hover .venture-meta { color: var(--sun-deep); }

/* How we work */
.stack { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); max-width: 38rem; }
.stack dt { font-size: 0.925rem; color: var(--muted); font-weight: 500; }
.stack dd { margin: 0.25rem 0 0; font-weight: 600; color: var(--navy); }

/* Founder */
.founder-name {
  margin: 0 0 0.75rem;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--sun-deep);
}
#founder .body-lg { margin-bottom: 1.75rem; }

/* Contact */
.section-contact { padding: 0 0 4rem; }
.contact-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 2.75rem 1.5rem 2.5rem;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(245, 190, 85, 0.2), transparent 55%),
    var(--navy);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(10, 36, 89, 0.55);
}
.contact-panel h2 { color: #fff; }
.contact-intro { margin: 0.75rem 0 2rem; color: #c9d4ee; max-width: 26rem; }
.contact-email {
  display: inline-block; max-width: 100%;
  font-size: clamp(1.35rem, 4.6vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  color: #fff; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--sun-light), var(--sun-light)) no-repeat 0 100% / 100% 2px;
  padding-bottom: 0.3rem;
  transition: color 0.2s ease;
}
.contact-email:hover { color: var(--sun-light); }
.contact-list { margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
.contact-list dt { font-size: 0.9rem; color: #a9b8dc; }
.contact-list dd { margin: 0.15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.contact-list a:hover { color: var(--sun-light); text-decoration-color: currentColor; }
.contact-panel :focus-visible { outline-color: var(--sun-light); }

/* Footer */
.site-footer { padding: 0 0 2.5rem; color: var(--muted); font-size: 0.925rem; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo { width: 9.5rem; height: auto; display: block; }
.site-footer p { margin: 0 0 0.4rem; }

/* Larger screens */
@media (min-width: 720px) {
  .facts { grid-template-columns: 1fr 1.3fr 1.4fr; }
  .facts > div { padding: 1.5rem 2rem 2rem 0; border-bottom: 0; }
  .facts > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
  .contact-list { grid-template-columns: auto auto; justify-content: start; gap: 3.5rem; }
  .contact-panel { padding: 3.5rem 3rem 3.25rem; }
}
@media (min-width: 900px) {
  .container { padding: 0 2.5rem; }
  .hero { padding: 6.5rem 0 0; }
  .hero-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; }
  .hero-art { display: block; margin-right: 3.5rem; }
  .facts { margin-top: 6.5rem; }
  .section { padding: 7rem 0 8rem; }
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 3.5rem; }
  .section-head p { justify-self: end; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 3rem; }
  .venture {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(9rem, auto);
    gap: 3rem; align-items: baseline; padding: 2.25rem 0;
  }
  .venture h3 { font-size: 1.85rem; }
  .venture-meta { justify-self: end; }
  .section-contact { padding-bottom: 5rem; }
  .contact-panel { padding: 4.5rem 4rem 4rem; }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
}
@media (max-width: 420px) {
  .nav-list a:not(.btn) { padding: 0.5rem 0.5rem; font-size: 0.9rem; }
  .brand-name { font-size: 0.85rem; }
}

/* Motion: one entrance on load, quiet reveals on scroll */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes spin { to { transform: rotate(360deg); } }

  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-art { animation: rise 1s var(--ease) 0.15s both; }
  .ring-2 { animation: spin 90s linear infinite; }

  @supports (animation-timeline: view()) {
    .facts > div, .venture, .section-head, .split > *, .contact-panel {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Questions */
.qa-list { border-top: 1px solid var(--line-strong); max-width: 42rem; }
.qa { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.5rem; }
.qa p { margin: 0; color: var(--ink); }
#questions + .section-contact { padding-top: 4rem; }
@media (min-width: 900px) { #questions + .section-contact { padding-top: 5rem; } }
@media (max-width: 760px) { .nav-optional { display: none; } }
