:root {
  --ink: #071a38;
  --ink-2: #10294f;
  --accent: #2657e8;
  --accent-dark: #1741bd;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --mist: #e9eef6;
  --line: #cbd5e3;
  --muted: #536176;
  --danger: #a22b1d;
  --success: #17613e;
  --header-h: 72px;
  --radius: 14px;
  --shadow: 0 22px 70px rgba(7, 26, 56, .14);
  --sans: "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; overflow-x: clip; scroll-behavior: auto; }
body {
  margin: 0;
  overflow-x: clip;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #6f8ff1; outline-offset: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { top: 12px; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.section { padding: clamp(82px, 9vw, 144px) 0; }
.section-tight { padding: clamp(58px, 7vw, 104px) 0; }
.section-title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(36px, 5.7vw, 78px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.08;
  text-wrap: balance;
}
.section-title.small { font-size: clamp(32px, 4.2vw, 58px); }
.section-lead { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.9; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.kicker { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 24px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { background: var(--ink); color: var(--surface); }
.button:active { transform: translateY(1px); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.button.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-dark); font-weight: 900; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link[href^="http"]::after { content: "↗"; }
.text-link:hover::after { transform: translateX(3px); }
.text-link[href^="http"]:hover::after { transform: translate(3px, -3px); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid rgba(7, 26, 56, .12);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
}
.header-inner { width: min(1260px, calc(100% - 48px)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; margin-right: auto; }
.brand img { width: 206px; height: 48px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); font-size: 13px; font-weight: 800; white-space: nowrap; }
.desktop-nav > a, .nav-dropdown-trigger { position: relative; }
.desktop-nav > a:not(.nav-cta)::after, .nav-dropdown-trigger::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.desktop-nav > a:hover::after, .desktop-nav > a[aria-current="page"]::after, .nav-dropdown:hover .nav-dropdown-trigger::after, .nav-dropdown:focus-within .nav-dropdown-trigger::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; border-radius: 7px; padding: 0 18px; background: var(--ink); color: var(--surface); display: inline-flex; align-items: center; }
.nav-cta:hover { background: var(--accent); }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; }
.nav-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav-dropdown:hover .nav-chevron, .nav-dropdown:focus-within .nav-chevron, .nav-dropdown.is-open .nav-chevron { transform: translateY(2px) rotate(225deg); }
.nav-popover { position: absolute; top: calc(100% + 13px); left: 50%; width: 360px; padding: 10px; border: 1px solid rgba(7,26,56,.14); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 48px rgba(7,26,56,.18); opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity .18s ease, transform .18s ease; }
.nav-dropdown:hover .nav-popover, .nav-dropdown:focus-within .nav-popover, .nav-dropdown.is-open .nav-popover { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.nav-popover::before { position: absolute; top: -14px; right: 0; left: 0; height: 16px; content: ""; }
.nav-popover a { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; padding: 10px; border-radius: 8px; }
.nav-popover a:hover, .nav-popover a:focus-visible { background: var(--mist); }
.nav-popover-index { grid-template-columns: 1fr auto !important; margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0 !important; color: var(--accent-dark); }
.nav-popover-index b { font-size: 15px; }
.nav-popover-index span { font-size: 17px; }
.nav-popover-number { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.nav-popover-copy { display: grid; line-height: 1.45; }
.nav-popover-copy strong { font-size: 13px; }
.nav-popover-copy small { color: var(--muted); font-size: 10px; font-weight: 500; white-space: normal; }
.language-control { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.language-control > span[aria-hidden="true"] { font-size: 16px; line-height: 1; }
.language-control select { max-width: 82px; border: 0; padding: 5px 17px 5px 2px; background: transparent; color: inherit; font-size: 12px; font-weight: 800; }
.language-control select:focus-visible { border-radius: 4px; }
.language-menu { position: relative; }
.language-menu summary { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; border-radius: 7px; padding: 0 9px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover { background: var(--mist); }
.language-menu summary::after { width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.language-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.language-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; display: grid; min-width: 150px; padding: 7px; border: 1px solid rgba(7,26,56,.14); border-radius: 10px; background: var(--surface); box-shadow: 0 16px 40px rgba(7,26,56,.16); }
.language-menu-panel a { display: flex; justify-content: space-between; border-radius: 7px; padding: 8px 10px; font-size: 12px; }
.language-menu-panel a:hover { background: var(--mist); }
.language-menu-panel a[aria-current="page"]::after { color: var(--accent); content: "✓"; }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0; }
.menu-button span, .menu-button::before, .menu-button::after { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); content: ""; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none !important; }

/* Home hero */
.home-hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--surface);
}
.home-hero::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #071a38 0%, #0b2146 58%, #10294f 100%); content: ""; }
.home-hero::after { position: absolute; top: clamp(28px, 5vw, 72px); bottom: clamp(28px, 5vw, 72px); left: clamp(18px, 3vw, 46px); z-index: 0; width: 3px; background: var(--accent); content: ""; }
.home-hero .shell { min-height: calc(100dvh - var(--header-h)); padding-block: clamp(46px, 6vh, 72px); }
.hero-layout { display: grid; grid-template-columns: minmax(0, .96fr) minmax(480px, 1.04fr); gap: clamp(48px, 6vw, 76px); align-items: center; }
.hero-copy { position: relative; z-index: 2; width: 100%; }
.hero-copy .eyebrow { color: #98b1ff; }
.hero-copy h1 { margin: 0; max-width: none; font-size: clamp(46px, 4.45vw, 64px); line-height: 1.05; letter-spacing: -.065em; font-weight: 900; white-space: nowrap; }
.en-home .hero-copy h1 { font-size: clamp(43px, 4.25vw, 62px); letter-spacing: -.06em; }
.hero-copy p:not(.eyebrow) { max-width: 480px; margin: 24px 0 0; color: #d8e1ef; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.8; }
.hero-media { position: relative; min-height: min(66vh, 660px); overflow: visible; }
.hero-media > img { width: 100%; height: min(66vh, 660px); border-radius: 18px; object-fit: cover; object-position: center; box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-hero .button { border-color: rgba(255,255,255,.72); color: var(--surface); }
.home-hero .button:hover { border-color: var(--surface); background: var(--surface); color: var(--ink); }
.home-hero .button.primary { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.home-hero .button.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.home-hero-photo::before { z-index: 0; background: linear-gradient(90deg, rgba(5,18,40,.96) 0%, rgba(5,18,40,.82) 35%, rgba(5,18,40,.35) 64%, rgba(5,18,40,.08) 100%); }
.home-hero-photo .hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.home-hero-photo .shell { display: flex; align-items: center; }
.home-hero-photo .hero-copy { width: min(680px, 62%); }
.home-hero-photo .hero-copy h1 { white-space: normal; }

/* Service showcase */
.business-services { background: var(--surface); }
.service-showcase { display: grid; gap: clamp(72px, 9vw, 126px); margin-top: clamp(54px, 7vw, 92px); }
.service-feature { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 92px); align-items: center; }
.service-feature.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
.service-feature.reverse > .service-feature-copy { order: 2; }
.service-feature figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); aspect-ratio: 3 / 2; }
.service-feature figure::after { position: absolute; inset: 0; border: 1px solid rgba(7,26,56,.1); border-radius: inherit; content: ""; pointer-events: none; }
.service-feature figure img { width: 100%; height: 100%; object-fit: cover; }
.service-feature-copy { max-width: 490px; }
.service-number { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.service-feature h3, .directory-item h3 { margin: 0; font-size: clamp(29px, 3.7vw, 50px); line-height: 1.22; letter-spacing: -.045em; }
.service-feature-copy > p:not(.service-number), .directory-item > div > p:not(.service-number) { margin: 22px 0 28px; color: var(--muted); }
.service-feature-wide { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); padding: clamp(30px, 4vw, 58px); background: var(--ink); color: var(--surface); }
.service-feature-wide .service-feature-copy > p:not(.service-number) { color: #b8c6d9; }
.service-feature-wide .button { border-color: rgba(255,255,255,.72); color: var(--surface); }
.service-feature-wide .button:hover { border-color: var(--surface); background: var(--surface); color: var(--ink); }
.service-index-link { margin: 56px 0 0; text-align: right; }

/* News */
.news-preview { border-top: 1px solid var(--line); background: var(--paper); }
.news-heading { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 8vw; align-items: end; }
.news-heading > p { max-width: 520px; margin: 0; color: var(--muted); }
.news-list { margin-top: 48px; border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center; min-height: 86px; border-bottom: 1px solid var(--line); padding: 17px 6px; }
.news-row time, .news-entry time { color: var(--muted); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.news-row span { font-weight: 800; line-height: 1.55; }
.news-row b { color: var(--accent); font-size: 18px; transition: transform .2s ease; }
.news-row:hover { color: var(--accent-dark); }
.news-row:hover b { transform: translateX(4px); }
.news-more { margin: 32px 0 0; text-align: right; }
.editorial-page-hero { min-height: 430px; align-items: flex-end; padding-bottom: 72px; background: var(--surface); }
.editorial-page-hero h1 { max-width: 12ch; font-size: clamp(48px, 6vw, 80px); }
.news-archive { background: var(--paper); }
.news-archive .news-list { width: min(920px, 100%); margin: 0 auto; }
.news-entry { display: grid; grid-template-columns: 140px 1fr; gap: 34px; padding: 36px 4px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.news-entry h2 { margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; letter-spacing: -.025em; }
.news-entry p { max-width: 720px; margin: 12px 0 0; color: var(--muted); }
.news-entry .text-link { margin-top: 14px; }

/* Fixed Mailgori entry */
.mailgori-float { position: fixed; right: 22px; bottom: 22px; z-index: 42; display: grid; grid-template-columns: 72px minmax(0, 1fr); width: min(360px, calc(100vw - 44px)); min-height: 112px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: var(--ink); color: var(--surface); box-shadow: 0 18px 50px rgba(5,18,40,.3); transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease; }
.mailgori-float:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(5,18,40,.4); }
.mailgori-float.is-suppressed { opacity: 0; pointer-events: none; transform: translateY(18px); }
.mailgori-float-icon { display: flex; align-items: center; justify-content: center; margin: 12px 0 12px 12px; border-radius: 9px; background: #faf6f2; }
.mailgori-float-icon img { width: 60px; height: 52px; object-fit: contain; }
.mailgori-float-copy { display: grid; align-content: center; gap: 1px; padding: 13px 14px; }
.mailgori-float-copy small { color: #aebdd1; font-size: 10px; font-weight: 800; }
.mailgori-float-copy strong { font-size: 20px; line-height: 1.35; }
.mailgori-float-copy b { color: #a9bcff; font-size: 11px; }

/* Choice navigation */
.choice-section { border-bottom: 1px solid var(--line); background: var(--surface); }
.choice-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr); gap: clamp(42px, 7vw, 96px); align-items: start; }
.choice-title { margin: 0; max-width: 8ch; font-size: clamp(35px, 4.7vw, 62px); line-height: 1.12; letter-spacing: -.045em; font-weight: 900; }
.choice-list { display: grid; border-top: 1px solid var(--line); }
.choice-link { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border-bottom: 1px solid var(--line); padding: 25px 4px; transition: color .2s ease, padding-left .2s ease; }
.choice-link:hover { padding-left: 12px; color: var(--accent-dark); }
.choice-link span { display: grid; gap: 5px; }
.choice-link strong { font-size: clamp(17px, 1.7vw, 22px); }
.choice-link small { max-width: 570px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.choice-link b { font-size: 12px; white-space: nowrap; }
.choice-link b::after { margin-left: 9px; content: "→"; }

/* Proof */
.proof-band { background: var(--paper); }
.proof-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 8vw; align-items: center; }
.proof-context { padding-left: clamp(0px, 6vw, 90px); }
.proof-context img { width: 112px; height: auto; object-fit: contain; }
.proof-context h2 { margin: 22px 0 0; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.25; letter-spacing: -.035em; }
.proof-context p { margin: 18px 0 0; color: var(--muted); }
.metric-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 26px 18px 28px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric small { display: block; min-height: 2.4em; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.3; }
.metric b { display: block; margin-top: 10px; color: var(--accent-dark); font-size: clamp(31px, 4vw, 52px); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.045em; }
.metric b span { font-size: .38em; letter-spacing: 0; }
.proof-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; }

/* Purpose */
.purpose { overflow: hidden; background: var(--mist); }
.purpose-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 8vw; align-items: end; }
.purpose-side { max-width: 270px; color: var(--muted); }
.purpose-statement { margin: 0; font-size: clamp(43px, 6.8vw, 94px); line-height: 1.06; letter-spacing: -.065em; font-weight: 900; }
.purpose-statement mark { background: transparent; color: var(--accent); }

/* Business */
.section-visual { position: relative; margin: 0; }
.section-visual img { width: 100%; object-fit: cover; }
.section-visual figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; }
.business-system { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-block: 1px solid var(--line); }
.business-system p { display: grid; align-content: start; gap: 9px; margin: 0; padding: 30px 30px 32px 0; }
.business-system p + p { border-left: 1px solid var(--line); padding-left: 30px; }
.business-system small { color: var(--accent-dark); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.business-system strong { font-size: clamp(19px, 2vw, 25px); line-height: 1.45; }
.business-system span { color: var(--muted); font-size: 13px; }
.business-list { margin-top: 52px; border-top: 1px solid var(--line); }
.business-item { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(300px, 1fr); gap: clamp(20px, 5vw, 70px); align-items: start; border-bottom: 1px solid var(--line); padding: 34px 0; }
.business-item h3 { margin: 0; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.35; letter-spacing: -.03em; }
.business-item p { margin: 0; color: var(--muted); }

/* Mailgori feature */
.mailgori-feature { padding: clamp(72px, 8vw, 118px) 0; background: var(--ink); color: #edf3fc; }
.mailgori-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); gap: clamp(40px, 6vw, 74px); align-items: center; }
.mailgori-mark { display: flex; align-items: center; gap: 12px; }
.mailgori-mark img, .service-mark img { width: 64px; height: 64px; padding: 6px; border-radius: 15px; background: #faf6f2; box-shadow: inset 0 0 0 1px rgba(7,26,56,.1); object-fit: contain; }
.mailgori-mark strong { font-size: 19px; letter-spacing: .06em; }
.mailgori-feature h2 { margin: 28px 0 0; max-width: 8ch; font-size: clamp(40px, 5.2vw, 70px); line-height: 1.1; letter-spacing: -.055em; }
.mailgori-feature p { max-width: 560px; color: #bac8dc; }
.mailgori-feature .text-link { color: #9bb2ff; }
.mailgori-process { position: relative; display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 10px; }
.mailgori-step { display: block; padding: 24px 24px 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.16); }
.mailgori-step:first-child { border-left: 0; padding-left: 0; }
.mailgori-step h3 { margin: 0; font-size: 18px; }
.mailgori-step p { margin: 5px 0 0; font-size: 13px; line-height: 1.7; }

/* Product UI previews */
.product-preview { overflow: hidden; border: 1px solid rgba(7,26,56,.14); border-radius: 12px; background: rgba(255,255,255,.98); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.preview-topbar { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #dbe3ee; padding: 0 16px; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.preview-topbar small { color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.preview-body { display: grid; grid-template-columns: minmax(136px, .82fr) minmax(180px, 1.18fr); min-height: 242px; }
.preview-stages { display: grid; align-content: center; gap: 4px; border-right: 1px solid #dbe3ee; padding: 14px 10px; background: #f4f7fb; }
.preview-stage { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 2px 9px; align-items: center; min-height: 45px; border-radius: 7px; padding: 8px 9px; color: #6c788a; opacity: .58; transition: background-color .45s ease, color .45s ease, opacity .45s ease, transform .45s ease; }
.preview-stage i { width: 7px; height: 7px; border: 1px solid #94a3b8; border-radius: 50%; }
.preview-stage span { font-size: 11px; font-weight: 900; line-height: 1.35; }
.preview-stage small { grid-column: 2; font-size: 8px; line-height: 1.45; }
.preview-stage.is-active { background: #e7edff; color: #173da9; opacity: 1; transform: translateX(3px); }
.preview-stage.is-active i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(38,87,232,.13); }
.preview-workarea { display: grid; align-content: center; gap: 12px; padding: 24px; background: #fff; }
.preview-workarea > span { display: block; width: 100%; height: 7px; border-radius: 2px; background: #d9e0e9; opacity: .45; transform: scaleX(.42); transform-origin: left; transition: opacity .5s ease, transform .5s ease; }
.preview-workarea > span:nth-of-type(2) { width: 84%; }
.preview-workarea > span:nth-of-type(3) { width: 92%; }
.preview-workarea > span:nth-of-type(4) { width: 68%; }
.preview-workarea > b { justify-self: end; margin-top: 8px; border-radius: 6px; padding: 9px 12px; background: #8795a8; color: #fff; font-size: 9px; transition: background-color .45s ease, transform .45s ease; }
.product-preview[data-current-stage="0"] .preview-workarea > span:nth-of-type(1),
.product-preview[data-current-stage="1"] .preview-workarea > span:nth-of-type(-n+3),
.product-preview[data-current-stage="2"] .preview-workarea > span,
.product-preview[data-current-stage="3"] .preview-workarea > span { opacity: 1; transform: scaleX(1); }
.product-preview[data-current-stage="2"] .preview-workarea > b { background: var(--accent); transform: translateY(-2px); }
.product-preview[data-current-stage="3"] .preview-workarea > b { background: var(--success); }
.preview-company { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; margin-bottom: 5px; }
.preview-company > i { width: 34px; height: 34px; border-radius: 6px; background: #dfe7f5; }
.preview-company > span { display: grid; gap: 6px; }
.preview-company b, .preview-company em { display: block; height: 6px; border-radius: 2px; background: #b4c1d3; }
.preview-company em { width: 62%; height: 5px; background: #d9e0e9; }
.preview-status { display: flex; min-height: 40px; align-items: center; gap: 9px; margin: 0; border-top: 1px solid #dbe3ee; padding: 0 16px; color: #30425c !important; font-size: 9px !important; font-weight: 800; }
.preview-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: preview-pulse 1.8s ease-in-out infinite; }
.hero-product-preview { position: absolute; right: auto; bottom: 24px; left: -42px; width: min(430px, 88%); }
.hero-product-preview .preview-body { min-height: 202px; }
.hero-product-preview .preview-stage small { display: none; }
.mailgori-product-preview { width: 100%; }

@keyframes preview-pulse {
  0%, 100% { opacity: .45; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Operating model */
.operating-visual { width: min(900px, 82%); margin: 54px 0 0 auto; }
.operating-visual img { aspect-ratio: 3 / 2; border-radius: var(--radius); object-position: center; }
.model-rail { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.model-step { padding: 24px 34px 0 0; border-top: 3px solid var(--accent); }
.model-step h3 { margin: 0; font-size: 20px; }
.model-step p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }

/* Company */
.company-section { border-top: 1px solid var(--line); background: var(--surface); }
.company-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: 7vw; align-items: stretch; }
.company-photo { min-height: 520px; overflow: hidden; border-radius: var(--radius); }
.company-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.company-copy { align-self: center; }
.company-copy h2 { margin: 0; font-size: clamp(38px, 4.7vw, 64px); line-height: 1.1; letter-spacing: -.05em; }
.company-statement { margin: 25px 0 30px; color: var(--accent-dark); font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; }
.company-data { margin: 0; }
.company-data div { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.company-data dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.company-data dd { margin: 0; font-size: 14px; }

/* Contact */
.contact-section { background: var(--mist); }
.contact-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 8vw; align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 42px); }
.contact-copy h2 { margin: 0; max-width: 8ch; font-size: clamp(40px, 5vw, 66px); line-height: 1.1; letter-spacing: -.055em; }
.contact-copy p { max-width: 390px; color: var(--muted); }
.contact-form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 50px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 900; }
.field label span { margin-left: 5px; color: var(--accent-dark); font-size: 11px; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; border: 1px solid #9eacbf; border-radius: 7px; padding: 11px 13px; background: #fbfcfe; }
.field textarea { min-height: 136px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #66758a; opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: 3px solid rgba(38, 87, 232, .19); }
.form-note { margin: 0; color: var(--muted); font-size: 12px; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-actions { display: flex; align-items: center; gap: 18px; }
.form-actions .button { border: 0; }
.form-actions .button:disabled { cursor: wait; opacity: .65; }
.form-status { min-height: 1.8em; margin: 0; color: var(--muted); font-size: 13px; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); font-weight: 900; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.compact-contact { min-height: calc(100dvh - var(--header-h)); padding: clamp(42px, 6vh, 70px) 0; display: flex; align-items: center; }
.compact-contact .contact-layout { grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr); gap: clamp(36px, 6vw, 78px); }
.compact-contact .contact-copy { top: calc(var(--header-h) + 24px); }
.compact-contact .contact-copy h2 { max-width: 10ch; font-size: clamp(34px, 4vw, 54px); }
.compact-contact .contact-form { gap: 12px; padding: clamp(20px, 2.5vw, 32px); }
.compact-contact .field { gap: 4px; }
.compact-contact .field input, .compact-contact .field select { min-height: 44px; padding-block: 8px; }
.compact-contact .field textarea { min-height: 82px; padding-block: 8px; }
.compact-form-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.compact-form-footer .form-actions { justify-content: flex-end; }
.compact-form-footer .form-note { max-width: 380px; }

/* Service index and details */
.service-index-hero, .detail-hero { display: flex; min-height: clamp(500px, 67dvh, 700px); align-items: center; background: var(--ink); color: var(--surface); }
.service-index-hero::before, .detail-hero::before { background: linear-gradient(90deg, rgba(5,18,40,.97) 0%, rgba(5,18,40,.87) 40%, rgba(5,18,40,.34) 72%, rgba(5,18,40,.12) 100%); }
.service-index-hero .page-lead, .detail-hero .page-lead { color: #c4d0e1; }
.service-index-hero h1, .detail-hero h1 { max-width: 12ch; font-size: clamp(48px, 5.8vw, 82px); }
.directory-list { display: grid; margin-top: 60px; border-top: 1px solid var(--line); }
.directory-item { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(34px, 6vw, 76px); align-items: center; padding: clamp(38px, 5vw, 68px) 0; border-bottom: 1px solid var(--line); }
.directory-item figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.directory-item figure img { width: 100%; height: 100%; object-fit: cover; }
.directory-item h3 { font-size: clamp(27px, 3.2vw, 43px); }
.service-cta { padding: clamp(68px, 8vw, 110px) 0; background: var(--ink); color: var(--surface); text-align: center; }
.service-cta h2 { max-width: 18ch; margin: 0 auto; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.2; letter-spacing: -.045em; }
.service-cta p { margin: 18px auto 28px; color: #b8c6d9; }
.detail-intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); gap: 8vw; align-items: start; }
.detail-intro-grid > div { max-width: 650px; color: var(--muted); font-size: 18px; }
.detail-intro-grid > div p:first-child { margin-top: 0; }
.capability-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border-top: 1px solid var(--line); }
.capability-list article { padding: 28px 28px 0 0; }
.capability-list article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.capability-list strong { font-size: clamp(19px, 2vw, 25px); }
.capability-list p { color: var(--muted); font-size: 14px; }
.detail-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border-top: 3px solid var(--accent); }
.detail-flow article { min-height: 190px; padding: 26px 28px 24px 0; border-bottom: 1px solid var(--line); }
.detail-flow article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.detail-flow h3 { margin: 0; font-size: 19px; }
.detail-flow p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Interior page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(76px, 9vw, 135px) 0 clamp(68px, 8vw, 118px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 12ch; margin: 0; font-size: clamp(48px, 7.8vw, 108px); line-height: 1.02; letter-spacing: -.07em; font-weight: 900; }
.page-hero .page-lead { max-width: 670px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); }
.service-index-hero .page-lead, .detail-hero .page-lead { color: #d9e2ee; }
.detail-hero .button { border-color: rgba(255,255,255,.72); color: var(--surface); }
.detail-hero .button:hover { border-color: var(--surface); background: var(--surface); color: var(--ink); }
.detail-hero .button.primary { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.mobile-break { display: none; }
.page-hero.service-hero { padding-bottom: 80px; background: var(--ink); color: var(--surface); }
.page-hero.service-hero .page-lead { color: #c4d0e1; }
.page-hero.service-hero h1 { max-width: none; }
.page-hero.about-hero { display: flex; min-height: clamp(520px, 70dvh, 720px); align-items: center; }
.page-hero.about-hero h1 { max-width: none; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.media-page-hero::before { position: absolute; inset: 0; z-index: 1; content: ""; pointer-events: none; }
.about-hero.media-page-hero::before { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 33%, rgba(255,255,255,.42) 59%, rgba(255,255,255,.04) 82%); }
.service-hero.media-page-hero { display: flex; min-height: clamp(540px, 70dvh, 700px); align-items: center; padding-block: 76px; }
.service-hero.media-page-hero::before { background: linear-gradient(90deg, rgba(5,18,40,.97) 0%, rgba(5,18,40,.88) 39%, rgba(5,18,40,.42) 70%, rgba(5,18,40,.14) 100%); }
.service-hero.media-page-hero .shell { width: min(1180px, calc(100% - 64px)); }
.service-hero.media-page-hero .page-lead { max-width: 590px; }
.service-hero .button { border-color: rgba(255,255,255,.72); color: var(--surface); }
.service-hero .button:hover { border-color: var(--surface); background: var(--surface); color: var(--ink); }
.service-hero .button.primary { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.service-hero .button.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.hero-caption { margin-top: 9px; color: var(--muted); font-size: 10px; text-align: right; }
.service-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.service-mark b { letter-spacing: .06em; }

/* About */
.belief-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 8vw; align-items: end; }
.belief-title { margin: 0; font-size: clamp(34px, 5.2vw, 72px); font-weight: 900; line-height: 1.14; letter-spacing: -.055em; }
.belief-grid p { margin: 0; color: var(--muted); }
.principles { display: grid; grid-template-columns: 1.4fr .8fr .8fr; margin-top: 60px; border-top: 1px solid var(--line); }
.principle { padding: 30px 30px 0 0; }
.principle + .principle { border-left: 1px solid var(--line); padding-left: 30px; }
.principle h3 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); }
.principle p { margin: 16px 0 0; color: var(--muted); }
.representative { background: var(--surface); }
.representative-layout { display: grid; grid-template-columns: .6fr 1.4fr; gap: 8vw; }
.representative-title { font-size: 13px; font-weight: 900; color: var(--accent); }
.representative-message { max-width: 780px; }
.representative-message h2 { margin: 0; font-size: clamp(34px, 4.4vw, 61px); line-height: 1.16; letter-spacing: -.045em; }
.representative-message p { color: var(--muted); }
.representative-name { margin-top: 30px; color: var(--ink) !important; font-weight: 900; }
.office-strip { display: grid; grid-template-columns: 1.45fr .75fr; gap: 14px; margin-top: 44px; }
.office-strip figure { margin: 0; }
.office-strip img { width: 100%; height: 100%; min-height: 260px; border-radius: var(--radius); object-fit: cover; }
.office-strip figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; }

/* Service details */
.service-flow { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 60px; border-top: 1px solid var(--line); }
.service-flow article { padding: 26px 22px 20px 0; border-right: 1px solid var(--line); }
.service-flow article:not(:first-child) { padding-left: 22px; }
.service-flow article:last-child { border-right: 0; }
.service-flow h3 { margin: 0; font-size: 18px; }
.service-flow p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.service-section-media { margin: 0; }
.service-section-media img { width: 100%; height: clamp(250px, 30vw, 420px); border-radius: var(--radius); object-fit: cover; }
.service-section-media.compact img { height: clamp(220px, 24vw, 330px); }
.service-section-media figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.service-section-media.flow-media { width: min(820px, 72%); margin: 44px 0 0 auto; }
.service-section-media.flow-media img { aspect-ratio: 16 / 7; object-position: center 42%; }
.service-section-media.compact { margin-top: 38px; }
.service-story { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 6vw, 76px); align-items: start; margin-top: 48px; }
.service-story.reverse { grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); }
.service-story.reverse > .service-section-media { order: 2; }
.why-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 8vw; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why-stat { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.why-stat b { display: block; color: var(--accent-dark); font-size: 43px; line-height: 1; letter-spacing: -.05em; }
.why-stat small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.6; }
.source-note { margin-top: 24px; color: var(--muted); font-size: 11px; }
.source-note a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.email-example { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px; margin-top: 48px; }
.signal-list { display: grid; align-content: start; gap: 12px; }
.signal { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--mist); }
.signal b { display: block; }
.signal small { color: var(--muted); }
.mail-sample { padding: clamp(24px, 4vw, 46px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.mail-sample .subject { padding-bottom: 18px; border-bottom: 1px solid var(--line); font-weight: 900; }
.mail-sample .body { color: #263a57; font-size: 14px; line-height: 2; }
.outcome-grid { display: grid; grid-template-columns: 1fr; margin-top: 0; border-top: 1px solid var(--line); }
.outcome { padding: 30px 30px 0 0; }
.outcome + .outcome { border-top: 1px solid var(--line); padding-left: 0; }
.outcome h3 { margin: 0; font-size: 23px; }
.outcome p { margin: 14px 0 0; color: var(--muted); }
.trust-list { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 0; }
.trust-item { padding: 22px 0; border-top: 1px solid var(--line); }
.trust-item h3 { margin: 0; font-size: 19px; }
.trust-item p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.usecase-grid { display: grid; grid-template-columns: 1fr; margin-top: 0; border-top: 1px solid var(--line); }
.usecase { padding: 28px 28px 0 0; }
.usecase + .usecase { border-top: 1px solid var(--line); padding-left: 0; }
.usecase h3 { margin: 0 0 18px; font-size: 24px; }
.usecase dl { margin: 0; }
.usecase dl div { margin-top: 18px; }
.usecase dt { color: var(--accent); font-size: 12px; font-weight: 900; }
.usecase dd { margin: 3px 0 0; color: var(--muted); }
.pricing-section { background: var(--paper); }
.pricing-configurator { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(280px, .9fr) minmax(260px, 1.3fr); gap: 28px; align-items: center; margin-top: 48px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pricing-configurator label { display: grid; gap: 7px; }
.pricing-configurator label span { color: var(--muted); font-size: 12px; font-weight: 800; }
.pricing-configurator select { min-height: 48px; border: 1px solid #9aabc1; border-radius: 8px; padding: 0 42px 0 14px; background: var(--surface); font-weight: 900; }
.pricing-estimate { border-inline: 1px solid var(--line); padding-inline: 28px; }
.pricing-estimate small { color: var(--muted); font-size: 11px; font-weight: 800; }
.pricing-estimate p { display: flex; align-items: baseline; gap: 5px; margin: 3px 0; }
.pricing-estimate b { color: var(--accent-dark); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.pricing-estimate span { font-size: 13px; font-weight: 800; }
.pricing-estimate em { color: var(--muted); font-size: 11px; font-style: normal; }
.pricing-configurator > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.pricing-card { position: relative; display: grid; align-content: start; min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; background: var(--surface); }
.pricing-card.featured { border: 2px solid var(--ink); padding: 33px; box-shadow: var(--shadow); }
.pricing-card-badge { margin: -34px -34px 26px; padding: 7px 20px; background: #dce6ff; color: var(--ink); text-align: center; font-size: 11px; font-weight: 900; }
.pricing-card-head > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.pricing-card-head h3 { margin: 5px 0 0; font-size: 31px; line-height: 1.2; }
.pricing-card-head p { margin: 8px 0 0; color: var(--accent-dark); font-weight: 900; }
.pricing-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin: 28px 0 22px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pricing-card-price b { font-size: clamp(38px, 4.3vw, 58px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.pricing-card-price > span { font-size: 14px; font-weight: 800; }
.pricing-card-price small { flex-basis: 100%; margin-top: 7px; color: var(--muted); font-size: 12px; }
.pricing-card .button { width: 100%; }
.pricing-card-details { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.pricing-card-details h4 { margin: 0 0 15px; font-size: 14px; }
.pricing-card-details ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pricing-card-details li { position: relative; padding-left: 24px; color: #334660; font-size: 13px; }
.pricing-card-details li::before { position: absolute; top: .45em; left: 1px; width: 10px; height: 6px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); content: ""; transform: rotate(-45deg); }
.pricing-card.is-selected { box-shadow: 0 0 0 3px rgba(38,87,232,.18); }
.pricing-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.pilot { margin-top: 42px; border-top: 1px solid var(--line); }
.pilot-caption { margin: 18px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.pilot-step { display: grid; grid-template-columns: 80px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pilot-step b { color: var(--accent); font-size: 12px; }
.pilot-step h3 { margin: 0; font-size: 17px; }
.pilot-step p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.faq-list { max-width: 860px; margin: 48px auto 0; }
.faq-list details { border-top: 1px solid var(--line); padding: 21px 4px; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; list-style: none; font-weight: 900; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q"; color: var(--accent); }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 25px; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 13px 0 0 32px; color: var(--muted); }

/* Cases */
.case-index { background: var(--paper); }
.case-feature { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: clamp(44px, 8vw, 108px); align-items: center; padding: 76px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.case-feature:first-of-type { padding-top: 0; }
.case-feature.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); }
.case-feature.reverse .case-visual { order: 2; }
.case-visual { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.case-visual img { width: 100%; height: 100%; object-fit: cover; }
.case-visual-logo { display: grid; place-items: center; background: var(--surface); }
.case-visual-logo img { width: 38%; height: auto; object-fit: contain; }
.case-meta { margin: 0 0 14px; color: var(--accent-dark); font-size: 12px; font-weight: 900; }
.case-feature h2 { margin: 0; font-size: clamp(31px, 4vw, 50px); line-height: 1.25; letter-spacing: -.04em; }
.case-feature > div > p:not(.case-meta):not(.case-note) { margin: 20px 0 0; color: var(--muted); }
.case-feature .button { margin-top: 28px; }
.case-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border-block: 1px solid var(--line); }
.case-metrics span { display: grid; gap: 4px; padding: 18px 12px; color: var(--muted); font-size: 11px; }
.case-metrics span + span { border-left: 1px solid var(--line); }
.case-metrics b { color: var(--accent-dark); font-size: 23px; }
.case-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }

/* Legal */
.legal-hero { padding: 82px 0 52px; border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-hero h1 { max-width: 15ch; margin: 0; font-size: clamp(38px, 5.3vw, 70px); line-height: 1.1; letter-spacing: -.05em; }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 790px); gap: 8vw; align-items: start; }
.legal-aside { position: sticky; top: calc(var(--header-h) + 34px); color: var(--muted); font-size: 12px; }
.legal-content { width: min(790px, calc(100% - 36px)); margin-inline: auto; font-size: 15px; }
.legal-content h1 { max-width: 15ch; margin: 0 0 24px; font-size: clamp(38px, 5.3vw, 70px); line-height: 1.1; letter-spacing: -.05em; }
.legal-content > p:first-child { margin-top: 0; color: var(--muted); font-size: 17px; }
.legal-content h2 { margin: 48px 0 12px; font-size: 23px; line-height: 1.45; }
.legal-content h3 { margin: 28px 0 8px; font-size: 17px; }
.legal-content p, .legal-content li { color: #334660; }
.legal-content ul, .legal-content ol { padding-left: 1.4em; }
.legal-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-content .note { padding: 20px 22px; border-left: 4px solid var(--accent); background: var(--mist); }
.legal-content table { width: 100%; margin-top: 30px; border-collapse: collapse; border-top: 1px solid var(--line); }
.legal-content th { width: 30%; padding: 17px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; vertical-align: top; font-size: 13px; }
.legal-content td { padding: 17px 16px; border-bottom: 1px solid var(--line); color: #334660; vertical-align: top; }
.legal-date { margin-top: 46px; font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; }

/* Footer */
.site-footer { padding: 72px 0 34px; background: var(--ink); color: #e4ebf5; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 9vw; align-items: start; }
.footer-brand { display: inline-flex; align-items: baseline; gap: 9px; color: var(--surface); line-height: 1; }
.footer-brand strong { font-size: clamp(27px, 3vw, 38px); font-weight: 900; letter-spacing: -.045em; }
.footer-brand span { color: #93abf5; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.footer-brand::after { width: 34px; height: 4px; margin-left: 4px; background: var(--accent); content: ""; }
.footer-statement { max-width: 450px; margin: 30px 0 0; color: #aebdd1; font-size: clamp(20px, 2.3vw, 29px); font-weight: 800; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 44px; }
.footer-nav div { display: grid; align-content: start; gap: 8px; }
.footer-nav p { margin: 0 0 5px; color: #8194ad; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.footer-nav a { width: fit-content; font-size: 13px; }
.footer-nav a:hover { color: #9bb2ff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; margin-top: 66px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: #8092aa; font-size: 11px; }

/* Enhancement motion: content is visible without JS */
@media (prefers-reduced-motion: no-preference) {
  .enhanced .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .enhanced .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .desktop-nav { gap: 15px; }
  .service-flow { grid-template-columns: repeat(3, 1fr); }
  .service-flow article:nth-child(3) { border-right: 0; }
  .service-flow article:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 1040px) {
  .home-hero:not(.home-hero-photo) .shell { position: relative; }
  .hero-layout { display: flex; align-items: flex-end; }
  .hero-media { position: absolute; inset: 24px 0; z-index: 0; min-height: 0; overflow: hidden; border-radius: 16px; }
  .hero-media::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,18,40,.98) 0%, rgba(5,18,40,.86) 48%, rgba(5,18,40,.18) 100%); content: ""; }
  .hero-media > img { height: 100%; border-radius: 0; box-shadow: none; object-position: center; }
  .hero-copy { width: min(680px, 92%); padding: 360px 20px 22px; }
  .hero-product-preview { top: 42px; right: 18px; bottom: auto; left: auto; z-index: 2; width: min(320px, calc(100% - 36px)); }
  .hero-product-preview .preview-body { min-height: 176px; }
  .home-hero-photo .hero-copy { width: min(620px, 68%); padding: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .shell { width: min(100% - 36px, 680px); }
  .header-inner { width: calc(100% - 28px); }
  .brand img { width: 176px; height: 42px; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .menu-button { position: relative; z-index: 2; flex: 0 0 46px; visibility: visible; border-color: #8090a5; }
  .mobile-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 26px 18px 40px;
    overflow-y: auto;
    background: var(--surface);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); padding: 0 8px; font-size: 17px; font-weight: 900; }
  .mobile-nav a::after { content: "→"; color: var(--accent); }
  .mobile-subnav { display: grid; border-bottom: 1px solid var(--line); padding: 6px 8px 14px 22px; }
  .mobile-subnav a { min-height: 42px; border-bottom: 0; padding: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
  .mobile-subnav a::after { font-size: 12px; }
  .mobile-language { min-height: 58px; border-bottom: 1px solid var(--line); padding: 0 8px; }
  .mobile-language select { max-width: none; font-size: 15px; }
  .mobile-nav .language-menu { min-height: 58px; border-bottom: 1px solid var(--line); padding: 8px; }
  .mobile-nav .language-menu summary { justify-content: space-between; min-height: 42px; padding: 0; font-size: 15px; }
  .mobile-nav .language-menu-panel { position: static; margin-top: 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 0 0 18px; box-shadow: none; }
  .mobile-nav .language-menu-panel a { min-height: 42px; border: 0; padding: 0; font-size: 13px; }
  .choice-grid, .proof-layout, .purpose-grid, .mailgori-grid, .company-layout, .contact-layout, .belief-grid, .representative-layout, .why-layout, .pricing-layout, .legal-layout { grid-template-columns: 1fr; }
  .choice-title { max-width: 13ch; }
  .proof-context { padding-left: 0; }
  .metric-row { margin-top: 38px; }
  .purpose-side { max-width: 560px; }
  .business-item { grid-template-columns: minmax(180px, .7fr) 1fr; }
  .mailgori-grid { gap: 46px; }
  .mailgori-process { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .mailgori-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .model-rail { grid-template-columns: 1fr 1fr; gap: 38px 0; }
  .company-photo { min-height: 380px; }
  .contact-copy { position: static; }
  .contact-copy h2 { max-width: 11ch; }
  .principles { grid-template-columns: 1fr 1fr; }
  .office-strip { grid-template-columns: 1fr 1fr; }
  .service-flow { grid-template-columns: 1fr 1fr; }
  .service-flow article, .service-flow article:not(:first-child) { border-right: 1px solid var(--line); border-top: 1px solid var(--line); padding: 22px 18px; }
  .service-flow article:nth-child(even) { border-right: 0; }
  .service-story, .service-story.reverse { grid-template-columns: 1fr; gap: 34px; }
  .service-story.reverse > .service-section-media { order: 0; }
  .service-story .service-section-media { width: min(100%, 560px); }
  .outcome-grid { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
  .footer-top { grid-template-columns: 1fr; }
  .service-feature, .service-feature.reverse, .service-feature-wide, .directory-item, .detail-intro-grid { grid-template-columns: 1fr; }
  .service-feature.reverse > .service-feature-copy { order: 0; }
  .service-feature-copy { max-width: 620px; }
  .service-feature-wide { padding: 34px; }
  .directory-item { gap: 28px; }
  .capability-list { grid-template-columns: 1fr; }
  .capability-list article, .capability-list article + article { border-left: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .detail-flow { grid-template-columns: 1fr 1fr; }
  .detail-flow article { min-height: 160px; }
  .detail-flow article:nth-child(3) { border-left: 0; }
  .compact-contact { min-height: 0; }
  .compact-contact .contact-layout { grid-template-columns: 1fr; }
  .compact-form-footer { grid-template-columns: 1fr; }
  .compact-form-footer .form-actions { justify-content: flex-start; }
  .news-heading { grid-template-columns: 1fr; gap: 20px; }
  .pricing-configurator { grid-template-columns: 1fr 1fr; }
  .pricing-configurator > p { grid-column: 1 / -1; }
  .pricing-estimate { border-right: 0; padding-right: 0; }
  .case-feature, .case-feature.reverse { grid-template-columns: 1fr; gap: 30px; }
  .case-feature.reverse .case-visual { order: 0; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .section { padding: 76px 0; }
  .section-tight { padding: 60px 0; }
  .eyebrow { margin-bottom: 14px; }
  .home-hero:not(.home-hero-photo) .shell { align-items: flex-end; padding-block: 20px; }
  .home-hero::after { top: 24px; bottom: auto; left: 18px; width: 48px; height: 3px; }
  .hero-media { inset: 14px 0; }
  .hero-media::after { background: linear-gradient(0deg, rgba(5,18,40,.99) 0%, rgba(5,18,40,.9) 49%, rgba(5,18,40,.25) 100%); }
  .hero-media > img { object-position: 53% center; }
  .hero-copy { width: 100%; padding: 290px 16px 18px; }
  .home-hero-photo { min-height: min(760px, calc(100dvh - var(--header-h))); }
  .home-hero-photo::before { background: linear-gradient(0deg, rgba(5,18,40,.97) 0%, rgba(5,18,40,.81) 48%, rgba(5,18,40,.18) 100%); }
  .home-hero-photo .hero-bg { object-position: 57% center; }
  .home-hero-photo .shell { align-items: flex-end; min-height: inherit; padding-block: 54px; }
  .home-hero-photo .hero-copy { width: 100%; padding: 0; }
  .home-hero-photo .hero-copy { padding-bottom: 94px; }
  .hero-copy h1 { font-size: clamp(38px, 10.8vw, 48px); }
  .en-home .hero-copy h1 { font-size: clamp(34px, 9.8vw, 38px); }
  .page-hero.about-hero h1 { font-size: 43px; }
  .hero-copy p:not(.eyebrow) { max-width: 310px; margin-top: 18px; font-size: 14px; line-height: 1.65; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .button { min-height: 48px; padding: 0 18px; }
  .choice-grid { gap: 34px; }
  .choice-link { grid-template-columns: 1fr; gap: 10px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .purpose-statement { font-size: clamp(39px, 12vw, 58px); }
  .business-list { margin-top: 38px; }
  .business-system { grid-template-columns: 1fr; margin-top: 38px; }
  .business-system p, .business-system p + p { border-left: 0; padding: 24px 0; }
  .business-system p + p { border-top: 1px solid var(--line); }
  .operating-visual { width: 100%; margin-top: 38px; }
  .operating-visual img { aspect-ratio: 4 / 3; }
  .business-item { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .mailgori-feature h2 { font-size: 42px; }
  .mailgori-process { grid-template-columns: 1fr; gap: 0; }
  .mailgori-step, .mailgori-step:first-child, .mailgori-step:nth-child(3) { border-left: 0; padding: 20px 0; }
  .mailgori-step + .mailgori-step { border-top-color: rgba(255,255,255,.12); }
  .model-rail { grid-template-columns: 1fr; }
  .model-step { padding-right: 0; }
  .company-photo { min-height: 280px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .page-hero { padding: 66px 0 62px; }
  .page-hero h1 { font-size: clamp(45px, 14vw, 65px); }
  .page-hero.about-hero, .service-hero.media-page-hero { min-height: 590px; align-items: flex-end; padding-bottom: 68px; }
  .about-hero.media-page-hero::before { background: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 53%, rgba(255,255,255,.25) 100%); }
  .about-hero .page-hero-bg { object-position: 68% center; }
  .service-hero.media-page-hero::before { background: linear-gradient(0deg, rgba(5,18,40,.98) 0%, rgba(5,18,40,.88) 58%, rgba(5,18,40,.24) 100%); }
  .service-hero .page-hero-bg { object-position: 68% center; }
  .service-hero.media-page-hero .shell { width: calc(100% - 36px); }
  .belief-title { font-size: 39px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .representative-layout { gap: 30px; }
  .office-strip { grid-template-columns: 1fr; }
  .service-flow { grid-template-columns: 1fr; }
  .service-flow article, .service-flow article:not(:first-child), .service-flow article:nth-child(even) { border-right: 0; padding-inline: 0; }
  .why-stats, .email-example, .outcome-grid, .trust-list, .usecase-grid, .prices, .pricing-cards { grid-template-columns: 1fr; }
  .service-section-media.flow-media { width: 100%; margin-top: 34px; }
  .service-section-media img, .service-section-media.compact img, .service-section-media.flow-media img { height: 230px; }
  .preview-body { grid-template-columns: 112px minmax(0, 1fr); min-height: 214px; }
  .preview-stage { min-height: 40px; padding: 7px; }
  .preview-stage small { display: none; }
  .preview-workarea { gap: 10px; padding: 15px; }
  .hero-product-preview { top: 28px; right: 12px; width: min(294px, calc(100% - 24px)); }
  .hero-product-preview .preview-body { min-height: 158px; }
  .hero-product-preview .preview-workarea { padding: 13px; }
  .outcome, .outcome + .outcome, .usecase, .usecase + .usecase { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .pilot-step { grid-template-columns: 64px 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .legal-content table, .legal-content tbody, .legal-content tr, .legal-content th, .legal-content td { display: block; width: 100%; }
  .legal-content th { padding-bottom: 4px; border-bottom: 0; }
  .legal-content td { padding-top: 0; }
  .footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 44px; }
  .service-showcase { gap: 66px; }
  .service-feature-wide { padding: 24px 20px 28px; }
  .service-feature h3, .directory-item h3 { font-size: 30px; }
  .directory-list { margin-top: 38px; }
  .directory-item { padding: 38px 0; }
  .service-index-hero, .detail-hero { min-height: 580px; align-items: flex-end; padding-bottom: 64px; }
  .service-index-hero h1, .detail-hero h1 { font-size: clamp(38px, 11vw, 43px); letter-spacing: -.055em; }
  .mobile-break { display: inline; }
  .service-index-hero::before, .detail-hero::before { background: linear-gradient(0deg, rgba(5,18,40,.97) 0%, rgba(5,18,40,.84) 56%, rgba(5,18,40,.2) 100%); }
  .service-index-hero .page-hero-bg, .detail-hero .page-hero-bg { object-position: center; }
  .detail-flow { grid-template-columns: 1fr; }
  .detail-flow article, .detail-flow article + article { min-height: 0; border-left: 0; padding: 23px 0; }
  .compact-contact .contact-copy h2 { max-width: 13ch; }
  .compact-form-footer .form-actions { align-items: stretch; }
  .mailgori-float { right: 12px; bottom: 12px; grid-template-columns: 58px minmax(0, 1fr); width: min(330px, calc(100vw - 24px)); min-height: 92px; }
  .mailgori-float-icon { margin: 10px 0 10px 10px; }
  .mailgori-float-icon img { width: 48px; height: 42px; }
  .mailgori-float-copy { padding: 10px 12px; }
  .mailgori-float-copy strong { font-size: 18px; }
  .news-row { grid-template-columns: 1fr auto; gap: 5px 14px; min-height: 100px; padding: 18px 2px; }
  .news-row time { grid-column: 1 / -1; }
  .news-row span { font-size: 14px; }
  .news-more { text-align: left; }
  .editorial-page-hero { min-height: 360px; padding-bottom: 54px; }
  .editorial-page-hero h1 { font-size: 46px; }
  .news-entry { grid-template-columns: 1fr; gap: 10px; padding: 28px 2px; }
  .news-entry h2 { font-size: 21px; }
  .pricing-configurator { grid-template-columns: 1fr; padding: 20px; }
  .pricing-configurator > p { grid-column: auto; }
  .pricing-estimate { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
  .pricing-card, .pricing-card.featured { min-height: 0; padding: 26px 22px; }
  .pricing-card-badge { margin: -27px -23px 22px; }
  .pricing-card-price b { font-size: 44px; }
  .case-feature { padding: 52px 0; }
  .case-feature h2 { font-size: 31px; }
  .case-metrics { grid-template-columns: 1fr 1fr; }
  .case-metrics span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .case-metrics span:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 350px) {
  .shell { width: calc(100% - 28px); }
  .brand img { width: 150px; }
  .hero-copy { padding-inline: 12px; }
  .home-hero-photo .hero-copy { padding-inline: 0; }
  .hero-copy h1 { font-size: 37px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .metric { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .legal-aside { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .legal-layout { display: block; }
  .section, .legal-hero { padding: 20px 0; }
}
