@font-face { font-family: 'Erode'; src: url('../fonts/erode-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Erode'; src: url('../fonts/erode-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Erode'; src: url('../fonts/erode-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Erode'; src: url('../fonts/erode-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #153860;
  --navy-2: #102d4e;
  --navy-3: #0c2440;
  --blue: #128DCE;
  --sky: #6EC1E4;
  --ice: #EAF6FF;
  --paper: #F4F7FA;
  --ink-dark: #0A0C1D;
  --white: #FFFFFF;

  --bg: var(--white);
  --ink: var(--navy);
  --soft: #46566a;
  --axis: 34%;
  --m: 32px;
  --gap: 24px;
  --sect: 200px;
  --step-small: clamp(14px, .82rem + .1vw, 15px);
  --step-body: clamp(17px, 1rem + .25vw, 19px);
  --step-lead: clamp(20px, 1.1rem + .7vw, 26px);
  --step-head: clamp(36px, 1.3rem + 3.2vw, 68px);
  --step-display: clamp(64px, 9.4vw, 150px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 760px) { :root { --m: 20px; --sect: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 'Erode', Georgia, serif; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--navy); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; background: var(--navy); color: var(--white); font: 600 var(--step-body)/1 'Erode', serif; text-decoration: none; border: 0; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--ink-dark); }
.btn:active { transform: scale(.98); }
.btn--paper { background: var(--white); color: var(--navy); }
.btn--paper:hover { background: var(--ice); }
.tl { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.tl:hover { color: var(--blue); }

/* Entrances */
.js-motion [data-reveal] { opacity: 0; transform: translateY(22px); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }

/* Hero: narrow talk, wide headline */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: var(--axis) 1fr; padding: 0 var(--m); background: var(--paper); overflow: hidden; }
.hero__left { padding-top: 28px; display: grid; grid-template-rows: auto 1fr; padding-right: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: var(--step-lead); font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; }
.hero__talk { margin-top: 30vh; display: grid; gap: 28px; align-content: start; }
.hero__talk p { font-size: var(--step-lead); line-height: 1.35; max-width: 24ch; }
.hero__talk .btn { justify-self: start; }
.hero__right { padding-top: 28px; display: grid; grid-template-rows: auto auto 1fr; }
.hero nav ul { display: flex; gap: 36px; font-size: var(--step-small); }
.hero nav a { text-decoration: none; }
.hero nav a:hover { text-decoration: underline; }
.hero h1 { margin-top: 8vh; font-size: var(--step-display); font-weight: 500; line-height: .86; letter-spacing: -.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: block; }
.js-motion .hero h1 .line > span { animation: rise .95s var(--ease) both; }
.js-motion .hero h1 .line:nth-child(2) > span { animation-delay: .11s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero__pic { position: relative; align-self: end; margin-top: 7vh; height: 34vh; }
.hero__pic > img { width: 100%; height: 100%; object-fit: cover; }
.hero__pic .fact { position: absolute; left: 0; top: 0; translate: 0 -50%; width: 260px; background: var(--blue); color: var(--ink-dark); padding: 18px 20px; }
.hero__pic .fact b { display: block; font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.hero__pic .fact span { font-size: var(--step-small); line-height: 1.35; display: block; margin-top: 8px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero__left { padding: 20px 0 0; grid-template-rows: auto; order: 0; }
  .hero__right { order: 1; padding-top: 0; }
  .hero nav { position: absolute; top: 24px; right: var(--m); }
  .hero nav li:not(:last-child) { display: none; }
  .hero h1 { margin-top: 56px; font-size: 14.5vw; }
  .hero__talk { margin-top: 0; order: 2; padding: 24px 0 56px; }
  .hero__left, .hero__right { display: contents; }
  .hero h1 { order: 1; }
  .hero .brand { order: -1; padding-top: 20px; }
  .hero__talk { order: 2; }
  .hero__pic { order: 3; margin: 0 calc(var(--m) * -1); height: auto; aspect-ratio: 4 / 3; }
  .hero__pic .fact { width: 60%; translate: 0 0; top: auto; bottom: 0; }
  .hero__talk .btn { justify-self: stretch; }
}

/* Features: statement cell, dark rows */
.feat { display: grid; grid-template-columns: 1fr 1fr; }
.feat__cell { background: var(--ice); min-height: 90svh; padding: 72px var(--m) 48px; display: grid; grid-template-rows: auto 1fr auto; }
.feat__cell h2 { font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.feat__cell h2 span { display: block; }
.feat__cell h2 span:nth-child(2) { text-align: right; }
.feat__foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.feat__foot p { max-width: 30ch; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 24px; padding: 28px var(--m) 28px 28px; color: var(--white); background: var(--navy); align-content: start; }
.row:nth-child(even) { background: var(--navy-3); }
.row h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
.row p { font-size: var(--step-small); line-height: 1.5; }
.row ul { font-size: var(--step-small); line-height: 1.6; color: #cfe3f3; }
@media (max-width: 1100px) { .row { grid-template-columns: 1fr 1fr; } .row ul { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 .5em; } .row ul li:not(:last-child)::after { content: ','; } }
@media (max-width: 760px) {
  .feat { grid-template-columns: 1fr; }
  .feat__cell { min-height: 70svh; }
  .feat__cell h2 { font-size: 10vw; }
  .feat__foot { flex-direction: column; align-items: stretch; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 28px var(--m); }
}

/* Modules as chapters, each on its picture's ground */
.chapters h2.vh + .chap { }
.chap { min-height: 100svh; position: relative; padding: 32px var(--m); color: var(--white); display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr auto; gap: 24px; transition: background-color .6s var(--ease); }
.chap h3 { grid-column: 1; grid-row: 1; font-size: var(--step-lead); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; max-width: 22ch; }
.chap figure { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: min(506px, 36vw); aspect-ratio: 3 / 4; overflow: hidden; }
.chap figure img { width: 100%; height: 100%; object-fit: cover; }
.js-motion .chap figure img { transform: scale(.92); transition: transform .9s var(--ease); }
.js-motion .chap.is-in figure img { transform: none; }
.chap p { grid-column: 1; grid-row: 3; align-self: end; max-width: 32ch; }
.chap ul { grid-column: 3; grid-row: 1 / span 2; justify-self: end; font-size: var(--step-small); text-align: right; line-height: 1.7; color: rgba(255,255,255,.86); max-width: 26ch; }
.chap a { grid-column: 3; grid-row: 3; justify-self: end; align-self: end; }
.chap--p2p { background: #263134; }
.chap--o2c { background: #241c0c; }
.chap--fa { background: #554a32; }
.chap--rep { background: #171f26; }
@media (max-width: 760px) {
  .chap { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; min-height: auto; padding: 32px var(--m) 48px; }
  .chap h3, .chap figure, .chap p, .chap ul, .chap a { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
  .chap figure { width: 80%; justify-self: center; }
  .chap h3 { font-size: 24px; }
}

/* Text page: everything in the ledger */
.ledger { padding: var(--sect) var(--m); display: grid; grid-template-columns: var(--axis) 1fr; }
.ledger__side { padding-right: 48px; font-size: var(--step-small); color: var(--soft); }
.ledger__side figure { margin-top: 24px; }
.ledger__side figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ledger__side figcaption { margin-top: 10px; }
.ledger h2 { font-size: var(--step-head); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin-bottom: 48px; }
.ledger__cols { columns: 2 36ch; column-gap: 56px; }
.ledger dl > div { break-inside: avoid; margin-bottom: 28px; }
.ledger dt { font-weight: 600; font-size: var(--step-lead); letter-spacing: -.01em; }
.ledger dd { margin-top: 4px; }
@media (max-width: 900px) { .ledger { grid-template-columns: 1fr; } .ledger__side { order: 2; margin-top: 40px; } }

/* Packages: fields + builder */
.pack { display: grid; grid-template-columns: 5fr 4fr 3fr; }
.pk { position: relative; min-height: 62svh; padding: 40px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; cursor: pointer; transition: filter .2s; }
.pk input { position: absolute; opacity: 0; pointer-events: none; }
.pk h3 { font-size: var(--step-head); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.pk .who { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; }
.pk .inc { align-self: end; max-width: 40ch; }
.pk .pick { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; }
.pk .pick .mark { display: inline-grid; place-items: center; min-height: 48px; padding: 0 20px; background: currentColor; }
.pk .pick .mark i { font-style: normal; }
.pk--a { background: var(--navy); color: var(--white); }
.pk--b { background: var(--blue); color: var(--ink-dark); }
.pk--c { background: var(--ice); color: var(--navy); }
.pk--a .mark i { color: var(--navy); } .pk--b .mark i { color: var(--blue); } .pk--c .mark i { color: var(--ice); }
.pk:hover { filter: brightness(1.06); }
.pk:has(input:focus-visible) { outline: 4px solid var(--ink-dark); outline-offset: -8px; }
.pk .on { display: none; } .pk:has(input:checked) .on { display: inline; } .pk:has(input:checked) .off { display: none; }
.pack__lead { grid-column: 1 / -1; padding: 140px var(--m) 64px; display: grid; grid-template-columns: var(--axis) 1fr; }
.pack__lead h2 { font-size: var(--step-head); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.pack__lead p { margin-top: 20px; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
@media (max-width: 900px) {
  .pack { grid-template-columns: 1fr; }
  .pk { min-height: 70svh; padding: 64px var(--m) 28px; }
  .pk h3 { font-size: 12vw; }
  .pack__lead { grid-template-columns: 1fr; }
}
.build { padding: 96px var(--m) var(--sect); display: grid; grid-template-columns: var(--axis) 1fr; gap: 0; }
.build h3 { font-size: var(--step-lead); font-weight: 600; }
.build__side { padding-right: 40px; display: grid; gap: 12px; align-content: start; }
.build__side p { color: var(--soft); max-width: 30ch; }
.adds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px; }
.add { position: relative; display: block; cursor: pointer; }
.add input { position: absolute; opacity: 0; inset: 0; }
.add span { display: block; background: var(--paper); padding: 20px 22px; min-height: 100%; transition: background-color .2s, color .2s; }
.add b { display: block; font-size: var(--step-body); font-weight: 600; margin-bottom: 4px; }
.add:hover span { background: var(--ice); }
.add input:checked + span { background: var(--navy); color: var(--white); }
.add input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.summary { margin-top: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-top: 32px; }
.summary p { font-size: var(--step-lead); line-height: 1.35; max-width: 46ch; }
@media (max-width: 900px) { .build { grid-template-columns: 1fr; } .build__side { margin-bottom: 28px; } .summary { grid-template-columns: 1fr; } .summary .btn { width: 100%; } }

/* About: side facts, wide paragraph */
.about { padding: var(--sect) var(--m) calc(var(--sect) * .7); background: var(--paper); display: grid; grid-template-columns: var(--axis) 1fr; row-gap: 88px; }
.about h2 { grid-column: 2; font-size: var(--step-head); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin-bottom: -48px; }
.facts { display: grid; gap: 20px; align-content: start; font-size: var(--step-small); }
.facts dt { color: var(--soft); }
.facts dd { font-size: var(--step-body); font-weight: 600; }
.about__p { font-size: var(--step-lead); line-height: 1.35; max-width: 50ch; }
.about__p + .about__p { margin-top: 1em; }
.rec__word { font-size: var(--step-small); font-weight: 600; }
.rec__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 64px; }
.rec__lists h3 { font-size: var(--step-small); font-weight: 600; margin-bottom: 14px; }
.rec__lists li { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); padding: 5px 0; }
.rec__lists li span:last-child { color: var(--soft); text-align: right; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; row-gap: 48px; }
  .about h2 { grid-column: 1; margin-bottom: 0; }
  .facts { grid-template-columns: 1fr 1fr; order: 2; }
  .rec__lists { grid-template-columns: 1fr; gap: 40px; }
  .rec__word { display: none; }
}

/* One long letter */
.letter { padding: var(--sect) var(--m); display: grid; grid-template-columns: var(--axis) minmax(0, 38ch); }
.letter__pic { width: 140px; }
.letter__pic img { aspect-ratio: 1; object-fit: cover; }
.letter .open { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 28px; }
.letter p { font-size: var(--step-body); line-height: 1.55; }
.letter p + p { margin-top: 20px; }
.letter .sign { margin-top: 40px; font-size: var(--step-small); }
.letter .sign b { display: block; font-weight: 600; }
@media (max-width: 900px) { .letter { grid-template-columns: 1fr; } .letter__pic { width: 96px; margin-bottom: 28px; } }

/* Contact */
.contact { padding: 160px var(--m) 180px; background: var(--navy); color: var(--white); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.contact__say { grid-column: 1 / span 5; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.contact figure { grid-column: 8 / span 2; width: 100%; max-width: 170px; }
.contact figure img { aspect-ratio: 1; object-fit: cover; }
.contact__links { grid-column: 10 / -1; display: grid; gap: 12px; }
.contact__links .q { font-size: var(--step-body); font-weight: 600; margin-bottom: 8px; }
.contact__links a { font-size: var(--step-body); }
.contact__links .where { font-size: var(--step-small); color: #c4d6e8; margin-top: 8px; }
.visit { grid-column: 1 / -1; margin-top: 96px; display: grid; grid-template-columns: var(--axis) repeat(3, 1fr); gap: var(--gap); font-size: var(--step-small); color: #dbe7f2; }
.visit h3 { font-size: var(--step-body); font-weight: 600; color: var(--white); }
.visit div h3 { margin-bottom: 4px; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 96px 1fr; }
  .contact__say { grid-column: 1 / -1; font-size: 24px; }
  .contact figure { grid-column: 1; }
  .contact__links { grid-column: 2; }
  .visit { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
}

/* Footer: name first */
.foot { background: var(--blue); color: var(--ink-dark); overflow: hidden; padding: 0 var(--m) 32px; min-height: 90svh; display: grid; grid-template-rows: auto 1fr auto; }
.foot__name { font-size: 31vw; line-height: .78; font-weight: 600; letter-spacing: -.055em; margin: -.1em 0 0 -.05em; white-space: nowrap; color: var(--navy); }
.foot__row { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.places { grid-column: 1 / span 5; display: grid; gap: 4px; }
.places a, .places span { font-size: var(--step-lead); line-height: 1.2; text-decoration: none; letter-spacing: -.015em; }
.places a:hover { text-decoration: underline; }
.foot__links { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); font-size: var(--step-small); }
.foot__links h3 { font-size: var(--step-small); font-weight: 600; margin-bottom: 8px; }
.foot__links li { padding: 2px 0; }
.foot__links a { text-decoration: none; } .foot__links a:hover { text-decoration: underline; }
.foot__legal { margin-top: 96px; display: flex; justify-content: space-between; align-items: end; gap: 24px; font-size: var(--step-small); flex-wrap: wrap; }
.foot__legal img { width: 64px; }
@media (max-width: 900px) {
  .foot__row { grid-template-columns: 1fr; }
  .places, .foot__links { grid-column: 1; }
  .foot__links { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .foot__legal { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.nf { padding: 20vh var(--m, 32px); display: grid; gap: 24px; } .nf h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; }
