/* BlauwGroen landing page (Rails layout).
   The page is a column between two hairline rails; every section is a row with a
   full-width rule, content sits in cells, small + marks where the lines cross. */

:root {
  --base-blue:#1B3A7A; --growth-green:#1B8250; --night:#0E1A2E;
  --deep-blue:#12274F; --deep-green:#0D3F30;
  --slate:#5B6B86; --line:#E2DFD6; --rule:#D6D2C7; --paper:#F6F5F1;
  --text-blue:#132C5F; --text-green:#12613C;
  --gradient: linear-gradient(90deg, #132C5F, #003866, #004366, #004D63, #00565D, #005D54, #006249, #12613C);
  --cta-bg: linear-gradient(100deg in oklch, var(--deep-blue) 15%, var(--deep-green));
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Headings: Newsreader. Scale evens out its smaller optical size next to Archivo. */
  --display: "Newsreader", Georgia, serif;
  --display-wght: 450; --display-track: -0.02em; --display-scale: 1.1;
  --max: 1280px;
  --cell: 32px; /* one inner inset for every cell, so text lines up across rows */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--slate);
  font: 400 16px/1.6 var(--sans); font-stretch: 110%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--growth-green); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 60;
  background: var(--night); color: #fff; padding: 8px 14px; border-radius: 999px;
  font: 500 14px/1.4 var(--sans); font-stretch: 125%; text-decoration: none;
}
.skip:focus { top: 12px; }

.display {
  font-family: var(--display);
  font-weight: var(--display-wght);
  letter-spacing: var(--display-track);
  line-height: 1.05;
  margin: 0;
}
/* Gradient that runs through the whole sentence, across line breaks
   (blue at the first word, green at the last). */
.grad-run {
  background: var(--gradient);
  -webkit-box-decoration-break: slice; box-decoration-break: slice;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--text-blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--base-blue); color: #fff;
  font: 600 14px/1 var(--sans); font-stretch: 110%;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--night); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: #E4EAF4; }
.btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }

/* ---------- Rows and rails ---------- */
.row { border-bottom: 1px solid var(--rule); }
.frame {
  position: relative;
  max-width: calc(var(--max) + 2px); margin: 0 auto;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
}
.row + .row .frame::before, .row + .row .frame::after { /* + marks on the crossings */
  content: ""; position: absolute; top: -6px; width: 11px; height: 11px; z-index: 2;
  background:
    linear-gradient(var(--slate), var(--slate)) center / 1px 100% no-repeat,
    linear-gradient(var(--slate), var(--slate)) center / 100% 1px no-repeat;
  opacity: .55;
}
.row + .row .frame::before { left: -6px; }
.row + .row .frame::after { right: -6px; }

/* ---------- Header ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 var(--cell); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .icon { width: 40px; height: 40px; }
.brand .wordmark { width: 164px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav ul a { text-decoration: none; font-size: 14px; font-weight: 500; font-stretch: 110%; color: var(--night); }
.nav ul a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Image ---------- */
.figure img { width: 100%; height: auto; aspect-ratio: 1680 / 720; object-fit: cover; background: #1F3A24; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; }
.hero > div { padding: 56px var(--cell); container-type: inline-size; }
/* Always two lines, the second starting with "by": the size follows the column width
   (the longer line is about 10.7x the font size wide) and the text never wraps by itself. */
.hero h1 { font-size: 9cqi; white-space: nowrap; }
.hero aside {
  border-left: 1px solid var(--rule); padding: 56px var(--cell);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero aside p { margin: 0; color: var(--night); font-size: 15px; max-width: 30ch; }

/* "accelerating" leans 5°, like the end of the growing slant in the logo's tagline.
   A transformed word falls out of the sentence-wide gradient, so it gets its own
   slice of it from the script at the bottom. */
.accel {
  display: inline-block;
  transform: skewX(-5deg);
  transform-origin: 50% 80%;
  background: var(--gradient) no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .12em; margin-bottom: -.12em; /* room for descenders inside the clip */
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; /* keep .frame's centring margins */
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}
/* Titles and texts share rows across the columns (subgrid), so when one title wraps
   to two lines, all texts still start on the same line. */
.steps li {
  position: relative; overflow: hidden; padding: 148px var(--cell) 48px;
  display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start;
}
.steps li + li { border-left: 1px solid var(--rule); }
/* Big serif numeral in the top-left corner, its left 30% cut off by the cell edge */
.steps .num {
  position: absolute; top: 0; left: 0;
  transform: translateX(-30%);
  font-family: var(--display); font-weight: 400;
  font-size: calc(150px * var(--display-scale)); line-height: .78; letter-spacing: 0;
  color: var(--text-blue);
  background: var(--gradient); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: .28;
  pointer-events: none; user-select: none;
}
.steps h2 {
  position: relative; font-size: calc(26px * var(--display-scale)); margin: 0 0 8px;
  background: var(--gradient); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Each step takes its own third of the brand gradient: blue, teal, green */
.steps li:nth-child(2) .num, .steps li:nth-child(2) h2 { background-position: 50% 0; }
.steps li:nth-child(3) .num, .steps li:nth-child(3) h2 { background-position: 100% 0; }
.steps p { margin: 0; max-width: 32ch; color: var(--night); font-size: 15px; }

/* ---------- Call to action ---------- */
.cta { display: grid; grid-template-columns: 2fr 1fr; }
.cta .pitch { background: var(--deep-blue); background: var(--cta-bg); color: #fff; padding: 72px var(--cell); }
.cta h2 { font-size: calc(clamp(28px, 3.1vw, 44px) * var(--display-scale)); margin-bottom: 16px; }
.cta .pitch p { margin: 0 0 28px; color: var(--line); max-width: 44ch; }
/* Jan: photo and name side by side on top, the bio below across both */
.cta .who { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; }
.cta .who > * { min-width: 0; margin: 0; }
.who-photo {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.who-name {
  margin: 0;
  font-family: var(--display); font-weight: var(--display-wght);
  letter-spacing: var(--display-track);
  font-size: calc(clamp(26px, 2.4vw, 34px) * var(--display-scale)); line-height: 1.05;
}
.who-name span { /* same colour as "Iterate for growth": the last third of the brand gradient */
  display: block; color: var(--text-green);
  background: var(--gradient); background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.cta .who p { grid-column: 1 / -1; padding: var(--cell); font-size: 15px; line-height: 1.6; color: var(--night); }

/* Name at the bottom of the cell (in line with the bottom of the photo),
   round LinkedIn button in the top right corner */
.who-id { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; position: relative;
  padding: var(--cell); border-bottom: 1px solid var(--rule); }
.who-li { position: absolute; top: var(--cell); right: var(--cell); }
.foot-end { display: flex; align-items: center; gap: 16px; }
.li-round { /* round green outline button, logo only (name cell and footer) */
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  color: var(--text-green); box-shadow: inset 0 0 0 1px currentColor;
  transition: background-color .15s ease;
}
.li-round .li-icon { width: 14px; height: 14px; }
.li-round:hover { background: var(--text-green); color: #fff; box-shadow: none; }

/* ---------- Footer ---------- */
footer.row { border-bottom: 0; }
footer .frame { display: flex; justify-content: space-between; align-items: end; padding: 32px var(--cell) 40px; }
footer img { width: 200px; height: auto; }
footer small { font-size: 13px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1340px) { .frame { margin: 0 24px; } }
/* Below 1240px the profile cell is too narrow for name + button side by side with the pitch:
   stack the pitch above, photo takes one third so it lines up with the step columns. */
@media (max-width: 1240px) {
  .cta { grid-template-columns: 1fr; }
  .cta .who { grid-template-columns: 1fr 2fr; }
  .cta .who p { max-width: 64ch; } /* keep the bio readable at full width */
}
@media (max-width: 900px) {
  .cta .who { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; }
  .nav { gap: 12px; }
  .hero, .cta { grid-template-columns: 1fr; }
  .hero aside { border-left: 0; border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-top: 108px; }
  .steps .num { font-size: calc(120px * var(--display-scale)); }
  .steps li + li { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  :root { --cell: 20px; }
  .frame { margin: 0 8px; }
  .bar { padding: 0 12px; height: 64px; }
  .brand .icon { width: 34px; height: 34px; }
  .brand .wordmark { width: 120px; }
  .nav > .btn { height: 36px; padding: 0 13px; font-size: 13px; }
  .btn--lg { height: 46px; }
  .hero > div { padding: 48px var(--cell) 32px; }
  .hero aside { padding: 24px var(--cell) 32px; }
  .steps li { padding: 104px var(--cell) 32px; }
  .cta .pitch { padding: 48px var(--cell); }
  footer .frame { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px var(--cell) 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
