/* Boecia Talent */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #15241F;
  --bone: #EFF1EC;
  --cream: #F4EEDF;
  --leaf: #7FB069;
  --honey: #E9B44C;
  --honey-deep: #8A5B12;

  --cream-soft: rgb(244 238 223 / 0.78);
  --cream-line: rgb(244 238 223 / 0.16);
  --ink-soft: rgb(21 36 31 / 0.8);
  --ink-line: rgb(21 36 31 / 0.14);

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --radius: 0.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hh: 8rem; /* header height */
}
@media (min-width: 48em) { :root { --hh: 5.5rem; } }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

::selection { background: var(--honey); color: var(--ink); }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 2px; }
.daylight :focus-visible { outline-color: var(--honey-deep); }

[id] { scroll-margin-top: 1.5rem; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--honey); color: var(--ink);
  font-weight: 600; padding: 0.75rem 1rem; border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: var(--cream); }
.btn-line { border-color: var(--cream); color: var(--cream); }
.btn-line:hover { background: var(--cream); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--honey-deep); }

/* Header */
.site-header { position: relative; z-index: 2; }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; height: var(--hh);
}
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: clamp(7rem, 6rem + 4vw, 10.5rem); }
.nav { order: 3; flex: 1 0 100%; }
.nav ul {
  display: flex; gap: 0 1rem; white-space: nowrap;
  overflow-x: auto; scrollbar-width: none; padding-inline: 4px; margin-inline: -4px;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a, .lang, .footer-links a, .mail {
  font-weight: 600; font-size: 0.875rem; text-decoration: none;
  display: inline-block; padding-block: 0.5rem;
}
.nav a { color: var(--cream-soft); }
.nav a:hover { color: var(--cream); text-decoration: underline; }
.lang {
  order: 2; color: var(--cream);
  min-width: 2.75rem; min-height: 2.75rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--cream-line); border-radius: var(--radius); text-align: center;
}
.lang:hover { border-color: var(--cream); }

@media (min-width: 48em) {
  .nav { order: 0; flex: 0 1 auto; margin-left: auto; }
  .nav ul { gap: 0 2rem; overflow: visible; }
  .lang { order: 0; }
}

/* Doors: the two big choices */
.doors { display: grid; gap: 1rem; }
.door {
  display: grid; gap: 0.5rem; align-content: space-between;
  padding: 1.5rem 1.5rem 1.375rem; border-radius: 0.75rem;
  border: 1px solid transparent; text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.door-title {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--display); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.1;
}
.door-text, .door-kicker { font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.arrow { flex: none; width: 1.5rem; height: 1.5rem; transition: translate 0.3s var(--ease); }
.door:hover .arrow { translate: 0.3rem 0; }
.door-honey { background: var(--honey); color: var(--ink); }
.door-honey .door-text, .door-honey .door-kicker { color: var(--ink-soft); }
.door-honey:hover { background: var(--cream); }
.door-line { border-color: var(--cream-line); color: var(--cream); background: rgb(244 238 223 / 0.03); }
.door-line .door-text, .door-line .door-kicker { color: var(--cream-soft); }
.door-line:hover { border-color: var(--cream); background: rgb(244 238 223 / 0.07); }

/* Hero: fills the first screen so the sprout on its bottom edge is always in view */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--hh));
  min-height: calc(100svh - var(--hh));
  padding-top: clamp(1.5rem, 6vh, 5rem);
  text-align: center;
}
.hero-copy { position: relative; z-index: 1; display: grid; justify-items: center; margin-block: auto; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, min(1.2rem + 6vw, 10vh), 5.5rem);
  line-height: 1.02; letter-spacing: -0.025em;
  max-width: 22ch;
}
.tagline {
  margin-top: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  color: var(--honey); font-weight: 600;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
}
.intro { margin-top: 1rem; max-width: 34rem; color: var(--cream-soft); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: clamp(1.25rem, 3vh, 2rem); }

/* Role names drifting behind the headline */
.marquee {
  position: absolute; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: space-evenly;
  pointer-events: none; user-select: none;
}
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-run { display: flex; flex: none; }
.marquee-run span {
  padding-right: 0.9em;
  font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  font-size: clamp(3rem, 1.6rem + 6vw, 8rem); white-space: nowrap;
  padding-block: 0.05em 0.25em; /* room for descenders (g, y, p) inside the clipped row */
  color: rgb(244 238 223 / 0.05);
}
@supports (-webkit-text-stroke: 1px black) {
  .marquee-run span { color: transparent; -webkit-text-stroke: 1.5px rgb(244 238 223 / 0.1); }
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: drift 90s linear infinite; }
  .marquee-row:nth-child(2) .marquee-track { animation-direction: reverse; animation-duration: 110s; }
  .marquee-row:nth-child(3) .marquee-track { animation-duration: 100s; }
  @keyframes drift { to { translate: -50% 0; } }
}

/* The sprout stands on the edge where the hero meets the daylight band */
.ground { position: relative; flex: none; margin-top: clamp(1.5rem, 5vh, 4rem); height: clamp(3.5rem, 8vh, 5.5rem); }
.sprout { position: absolute; bottom: 0; left: 50%; width: auto; translate: -50% 0; transform-origin: 50% 100%; }
.sprout-hero { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .sprout-hero { animation: grow 1.4s 0.3s var(--ease) both; }
  @supports (animation-timeline: view()) {
    .sprout-merge { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
  @keyframes grow { from { scale: 0.1; opacity: 0; } to { scale: 1; opacity: 1; } }
}

/* Daylight: the two offers */
.daylight { background: var(--bone); color: var(--ink); }
.offers { display: grid; gap: 4rem; padding-block: var(--section); }
@media (min-width: 56em) {
  .offers { grid-template-columns: 1fr 1fr; gap: 0; }
  .offer-companies { padding-right: clamp(2rem, 1rem + 3vw, 4.5rem); }
  .offer-engineers { padding-left: clamp(2rem, 1rem + 3vw, 4.5rem); border-left: 1px solid var(--ink-line); }
}
.offer-inner { display: flex; flex-direction: column; align-items: flex-start; }
.offer h2 {
  font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  line-height: 1.1; letter-spacing: -0.02em; max-width: 16ch;
}
.offer-lead { margin-top: 1.25rem; color: var(--ink-soft); max-width: 36rem; }
.checks { margin-block: 1.75rem 2.25rem; display: grid; gap: 0.875rem; }
.checks li { position: relative; padding-left: 2rem; font-weight: 600; max-width: 34rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.3em;
  width: 0.45rem; height: 0.85rem;
  border: solid var(--honey-deep); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* How it works: two lines that meet at the hire */
.how { --g: clamp(2rem, 1rem + 4vw, 6rem); padding-block: var(--section); }
.how h2, .about h2 {
  font-weight: 600; font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.875rem);
  line-height: 1.05; letter-spacing: -0.025em;
}
.routes { display: grid; gap: 3rem var(--g); margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 48em) { .routes { grid-template-columns: 1fr 1fr; } }
.route { --line: var(--honey); display: flex; flex-direction: column; }
.route-engineers { --line: var(--cream); }
.route h3 {
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  color: var(--line); padding-bottom: 1rem; border-bottom: 1px solid var(--cream-line);
}
.steps { counter-reset: step; margin-top: 1.5rem; flex: 1; position: relative; }
.steps::before {
  content: ""; position: absolute; left: calc(1.25rem - 1px); top: 1.25rem; bottom: 0;
  width: 2px; background: var(--line);
}
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 2.25rem 4rem; min-height: 3.25rem; max-width: 30rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}
.steps li:last-child { padding-bottom: 1rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.1em;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 50%; background: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1; color: var(--line);
}
.merge { position: relative; height: 5.5rem; margin-top: -3rem; }
.merge::before, .merge::after { content: ""; position: absolute; top: 0; bottom: 0; }
.merge::before {
  left: calc(1.25rem - 1px); width: calc(50% - 1.25rem);
  border-left: 2px solid var(--cream); border-bottom: 2px solid var(--cream);
  border-bottom-left-radius: 2rem;
}
.sprout-merge { bottom: 2px; height: 4.25rem; }
@media (min-width: 48em) {
  .merge { grid-column: 1 / -1; }
  .merge::before { width: calc(25% + var(--g) / 4); border-color: var(--honey); }
  .merge::after {
    left: calc(25% + var(--g) / 4 + 1.25rem - 1px); width: calc(25% + var(--g) / 4);
    border-right: 2px solid var(--cream); border-bottom: 2px solid var(--cream);
    border-bottom-right-radius: 2rem;
  }
  .sprout-merge { left: calc(25% + var(--g) / 4 + 1.25rem); }
}

/* Why Boecia */
.about-grid { display: grid; gap: 2rem; padding-block: 0 var(--section); }
@media (min-width: 56em) {
  .about-grid { grid-template-columns: 1fr 1.25fr; column-gap: clamp(3rem, 1rem + 5vw, 7rem); align-items: start; }
  .about-grid h2 { grid-column: 1; grid-row: 1; }
  .pair { grid-column: 1; grid-row: 2; }
  .about-text { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.pair { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 1rem; }
.pair-tree { display: grid; gap: 0.375rem; }
.pair-name { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; }
.pair-place { font-weight: 600; font-size: 0.9375rem; color: var(--honey); }
.pair-tree:last-child { text-align: right; }
.pair-link {
  position: relative; height: 2px; background: var(--cream-line);
  margin-top: calc(clamp(2rem, 1.4rem + 2.6vw, 3.5rem) / 2);
}
.pair-link::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.625rem; height: 0.625rem;
  translate: -50% -50%; border-radius: 50%; background: var(--honey);
}
.about-text { color: var(--cream-soft); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.6; max-width: 40rem; }

/* Closing doors */
.close { padding-block: 0 var(--section); }
@media (min-width: 48em) { .doors-close { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.doors-close .door { min-height: clamp(9rem, 6rem + 8vw, 13rem); padding: 1.75rem; }
.doors-close .door-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); }

/* Footer */
.site-footer { border-top: 1px solid var(--cream-line); }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem;
  padding-block: 2rem;
}
.mail { color: var(--honey); font-size: 1.0625rem; }
.mail:hover, .footer-links a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-links a { color: var(--cream-soft); }
.copy { color: var(--cream-soft); font-size: 0.9375rem; }
@media (min-width: 48em) { .copy { margin-left: auto; } }

/* Inner pages: short hero with the sprout on its bottom edge */
.page-hero { position: relative; padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.page-hero-copy { display: grid; gap: 1rem; justify-items: start; }
.page-hero h1 {
  font-weight: 700; font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem);
  line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch;
}
.page-hero .intro { margin-top: 0; }
.ground-page { margin-top: clamp(2rem, 1rem + 4vw, 4rem); height: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.ground-page .sprout { left: calc(max(var(--gutter), (100% - 76rem) / 2 + var(--gutter)) + 1.5rem); }

/* Form pages */
.form-area { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section); }
.form-box { max-width: 44rem; }
.tally { display: block; width: 100%; min-height: 32rem; border: 0; }
.form-fallback { max-width: 44rem; margin-top: 1.5rem; font-size: 0.9375rem; color: var(--ink-soft); }
.form-fallback a { color: var(--ink); font-weight: 600; }

/* Privacy policy */
.prose { max-width: 44rem; margin-inline: 0; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section); color: var(--ink); }
@media (min-width: 76rem) { .prose { margin-left: calc((100% - 76rem) / 2); } }
.prose h2 {
  margin-top: 2.5rem; font-weight: 600; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2; letter-spacing: -0.015em;
}
.prose h2:first-of-type { margin-top: 2rem; }
.prose p { margin-top: 1rem; color: var(--ink-soft); }
.prose p:first-child { margin-top: 0; color: var(--ink); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.prose ul { margin-top: 1rem; display: grid; gap: 0.625rem; }
.prose li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.prose li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.72em;
  width: 0.5rem; height: 2px; background: var(--honey-deep);
}
.prose a { color: var(--ink); font-weight: 600; }

/* 404 */
.notfound-grid { display: grid; gap: 3rem; }
@media (min-width: 48em) { .notfound-grid { grid-template-columns: 1fr 1fr; } }
.notfound-col { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.notfound h1, .notfound-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.025em;
}
.notfound .btn { margin-top: 0.5rem; }

/* Guide pages (SEO landing pages) */
.guide h3 {
  margin-top: 1.75rem; font-family: var(--body); font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.4; color: var(--ink);
}
.guide h3 + p { margin-top: 0.5rem; }
.guide-cta {
  margin-top: 3rem; padding: 1.75rem; border-radius: 0.75rem;
  background: var(--cream); display: grid; gap: 1rem; justify-items: start;
}
.guide-cta p { margin: 0; color: var(--ink); font-weight: 600; }
.footer-links { row-gap: 0.25rem; }
.prose .btn-ink, .prose .btn-ink:hover { color: var(--cream); text-decoration: none; }
