/* ==========================================================================
   Bureau Noard — digital product studio
   ========================================================================== */
:root {
  --ink: #333333;
  --ink-deep: #1f1f1f;
  --paper: #f5f3ee;
  --white: #ffffff;
  --yellow: #ffc800;
  --yellow-soft: #fff4cc;
  --muted: #6b6862;
  --muted-dark: rgba(255, 255, 255, .62);
  --line: rgba(51, 51, 51, .14);
  --line-dark: rgba(255, 255, 255, .14);
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--yellow); pointer-events: none; mix-blend-mode: difference; opacity: 0;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
}
.has-cursor .cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-text { opacity: 0 !important; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; gap: 10px; align-items: center; padding: 16px 24px;
  background: var(--ink); color: var(--white); text-decoration: none; border: 0; cursor: pointer;
  font: 700 15px/1 var(--display); letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate; border-radius: 4px;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: translateY(101%); transition: transform .35s var(--ease); z-index: -1; }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: none; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-sm { padding: 12px 16px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-yellow, .btn-light { background: var(--yellow); color: var(--ink); }
.btn-yellow::before, .btn-light::before { background: var(--white); }
.link { display: inline-block; margin-top: 28px; font: 700 15px var(--display); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(245, 243, 238, .9); backdrop-filter: blur(12px);
  transition: padding .3s, box-shadow .3s;
}
.site-header.is-scrolled { padding-block: 10px; box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); transition: opacity .3s; }
.logo-mark { width: 42px; height: 42px; color: var(--ink); transition: transform .6s var(--ease), width .3s, height .3s; }
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-word { display: block; height: 38px; width: auto; transition: height .3s; }
.is-scrolled .logo-mark { width: 36px; height: 36px; }
.is-scrolled .logo-word { height: 32px; }

.nav-inline { display: flex; gap: 28px; align-items: center; }
.nav-inline a:not(.btn) { font: 600 15px var(--display); text-decoration: none; position: relative; }
.nav-inline a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-inline a:not(.btn):hover::after, .nav-inline a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--yellow); cursor: pointer; place-items: center; position: relative; z-index: 60; border-radius: 4px; }
.bars { display: grid; gap: 7px; width: 22px; }
.bars span { display: block; height: 3px; background: var(--ink); transition: transform .4s var(--ease); }
.menu-open .bars span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-open .bars span:last-child { transform: translateY(-5px) rotate(-45deg); }

.side-menu {
  position: fixed; inset: 0 0 0 auto; width: min(480px, 100%); z-index: 55;
  background: var(--ink-deep); color: var(--white);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  transform: translateX(100%); transition: transform .55s var(--ease), visibility 0s .55s; visibility: hidden;
}
.menu-open .side-menu { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.side-menu nav { display: grid; gap: 4px; }
.side-menu nav a {
  font: 800 clamp(2rem, 8vw, 2.8rem)/1.2 var(--display); text-decoration: none; display: flex; gap: 14px; align-items: baseline;
  opacity: 0; transform: translateX(30px); transition: color .25s, opacity .45s var(--ease), transform .45s var(--ease);
}
.side-menu nav a::before { content: attr(data-i); font-size: 13px; color: var(--yellow); font-weight: 700; }
.side-menu nav a:hover, .side-menu nav a[aria-current] { color: var(--yellow); }
.menu-open .side-menu nav a { opacity: 1; transform: none; }
.menu-open .side-menu nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .side-menu nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .side-menu nav a:nth-child(4) { transition-delay: .12s; }
.menu-open .side-menu nav a:nth-child(5) { transition-delay: .16s; }
.side-follow p { margin-bottom: 6px; color: var(--yellow); font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .1em; }
.side-follow a { text-decoration: none; font-size: 1.1rem; }
.menu-open .site-header { z-index: 60; background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .logo { opacity: 0; pointer-events: none; }
body::after { content: ""; position: fixed; inset: 0; background: rgba(20,20,20,.5); z-index: 54; opacity: 0; pointer-events: none; transition: opacity .5s; }
body.menu-open::after { opacity: 1; pointer-events: auto; }

/* ---------- Common blocks ---------- */
.eyebrow, .kicker {
  font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow { margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--yellow); }
.section { padding: clamp(80px, 11vw, 150px) var(--gutter); }
.section-white { background: var(--white); }
.section-dark { background: var(--ink-deep); color: var(--white); }
.section-dark .kicker { color: var(--muted-dark); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { max-width: 22ch; }
.section-sub { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.section-dark .section-sub { color: var(--muted-dark); }
.section-close { margin-top: 48px; max-width: 62ch; font-size: 1.2rem; }
.lead { font: 600 clamp(1.2rem, 1.9vw, 1.5rem)/1.4 var(--display); letter-spacing: -.01em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col p + p { margin-top: 16px; }
.two-col h2 { margin-top: 16px; }
.hook {
  display: inline-block; margin-top: 56px; font: 700 clamp(1.1rem, 2vw, 1.4rem) var(--display);
  padding: 10px 16px; background: var(--yellow); color: var(--ink); letter-spacing: -.01em;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 600 13px var(--display); padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 100px; }
.tags-lg li { font-size: 14px; padding: 8px 14px; background: var(--white); border-color: transparent; }
.section-white .tags-lg li { background: var(--paper); }
.checks li { position: relative; padding: 0 0 12px 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; background: var(--yellow);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 22%, 86% 8%, 40% 70%);
}
.checks-plain li::before { clip-path: none; height: 3px; top: .75em; width: 16px; }

/* ---------- Opener (home) ---------- */
.opener {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - 74px); display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 6vw, 72px);
  background: var(--paper); color: var(--ink);
  padding: clamp(72px, 10vw, 140px) max(var(--gutter), calc((100% - var(--max)) / 2));
}
.opener-title { font-size: clamp(2.1rem, 7.6vw, 7.2rem); font-weight: 900; line-height: .98; letter-spacing: -.045em; }
.opener-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.opener-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.is-loaded .opener-title .line > span { transform: none; }
.is-loaded .opener-title .line:nth-child(2) > span { transition-delay: .25s; }
.is-loaded .opener-title .line:nth-child(3) > span { transition-delay: .6s; }
.opener-title em { position: relative; z-index: 0; }
.opener-title em::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .1em; height: .3em; background: var(--yellow); z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) 1.2s;
}
.is-loaded .opener-title em::after { transform: scaleX(1); }
.opener-next {
  align-self: flex-start; display: inline-flex; gap: 10px; align-items: center;
  font: 700 15px var(--display); color: var(--muted); text-decoration: none;
  opacity: 0; transition: opacity .8s var(--ease) 1.3s, color .2s;
}
.is-loaded .opener-next { opacity: 1; }
.opener-next:hover { color: var(--ink); }
.opener-next span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.opener-grid {
  position: absolute; inset: 0; z-index: -2;
  --grid: rgba(51, 51, 51, .2);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center;
  mask-image: radial-gradient(ellipse 90% 85% at 68% 45%, #000 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 68% 45%, #000 25%, transparent 85%);
}
.opener-mark { position: absolute; z-index: -1; right: calc(var(--gutter) * -1); top: 50%; width: min(52vw, 620px); transform: translateY(-55%); fill: var(--ink); opacity: .1; }
.opener-mark polygon { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 1.4s var(--ease); }
.opener-mark .p2 { transform: translate(30%, -30%); }
.opener-mark .p3 { transform: translate(-30%, 30%); }
.is-loaded .opener-mark .p2, .is-loaded .opener-mark .p3 { transform: none; }

/* ---------- Hero (home) ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(64px, 8vw, 110px);
}
.hero-title { font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-title em { position: relative; z-index: 0; white-space: nowrap; }
.hero-title em::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .3em; background: var(--yellow); z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .5s;
}
.hero-title.is-visible em::after { transform: scaleX(1); }
.hero-lead { margin-top: 26px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 34px; }
.hero-for { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); max-width: 54ch; }
.hero-visual { margin: 0; }

/* Layer diagram */
.layer-diagram { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--display); }
.dg-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
.dg-lines path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .45; animation: flow 1.6s linear infinite; }
.dg-lines path.out { stroke: #c79c00; opacity: .9; stroke-width: 2; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.dg-in rect { fill: var(--white); stroke: var(--line); }
.dg-in text, .dg-out text { font-size: 16px; font-weight: 700; fill: var(--ink); }
.dg-out rect { fill: var(--yellow); }
.dg-core rect { fill: var(--ink); }
.dg-core use { fill: var(--white); }
.dg-core text { fill: var(--white); font-size: 15px; font-weight: 800; }
.dg-core .dg-sub { fill: var(--yellow); font-size: 12px; font-weight: 600; }
.dg-in g, .dg-out g, .dg-core { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); transform-box: fill-box; }
.is-visible .dg-in g, .is-visible .dg-out g, .is-visible .dg-core { opacity: 1; transform: none; }
.dg-in g:nth-child(2) { transition-delay: .06s; } .dg-in g:nth-child(3) { transition-delay: .12s; }
.dg-in g:nth-child(4) { transition-delay: .18s; } .dg-in g:nth-child(5) { transition-delay: .24s; }
.is-visible .dg-core { transition-delay: .35s; }
.dg-out g:nth-child(1) { transition-delay: .5s; } .dg-out g:nth-child(2) { transition-delay: .58s; } .dg-out g:nth-child(3) { transition-delay: .66s; }

/* Systems strip */
.systems {
  display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  padding: 26px var(--gutter); border-block: 1px solid var(--line); background: var(--white);
}
.systems-label { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.systems ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.systems li { font: 700 16px var(--display); color: var(--ink); opacity: .75; }

/* Problem quotes */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quotes li {
  font: 600 1.05rem/1.4 var(--display); padding: 22px 22px 26px; background: var(--white); border-radius: 6px; position: relative;
  letter-spacing: -.01em;
}
.quotes li::after { content: ""; position: absolute; left: 22px; bottom: -8px; border: 8px solid transparent; border-top-color: var(--white); border-bottom: 0; }
.quotes li:nth-child(3n+2) { background: var(--ink); color: var(--white); }
.quotes li:nth-child(3n+2)::after { border-top-color: var(--ink); }

/* A B C layer */
.abc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 16px; margin-bottom: 64px; }
.abc-col { border: 1px solid var(--line-dark); border-radius: 6px; padding: 26px; }
.abc-col span { font: 800 1.5rem var(--display); display: block; margin-bottom: 6px; }
.abc-col p { color: var(--muted-dark); font-size: 1.1rem; }
.abc-bar {
  grid-column: 1 / -1; background: var(--yellow); color: var(--ink); border-radius: 6px; padding: 22px 26px; margin-top: 24px;
  font: 600 clamp(1.15rem, 2vw, 1.5rem) var(--display); position: relative;
}
.abc-bar strong { font-weight: 800; }
.abc-bar::before {
  content: ""; position: absolute; left: 16.66%; right: 16.66%; top: -40px; height: 40px;
  border-inline: 2px dashed var(--yellow);
  background: linear-gradient(var(--yellow), var(--yellow)) center / 2px 100% no-repeat;
}
.section-dark .two-col p:not(.lead) { color: var(--muted-dark); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--white); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 14px;
  border-top: 6px solid var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0,0,0,.3); }
.pillar-word { font: 900 clamp(2.6rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.pillar-word::after { content: "."; color: var(--yellow); }
.pillar-hook { font: 700 1.05rem/1.35 var(--display); }
.pillar > p:not(.pillar-hook) { color: var(--muted); }
.pillar .tags { margin-top: auto; padding-top: 8px; }
.pillar .link { margin-top: 8px; align-self: flex-start; }

/* Compare */
.compare { border-top: 2px solid var(--ink); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.compare-row span { padding: 20px 24px 20px 0; font-size: 1.1rem; }
.compare-row span:first-child { color: var(--muted); }
.compare-row span:last-child { font: 700 1.15rem var(--display); padding-left: 24px; background: linear-gradient(90deg, var(--yellow-soft), transparent); }
.compare-head span { font: 700 12px var(--display) !important; text-transform: uppercase; letter-spacing: .14em; color: var(--muted) !important; text-decoration: none !important; background: none !important; }

/* Path */
.path { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.path li { font: 700 15px var(--display); padding: 10px 16px; background: var(--white); border-radius: 100px; display: flex; align-items: center; }
.path li:not(:last-child)::after { content: "→"; margin-left: 20px; margin-right: -6px; color: var(--muted); }
.path li:last-child { background: var(--yellow); }
.page-hero .path { margin: 40px 0 0; }
.section-white .path li:not(:last-child) { background: var(--paper); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps-grid li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.steps-grid li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { font: 700 13px var(--display); color: var(--muted); display: block; margin-bottom: 14px; }
.steps-grid h3 { font-size: 1.5rem; margin-bottom: 8px; }
.steps-grid p { color: var(--muted); }

/* Solutions */
.solutions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.solutions li { background: var(--white); padding: 26px; transition: background .3s; }
.solutions li:hover { background: var(--yellow-soft); }
.solutions h3 { margin-bottom: 8px; }
.solutions p { color: var(--muted); font-size: 15px; }
.solutions .solutions-cta { background: var(--ink); color: var(--white); }
.solutions .solutions-cta:hover { background: var(--ink-deep); }
.solutions-cta p { color: var(--muted-dark); }
.solutions-cta a { color: var(--yellow); font-weight: 600; text-decoration: none; }

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.reasons li { padding-top: 22px; border-top: 3px solid var(--yellow); }
.reasons h3 { font-size: 1.3rem; margin-bottom: 10px; }
.reasons p { color: var(--muted); }

/* Digital Scan */
.scan { background: var(--yellow); padding: clamp(80px, 10vw, 130px) var(--gutter); }
.scan-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.scan .kicker { color: var(--ink); opacity: .7; }
.scan h2 { margin: 16px 0 20px; }
.scan .lead { margin-bottom: 32px; font-weight: 500; }
.scan-list { background: var(--white); padding: 32px; border-radius: 8px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.4); }
.scan-list h3 { margin-bottom: 18px; }
.scan-note { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--ink-deep); color: var(--white); padding: clamp(90px, 12vw, 160px) var(--gutter); }
.cta-band > div { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.cta-band h2 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); max-width: 16ch; }
.cta-band p { margin-top: 20px; font-size: 1.2rem; color: var(--muted-dark); max-width: 50ch; }
.cta-mail { color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.cta-mark { position: absolute; right: -4%; bottom: -20%; width: min(50vw, 560px); fill: var(--white); opacity: .05; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-yellow { background: var(--yellow); color: var(--ink); }
.cta-yellow p { color: var(--ink); opacity: .8; }
.cta-yellow .cta-mark { fill: var(--ink); opacity: .07; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; }
.jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px !important; }
.jump a { display: flex; gap: 10px; align-items: baseline; padding: 14px 20px; background: var(--white); border-radius: 6px; text-decoration: none; color: var(--muted); transition: background .25s; }
.jump a b { font: 800 1.1rem var(--display); color: var(--ink); text-transform: uppercase; }
.jump a:hover { background: var(--yellow); color: var(--ink); }

/* ---------- Services page ---------- */
.service-block { padding: clamp(80px, 10vw, 140px) var(--gutter); border-bottom: 1px solid var(--line); }
.service-head { display: grid; grid-template-columns: auto 1fr; gap: 16px clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 56px !important; }
.service-head .pillar-word { font-size: clamp(3.4rem, 9vw, 7.5rem); line-height: .8; }
.service-hook { margin-top: 10px; font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--display); color: var(--muted); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px clamp(32px, 6vw, 96px); }
.service-grid + .service-grid, .see-split + .service-grid, .flow + .service-grid { margin-top: 56px; }
.service-grid h3, .see-split h3 { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.service-grid p { font-size: 1.08rem; }
.service-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px !important; padding-top: 32px; border-top: 1px solid var(--line); }
.service-foot .hook { margin-top: 0; }

.see-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 56px !important; }
.questions li { font: 700 clamp(1.1rem, 1.8vw, 1.35rem)/1.3 var(--display); padding: 12px 0; border-bottom: 1px solid var(--line); letter-spacing: -.01em; }
.questions li:last-child { border-bottom: 0; }
.questions li:last-child::after { content: ""; display: block; width: 3em; height: 4px; margin-top: 10px; background: var(--yellow); }

.dash { margin: 0; background: var(--ink-deep); color: var(--white); border-radius: 10px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); font-size: 14px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-family: var(--display); }
.dash-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); border: 1px solid var(--line-dark); padding: 3px 8px; border-radius: 100px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpis div { background: rgba(255,255,255,.06); border-radius: 6px; padding: 14px; }
.dash-kpis span { display: block; color: var(--muted-dark); font-size: 12px; line-height: 1.3; min-height: 2.6em; }
.dash-kpis strong { font: 800 1.9rem var(--display); }
.dash-kpis .warn strong { color: var(--yellow); }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin: 18px 0; padding: 12px; background: rgba(255,255,255,.04); border-radius: 6px; }
.dash-bars i { flex: 1; height: var(--h); background: rgba(255,255,255,.22); border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--ease); }
.is-visible .dash-bars i { transform: none; }
.dash-bars .now { background: var(--yellow); }
.dash-bars .ghost { background: none; outline: 1.5px dashed rgba(255,255,255,.3); outline-offset: -1.5px; }
.dash-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); flex: none; }
.dot.warn { background: var(--yellow); }
.dot.ok { background: #7fd1a2; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px !important; }
.flow li { background: var(--white); border-radius: 8px; padding: 24px; position: relative; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 22px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; background: var(--yellow); border-radius: 50%; font-weight: 700; font-size: 14px; }
.flow b { font: 800 1.3rem var(--display); display: block; margin-bottom: 8px; }
.flow p { color: var(--muted); font-size: 15px; }

.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.track li { padding: 26px 22px 0 0; position: relative; }
.track li + li { padding-left: 22px; border-left: 1px solid var(--line-dark); }
.track li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--yellow); border-radius: 50%; }
.track li + li::before { left: -5px; }
.track span { font: 700 13px var(--display); color: var(--yellow); }
.track h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.track p { color: var(--muted-dark); font-size: 15px; }

/* ---------- Process page ---------- */
.process-list { padding-top: clamp(40px, 6vw, 80px); }
.process-step { display: grid; grid-template-columns: 120px 1fr 1.4fr; gap: 24px clamp(24px, 4vw, 64px); padding: 44px 0; border-top: 1px solid var(--line); }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.ps-num { font: 900 4.2rem/0.9 var(--display); color: rgba(51,51,51,.13); transition: color .4s; }
.process-step:hover .ps-num { color: var(--yellow); }
.ps-title span { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ps-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 6px; }
.ps-body p { font-size: 1.08rem; }
.ps-get { margin-top: 18px; padding: 14px 18px; background: var(--white); border-left: 4px solid var(--yellow); }
.ps-get b { font-family: var(--display); }
.nots li { font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.35 var(--display); padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line-dark); position: relative; }
.nots li::before { content: "×"; position: absolute; left: 0; color: var(--yellow); font-size: 1.6em; line-height: .8; top: 16px; }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font: 700 clamp(1.05rem, 1.7vw, 1.25rem) var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 600; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 70ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- About page ---------- */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.story-img { position: sticky; top: 110px; }
.story-img::before { content: ""; position: absolute; top: 20px; left: 20px; right: -20px; aspect-ratio: 1; background: var(--yellow); }
.story-img img { position: relative; display: block; width: 100%; height: auto; }
.story-img figcaption { position: relative; margin-top: 32px; font-size: 13px; color: var(--muted); }
.story-text > div + div { margin-top: 56px; }
.story-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 18px; }
.story-text p { font-size: 1.12rem; }
.story-text p + p { margin-top: 14px; }
.then-now { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.then-now p { margin-top: 12px; font: 600 clamp(1.3rem, 2.6vw, 2rem)/1.25 var(--display); letter-spacing: -.02em; }
.then-now b { color: var(--yellow); font-weight: 800; }
.tn-arrow { font: 800 3rem var(--display); color: var(--yellow); }
.tn-line { margin-top: 56px !important; font: 800 clamp(2rem, 5vw, 3.6rem) var(--display); letter-spacing: -.03em; }
.principles { counter-reset: p; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.principles li { counter-increment: p; display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.principles li::before { content: "0" counter(p); font: 700 13px var(--display); color: var(--muted); }
.principles h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.principles p { color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-photo { aspect-ratio: 4 / 3; background: var(--paper); border-radius: 6px; display: grid; place-items: center; margin-bottom: 18px; }
.team-photo svg { width: 30%; fill: rgba(51,51,51,.15); }
.team h3 { font-size: 1.35rem; }
.team-role { font: 600 14px var(--display); color: var(--muted); margin: 4px 0 10px; }
.todo { background: var(--yellow-soft); outline: 1px dashed #d4a800; outline-offset: 2px; }

/* ---------- Cases page ---------- */
.notice { display: flex; gap: 18px; align-items: center; padding: 20px 24px; background: var(--white); border-radius: 8px; border-left: 5px solid var(--yellow); margin-bottom: 40px !important; }
.notice svg { width: 36px; flex: none; fill: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px !important; }
.chip {
  font: 600 14px var(--display); padding: 10px 16px; border-radius: 100px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip:has(input:checked) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.case-list { display: grid; gap: 20px; }
.case { background: var(--white); border-radius: 8px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px clamp(24px, 5vw, 72px); }
.case[hidden] { display: none; }
.case-type { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.case h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 14px 0 12px; }
.case-sector { display: inline-block; font: 600 13px var(--display); padding: 4px 10px; background: var(--yellow); border-radius: 100px; }
.case-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.case-grid dt { font: 700 13px var(--display); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.case-grid dt::before { content: ""; width: 14px; height: 3px; background: var(--yellow); }
.case-grid dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.case-empty { color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-form { background: var(--white); border-radius: 10px; padding: clamp(24px, 4vw, 44px); }
.topics { border: 0; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font: 700 1.15rem var(--display); margin-bottom: 14px; padding: 0; }
.topics legend span { font: 400 14px var(--body); color: var(--muted); margin-left: 8px; }
.topics .chip { display: inline-flex; align-items: center; position: relative; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics .chip:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.field { margin-bottom: 20px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font: 700 15px var(--display); margin-bottom: 8px; }
.opt { font: 400 13px var(--body); color: var(--muted); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--body); color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: 6px; padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.error { display: none; font-size: 14px; color: #b3261e; margin-top: 6px; font-weight: 500; }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field.has-error .error { display: block; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 8px; }
.form-foot .hint { margin: 0; }
.form-done { margin-top: 20px; padding: 14px 18px; background: var(--yellow-soft); border-radius: 6px; }
.contact-aside { display: grid; gap: 48px; position: sticky; top: 110px; }
.contact-aside h2 { font-size: 1.3rem; margin-bottom: 14px; }
.big-mail { font: 800 clamp(1.2rem, 2.2vw, 1.6rem) var(--display); text-decoration: none; border-bottom: 3px solid var(--yellow); overflow-wrap: anywhere; }
.next { counter-reset: n; display: grid; gap: 16px; }
.next li { counter-increment: n; position: relative; padding-left: 44px; color: var(--muted); }
.next li b { color: var(--ink); display: block; font-family: var(--display); }
.next li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font: 800 13px var(--display); color: var(--ink); }
.aside-idea { padding: 22px; background: var(--ink-deep); color: var(--white); border-radius: 8px; }
.aside-idea b { color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--muted-dark); padding: 0 var(--gutter); border-top: 1px solid var(--line-dark); }
.site-footer > div { max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 72px 0 56px; border-bottom: 1px solid var(--line-dark); }
.footer-claim { font: 800 clamp(1.6rem, 3.4vw, 2.6rem)/1.1 var(--display); color: var(--white); letter-spacing: -.025em; }
.footer-claim span { color: var(--yellow); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.footer-cols h2 { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--white); margin-bottom: 14px; }
.footer-cols a { display: block; text-decoration: none; padding: 4px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-bottom a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }

/* Content column: sections span full width, content is held to --max via padding */
.section, .page-hero, .service-block { padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .opener-mark { width: 80vw; opacity: .08; }
  .nav-inline { display: none; }
  .menu-toggle { display: grid; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .track { grid-template-columns: 1fr 1fr; gap: 32px 0; border-top: 0; }
  .track li, .track li + li { padding: 20px 20px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .track li::before, .track li + li::before { left: 0; }
  .process-step { grid-template-columns: 80px 1fr; }
  .ps-body { grid-column: 2; }
  .ps-num { font-size: 3rem; }
}
@media (max-width: 820px) {
  .two-col, .pillars, .reasons, .scan-inner, .service-grid, .see-split, .story, .contact-section, .case, .team { grid-template-columns: 1fr; }
  .abc { grid-template-columns: 1fr; }
  .abc-bar { margin-top: 0; }
  .abc-bar::before { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid li, .steps-grid li:not(:nth-child(3n+1)) { padding: 24px 20px 24px 0; border-left: 0; }
  .steps-grid li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
  .compare-row span { padding: 16px 12px 16px 0; font-size: 1rem; }
  .compare-row span:last-child { padding-left: 12px; font-size: 1rem; }
  .principles li { grid-template-columns: 40px 1fr; }
  .principles p { grid-column: 2; }
  .then-now { grid-template-columns: 1fr; gap: 12px; }
  .tn-arrow { transform: rotate(90deg); width: max-content; }
  .story-img, .contact-aside { position: static; }
  .story-img { max-width: 380px; margin-right: 20px; }
  .team { max-width: 420px; }
  .service-head { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .quotes, .solutions, .steps-grid, .flow, .track, .case-grid { grid-template-columns: 1fr; }
  .steps-grid li:nth-child(even) { padding-left: 0; border-left: 0; }
  .flow li::after { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  .logo-word { height: 32px; }
  .logo-mark { width: 36px; height: 36px; }
  .path li:not(:last-child)::after { margin-left: 12px; }
  .footer-cols { grid-template-columns: 1fr; }
  .dash-kpis strong { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .dg-in g, .dg-out g, .dg-core, .opener-next { opacity: 1 !important; transform: none !important; }
  .opener-title .line > span, .opener-mark polygon, .opener-title em::after { transform: none !important; }
  .dash-bars i { transform: none; }
  html { scroll-behavior: auto; }
}
