/* Full viewport chapters. No gutters, rounded edges or stacked-card offsets. */
:root { --header-height: 76px; --chapter-gutter: clamp(30px, 6.2vw, 112px); }
html { scroll-padding-top: 0; }
html.chapter-paging { scroll-snap-type: none; scroll-behavior: auto; }
/* A direct vertical drag can span only the neighboring fitted chapter.
   Tall chapters and the business reader keep the browser's scrolling. */
html.chapter-paging .touch-page { touch-action: pan-x pinch-zoom; }
html.chapter-paging[data-touch-from="work"] { scroll-snap-type: y proximity; }
html[data-touch-from="work"] :is(.chapter-card, .offering-card, footer.wrap) { scroll-snap-align: none; }
html[data-touch-from="work"] #data-story { scroll-snap-align: end; scroll-snap-stop: always; }
html.chapter-paging .chapter-card, html.chapter-paging .offering-card { min-height: var(--paging-height, 100dvh); }
body { background: var(--paper); }
main { padding: 0; }
main > .wrap, .offerings.wrap { width: 100%; max-width: none; margin: 0; }
.chapter-card, .offering-card {
  border: 0; border-radius: 0; box-shadow: none; margin: 0;
  min-height: 100svh; scroll-margin-top: 0;
}
.hero, .about, .company-section, .contact, .offering-card {
  padding: calc(var(--header-height) + 44px) var(--chapter-gutter) 64px;
  display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start;
}
.site-header, .site-header.is-scrolled {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(245,242,233,.92); border: 0;
  backdrop-filter: blur(16px);
}
.header-inner { width: calc(100% - var(--chapter-gutter)*2); max-width: none; gap: 28px; }
/* The M and lettering share one artwork and baseline. Only the lettering retracts. */
.header-inner .brand-morph { --brand-width: 120px; position: relative; width: var(--brand-width); height: 44px; flex: 0 0 var(--brand-width); }
.header-inner .brand-continuous {
  display: block; width: var(--brand-width); height: auto;
  position: absolute; left: 0; top: 50%; overflow: visible;
  /* The original M's centre is at y=143.5 in the 374-unit wordmark. */
  transform-origin: 0 38.37%;
  transform: translateY(-38.37%) scale(calc(1 + var(--brand-progress, 0)*.3));
}
.brand-name { transform: translateX(calc(var(--brand-progress, 0)*-1377px)); }
#navigation { gap: clamp(20px, 2.3vw, 36px); font-size: 16px; line-height: 1.5; }
html[lang=en] #navigation { font-size: 15px; }
.nav-contact { padding: 10px 18px; gap: 22px; margin-left: 0; }
.language-switch button { font-size: 12px; min-height: 34px; padding-inline: 9px; }
.hero { min-height: 100svh; overflow: hidden; }
.hero-copy { padding: 0; width: 52%; }
.hero h1, html[lang=en] .hero h1 { font-size: clamp(46px, 5.1vw, 78px); }
.hero-art { height: 100%; border-radius: 0; }
#brand-field { border-radius: 0; }
.about, #work { --content-paper: #f0ebdf; }
.about { position: relative; background: var(--content-paper); }
.about-layout { grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.reading-copy { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.35; text-wrap: balance; }
.reading-copy > span { display: block; }
.about-description { font-size: 16px; line-height: 1.9; }
.domain-line { margin-top: 45px; padding-top: 24px; border-color: #d6cebc80; }
.domain-line > div { justify-content: flex-end; gap: 35px; }
.domain-line > div > span { font-size: 14px; }
.domain-line > div > span + span::before { display: none; }
.data-story { padding: 0 var(--chapter-gutter); border: 0; }
.story-stage { min-height: 100svh; padding: calc(var(--header-height) + 32px) 0 48px; justify-content: center; }
.story-heading h2 { font-size: clamp(32px, 3.4vw, 50px); }
.story-workbench { margin-top: 36px; }
.story-copy h3, html[lang=en] .story-copy h3 { font-size: clamp(26px, 2.8vw, 38px); margin-top: 0; }
.story-copy-area, html[lang=en] .story-copy-area { min-height: 220px; }
.story-navigation { margin-top: 32px; }
.story-navigation button, html[lang=en] .story-navigation button { font-size: 14px; }
.offerings, .offering-deck { padding: 0; margin: 0; }
.offering-card { position: relative; top: auto; }
.offering-layout { width: 100%; min-height: 0; gap: clamp(50px, 7vw, 110px); }
.offering-copy h3 { font-size: clamp(38px, 4.6vw, 68px); margin-top: 0; }
.offering-copy > p { font-size: 16px; max-width: 540px; }
.offering-copy .offering-focus { font-size: 13px; }
.offering-visual { height: clamp(300px, 48svh, 500px); }
.benchmark-matrix { width: 290px; height: 290px; }
.company-layout { grid-template-columns: .7fr 1.3fr; align-items: center; gap: 90px; }
.company-mark { width: 260px; height: 260px; justify-self: center; }
.company-mark img { width: 118px; height: 118px; }
.company-layout h2 { font-size: clamp(36px, 4vw, 60px); }
.company-layout p { font-size: 17px; }
.contact h2 { margin: 0; font-size: clamp(42px, 5.8vw, 82px); }
.contact-bottom { margin-top: 65px; }
footer.wrap { width: 100%; margin: 0; padding: 32px var(--chapter-gutter); background: #e6dfce; border-color: #cfc6b7; scroll-snap-align: end; }
@media (min-width: 901px) and (min-height: 741px) and (prefers-reduced-motion: no-preference) {
  html:not(.chapter-paging) { scroll-snap-type: y mandatory; }
  .data-story { scroll-snap-align: start; }
  #story-track { height: 320svh; }
  .story-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
  html.chapter-paging #story-track { height: calc(var(--paging-height, 100svh) * 3.2); }
  html.chapter-paging .story-stage { height: var(--paging-height, 100svh); }
}
@media (max-width: 1150px) and (min-width: 901px) {
  :root { --chapter-gutter: 34px; }
  .header-inner { gap: 18px; }
  #navigation, html[lang=en] #navigation { gap: 17px; font-size: 14px; }
  .nav-contact { padding-inline: 13px; gap: 12px; }
  .hero-copy { width: 53%; }
  .hero h1, html[lang=en] .hero h1 { font-size: 50px; }
  .about-layout { gap: 35px; grid-template-columns: .8fr 1.2fr; }
  .domain-line > div { gap: 22px; }
}
@media (max-width: 900px) {
  :root { --header-height: 68px; --chapter-gutter: 30px; }
  .header-inner { gap: 20px; }
  .header-inner .brand-morph { --brand-width: 112px; }
  #navigation, html[lang=en] #navigation { font-size: 18px; gap: 0; }
  .hero, .about, .company-section, .contact, .offering-card { padding-top: calc(var(--header-height) + 32px); padding-bottom: 38px; }
  .hero { justify-content: center; }
  .hero-copy { width: 100%; max-width: 650px; }
  .hero h1, html[lang=en] .hero h1 { font-size: clamp(38px, 6.8vw, 56px); margin-top: 0; }
  .hero-art { width: 100%; height: clamp(240px, 37svh, 370px); margin: 10px 0 0; flex: 0 0 auto; }
  .about-layout { grid-template-columns: .65fr 1.35fr; gap: 30px; }
  .reading-copy { font-size: 32px; }
  .about-description { font-size: 14px; }
  .domain-line > div { justify-content: center; flex-wrap: wrap; gap: 16px 25px; }
  .story-stage { position: relative; top: auto; height: auto; padding-top: calc(var(--header-height) + 30px); padding-bottom: 38px; }
  .story-workbench { margin-top: 25px; }
  .offering-layout { gap: 35px; }
  .offering-visual { height: 300px; }
  .offering-copy h3 { font-size: 39px; }
  .offering-copy > p { font-size: 14px; }
  .company-layout { gap: 40px; grid-template-columns: .65fr 1.35fr; }
  .company-mark { width: 160px; height: 160px; }
  .company-mark img { width: 75px; height: 75px; }
  .company-layout h2 { font-size: 38px; }
}
@media (max-width: 600px) {
  :root { --chapter-gutter: 24px; --header-height: 64px; }
  .header-inner { gap: 14px; }
  .header-inner .brand-morph { --brand-width: 106px; }
  .language-switch button { font-size: 11px; min-height: 32px; padding-inline: 8px; }
  .hero, .about, .company-section, .contact, .offering-card { padding-top: 92px; padding-bottom: 30px; }
  .hero h1, html[lang=en] .hero h1 { font-size: 40px; }
  .hero-description, html[lang=en] .hero-description { font-size: 14px; }
  .hero-actions, html[lang=en] .hero-actions { margin-top: 24px; gap: 20px; }
  .hero-art { height: clamp(230px, 32svh, 320px); }
  .about-layout { display: flex; flex-direction: column; gap: 22px; }
  .reading-copy { font-size: 30px; line-height: 1.5; }
  .about-description { margin-top: 20px; }
  .domain-line { margin-top: 26px; padding-top: 18px; }
  .domain-line > div { margin-top: 0; gap: 12px 22px; justify-content: flex-start; }
  .domain-line > div > span { font-size: 12px; }
  .story-stage { padding: 92px 0 30px; }
  .story-heading h2 { font-size: 30px; }
  .story-heading p { font-size: 13px; }
  .story-workbench { margin-top: 20px; gap: 18px; }
  .process-visual { height: 215px; }
  .story-copy-area, html[lang=en] .story-copy-area { min-height: 165px; }
  .story-copy h3, html[lang=en] .story-copy h3 { font-size: 27px; }
  .story-navigation { margin-top: 15px; }
  .story-navigation button, html[lang=en] .story-navigation button { font-size: 12px; }
  .offering-layout { gap: 25px; }
  .offering-copy h3 { font-size: 36px; }
  .offering-copy .offering-focus { font-size: 12px; }
  .offering-visual { height: 270px; }
  .benchmark-matrix { width: 220px; height: 220px; }
  .company-layout { grid-template-columns: 1fr; gap: 30px; }
  .company-mark { display: grid; width: 140px; height: 140px; }
  .company-mark img { width: 68px; height: 68px; }
  .company-layout h2 { font-size: 36px; }
  .company-layout p { font-size: 15px; }
  .contact h2 { font-size: 43px; }
  .contact-bottom { margin-top: 36px; gap: 30px; }
  .contact-bottom > p { font-size: 14px; }
  .contact-email > a { font-size: 28px; }
}
@media (max-width: 360px) {
  :root { --chapter-gutter: 20px; }
  .header-inner { gap: 10px; }
  .hero h1, html[lang=en] .hero h1 { font-size: 35px; }
  .hero-actions, html[lang=en] .hero-actions { gap: 14px; }
  .hero-art { height: 230px; }
  .contact-email > a { font-size: 24px; }
}
@media (max-height: 740px) and (min-width: 901px) {
  .hero, .about, .company-section, .contact, .offering-card { padding-top: 100px; padding-bottom: 35px; }
  .story-stage { position: relative; top: auto; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .story-stage { position: relative; top: auto; height: auto; }
}

/* Eight destinations stay readable; narrower windows use the complete menu. */
.header-inner { width: calc(100% - clamp(48px, 6.4vw, 128px)); gap: 24px; }
#navigation { gap: clamp(16px, 1.35vw, 24px); }
#navigation > a { white-space: nowrap; flex-shrink: 0; }
#navigation .nav-contact { gap: 12px; padding-inline: 16px; }
#navigation .nav-contact[aria-current="location"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 1359px) {
  .header-inner { width: calc(100% - 48px); gap: 18px; }
  .language-switch { margin-left: auto; }
  .menu-toggle { display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 14px; background: none; }
  .menu-toggle i { position: relative; display: block; width: 18px; height: 12px; border-block: 1px solid currentColor; transition: height .3s, transform .3s; }
  .menu-toggle[aria-expanded="true"] i { height: 1px; border-bottom: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { content: ""; position: absolute; top: -1px; left: 0; width: 18px; height: 1px; background: currentColor; transform: rotate(90deg); }
  #navigation, html[lang=en] #navigation {
    display: none; position: absolute; top: var(--header-height); left: 0; right: 0;
    margin: 0; padding: 16px 24px 24px; flex-direction: column; align-items: stretch;
    gap: 0; font-size: 18px; background: #f5f2e9; border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--header-height)); max-height: calc(100dvh - var(--header-height));
    overflow-y: auto; overscroll-behavior: contain;
  }
  #navigation.is-open, html[lang=en] #navigation.is-open { display: flex; animation: panel-in .2s ease; }
  #navigation > a { display: flex; align-items: center; min-height: 48px; padding: 11px 12px; border-radius: 8px; }
  #navigation > a::after { display: none; }
  #navigation > a[aria-current="location"] { background: #e6dfcf; }
  #navigation .nav-contact { align-self: stretch; justify-content: space-between; margin: 8px 0 0; padding-inline: 12px; }
  #navigation .nav-contact[aria-current="location"] { background: var(--ink); }
}
@media (max-width: 360px) {
  .header-inner { width: calc(100% - 32px); gap: 10px; }
}
