/* ==========================================================================
   Karhu Lab — landing page

   1. Base
   2. Landscape (first movement)
        2a. Desktop, ≥1024px: vw-scaled layout over the tidal background
        2b. ≥1800px: capped poster
        2c. <1024px: stacked layout (phone baseline)
        2d. 761–1023px: tablet refinements on top of the stacked layout
   3. Continuation (second movement)
        3a. Desktop, ≥1024px
        3b. 1024–1439px and ≥1800px refinements
        3c. <1024px: stacked layout (phone baseline)
        3d. 761–1023px: tablet refinements
   4. Brand mark and portrait

   Headings wrap their phrase units in <span class="ph"> so a line can only
   break between phrases. Heading sizes are capped with min()/cqw so the
   longest phrase always fits its column.
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --ink: #193950;
  --paper: #f8f9f7;
  --blue: #234d68;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
p, h1, h2, h3 { margin: 0; font-weight: 300; }

/* Phrase unit: never breaks inside, only between phrases. */
.ph { display: inline-block; }
/* Line breaks that only exist on phones. */
br.mobile { display: none; }

/* 2a. Landscape — desktop ------------------------------------------------ */
.landscape {
  position: relative;
  container-type: inline-size;
  width: 100%;
  min-height: 150vw;
  background: var(--paper) url('assets/tidal-background.webp') center top/100% 100% no-repeat;
  overflow: hidden;
}
.header {
  position: absolute;
  top: 1.9%;
  left: 6.5%;
  right: 3.2%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  z-index: 2;
}
/* Lockup: the mark spans exactly from the cap-top of "K" to the baseline of the
   subtitle. With line-height 1 the cap-top sits ~0.16em below the line box and the
   baseline ~0.88em below it (Noto Sans JP), so the mark height and offset are
   derived from the two font sizes. */
.brand {
  --bt: clamp(20px, 1.6vw, 29px);
  --bs: clamp(12px, .94vw, 17px);
  --bg: .3em;
  display: flex;
  align-items: flex-start;
  gap: .55em;
  flex-shrink: 0;
  font-size: var(--bt);
  letter-spacing: .05em;
  line-height: 1;
}
.brand-mark {
  width: auto;
  height: calc(0.84 * var(--bt) + var(--bg) + 0.88 * var(--bs));
  margin-top: calc(0.16 * var(--bt));
  flex: none;
  object-fit: contain;
}
.brand-text { display: block; }
.brand-text span {
  display: block;
  margin-top: var(--bg);
  line-height: 1;
  font-size: var(--bs);
  letter-spacing: .06em;
  color: #65788a;
  white-space: nowrap;
}
.header nav {
  display: flex;
  flex-shrink: 0;
  gap: 2.2vw;
  padding-top: 4px;
  font-size: clamp(12px, .98vw, 17px);
  letter-spacing: .035em;
  white-space: nowrap;
}
.header nav button { padding: 0; }
.header nav a, .header nav button { position: relative; white-space: nowrap; }
.header nav a:after, .header nav button:after {
  position: absolute;
  content: '';
  height: 1px;
  background: currentColor;
  left: 0;
  right: 100%;
  bottom: -6px;
  transition: right .3s;
}
.header nav a:hover:after, .header nav button:hover:after { right: 0; }
.edition {
  flex-shrink: 0;
  font-size: clamp(12px, .9vw, 16px);
  letter-spacing: .08em;
  padding-top: 5px;
  margin-left: 5vw;
  white-space: nowrap;
}

.hero { height: 62vw; position: relative; }
.hero-copy { position: absolute; left: 8%; top: 18.7vw; }
h1 { font-size: clamp(30px, 3.35vw, 62px); line-height: 1.58; letter-spacing: .105em; }
#hero-title strong { font-weight: 500; }
.hero-copy > p { font-size: clamp(14px, 1.25vw, 23px); line-height: 1.85; letter-spacing: .13em; margin-top: 2.7vw; }
.talk {
  border: 1px solid #2d4c63;
  border-radius: 80px;
  padding: 1.1vw 2.7vw;
  letter-spacing: .18em;
  font-size: clamp(14px, 1.12vw, 20px);
  margin-top: 2.8vw;
  transition: background .25s, color .25s;
}
.talk span { margin-left: 8px; }
.talk:hover { background: var(--ink); color: white; }
.hero-aside { position: absolute; left: 86.3%; top: 27.3vw; font-size: clamp(12px, 1.1vw, 20px); letter-spacing: .15em; line-height: 1.85; }
.vertical-note {
  position: absolute;
  left: 2.5%;
  top: 37.8vw;
  writing-mode: vertical-rl;
  font-size: clamp(10px, .78vw, 14px);
  letter-spacing: .09em;
  display: flex;
  gap: 15px;
}
.vertical-note:before { content: ''; height: 3.8vw; border-left: 1px solid #8b9da9; }

/* The philosophy text is grouped as one continuous section with modest spacing. */
.philosophy {
  position: absolute;
  top: 44.9%;
  left: 9%;
  right: 5%;
  max-width: 860px;
  color: #f8fafb;
  scroll-margin-top: 50px;
}
.philosophy-body h2 { font-size: clamp(25px, 2.65vw, 48px); letter-spacing: .12em; line-height: 1.7; margin-bottom: 1.2vw; }
.philosophy-body p { font-size: clamp(13px, 1.1vw, 20px); line-height: 1.9; letter-spacing: .1em; }
.philosophy-body p + p { margin-top: .55vw; }
.signature { font-size: clamp(14px, 1.3vw, 23px); letter-spacing: .07em; }

.approach { position: absolute; top: 54%; left: 0; width: 100%; height: 12.5%; color: #f7fafc; scroll-margin-top: 60px; }
#journey { position: absolute; inset: 0; width: 100%; height: 100%; }
.approach ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.approach li { position: absolute; top: 57%; width: 18%; font-size: clamp(13px, 1.1vw, 20px); letter-spacing: .065em; }
.approach li:nth-child(1) { left: 9%; top: 43%; }
.approach li:nth-child(2) { left: 26.7%; top: 46%; }
.approach li:nth-child(3) { left: 45.7%; top: 49%; }
.approach li:nth-child(4) { left: 63.5%; top: 40%; }
.approach li:nth-child(5) { left: 81%; top: 28%; }
.approach li p { margin-top: .55vw; letter-spacing: .1em; }

.offerings { position: absolute; top: 73.2%; left: 6.5%; width: 60%; scroll-margin-top: 50px; }
.section-label { font-size: clamp(13px, 1.08vw, 19px); letter-spacing: .035em; display: flex; align-items: center; gap: 1.6vw; }
.section-label:after { content: ''; height: 1px; width: 3.4vw; background: #8f9da7; }
.offering-links { margin-top: 2.45vw; display: grid; grid-template-columns: 1fr 1.3fr 1fr; }
.offering-links button {
  text-align: left;
  font-size: clamp(17px, 1.8vw, 32px);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: .025em;
  padding: 1.4vw 0;
  transition: opacity .2s;
}
.offering-links button + button { border-left: 1px solid #8fa0ae; padding-left: 2.9vw; }
.offering-links button:hover { opacity: .55; }

.profile { position: absolute; left: 6.5%; top: 84.8%; scroll-margin-top: 50px; }
.profile h3 { font-size: clamp(16px, 1.48vw, 27px); letter-spacing: .065em; margin-top: 2vw; }
.profile h3 span { display: inline-block; margin-left: .6em; font-size: .94em; white-space: nowrap; }
.profile-row > p { font-size: clamp(13px, 1.15vw, 21px); line-height: 1.8; letter-spacing: .1em; }
.profile-row { display: grid; grid-template-columns: auto 1fr; column-gap: 2vw; align-items: start; margin-top: 2vw; }
.profile-photo {
  grid-row: 1/3;
  width: clamp(64px, 6.6vw, 110px);
  height: clamp(64px, 6.6vw, 110px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 8px 30px #15364e22;
}
.profile-row h3 { margin-top: 0; }
.profile-row > p { margin-top: 1vw; }

.closing {
  position: absolute;
  top: 74.5%;
  right: 5.6%;
  writing-mode: vertical-rl;
  font-size: clamp(13px, 1.13vw, 20px);
  letter-spacing: .23em;
  line-height: 2.1;
}
.closing:after { content: ''; position: absolute; top: calc(100% + 18px); right: 50%; height: 7vw; width: 1px; background: #87949d; }
footer { position: absolute; left: 6.5%; bottom: 3.3%; font-size: clamp(13px, 1.1vw, 20px); letter-spacing: .09em; }

.skip { position: fixed; left: 15px; top: 10px; transform: translateY(-200%); z-index: 10; background: white; padding: 12px; }
.skip:focus { transform: none; }

dialog {
  margin: auto;
  inset: 0;
  width: min(600px, calc(100% - 36px));
  border: 0;
  border-radius: 3px;
  padding: 55px 42px 42px;
  color: var(--ink);
  background: #fcfcfa;
  box-shadow: 0 20px 100px #15364e30;
}
dialog::backdrop { background: #102c4280; backdrop-filter: blur(6px); }
.close { position: absolute; right: 15px; top: 9px; font-size: 32px; line-height: 44px; width: 44px; }
.dialog-kicker { font-size: 13px; letter-spacing: .13em; margin-bottom: 18px; }
dialog h2 { font-size: 25px; line-height: 1.6; margin-bottom: 22px; }
dialog p { font-size: 16px; line-height: 1.9; }
dialog p + p { margin-top: 16px; }
dialog a { display: inline-block; margin-top: 25px; border-bottom: 1px solid; padding-bottom: 5px; }
dialog textarea {
  display: block;
  margin-top: 12px;
  width: 100%;
  min-height: 140px;
  font: inherit;
  line-height: 1.7;
  padding: 12px;
  border: 1px solid #a5b5bd;
  background: white;
  border-radius: 2px;
}
dialog label { display: block; margin-top: 22px; font-size: 14px; }
dialog input[type="text"],
dialog input[type="email"] {
  display: block;
  margin-top: 8px;
  width: 100%;
  font: inherit;
  line-height: 1.7;
  padding: 10px 12px;
  border: 1px solid #a5b5bd;
  background: white;
  border-radius: 2px;
}
dialog .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
dialog .copy[disabled] { opacity: 0.5; cursor: wait; }
.copy { padding: 12px 22px; margin-top: 18px; border: 1px solid; border-radius: 30px; }
.small-note { font-size: 13px !important; color: #657986; margin-top: 15px !important; }

/* 2b. Landscape — ≥1800px: the poster is capped at 2000px and sits on paper. */
@media (min-width: 1800px) {
  .landscape { max-width: 2000px; margin: auto; min-height: 3000px; }
  .hero { height: 1240px; }
  .hero-copy { top: 374px; }
  h1 { font-size: 62px; }
}

/* 2c. Landscape — stacked layout (<1024px) ------------------------------- */
@media (max-width: 1023px) {
  .landscape { min-height: 0; background: none; overflow: hidden; }
  .header { position: absolute; top: 25px; left: 7%; right: 7%; gap: 20px; flex-wrap: wrap; }
  .brand { --bt: 23px; --bs: 10px; --bg: 6px; gap: 9px; }
  .brand-text span { letter-spacing: .04em; }
  .edition { display: none; }
  .header nav { width: 100%; gap: 0; justify-content: space-between; font-size: 11px; padding-top: 0; }
  .header nav a, .header nav button { padding: 12px 0; min-height: 40px; display: inline-flex; align-items: center; }
  .header nav a:after, .header nav button:after { bottom: 6px; }
  .hero { height: 820px; background: var(--paper) url('assets/tidal-background.webp') 57% top/auto 1150px no-repeat; }
  .hero-copy { left: 8%; right: 5%; top: 215px; }
  h1 { font-size: min(clamp(26px, 6.3vw, 43px), 7.2vw); line-height: 1.75; letter-spacing: .04em; }
  .hero-copy > p { font-size: min(14px, 4.1vw); line-height: 2; letter-spacing: .045em; margin-top: 27px; }
  .talk { padding: 13px 28px; font-size: 14px; margin-top: 29px; background: var(--paper); }
  .talk-light { background: transparent; }
  .hero-aside { left: auto; right: 9%; top: 580px; font-size: 13px; line-height: 1.9; color: white; }
  .vertical-note { top: 500px; left: 4%; font-size: 9px; color: #304a5c; }
  .vertical-note:before { height: 30px; }
  .philosophy { position: relative; inset: auto; margin-top: -45px; padding: 30px 8% 35px; display: block; background: #254f6c; color: white; max-width: none; }
  .philosophy-body h2 { font-size: min(clamp(21px, 5.25vw, 32px), 5.65vw); letter-spacing: .08em; white-space: normal; line-height: 1.8; margin-bottom: 18px; }
  .philosophy-body p { font-size: 14px; line-height: 2; letter-spacing: .06em; }
  .philosophy-body p + p { margin-top: 10px; }
  .signature { margin-top: 16px; font-size: 14px; }
  .approach { position: relative; inset: auto; height: auto; padding: 20px 8% 65px; background: #254f6c; }
  .approach canvas { display: none; }
  .approach ol { position: relative; inset: auto; display: block; border-left: 1px solid #bbcbd3; margin-left: 4px; padding-left: 25px; }
  .approach li, .approach li:nth-child(n) { position: relative; inset: auto; width: 100%; font-size: 14px; margin-bottom: 27px; }
  .approach li:last-child { margin-bottom: 0; }
  .approach li:before { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 100%; left: -29px; top: 7px; background: white; }
  .approach li p { margin-top: 4px; }
  .offerings { position: relative; inset: auto; width: auto; padding: 65px 8% 40px; background: #f8f9f7; }
  .section-label { font-size: 13px; gap: 18px; }
  .section-label:after { width: 35px; }
  .offering-links { display: block; margin-top: 24px; }
  .offering-links button { display: block; width: 100%; font-size: 21px; padding: 22px 0; }
  .offering-links button + button { padding: 22px 0; border-left: 0; border-top: 1px solid #b9c2c9; }
  .profile { position: relative; inset: auto; padding: 40px 8% 240px; background: url('assets/tidal-background.webp') 75% bottom/auto 1100px no-repeat; }
  .profile h3 { font-size: 18px; margin-top: 28px; }
  .profile-row > p { font-size: 14px; letter-spacing: .035em; line-height: 1.9; max-width: 310px; }
  .profile-row { margin-top: 28px; column-gap: 16px; }
  .profile-photo { width: 72px; height: 72px; }
  .profile-row > p { margin-top: 16px; }
  .closing { top: auto; bottom: 100px; right: 9%; font-size: 13px; line-height: 1.9; }
  .closing:after { display: none; }
  footer { bottom: 29px; left: 8%; font-size: 12px; letter-spacing: .05em; }
  dialog { padding: 50px 26px 30px; }
  dialog h2 { font-size: min(22px, 4.9vw); }
}

/* Phone only: hide the desktop line breaks, show the phone ones. */
@media (max-width: 760px) {
  .desktop { display: none; }
  br.mobile { display: inline; }
}
/* Narrow phones: the profile text drops under the portrait. */
@media (max-width: 360px) {
  .profile-row > p { grid-column: 1 / -1; margin-top: 18px; }
}

/* 2d. Landscape — tablet refinements (761–1023px) ------------------------ */
@media (min-width: 761px) and (max-width: 1023px) {
  .header { top: 30px; left: 6.5%; right: 6.5%; row-gap: 14px; }
  .brand { --bt: 25px; --bs: 11px; --bg: 7px; gap: 11px; }
  .brand-text span { letter-spacing: .06em; }
  .edition { display: block; margin-left: auto; font-size: 12px; padding-top: 8px; }
  .header nav { order: 2; justify-content: flex-start; gap: 34px; font-size: 12.5px; letter-spacing: .05em; padding-top: 0; margin-top: -10px; }
  .header nav a, .header nav button { padding: 11px 0; min-height: 40px; display: inline-flex; align-items: center; }
  .header nav a:after, .header nav button:after { bottom: 5px; }
  /* The image is scaled a little past the viewport so its blue band lands under the philosophy block. */
  .hero { height: 104vw; background: var(--paper) url('assets/tidal-background.webp') center top/auto 195vw no-repeat; }
  .hero-copy { left: 8%; right: 8%; top: clamp(150px, 16vw, 200px); }
  h1 { font-size: clamp(38px, 5vw, 50px); line-height: 1.65; letter-spacing: .06em; }
  .hero-copy > p { font-size: 16px; line-height: 2; letter-spacing: .06em; margin-top: 26px; }
  .talk { padding: 14px 32px; font-size: 15px; margin-top: 30px; }
  .hero-aside { right: 8%; top: calc(104vw - 250px); font-size: 14px; letter-spacing: .15em; }
  .vertical-note { top: 45vw; left: 3.5%; font-size: 10px; color: #304a5c; }
  .vertical-note:before { height: 34px; }
  .philosophy { padding: 50px 8% 60px; max-width: none; }
  .philosophy-body h2 { font-size: clamp(28px, 3.6vw, 36px); letter-spacing: .1em; margin-bottom: 20px; }
  .philosophy-body p { font-size: 15px; letter-spacing: .05em; line-height: 1.95; }
  .philosophy-body p + p { margin-top: 10px; }
  .signature { margin-top: 18px; font-size: 15px; }
  .approach { padding: 30px 8% 80px; }
  .approach ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.45fr;
    column-gap: 12px;
    margin: 0;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid #bbcbd3;
  }
  .approach li, .approach li:nth-child(n) { width: auto; margin-bottom: 0; font-size: 12px; letter-spacing: .07em; }
  .approach li:before { left: 0; top: -27px; width: 6px; height: 6px; }
  .approach li p { margin-top: 6px; font-size: 12px; letter-spacing: .08em; }
  .offerings { padding: 70px 8% 50px; }
  .section-label { font-size: 14px; gap: 22px; }
  .offering-links { display: grid; grid-template-columns: 1fr 1.3fr 1fr; margin-top: 28px; }
  .offering-links button { display: block; width: auto; font-size: clamp(17px, 2.4vw, 22px); padding: 16px 0; }
  .offering-links button + button { padding: 16px 0 16px 24px; border-top: 0; border-left: 1px solid #8fa0ae; }
  .profile { padding: 50px 8% 250px; background: url('assets/tidal-background.webp') center bottom/auto 210vw no-repeat; }
  .profile h3 { font-size: 20px; }
  .profile-row > p { font-size: 15px; letter-spacing: .05em; max-width: 440px; }
  .profile-row { margin-top: 30px; column-gap: 22px; }
  .profile-photo { width: 88px; height: 88px; }
  .closing { bottom: 110px; right: 8%; font-size: 14px; }
  footer { bottom: 34px; left: 8%; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 3a. Continuation — desktop --------------------------------------------- */
/* Content stays readable even when scripts cannot run. */
.continuation .reveal { opacity: 1; transform: none; }
/* The second movement: editorial, human and deliberately unboxed. */
.continuation { --gutter: 6.5vw; --gutter-wide: 8vw; background: #f7f8f5; color: var(--ink); overflow: hidden; }
.editorial-section { padding-left: var(--gutter); padding-right: var(--gutter); }
.continuation {
  /* Type scale: display (section titles) < hero h1; one item-title size; one body size. */
  --t-display: clamp(30px, 2.9vw, 52px);
  --t-display-l: clamp(34px, 3.4vw, 60px);
  --t-name: clamp(26px, 2.4vw, 44px);
  --t-title: clamp(19px, 1.55vw, 27px);
  --t-title-l: clamp(20px, 1.7vw, 30px);
  --t-title-s: clamp(17px, 1.3vw, 22px);
  --t-lead: clamp(15px, 1.15vw, 19px);
  --t-body: clamp(14px, 1vw, 17px);
  --t-label: 11px;
}
.eyebrow { font-size: var(--t-label); letter-spacing: .18em; font-weight: 400; }
.eyebrow.light { color: #dce7ed; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Question. The frictions column has a floor wide enough for its 2-line phrases; the title is capped to its own column. */
.question {
  position: relative;
  min-height: 850px;
  padding-top: 150px;
  padding-bottom: 150px;
  display: grid;
  grid-template-columns: 12% minmax(0, 1fr) clamp(528px, 32.8vw + 68px, 660px);
  column-gap: 4vw;
  background: linear-gradient(122deg, #f8f9f6 0%, #f8f9f6 69%, #edf1f1 100%);
}
.question:after {
  content: '';
  position: absolute;
  width: 61vw;
  height: 9vw;
  border: 1px solid #b8c4c9;
  border-width: 1px 0 0;
  border-radius: 50%;
  right: -8vw;
  bottom: -4.2vw;
  transform: rotate(-4deg);
}
.chapter-mark { padding-top: 3px; }
.chapter-mark span { display: block; font-size: var(--t-display); line-height: 1; color: #a5b2b9; }
.chapter-mark p { margin-top: 18px; font-size: 11px; line-height: 1.8; letter-spacing: .13em; text-transform: uppercase; }
.question-lead { container-type: inline-size; min-width: 0; }
.question-lead h2 { font-size: min(var(--t-display), 11.2cqw); line-height: 1.6; letter-spacing: .06em; margin-top: 32px; }
.frictions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 52px; border-top: 1px solid #aebbc2; }
.frictions p {
  min-height: 124px;
  padding: 27px 12px 24px 0;
  border-bottom: 1px solid #c5ced2;
  font-size: var(--t-body);
  line-height: 1.9;
  letter-spacing: .04em;
}
.frictions p:nth-child(even) { padding-left: 22px; border-left: 1px solid #c5ced2; }
.question-note { position: absolute; left: 22.5%; bottom: 95px; font-size: var(--t-lead); line-height: 2; letter-spacing: .1em; }

/* AX design */
.ax-section { position: relative; min-height: 900px; padding: 170px var(--gutter-wide) 190px; background: #173f5a; color: #f4f7f8; }
.ax-section:before {
  content: '';
  position: absolute;
  inset: -5vw -15vw auto;
  height: 12vw;
  background: #f7f8f5;
  border-radius: 0 0 50% 50%;
  transform: rotate(-2deg);
}
.ax-intro { width: min(740px, 47%); position: relative; z-index: 1; container-type: inline-size; }
.ax-intro h2 { font-size: min(var(--t-display), 8.9cqw); line-height: 1.6; letter-spacing: .07em; margin: 38px 0 44px; }
.ax-intro > p:last-child { max-width: 580px; font-size: var(--t-lead); line-height: 2.15; letter-spacing: .06em; }
.ax-orbit { width: 46%; position: absolute; right: var(--gutter); top: 200px; border-top: 1px solid #8aa2b1; }
.ax-orbit > div { display: grid; grid-template-columns: 52px 1fr 130px; align-items: center; min-height: 113px; border-bottom: 1px solid #6e8a9b; }
.ax-orbit span { font-size: 12px; color: #a8bac4; }
.ax-orbit strong { font-size: 12px; font-weight: 300; letter-spacing: .14em; }
.ax-orbit p { font-size: var(--t-body); letter-spacing: .08em; }
.ax-caption { position: absolute; left: var(--gutter-wide); bottom: 73px; color: #afc1cb; font-size: 12px; line-height: 1.8; letter-spacing: .15em; text-transform: uppercase; }

/* Services */
.services { position: relative; padding-top: 165px; padding-bottom: 180px; }
.section-intro { display: grid; grid-template-columns: 21% 34% 1fr; align-items: start; container-type: inline-size; }
.section-intro h2 { font-size: var(--t-display); line-height: 1.5; letter-spacing: .07em; }
.section-intro > p:last-child { max-width: 500px; font-size: var(--t-lead); line-height: 2.1; letter-spacing: .055em; padding-top: 5px; }
.service-list { margin-top: 110px; border-top: 1px solid #9dadb6; }
.service-list article {
  display: grid;
  grid-template-columns: 8% 29% 1fr 26%;
  align-items: start;
  gap: 2.2vw;
  padding: 46px 0 49px;
  border-bottom: 1px solid #b8c3c8;
}
.service-no { font-size: 12px; color: #82939d; }
.service-list h3 { font-size: var(--t-title-l); line-height: 1.6; letter-spacing: .05em; }
.service-list p { font-size: var(--t-body); line-height: 2; letter-spacing: .045em; max-width: 570px; }
.service-list small { font-size: 10px; line-height: 1.8; letter-spacing: .14em; color: #718590; padding-top: 5px; }

/* Method */
.method { position: relative; background: #e8edef; padding: 155px var(--gutter) 175px; }
.method:after {
  content: '';
  position: absolute;
  width: 44vw;
  height: 44vw;
  border: 1px solid #b1c0c7;
  border-radius: 50%;
  right: -23vw;
  top: -14vw;
  opacity: .55;
}
.method-heading { display: grid; grid-template-columns: 21% 1fr; container-type: inline-size; }
.method-heading .light { color: #597384; }
.method-heading h2 { max-width: 880px; font-size: var(--t-display); line-height: 1.6; letter-spacing: .07em; }
.method-steps { list-style: none; padding: 0; margin: 115px 0 0 21%; border-top: 1px solid #9aabb4; position: relative; z-index: 1; }
.method-steps li { display: grid; grid-template-columns: 9% 1fr; padding: 33px 0; border-bottom: 1px solid #b2bec4; }
.method-steps > li > span { font-size: 12px; color: #6e828e; }
.method-steps li div { display: grid; grid-template-columns: 24% 20% 1fr; align-items: baseline; }
.method-steps strong { font-size: 12px; font-weight: 400; letter-spacing: .16em; }
.method-steps h3 { font-size: var(--t-title); letter-spacing: .11em; }
.method-steps p { font-size: var(--t-body); line-height: 1.8; letter-spacing: .045em; }

/* Work. Every article keeps the same number gutter: number at the left edge, text indented. */
.work { position: relative; padding-top: 170px; padding-bottom: 180px; }
.work-intro { grid-template-columns: 21% 1fr; }
.work-intro h2 { font-size: min(var(--t-display), 5.8cqw); }
.work-index { margin-top: 110px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #aab8bf; }
.work-index article { position: relative; min-height: 220px; padding: 40px 8% 35px 14%; border-bottom: 1px solid #bdc7cc; }
.work-index article:nth-child(odd) { border-right: 1px solid #bdc7cc; padding-left: 7%; padding-right: 14%; }
.work-index span { position: absolute; left: 0; top: 43px; font-size: 11px; color: #788b96; }
.work-index article:nth-child(even) span { left: 7%; }
.work-index h3 { font-size: var(--t-title-s); line-height: 1.7; letter-spacing: .055em; }
.work-index p { margin-top: 25px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6a808c; }
.work-note { margin: 100px 0 0 50%; font-size: clamp(16px, 1.3vw, 22px); line-height: 2; letter-spacing: .09em; }

/* Perspective */
.perspective { position: relative; min-height: 920px; padding: 165px var(--gutter) 130px; background: #244f6c; color: #f3f7f8; container-type: inline-size; }
.perspective:before {
  content: '“';
  position: absolute;
  right: 5vw;
  top: 50px;
  font-family: Georgia, serif;
  font-size: 28vw;
  line-height: 1;
  color: #fff;
  opacity: .035;
}
.perspective h2 { font-size: min(var(--t-display), 7.9cqw); line-height: 1.6; letter-spacing: .08em; margin-top: 42px; }
.perspective-copy { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3vw; margin: 115px 0 0 21%; }
.perspective-copy p { font-size: var(--t-lead); line-height: 2.1; letter-spacing: .06em; }
.perspective-terms {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 60px;
  display: flex;
  gap: 3.8vw;
  padding-top: 24px;
  border-top: 1px solid #7591a1;
  color: #b9ccd5;
  font-size: 10px;
  letter-spacing: .14em;
}

/* Profile */
.profile-full { position: relative; padding-top: 170px; padding-bottom: 190px; display: grid; grid-template-columns: 18% 38% 1fr; gap: 3vw; }
.profile-side { display: grid; gap: 34px; align-content: start; }
.profile-figure { margin: 0; }
.profile-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 3px;
  filter: saturate(.9);
}
.profile-number { font-size: clamp(90px, 11vw, 190px); line-height: .8; color: #e4e9e9; letter-spacing: -.08em; }
.profile-main h2 { font-size: var(--t-name); line-height: 1.55; letter-spacing: .07em; margin-top: 38px; }
.profile-main h2 .role { font-size: clamp(13px, 1vw, 18px); letter-spacing: .09em; }
.profile-lead { font-size: clamp(16px, 1.3vw, 22px); line-height: 2; letter-spacing: .08em; margin-top: 52px; }
.profile-story { max-width: 570px; padding-top: 52px; }
.profile-story p { font-size: var(--t-body); line-height: 2.15; letter-spacing: .055em; }
.profile-story p + p { margin-top: 22px; }

/* Journal */
.journal { position: relative; padding-top: 155px; padding-bottom: 180px; background: #edf1f1; }
.journal .section-intro { grid-template-columns: 21% 1fr; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 105px; border-top: 1px solid #a8b6bd; border-bottom: 1px solid #a8b6bd; }
.journal-grid article { min-height: 360px; padding: 40px 9%; }
.journal-grid article + article { border-left: 1px solid #b8c3c8; }
.journal-grid span { font-size: 10px; letter-spacing: .15em; color: #71858f; }
.journal-grid h3 { font-size: var(--t-title); line-height: 1.65; letter-spacing: .07em; margin-top: 70px; }
.journal-grid p { font-size: var(--t-body); line-height: 1.9; margin-top: 35px; color: #526c7b; }

/* Contact */
.final-contact { position: relative; min-height: 850px; padding: 160px var(--gutter-wide) 120px; background: #153b55; color: #f6f8f9; container-type: inline-size; }
.final-contact h2 { font-size: min(var(--t-display-l), 9.9cqw); line-height: 1.5; letter-spacing: .08em; margin-top: 50px; }
.final-contact > p:not(.eyebrow):not(.contact-side) { font-size: var(--t-lead); line-height: 2.1; letter-spacing: .07em; margin-top: 55px; }
.talk-light { border-color: #d8e5eb; color: #fff; padding: 17px 38px; margin-top: 45px; }
.talk-light:hover { background: #f5f8fa; color: #173f5a; }
.contact-side { position: absolute; right: 7%; bottom: 72px; font-size: 12px; line-height: 1.9; letter-spacing: .17em; text-transform: uppercase; color: #b7c9d3; }

/* 3b. Continuation — desktop refinements --------------------------------- */
/* 1024–1439px: the frictions become one column beside the title so every phrase keeps its line. */
@media (min-width: 1024px) and (max-width: 1439px) {
  .question { grid-template-columns: 12% minmax(0, 1fr) minmax(300px, 30%); }
  .frictions { grid-template-columns: 1fr; margin-top: 44px; }
  .frictions p { min-height: 0; padding: 22px 0 20px; }
  .frictions p:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .ax-orbit { width: 44%; }
  .method-steps { margin-left: 12%; }
  .method-steps li div { grid-template-columns: 22% 22% 1fr; }
  .perspective-copy { margin-left: 0; }
}
/* ≥1800px: the measure is held to 1640px, centred, matching the capped landscape. */
@media (min-width: 1800px) {
  .continuation { --gutter: max(6.5vw, calc((100vw - 1640px) / 2)); --gutter-wide: max(8vw, calc((100vw - 1640px) / 2 + 1.5vw)); }
  .ax-section { padding-top: max(170px, 7.5vw); }
  .ax-section:before { top: -90px; height: 230px; }
  .ax-orbit { width: calc(100% - var(--gutter) - var(--gutter-wide) - 740px - 3vw); top: max(200px, 7.5vw + 30px); }
  .contact-side { right: var(--gutter-wide); }
}

/* 3c. Continuation — stacked layout (<1024px) ---------------------------- */
@media (max-width: 1023px) {
  .continuation { --gutter: 8%; --gutter-wide: 8%; }
  .reveal { opacity: 1; transform: none; }
  .question { min-height: 0; padding-top: 100px; padding-bottom: 120px; display: block; }
  .chapter-mark { display: flex; align-items: baseline; gap: 14px; }
  .chapter-mark span { font-size: 30px; }
  .chapter-mark p { margin-top: 0; }
  .question-lead { margin-top: 70px; }
  .question-lead h2 { font-size: min(30px, 11.2cqw); line-height: 1.65; margin-top: 23px; }
  .frictions { display: block; margin-top: 65px; }
  .frictions p { min-height: 0; padding: 24px 0; font-size: 14px; }
  .frictions p:nth-child(even) { padding-left: 0; border-left: 0; }
  .question-note { position: static; margin-top: 70px; font-size: 16px; }
  .question:after { width: 100vw; height: 20vw; bottom: -12vw; }
  .ax-section { min-height: 0; padding: 130px 8% 120px; }
  .ax-section:before { height: 23vw; top: -12vw; }
  .ax-intro { width: auto; }
  .ax-intro h2 { font-size: min(30px, 8.9cqw); margin: 27px 0 32px; }
  .ax-intro > p:last-child { font-size: 15px; }
  .ax-orbit { position: static; width: auto; margin-top: 75px; border-top: 1px solid #7993a2; }
  .ax-orbit > div { grid-template-columns: 38px 1fr 105px; min-height: 90px; }
  .ax-orbit strong { font-size: 11px; letter-spacing: .1em; }
  .ax-orbit p { font-size: 13px; }
  .ax-caption { position: static; margin-top: 55px; }
  .services { padding-top: 100px; padding-bottom: 110px; }
  .section-intro { display: block; }
  .section-intro h2 { font-size: 30px; margin-top: 27px; }
  .work-intro h2 { font-size: min(30px, 8.9cqw); }
  .section-intro > p:last-child { font-size: 14px; margin-top: 30px; }
  .service-list { margin-top: 70px; }
  .service-list article { display: grid; grid-template-columns: 38px 1fr; padding: 32px 0; gap: 0; }
  .service-list h3 { font-size: 22px; }
  .service-list p, .service-list small { grid-column: 2; margin-top: 24px; }
  .service-list p { font-size: 14px; }
  .service-list small { margin-top: 22px; }
  .method { padding: 105px 8% 120px; }
  .method-heading { display: block; }
  .method-heading h2 { font-size: min(30px, 7.05cqw); letter-spacing: .03em; margin-top: 27px; }
  .method-steps { margin: 75px 0 0; }
  .method-steps li { grid-template-columns: 38px 1fr; padding: 28px 0; }
  .method-steps li div { display: block; }
  .method-steps strong { display: block; }
  .method-steps h3 { font-size: 21px; margin-top: 12px; }
  .method-steps p { font-size: 14px; margin-top: 15px; }
  .work { padding-top: 105px; padding-bottom: 120px; }
  .work-intro { display: block; }
  .work-index { display: block; margin-top: 70px; }
  .work-index article, .work-index article:nth-child(odd) { min-height: 0; border-right: 0; padding: 31px 0 31px 42px; }
  .work-index article:nth-child(even) span { left: 0; }
  .work-index h3 { font-size: min(18px, 5.4vw); }
  .work-index p { margin-top: 17px; }
  .work-note { margin: 70px 0 0; font-size: min(17px, 4.5vw); }
  .perspective { min-height: 0; padding: 110px 8% 145px; }
  .perspective h2 { font-size: min(30px, 7.9cqw); margin-top: 27px; }
  .perspective-copy { display: block; margin: 80px 0 0; }
  .perspective-copy p { font-size: 15px; }
  .perspective-copy p + p { margin-top: 40px; }
  .perspective-terms { position: static; margin-top: 90px; display: flex; flex-direction: column; gap: 14px; }
  .profile-full { padding-top: 105px; padding-bottom: 120px; display: block; }
  .profile-number { font-size: 100px; }
  .profile-side { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 24px; }
  .profile-figure { max-width: 150px; }
  .profile-main { margin-top: 45px; }
  .profile-main h2 { font-size: 28px; margin-top: 25px; }
  .profile-lead { font-size: 17px; margin-top: 35px; }
  .profile-story { padding-top: 55px; }
  .profile-story p { font-size: 14px; }
  .journal { padding-top: 105px; padding-bottom: 120px; }
  .journal-grid { display: block; margin-top: 70px; }
  .journal-grid article { min-height: 0; padding: 35px 0 45px; }
  .journal-grid article + article { border-left: 0; border-top: 1px solid #b8c3c8; }
  .journal-grid h3 { font-size: 21px; margin-top: 35px; }
  .journal-grid p { font-size: 14px; margin-top: 22px; }
  .final-contact { min-height: 760px; padding: 110px 8% 100px; }
  .final-contact h2 { font-size: min(34px, 10cqw); line-height: 1.5; letter-spacing: .05em; margin-top: 38px; }
  .final-contact > p:not(.eyebrow):not(.contact-side) { font-size: 14px; margin-top: 45px; }
  .talk-light { padding: 14px 29px; margin-top: 40px; }
  .contact-side { right: 8%; bottom: 42px; }
}

/* 3d. Continuation — tablet refinements (761–1023px) --------------------- */
@media (min-width: 761px) and (max-width: 1023px) {
  .continuation { --gutter: 7%; --gutter-wide: 7%; }
  .question { padding-top: 120px; padding-bottom: 140px; }
  .chapter-mark span { font-size: 36px; }
  .question-lead { margin-top: 80px; }
  .question-lead h2 { font-size: min(clamp(30px, 4.2vw, 38px), 11.2cqw); line-height: 1.6; }
  .frictions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 70px; }
  .frictions p { min-height: 116px; padding: 26px 20px 24px 0; font-size: 15px; }
  .frictions p:nth-child(even) { padding-left: 26px; border-left: 1px solid #c5ced2; }
  .question-note { margin-top: 64px; font-size: 17px; }
  .ax-section { padding: 150px 7% 130px; }
  .ax-intro { max-width: 640px; }
  .ax-intro h2 { font-size: min(clamp(30px, 4.2vw, 38px), 8.9cqw); margin: 30px 0 36px; }
  .ax-intro > p:last-child { font-size: 15.5px; }
  .ax-orbit { margin-top: 85px; }
  .ax-orbit > div { grid-template-columns: 52px 1fr 150px; min-height: 100px; }
  .ax-orbit strong { font-size: 12px; letter-spacing: .14em; }
  .ax-orbit p { font-size: 15px; }
  .ax-caption { margin-top: 70px; }
  .services { padding-top: 130px; padding-bottom: 140px; }
  .section-intro h2 { font-size: clamp(30px, 4.2vw, 38px); }
  .work-intro h2 { font-size: min(clamp(30px, 4.2vw, 38px), 5.8cqw); }
  .section-intro > p:last-child { font-size: 15px; max-width: 560px; }
  .service-list { margin-top: 80px; }
  .service-list article { grid-template-columns: 56px 1fr; padding: 38px 0 40px; }
  .service-list h3 { font-size: clamp(22px, 2.9vw, 25px); }
  .service-list p { font-size: 15px; max-width: 560px; }
  .method { padding: 130px 7% 140px; }
  .method-heading h2 { font-size: clamp(30px, 4.2vw, 38px); letter-spacing: .07em; }
  .method-steps { margin-top: 85px; }
  .method-steps li { grid-template-columns: 56px 1fr; padding: 30px 0; }
  .method-steps li div { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; row-gap: 14px; }
  .method-steps strong { grid-column: 1; }
  .method-steps h3 { grid-column: 2; margin-top: 0; font-size: 22px; }
  .method-steps p { grid-column: 1 / -1; margin-top: 0; font-size: 15px; max-width: 560px; }
  .work { padding-top: 130px; padding-bottom: 140px; }
  .work-index { display: grid; grid-template-columns: 1fr 1fr; margin-top: 80px; }
  .work-index article, .work-index article:nth-child(odd) { min-height: 190px; padding: 34px 3% 30px 40px; }
  .work-index article:nth-child(odd) { border-right: 1px solid #bdc7cc; }
  .work-index article:nth-child(even) { padding-left: calc(40px + 5%); }
  .work-index article:nth-child(even) span { left: 5%; }
  .work-index span { top: 37px; }
  .work-index h3 { font-size: 19px; }
  .work-note { margin: 80px 0 0 30%; font-size: 17px; }
  .perspective { padding: 140px 7% 150px; }
  .perspective h2 { font-size: min(clamp(30px, 4.2vw, 38px), 7.9cqw); }
  .perspective-copy { margin-top: 90px; max-width: 600px; }
  .perspective-copy p { font-size: 15.5px; }
  .perspective-copy p + p { margin-top: 34px; }
  .perspective-terms { flex-direction: row; flex-wrap: wrap; gap: 14px 36px; margin-top: 100px; padding-top: 24px; border-top: 1px solid #7591a1; }
  .profile-full { padding-top: 130px; padding-bottom: 140px; display: grid; grid-template-columns: 220px 1fr; column-gap: 6%; }
  .profile-side { grid-row: 1 / 3; grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .profile-number { font-size: 110px; }
  .profile-figure { max-width: 220px; }
  .profile-main { margin-top: 0; }
  .profile-main h2 { font-size: clamp(28px, 3.6vw, 34px); margin-top: 28px; }
  .profile-lead { font-size: 18px; margin-top: 40px; }
  .profile-story { padding-top: 50px; max-width: 560px; }
  .profile-story p { font-size: 15px; }
  .journal { padding-top: 130px; padding-bottom: 140px; }
  .journal-grid { margin-top: 80px; }
  .journal-grid article { display: grid; grid-template-columns: 150px 1fr; column-gap: 24px; padding: 38px 0 44px; }
  .journal-grid span { padding-top: 6px; }
  .journal-grid h3 { grid-column: 2; margin-top: 0; font-size: 22px; }
  .journal-grid p { grid-column: 2; margin-top: 20px; font-size: 15px; }
  .final-contact { min-height: 0; padding: 130px 7% 120px; }
  .final-contact h2 { font-size: min(clamp(34px, 4.8vw, 44px), 9.9cqw); line-height: 1.5; letter-spacing: .08em; margin-top: 44px; }
  .final-contact > p:not(.eyebrow):not(.contact-side) { font-size: 15px; margin-top: 50px; }
  .talk-light { padding: 16px 34px; margin-top: 44px; }
  .contact-side { right: 7%; bottom: 52px; }
}

/* Organic joins: each section starts with the previous section's colour curving down into it,
   with asymmetric radii so no two edges look alike. */
.continuation { --join: clamp(56px, 9vw, 150px); }
.services::before, .method::before, .work::before, .perspective::after,
.profile-full::before, .journal::before, .final-contact::before {
  content: '';
  position: absolute;
  left: -6vw;
  right: -6vw;
  top: -1px;
  height: var(--join);
  pointer-events: none;
  z-index: 0;
}
.services::before { background: #173f5a; border-radius: 0 0 62% 38% / 0 0 100% 72%; }
.method::before { background: #f7f8f5; border-radius: 0 0 36% 64% / 0 0 70% 100%; }
.work::before { background: #e8edef; border-radius: 0 0 55% 45% / 0 0 100% 84%; }
.perspective::after { background: #f7f8f5; border-radius: 0 0 40% 60% / 0 0 78% 100%; }
.profile-full::before { background: #244f6c; border-radius: 0 0 58% 42% / 0 0 100% 66%; }
.journal::before { background: #f7f8f5; border-radius: 0 0 44% 56% / 0 0 80% 100%; }
.final-contact::before { background: #edf1f1; border-radius: 0 0 60% 40% / 0 0 100% 76%; }
.services > *, .method > *, .work > *, .profile-full > *, .journal > *, .final-contact > :not(.contact-side) { position: relative; z-index: 1; }
.method > .method-steps { z-index: 1; }


/* ======== new second half (AX build-up, flow, work, profile, footer) ======== */
:root { --navy: #173f5a; --deep: #153b55; --mist: #e8edef; --mist-light: #edf1f1; --muted: #6b7d8a; }
/* ---- AX build-up: the work itself, experienced on scroll ------------------- */
.ax-build {
  position: relative; background: var(--navy); color: #f4f7f8;
  display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 4vw;
  padding: 0 var(--gutter);
}
.ax-build::before {
  content: ''; position: absolute; left: -6vw; right: -6vw; top: -1px; height: var(--join); pointer-events: none;
  background: var(--paper); border-radius: 0 0 58% 42% / 0 0 100% 70%; z-index: 2;
}
.ax-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.ax-formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .12em .32em;
  margin-top: 30px; font-size: clamp(30px, 4.4vw, 80px); line-height: 1.2; letter-spacing: .06em;
}
.ax-term, .ax-x { opacity: .14; transform: translateY(.18em); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1), color .6s; }
.ax-x { font-size: .5em; color: #9fb6c5; transform: none; }
.ax-stage { display: grid; margin-top: 22px; height: 1.6em; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #a8bcc9; }
.ax-stage span { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.ax-result {
  margin-top: clamp(28px, 3vw, 48px); font-size: clamp(34px, 5.2vw, 92px); letter-spacing: .14em; line-height: 1.1;
  opacity: 0; transform: translateY(18px); transition: opacity 1s ease .1s, transform 1.1s cubic-bezier(.2, .7, .2, 1) .1s;
}
.ax-eq { margin-right: .3em; color: #9fb6c5; font-size: .7em; vertical-align: .08em; }
.ax-def { display: none; }
.ax-build[data-ax="1"] .ax-formula [data-step="1"],
.ax-build[data-ax="2"] .ax-formula :is([data-step="1"], [data-step="2"]),
.ax-build[data-ax="3"] .ax-formula :is([data-step="1"], [data-step="2"], [data-step="3"]),
.ax-build[data-ax="4"] .ax-formula :is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]),
.ax-build[data-ax="5"] .ax-formula > * { opacity: 1; transform: none; }
.ax-build[data-ax="5"] .ax-formula > * { opacity: .55; }
.ax-build[data-ax="1"] .ax-stage [data-step="1"], .ax-build[data-ax="2"] .ax-stage [data-step="2"],
.ax-build[data-ax="3"] .ax-stage [data-step="3"], .ax-build[data-ax="4"] .ax-stage [data-step="4"] { opacity: 1; transform: none; }
.ax-build[data-ax="5"] .ax-result { opacity: 1; transform: none; }
.ax-steps { list-style: none; margin: 0; padding: 22vh 0 24vh; }
.ax-steps li { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .7s ease; }
.ax-build[data-ax="1"] .ax-steps li[data-step="1"], .ax-build[data-ax="2"] .ax-steps li[data-step="2"],
.ax-build[data-ax="3"] .ax-steps li[data-step="3"], .ax-build[data-ax="4"] .ax-steps li[data-step="4"],
.ax-build[data-ax="5"] .ax-steps li[data-step="5"] { opacity: 1; }
.ax-steps strong { font-size: 11px; letter-spacing: .24em; font-weight: 400; text-transform: uppercase; color: #a8bcc9; }
.ax-steps p { margin-top: 20px; font-size: clamp(18px, 1.6vw, 28px); line-height: 1.9; letter-spacing: .06em; max-width: 520px; }
.ax-steps li[data-step="5"] p { font-size: var(--t-lead); line-height: 2.15; letter-spacing: .06em; max-width: 480px; }


.flow { position: relative; padding-top: 170px; padding-bottom: 170px; }
.flow-list { list-style: none; margin: 105px 0 0; padding: 0; border-top: 1px solid #9dadb6; }
.flow-list > li { display: grid; grid-template-columns: 8% 1fr 36%; gap: 2.6vw; align-items: start; padding: 46px 0 50px; border-bottom: 1px solid #b8c3c8; }
.flow-no { font-size: 12px; color: #82939d; padding-top: 8px; }
.flow-body strong { display: block; font-size: 11px; letter-spacing: .26em; font-weight: 400; color: #6e828e; }
.flow-body h3 { margin-top: 14px; font-size: var(--t-title-l); line-height: 1.5; letter-spacing: .06em; }
.flow-body p { margin-top: 18px; max-width: 560px; font-size: var(--t-body); line-height: 2; letter-spacing: .045em; }
.flow-detail { padding-top: 10px; }
.flow-label { font-size: 11px; letter-spacing: .24em; color: #6e828e; margin: 0; }
.flow-label + .flow-label, .flow-do + .flow-label { margin-top: 26px; }
.flow-do { list-style: none; margin: 12px 0 0; padding: 0; }
.flow-do li { position: relative; padding-left: 18px; font-size: var(--t-body); line-height: 1.9; letter-spacing: .04em; color: #2c4a5e; }
.flow-do li + li { margin-top: 6px; }
.flow-do li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 1px; background: #8fa2ad; }
.flow-do a { color: inherit; border-bottom: 1px solid #b9c6cd; }
.flow-out { margin: 12px 0 0; padding-left: 18px; font-size: var(--t-body); line-height: 1.9; letter-spacing: .04em; color: #193950; }
.flow-cta { margin-top: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px 40px; flex-wrap: wrap; }
.flow-cta p { font-size: var(--t-lead); line-height: 2; letter-spacing: .06em; }

.work-index .work-desc { margin-top: 16px; font-size: var(--t-body); line-height: 1.95; letter-spacing: .04em; text-transform: none; color: #3f5a6c; max-width: 420px; }

/* ---- profile: not a résumé --------------------------------------------------- */
.profile-full {
  position: relative; padding-top: 170px; padding-bottom: 180px;
  display: grid; grid-template-columns: 36% 1fr; gap: 6vw; align-items: start;
}
.profile-full::before {
  content: ''; position: absolute; left: -6vw; right: -6vw; top: -1px; height: var(--join); pointer-events: none;
  background: var(--mist); border-radius: 0 0 56% 44% / 0 0 100% 68%;
}
.profile-full > * { position: relative; z-index: 1; }
.profile-figure { margin: 0; overflow: hidden; border-radius: 3px; }
.profile-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; filter: saturate(.92); }
.profile-main h2 { margin-top: 34px; font-size: clamp(26px, 2.6vw, 46px); line-height: 1.25; letter-spacing: .14em; }
.profile-main h2 .role { display: block; margin-top: 14px; font-size: clamp(12px, .95vw, 15px); letter-spacing: .12em; color: #5f7484; }
.profile-lead { margin-top: 48px; font-size: clamp(19px, 1.7vw, 30px); line-height: 1.85; letter-spacing: .08em; }
.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 52px 0 0; padding: 30px 0 0; border-top: 1px solid #aab8bf; }
.profile-facts div { margin: 0; }
.profile-facts dt { font-size: clamp(24px, 2.1vw, 38px); letter-spacing: .02em; line-height: 1; }
.profile-facts dt sup { font-size: .45em; margin-left: 2px; }
.profile-facts dd { margin: 12px 0 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6a808c; line-height: 1.7; }
.profile-story { margin-top: 52px; max-width: 560px; }
.profile-story p { font-size: var(--t-body); line-height: 2.15; letter-spacing: .055em; }
.profile-story p + p { margin-top: 22px; }


/* ---- footer: the bear lives here ------------------------------------------- */
.site-footer {
  --gutter: 6.5vw; position: relative; left: auto; right: auto; bottom: auto; background: var(--deep); color: #8fa6b5; border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 34px var(--gutter) 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
}
.site-footer-brand { color: #eef3f6; font-size: 13px; letter-spacing: .08em; text-transform: none; }
.site-footer-brand span { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .14em; color: #8fa6b5; }
.site-footer-bear { width: 22px; height: 22px; opacity: .4; filter: brightness(0) invert(1); }


/* ---- second-half joins for the new section order ------------------------ */
.ax-build::before, .flow::before {
  content: ''; position: absolute; left: -6vw; right: -6vw; top: -1px; height: var(--join); pointer-events: none; z-index: 2;
}
.ax-build::before { background: #f7f8f5; border-radius: 0 0 58% 42% / 0 0 100% 70%; }
.flow::before { background: #173f5a; border-radius: 0 0 62% 38% / 0 0 100% 72%; z-index: 0; }
.flow > * { position: relative; z-index: 1; }
.work { background: #e8edef; }
.work::before { background: #f7f8f5; border-radius: 0 0 40% 60% / 0 0 74% 100%; }
.profile-full::before { background: #e8edef; border-radius: 0 0 56% 44% / 0 0 100% 68%; }
.final-contact::before { background: #f7f8f5; border-radius: 0 0 60% 40% / 0 0 100% 76%; }
/* position: sticky needs the wrapper not to be a scroll container */
.continuation { overflow-x: clip; overflow-y: visible; }
.mobile { display: none; }

@media (max-width: 1023px) {
  .ax-build { display: block; padding: 0 var(--gutter); }
  .ax-sticky { height: auto; min-height: 0; padding: calc(var(--join) + 28px) 0 48px; position: sticky; top: 0; background: var(--navy); z-index: 1; }
  .ax-formula { font-size: clamp(30px, 6.4vw, 60px); margin-top: 22px; }
  .ax-result { font-size: clamp(32px, 7vw, 66px); margin-top: 24px; }
  .ax-def { display: block; max-width: 520px; margin-top: 18px; font-size: 15px; line-height: 2; letter-spacing: .05em; color: #dbe6ec; opacity: 0; transition: opacity .8s ease .25s; }
  .ax-build[data-ax="5"] .ax-def { opacity: 1; }
  .ax-steps li[data-step="5"] p { display: none; }
  .ax-steps { padding: 4vh 0 30vh; }
  .ax-steps li { min-height: 40vh; justify-content: flex-start; padding-top: 6vh; }
  .ax-steps p { font-size: clamp(17px, 2.6vw, 24px); }
  .flow { padding-top: 120px; padding-bottom: 120px; }
  .flow-list { margin-top: 70px; }
  .flow-list > li { grid-template-columns: 44px 1fr; gap: 0; padding: 34px 0 36px; }
  .flow-body h3 { font-size: 22px; }
  .flow-body p { font-size: 15px; }
  .flow-detail { grid-column: 2; padding-top: 22px; }
  .flow-do li, .flow-out { font-size: 15px; }
  .flow-cta { margin-top: 56px; }
  .profile-full { padding-top: 120px; padding-bottom: 130px; display: block; }
  .profile-figure { max-width: 380px; }
  .profile-main { margin-top: 44px; }
  .profile-main h2 { font-size: clamp(26px, 3.6vw, 34px); margin-top: 24px; }
  .profile-lead { font-size: clamp(18px, 2.6vw, 24px); margin-top: 36px; }
  .profile-facts { margin-top: 44px; gap: 16px; }
  .profile-story { margin-top: 44px; }
  .profile-story p { font-size: 15px; }
}

@media (max-width: 760px) {
  .mobile { display: inline; }
  .site-footer { --gutter: 8%; }
  .ax-sticky { padding: calc(var(--join) + 20px) 0 40px; }
  .ax-formula { font-size: min(30px, 7.6vw); letter-spacing: .04em; }
  .ax-stage { margin-top: 16px; font-size: 10px; }
  .ax-result { font-size: min(34px, 8.6vw); margin-top: 20px; }
  .ax-steps li { min-height: 38vh; }
  .ax-steps p { font-size: 17px; }
  .ax-steps li[data-step="5"] p { font-size: 15px; }
  .flow { padding-top: 100px; padding-bottom: 110px; }
  .flow-list > li { grid-template-columns: 38px 1fr; padding: 30px 0 32px; }
  .flow-body p { font-size: 14px; }
  .flow-do li, .flow-out { font-size: 14px; }
  .flow-do + .flow-label { margin-top: 20px; }
  .flow-cta p { font-size: 15px; }
  .work-index .work-desc { font-size: 14px; }
  .profile-full { padding-top: 100px; padding-bottom: 110px; }
  .profile-figure { max-width: 100%; }
  .profile-main h2 { font-size: min(26px, 7.4vw); }
  .profile-lead { font-size: min(18px, 5.2vw); }
  .profile-facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .profile-facts dt { font-size: 22px; }
  .profile-facts dd { font-size: 9.5px; letter-spacing: .1em; }
  .profile-story p { font-size: 14px; }
  .site-footer { padding: 28px var(--gutter) 34px; }
}

/* ---- AX: pinned scene with the network diagram on the right ---------------- */
.ax-build { display: block; padding: 0 var(--gutter); }
.ax-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 5vw; align-items: center; }
.ax-head { min-width: 0; }
.ax-panel { min-width: 0; display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 14vh 0 8vh; }
.ax-copy { display: grid; min-height: 6.4em; }
.ax-copy > div { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.ax-build[data-ax="1"] .ax-copy [data-step="1"], .ax-build[data-ax="2"] .ax-copy [data-step="2"],
.ax-build[data-ax="3"] .ax-copy [data-step="3"], .ax-build[data-ax="4"] .ax-copy [data-step="4"],
.ax-build[data-ax="5"] .ax-copy [data-step="5"] { opacity: 1; transform: none; }
.ax-copy strong { font-size: 11px; letter-spacing: .24em; font-weight: 400; text-transform: uppercase; color: #a8bcc9; }
.ax-copy p { margin-top: 18px; font-size: clamp(17px, 1.45vw, 25px); line-height: 1.9; letter-spacing: .06em; max-width: 480px; }
.ax-copy [data-step="5"] p { font-size: var(--t-lead); line-height: 2.1; max-width: 440px; }
.ax-net { display: block; width: 100%; height: clamp(220px, 40vh, 420px); margin-top: 24px; touch-action: pan-y; }
/* the step list only provides scroll length on desktop; it stays readable for assistive tech */
.ax-steps { margin-top: -100svh; padding: 30vh 0 26vh; opacity: 0; pointer-events: none; }
.ax-steps li { min-height: 70vh; }
@media (max-width: 1023px) {
  .ax-sticky { display: block; height: auto; }
  .ax-panel { display: block; height: auto; padding: 0; }
  .ax-copy { display: none; }
  .ax-net { height: clamp(150px, 24vh, 220px); margin-top: 6px; }
  .ax-steps { margin-top: 0; padding: 4vh 0 30vh; opacity: 1; pointer-events: auto; }
  .ax-steps li { min-height: 40vh; }
}
@media (max-width: 760px) {
  .ax-net { height: 150px; }
  .ax-steps li { min-height: 38vh; }
}

/* ---- philosophy: two columns again (Lovable's edit flattened it) ------------ */
.philosophy {
  position: absolute; top: 44.9%; left: 9%; right: 5%; max-width: none;
  display: grid; grid-template-columns: 1.4fr minmax(392px, 1fr); gap: 6vw; color: #f8fafb; scroll-margin-top: 50px;
}
.philosophy h2, .philosophy-body h2 { font-size: clamp(25px, 2.65vw, 48px); letter-spacing: .12em; line-height: 1.7; white-space: normal; margin: 0; }
.philosophy-heading > p { font-size: clamp(14px, 1.3vw, 23px); line-height: 1.9; letter-spacing: .14em; margin-top: 1.7vw; max-width: 30em; }
.signature { display: flex; align-items: center; gap: 2.4vw; font-size: clamp(14px, 1.3vw, 23px); letter-spacing: .07em; margin-top: 2.3vw; }
.signature:before { content: ''; width: 2.8vw; height: 1px; background: #d8e1e7; }
.philosophy-body { font-size: clamp(13px, 1.1vw, 20px); line-height: 2.05; letter-spacing: .1em; padding-top: .2vw; }
.philosophy-body p { font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.philosophy-body p + p { margin-top: .9vw; }
@media (min-width: 1024px) {
  .approach { top: 56.5%; }
}
@media (max-width: 1023px) {
  .philosophy { position: relative; inset: auto; margin-top: -45px; padding: 50px 8% 60px; display: block; background: #254f6c; color: white; }
  .philosophy h2 { font-size: clamp(28px, 3.6vw, 36px); letter-spacing: .1em; }
  .philosophy-heading > p { font-size: 15px; letter-spacing: .08em; margin-top: 24px; }
  .signature { margin-top: 28px; font-size: 15px; gap: 20px; }
  .signature:before { width: 30px; }
  .philosophy-body { font-size: 15px; letter-spacing: .05em; margin-top: 44px; max-width: 600px; padding-top: 0; }
  .philosophy-body p + p { margin-top: 12px; }
}
@media (max-width: 760px) {
  .philosophy { padding: 30px 8% 35px; }
  .philosophy h2 { font-size: min(clamp(21px, 5.25vw, 32px), 5.65vw); letter-spacing: .08em; line-height: 1.8; }
  .philosophy-heading > p { font-size: 14px; line-height: 2; letter-spacing: .06em; margin-top: 23px; }
  .signature { margin-top: 25px; font-size: 14px; }
  .philosophy-body { font-size: 14px; margin-top: 40px; line-height: 2.1; letter-spacing: .04em; }
}

/* ---- profile: the watercolour portrait sits on the paper without a frame ---- */
.profile-figure { overflow: hidden; border-radius: 0; background: transparent; }
.profile-figure img { aspect-ratio: 1 / 1; object-fit: contain; object-position: center; filter: none; mix-blend-mode: multiply; }
html .profile-figure.m-wipe img { transform: scale(1.06); }
html .profile-figure.m-wipe.is-in img { transform: none; }
.profile-photo { object-position: center 36%; }
@media (min-width: 1181px) {
  .philosophy { top: 42.6%; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .philosophy { top: 40.2%; }
  .philosophy-body .signature { margin-top: 1vw; }
  .philosophy-heading > p { margin-top: 1.1vw; }
  .signature { margin-top: 1.3vw; }
}

/* ---- philosophy: the signature closes the answer (right column) ------------ */
.philosophy-body .signature { margin-top: 1.6vw; font-size: clamp(13px, 1.1vw, 20px); }
@media (max-width: 1023px) { .philosophy-body .signature { margin-top: 26px; font-size: 15px; } }
@media (max-width: 760px) { .philosophy-body .signature { margin-top: 22px; font-size: 14px; } }

/* ---- AX definition line & the name note ------------------------------------ */
.ax-define { margin-top: 18px; font-size: var(--t-body); line-height: 1.9; letter-spacing: .05em; color: #c9d7e0; max-width: 520px; }
.ax-define strong { font-weight: 400; letter-spacing: .12em; color: #f4f7f8; }
.name-note { margin-top: 56px; padding-top: 28px; border-top: 1px solid #c9d3d8; max-width: 560px; }
.name-note .eyebrow { color: #6b7d8a; }
.name-note p + p { margin-top: 14px; font-size: var(--t-body); line-height: 2; letter-spacing: .05em; color: #3f5a6c; }
.name-note strong { font-weight: 400; letter-spacing: .06em; color: var(--ink); }
@media (max-width: 1023px) { .ax-define { margin-top: 14px; font-size: 14px; } .name-note { margin-top: 44px; padding-top: 24px; } }
@media (max-width: 760px) { .ax-define { font-size: 13.5px; } .name-note p + p { font-size: 14px; } }

/* ---- offerings: terms (who / how / shape & fees) ------------------------------ */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; margin: 72px 0 0; padding: 34px 0 0; border-top: 1px solid #b8c3c8; }
.terms > div { margin: 0; min-width: 0; }
.terms dt { font-size: var(--t-label); letter-spacing: .18em; font-weight: 400; color: #6e828e; }
.terms dd { margin: 14px 0 0; font-size: var(--t-body); line-height: 2; letter-spacing: .045em; color: #3f5a6c; }
.terms-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; }
.terms-steps li { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; color: var(--ink); }
.terms-steps li + li::before { content: '→'; margin: 0 8px; color: #9fb0ba; font-size: .9em; }
.terms-steps small { font-size: 10.5px; letter-spacing: .12em; padding: 3px 7px; border: 1px solid #b9c6cd; border-radius: 999px; color: #456073; }
.flow-cta p small { display: inline-block; margin-top: 6px; font-size: 12px; letter-spacing: .12em; color: #6e828e; }

/* ---- faq ------------------------------------------------------------------- */
.faq { position: relative; padding-top: 150px; padding-bottom: 160px; background: var(--paper); }
.faq-intro { grid-template-columns: 21% 1fr; }
.faq-list { margin: 70px 0 0 21%; border-top: 1px solid #9dadb6; }
.faq-list details { border-bottom: 1px solid #b8c3c8; }
.faq-list summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 16px;
  padding: 26px 0; font-size: var(--t-title-s); line-height: 1.6; letter-spacing: .05em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; justify-self: end; font-size: 20px; font-weight: 300; color: #6e828e; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--blue); }
.faq-list summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.faq-list p { margin: 0; padding: 0 40px 30px 0; max-width: 640px; font-size: var(--t-body); line-height: 2; letter-spacing: .045em; color: #3f5a6c; }

/* ---- footer links --------------------------------------------------------- */
.site-footer-links { display: flex; gap: 22px; font-size: 10.5px; letter-spacing: .14em; text-transform: none; }
.site-footer-links a { color: #b7c9d3; border-bottom: 1px solid rgba(183, 201, 211, .35); padding-bottom: 2px; }
.site-footer-links a:hover { color: #eef3f6; }

@media (max-width: 1023px) {
  .terms { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; padding-top: 28px; }
  .faq { padding-top: 110px; padding-bottom: 120px; }
  .faq-intro { display: block; }
  .faq-list { margin: 48px 0 0; }
  .faq-list summary { padding: 22px 0; font-size: 17px; }
  .faq-list p { padding-right: 24px; padding-bottom: 24px; font-size: 15px; }
}
@media (max-width: 760px) {
  .terms dd { font-size: 14px; }
  .terms-steps li + li::before { margin: 0 8px; }
  .faq { padding-top: 96px; padding-bottom: 100px; }
  .faq-list summary { font-size: 16px; }
  .faq-list p { font-size: 14px; }
}

/* ---- offering buttons → flow rows -------------------------------------------- */
.flow-list > li { scroll-margin-top: 96px; }
dialog a + a { margin-left: 26px; }

/* offering row: labels got longer — size columns to content and widen the block */
.offerings { width: 68%; }
.offering-links { grid-template-columns: auto auto auto; justify-content: start; }
.offering-links button { padding-right: 2.9vw; }
.offering-links button:last-child { padding-right: 0; }
@media (max-width: 1023px) and (min-width: 761px) { .offering-links { grid-template-columns: auto auto auto; } }
@media (max-width: 760px) { .offerings { width: auto; } .offering-links button { padding-right: 0; } }

/* ---- lab projects: we experiment too ------------------------------------- */
.lab { position: relative; padding-top: 170px; padding-bottom: 170px; background: #f7f8f5; }
.lab::before {
  content: ''; position: absolute; left: -6vw; right: -6vw; top: -1px; height: var(--join); pointer-events: none; z-index: 0;
  background: var(--mist); border-radius: 0 0 46% 54% / 0 0 84% 100%;
}
.lab > * { position: relative; z-index: 1; }
.lab-lead { max-width: 500px; font-size: var(--t-lead); line-height: 2.1; letter-spacing: .055em; padding-top: 5px; }
.lab-lead p + p { margin-top: 16px; }
.lab-projects { display: grid; grid-template-columns: 1fr 1fr; margin: 100px 0 0; border-top: 1px solid #9dadb6; }
.lab-project { position: relative; padding: 54px 7% 58px 0; }
.lab-project + .lab-project { border-left: 1px solid #bdc7cc; padding-left: 7%; padding-right: 0; }
.lab-name { font-size: 11px; letter-spacing: .28em; color: #6e828e; }
.lab-project h3 { margin-top: 20px; font-size: var(--t-title-l); line-height: 1.6; letter-spacing: .06em; }
.lab-project p:not(.lab-name):not(.lab-formula) { margin-top: 18px; font-size: var(--t-body); line-height: 2.05; letter-spacing: .045em; color: #3f5a6c; max-width: 500px; }
.lab-project h3 + p { margin-top: 28px !important; }
.lab-formula { margin-top: 34px; padding-top: 18px; max-width: 500px; border-top: 1px solid #c9d3d8; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: #6e828e; }
.lab-link { display: inline-block; margin-top: 26px; font-size: 14px; letter-spacing: .1em; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 5px; transition: opacity .2s; }
.lab-link span { margin-left: 6px; }
.lab-link:hover { opacity: .6; }
.lab-close { margin-top: 90px; padding-top: 54px; border-top: 1px solid #9dadb6; text-align: center; }
.lab-tagline { font-size: clamp(18px, 1.7vw, 28px); letter-spacing: .12em; }
.lab-close p + p { margin-top: 22px; font-size: var(--t-body); line-height: 2; letter-spacing: .06em; color: #3f5a6c; }
/* joins: work(mist) → lab(paper) → profile(mist) → contact(navy) */
.profile-full { background: var(--mist); }
.profile-full::before { background: #f7f8f5; }
.final-contact::before { background: var(--mist); }
@media (max-width: 1023px) {
  .lab { padding-top: 105px; padding-bottom: 120px; }
  .lab-lead { margin-top: 30px; font-size: 14px; }
  .lab-projects { display: block; margin-top: 64px; }
  .lab-project, .lab-project + .lab-project { padding: 40px 0 44px; border-left: 0; }
  .lab-project + .lab-project { border-top: 1px solid #bdc7cc; }
  .lab-project h3 { font-size: 21px; }
  .lab-project p:not(.lab-name):not(.lab-formula) { font-size: 15px; }
  .lab-close { margin-top: 56px; padding-top: 40px; text-align: left; }
}
@media (max-width: 760px) {
  .lab-project h3 { font-size: 19px; }
  .lab-project p:not(.lab-name):not(.lab-formula) { font-size: 14px; }
  .lab-close p + p { font-size: 14px; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .lab { padding-top: 130px; padding-bottom: 140px; }
  .lab-lead { font-size: 15px; max-width: 560px; }
}

/* lab project thumbnails (dropped when the image file is missing) */
.lab-shot { margin: 0 0 34px; max-width: 500px; }
.lab-shot a { display: block; border-bottom: 0; }
.lab-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid #cfd8dc; border-radius: 16px; background: #fff; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.lab-shot a:hover img { transform: translateY(-3px); }
@media (max-width: 1023px) { .lab-shot { margin-bottom: 26px; max-width: none; } .lab-shot img { border-radius: 12px; } }

/* ---- profile: title, roles, background ------------------------------------ */
.profile-title { margin-top: 26px; font-size: var(--t-lead); letter-spacing: .1em; color: var(--ink); }
.profile-story p + p { margin-top: 18px; }
.profile-story strong, .block-note strong { font-weight: 400; color: var(--ink); }
.profile-block { margin-top: 64px; padding-top: 30px; border-top: 1px solid #aab8bf; max-width: 640px; }
.profile-block > .eyebrow { color: #6b7d8a; }
.role-list { margin: 10px 0 0; }
.role-list > div { display: grid; grid-template-columns: 42% 1fr; gap: 2.4vw; padding: 22px 0; margin: 0; }
.role-list > div + div { border-top: 1px solid #d3dce0; }
.role-list dt { font-size: var(--t-body); line-height: 1.7; letter-spacing: .04em; color: var(--ink); }
.role-list dt > span { display: block; margin-top: 6px; font-size: 11.5px; letter-spacing: .14em; color: #5f7484; }
.role-list dd { margin: 0; font-size: var(--t-body); line-height: 2; letter-spacing: .045em; color: #3f5a6c; }
.block-note { margin-top: 26px; font-size: var(--t-body); line-height: 2; letter-spacing: .05em; color: #3f5a6c; }
.profile-block h3 { margin-top: 24px; font-size: var(--t-title-l); line-height: 1.6; letter-spacing: .06em; }
.block-body { margin-top: 22px; }
.block-body p { font-size: var(--t-body); line-height: 2.1; letter-spacing: .05em; color: #3f5a6c; }
.block-body p + p { margin-top: 18px; }
@media (max-width: 1023px) {
  .profile-title { margin-top: 20px; font-size: 15px; }
  .profile-block { margin-top: 48px; padding-top: 24px; max-width: none; }
  .role-list > div { display: block; padding: 18px 0; }
  .role-list dd { margin-top: 10px; font-size: 15px; }
  .role-list dt { font-size: 15px; }
  .block-note, .block-body p { font-size: 15px; }
  .profile-block h3 { font-size: 21px; }
}
@media (max-width: 760px) {
  .role-list dd, .role-list dt, .block-note, .block-body p { font-size: 14px; }
  .profile-block h3 { font-size: 19px; }
}

/* lab project category line above the thumbnail */
.lab-kind { margin: 0 0 16px; font-size: 12.5px; letter-spacing: .14em; color: #5f7484; }
@media (max-width: 760px) { .lab-kind { font-size: 12px; margin-bottom: 12px; } }

/* profile roles: organisation links */
.role-list dt a { color: inherit; border-bottom: 1px solid #b9c6cd; padding-bottom: 2px; transition: border-color .2s; }
.role-list dt a:hover { border-color: var(--ink); }
.role-list dt a span { font-size: .8em; margin-left: 2px; }

/* ---- language switcher --------------------------------------------------- */
.lang { display: inline-flex; align-items: center; gap: 10px; margin-left: .6vw; padding-left: 1.4vw; border-left: 1px solid rgba(25, 57, 80, .25); font-size: .82em; letter-spacing: .12em; }
.lang a { opacity: .55; }
.lang a[aria-current], .lang a:hover { opacity: 1; }
.header nav .lang a:after { display: none; }
.m-nav-lang { display: inline-flex; align-items: center; gap: 9px; margin: 0 -4px 0 2px; padding-left: 14px; border-left: 1px solid rgba(25, 57, 80, .18); font-size: 11px; letter-spacing: .14em; }
.m-nav-lang a { opacity: .5; }
.m-nav-lang a[aria-current], .m-nav-lang a:hover { opacity: 1; }
.m-nav .m-nav-lang a { padding: 12px 0; min-height: 40px; display: inline-flex; align-items: center; }
.m-nav .m-nav-lang a:after { display: none; }
@media (max-width: 760px) {
  .header nav .lang { display: none; }
}
@media (max-width: 599px) {
  .m-nav nav .m-nav-lang a:not(.m-nav-mark) { display: inline-flex; padding: 9px 0; min-height: 0; }
  .m-nav nav .m-nav-lang { border-left: 0; padding-left: 4px; gap: 8px; margin-right: 2px; }
}
/* Latin-script pages: Japanese tracking reads too loose, and the vertical
   tagline stays in Japanese as a signature. */
html:not([lang="ja"]) .continuation { letter-spacing: normal; }
html:not([lang="ja"]) .hero-copy h1 { letter-spacing: .02em; }
html:not([lang="ja"]) .hero-copy p, html:not([lang="ja"]) .philosophy-body p, html:not([lang="ja"]) .philosophy-heading p,
html:not([lang="ja"]) .section-intro > p:last-child, html:not([lang="ja"]) .lab-lead,
html:not([lang="ja"]) .flow-body p, html:not([lang="ja"]) .flow-do li, html:not([lang="ja"]) .flow-out,
html:not([lang="ja"]) .terms dd, html:not([lang="ja"]) .work-index .work-desc, html:not([lang="ja"]) .lab-project p,
html:not([lang="ja"]) .profile-story p, html:not([lang="ja"]) .role-list dd, html:not([lang="ja"]) .block-body p,
html:not([lang="ja"]) .block-note, html:not([lang="ja"]) .name-note p, html:not([lang="ja"]) .faq-list p,
html:not([lang="ja"]) .frictions p, html:not([lang="ja"]) .ax-copy p, html:not([lang="ja"]) .ax-steps p {
  letter-spacing: .01em; line-height: 1.8;
}
html:not([lang="ja"]) .section-intro h2, html:not([lang="ja"]) .philosophy-heading h2, html:not([lang="ja"]) .question-lead h2,
html:not([lang="ja"]) .final-contact h2, html:not([lang="ja"]) .flow-body h3, html:not([lang="ja"]) .lab-project h3,
html:not([lang="ja"]) .work-index h3 { letter-spacing: .01em; }
html:not([lang="ja"]) .offering-links button { white-space: normal; text-align: left; line-height: 1.35; font-size: clamp(16px, 1.45vw, 26px); }
html:not([lang="ja"]) .offerings { width: 72%; }

/* ==== play: ambient movement and small rewards ============================ */
/* Language switch: browsers that support cross-document view transitions
   crossfade between /, /en and /fi instead of flashing. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* 5. aurora: a slow, faint northern-light drift across the navy bands */
@keyframes m-aurora {
  0%   { translate: -6% -4%; rotate: -4deg; scale: 1.05; }
  50%  { translate: 5% 3%;   rotate: 3deg;  scale: 1.18; }
  100% { translate: -3% 5%;  rotate: -2deg; scale: 1.08; }
}
html.m-play .ax-build::after, html.m-play .final-contact::after {
  content: ''; position: absolute; inset: -20% -10%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 30% at 22% 38%, rgba(96, 212, 178, .16), transparent 70%),
    radial-gradient(34% 26% at 68% 62%, rgba(124, 142, 232, .14), transparent 70%),
    radial-gradient(28% 22% at 50% 22%, rgba(140, 220, 200, .08), transparent 70%);
  animation: m-aurora 64s ease-in-out infinite alternate;
  will-change: transform;
}
html.m-play .final-contact::after { animation-duration: 72s; animation-delay: -30s; }
html.m-play .ax-build, html.m-play .final-contact { overflow: clip; }
html.m-play .ax-sticky { z-index: 1; }
html.m-play .ax-steps { position: relative; z-index: 1; }

/* 6. hero breathing: the tide image swells 2% over half a minute */
@keyframes m-breathe { from { scale: 1; } to { scale: 1.025; } }
.m-hero-bg { display: none; }
@media (min-width: 1024px) {
  .m-hero-bg {
    display: block; position: absolute; inset: 0; pointer-events: none;
    background: var(--paper) url('assets/tidal-background.webp') center top/100% 100% no-repeat;
    transform-origin: 50% 30%; animation: m-breathe 28s ease-in-out infinite alternate;
    will-change: transform;
  }
  html.m-play .landscape { background-image: none; }
  html.m-play .hero-copy, html.m-play .hero-aside { will-change: translate; }
}

/* 7. tidal joins: the curves swell a few px with the scroll position */
html.m-play :is(.services, .work, .profile-full, .final-contact, .ax-build, .flow, .lab)::before {
  transform: scaleY(calc(1 + var(--tide, 0))); transform-origin: 50% 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

/* 12. offerings rows: the number wakes up and the list lifts, in order */
@media (hover: hover) {
  .flow-no { transition: color .5s ease; }
  .flow-do li { transition: translate .6s cubic-bezier(.2, .7, .2, 1), color .5s ease; }
  .flow-do li:nth-child(2) { transition-delay: 70ms; }
  .flow-do li:nth-child(3) { transition-delay: 140ms; }
  .flow-out { transition: translate .6s cubic-bezier(.2, .7, .2, 1) 210ms; }
  .flow-list > li:hover .flow-no { color: var(--ink); }
  .flow-list > li:hover .flow-do li { translate: 0 -3px; color: var(--ink); }
  .flow-list > li:hover .flow-out { translate: 0 -3px; }
}

/* 14. AX: each × turns into place; the = is drawn as two strokes */
.ax-x { rotate: -180deg; scale: .55; transition: opacity .9s ease, rotate 1.1s cubic-bezier(.2, .7, .2, 1), scale .9s cubic-bezier(.2, .7, .2, 1), color .6s; display: inline-block; }
.ax-build[data-ax="2"] .ax-formula .ax-x[data-step="2"],
.ax-build[data-ax="3"] .ax-formula .ax-x:is([data-step="2"], [data-step="3"]),
.ax-build[data-ax="4"] .ax-formula .ax-x:is([data-step="2"], [data-step="3"], [data-step="4"]),
.ax-build[data-ax="5"] .ax-formula .ax-x { rotate: 0deg; scale: 1; }
.ax-eq { position: relative; display: inline-block; width: .62em; height: .62em; color: transparent; vertical-align: -.02em; }
.ax-eq::before, .ax-eq::after {
  content: ''; position: absolute; left: 0; right: 0; height: .07em; background: #9fb6c5; border-radius: 1px;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.ax-eq::before { top: 30%; transition-delay: .25s; }
.ax-eq::after { top: 62%; transition-delay: .45s; }
.ax-build[data-ax="5"] .ax-eq::before, .ax-build[data-ax="5"] .ax-eq::after { transform: none; }
html.m-reduced .ax-eq::before, html.m-reduced .ax-eq::after { transform: none; transition: none; }
html.m-reduced .ax-x { rotate: 0deg; scale: 1; }

/* 15. work: a large faint numeral surfaces behind the item on hover */
.work-index { counter-reset: work; }
.work-index article { counter-increment: work; }
.work-index article > :is(h3, p) { position: relative; z-index: 1; }
.work-index article > span { z-index: 1; }
.work-index article::before {
  content: counter(work, decimal-leading-zero); position: absolute; right: 4%; bottom: 6px; z-index: 0;
  font-size: clamp(96px, 10vw, 170px); line-height: 1; letter-spacing: -.02em; color: var(--ink);
  opacity: 0; translate: 0 14px; pointer-events: none; transition: opacity .9s ease, translate 1.1s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .work-index article:hover::before { opacity: .07; translate: 0 0; }
}
@media (max-width: 760px) { .work-index article::before { display: none; } }

/* reduced motion: no ambient animation at all */
@media (prefers-reduced-motion: reduce) {
  .m-hero-bg, html.m-play .ax-build::after, html.m-play .final-contact::after { animation: none; }
}

/* ==== play: the bear's presence =========================================== */
/* 2. the nav bear looks the way you scroll, and nods when touched */
.m-nav-mark img { rotate: var(--bear-tilt, 0deg); transform-origin: 50% 80%; transition: rotate .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes m-nod { 0% { translate: 0 0; } 35% { translate: 0 2px; rotate: 6deg; } 100% { translate: 0 0; } }
@media (hover: hover) { .m-nav-mark:hover img { animation: m-nod .7s cubic-bezier(.2, .7, .2, 1); } }

/* 3. the footer bear sits down at the end of the page */
@keyframes m-sit { 0% { translate: 0 0; scale: 1 1; } 40% { translate: 0 3px; scale: 1.04 .9; } 100% { translate: 0 1px; scale: 1 1; } }
.site-footer { position: relative; }
.site-footer-bear { transform-origin: 50% 100%; }
.site-footer.is-here .site-footer-bear { animation: m-sit 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; opacity: .55; transition: opacity 1s ease .3s; }
.site-footer.is-here 
/* 4. hidden treat: a bear crosses the bottom of the screen, once */
@keyframes m-cross { from { translate: -12vw 0; } to { translate: 106vw 0; } }
@keyframes m-bob { 0%, 100% { rotate: -3deg; margin-bottom: 0; } 50% { rotate: 3deg; margin-bottom: 5px; } }
.m-bear-run { position: fixed; left: 0; bottom: 14px; width: 44px; height: auto; z-index: 50; pointer-events: none; opacity: .8; animation: m-cross 7s linear both, m-bob .5s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(21, 54, 78, .18)); }

/* 8. lab thumbnails tilt a few degrees toward the pointer */
@media (hover: hover) {
  html.m-play .lab-shot img {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform .35s ease, box-shadow .6s ease;
  }
  html.m-play .lab-shot a:hover img { --lift: -4px; box-shadow: 0 26px 50px rgba(21, 54, 78, .16); }
}

/* 9. the dialog grows out of the button that opened it */
@keyframes m-dialog-from { from { opacity: 0; transform: translate(calc(var(--dx, 0px) * .55), calc(var(--dy, 0px) * .55)) scale(.55); } to { opacity: 1; transform: none; } }
@keyframes m-dialog-to { to { opacity: 0; transform: translate(calc(var(--dx, 0px) * .45), calc(var(--dy, 0px) * .45)) scale(.7); } }
html.m-play dialog[open] { animation: m-dialog-from .55s cubic-bezier(.2, .7, .2, 1); }
html.m-play dialog[open].is-closing { animation: m-dialog-to .3s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .m-nav-mark img, .site-footer-bear, .m-bear-run, html.m-play dialog[open] { animation: none !important; transition: none !important; }
}

/* ==== type hierarchy: four weights ======================================= */
/* L1 display headings: medium, slightly tighter */
h1, .section-intro h2, .philosophy-heading h2, .question-lead h2, .final-contact h2, .faq-intro h2 { font-weight: 500; }
h1 { letter-spacing: .06em; }
.section-intro h2, .philosophy-heading h2 { letter-spacing: .05em; }
.question-lead h2, .final-contact h2 { letter-spacing: .05em; }
/* L2 item headings: regular */
.flow-body h3, .work-index h3, .lab-project h3, .profile-main h2, .profile-block h3, .ax-result, .lab-tagline,
.offering-links button, .profile-row h3, dialog h2, .faq-list summary, .hero-copy > p { font-weight: 400; }
.profile-row h3 span, .profile-main h2 .role { font-weight: 300; }
/* L3 body stays light; the key sentence of a paragraph is medium ink */
.profile-story strong, .block-note strong, .ax-define strong, .name-note strong { font-weight: 500; color: var(--ink); }
.flow-out { font-weight: 500; color: var(--ink); }
/* L4 labels: regular, tracking unchanged */
.eyebrow, .flow-label, .lab-name, .lab-kind, .terms dt, .flow-body strong, .section-label, .chapter-mark p,
.ax-stage span, .ax-copy strong, .ax-steps strong, .approach li span, .work-index article > p:last-child { font-weight: 400; }
/* the call to action */
.talk { font-weight: 400; }
/* numbers stay light and large: contrast against the medium headings */
.profile-facts dt, .flow-no, .work-index article > span, .chapter-mark span { font-weight: 300; }
/* Latin pages: medium Noto Sans JP Latin runs wide, so tighten a touch more */
html:not([lang="ja"]) h1 { letter-spacing: .01em; }
html:not([lang="ja"]) :is(.section-intro h2, .philosophy-heading h2, .question-lead h2, .final-contact h2) { letter-spacing: 0; }

/* first-movement profile links to the full profile */
a.profile-row { color: inherit; border-bottom: 0; }
.profile-more { grid-column: 2; margin-top: 1.1vw; font-size: clamp(11px, .9vw, 13px); letter-spacing: .16em; color: #5f7484; transition: color .3s ease; }
.profile-more span { display: inline-block; margin-left: 4px; transition: translate .4s cubic-bezier(.2, .7, .2, 1); }
.profile-row h3 { transition: color .3s ease; }
@media (hover: hover) {
  a.profile-row:hover h3 { color: var(--blue); }
  a.profile-row:hover .profile-more { color: var(--ink); }
  a.profile-row:hover .profile-more span { translate: 0 3px; }
}
@media (max-width: 760px) { .profile-more { margin-top: 14px; } }

/* ==== profile: identity above, three columns below ======================= */
.profile-grid {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 4vw;
  margin-top: 84px; padding-top: 40px; border-top: 1px solid #aab8bf;
}
.profile-grid .profile-block { margin-top: 0; padding-top: 0; border-top: 0; max-width: none; }
.profile-grid .role-list { margin-top: 14px; }
.profile-grid .role-list > div { display: block; padding: 15px 0; }
.profile-grid .role-list > div:first-child { padding-top: 6px; }
.profile-grid .role-list dd { margin-top: 8px; line-height: 1.9; }
.profile-grid .block-note { margin-top: 22px; }
.profile-grid .profile-block h3 { margin-top: 18px; }
.profile-grid .block-body { margin-top: 16px; }
.profile-grid .block-body p { line-height: 2; }
.profile-grid .block-body p + p { margin-top: 12px; }
.profile-grid .name-note { margin-top: 40px; padding-top: 22px; max-width: none; }
.profile-story { max-width: 620px; }
@media (min-width: 1024px) and (max-width: 1180px) {
  .profile-grid { grid-template-columns: 1fr 1fr; column-gap: 5vw; row-gap: 56px; }
}
@media (max-width: 1023px) {
  .profile-grid { display: block; margin-top: 48px; padding-top: 0; border-top: 0; }
  .profile-grid .profile-block { margin-top: 44px; padding-top: 24px; border-top: 1px solid #aab8bf; }
  .profile-grid .profile-block:first-child { margin-top: 0; }
  .profile-grid .role-list > div { padding: 16px 0; }
  .profile-grid .name-note { margin-top: 40px; }
}
