/* ===== from the board: project/rimaru.css ===== */
/* ==========================================================================
   Rimaru site v2: shared stylesheet (foundation + every component)
   Open Sans only. Big type, colour fields, real product imagery.
   Phone rules live in the single @media block at the bottom (max-width 767px).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --porcelain: #FAF9F7;      /* page */
  --midnight: #0A1128;       /* text, dark sections, primary buttons */
  --chocolate: #542916;      /* headline emphasis, links, colour field */
  --tint: #EFE3D9;           /* soft colour field */
  --honey: #F1C166;          /* big colour field (hero, one tile, one path card). Never text */

  --ink-2: #1B2547;          /* second dark colour field */
  --tint-2: #E6D5C7;         /* second soft colour field, hover surface */
  --muted: #565B6B;          /* secondary text on porcelain and tint */
  --line: #DDD5CB;           /* hairlines */
  --line-dark: rgba(250, 249, 247, 0.2);
  --on-dark-muted: #E0D2C7;
  --choc-deep: #3F1D0F;
  --midnight-hover: #1C2646;
  --midnight-press: #050A1A;
  --chocolate-hover: #6E3820;
  --chocolate-press: #3F1D0F;

  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --content-max: 1280px;
  --gutter: 40px;
  --col-gap: 24px;
  --section-y: 144px;
  --measure: 640px;

  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 14px;
  --r-pill: 999px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--porcelain); color: var(--midnight);
  font-family: var(--font); font-size: 18px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible, .is-focus { outline: 3px solid var(--chocolate); outline-offset: 3px; }
.flip :focus-visible, .flip .is-focus { outline-color: var(--honey); }
.bg-honey :focus-visible, .bg-honey .is-focus { outline-color: var(--midnight); }

/* ---------- 3. Layout + colour fields ---------- */
.container { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.rail { grid-column: 1 / span 4; }
.main { grid-column: 5 / -1; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.measure { max-width: var(--measure); }

.bg-porcelain { background: var(--porcelain); color: var(--midnight); }
.bg-honey { background: var(--honey); color: var(--midnight); }
.bg-tint { background: var(--tint); color: var(--midnight); }
.bg-tint2 { background: var(--tint-2); color: var(--midnight); }
.bg-ink { background: var(--midnight); color: var(--porcelain); }
.bg-ink2 { background: var(--ink-2); color: var(--porcelain); }
.bg-choc { background: var(--chocolate); color: var(--porcelain); }
.dark { background: var(--midnight); color: var(--porcelain); }

/* ---------- 4. Type ---------- */
.display { font-size: 104px; line-height: 0.98; font-weight: 800; letter-spacing: -0.045em; }
.display .line { display: block; }
.title { font-size: 88px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.h2 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.h3 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.mantra { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.statement { font-size: 48px; line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; }
.lead { font-size: 24px; line-height: 1.5; }
.body { font-size: 18px; line-height: 1.6; }
.small { font-size: 15px; line-height: 1.55; }
.caption { font-size: 13px; line-height: 1.5; }
.label { font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.em { color: var(--chocolate); }
.flip .em { color: var(--honey); }
.muted { color: var(--muted); }
.flip .muted { color: var(--on-dark-muted); }
.bg-honey .muted { color: var(--midnight); }
.ph { background: rgba(241, 193, 102, 0.55); color: var(--midnight); padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.dark .ph, .flip .ph { background: var(--honey); }

/* ---------- 5. Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: var(--r-pill); border: 2px solid transparent;
  font-family: var(--font); font-size: 17px; font-weight: 700; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn .arr, .link .arr { display: inline-block; transition: transform .15s ease; }
.btn:hover .arr, .btn.is-hover .arr, .link:hover .arr, .link.is-hover .arr { transform: translateX(4px); }
.btn:active, .btn.is-pressed { transform: scale(0.98); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--grow { flex: 1 1 auto; }

.btn--primary { background: var(--chocolate); color: var(--porcelain); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--chocolate-hover); }
.btn--primary:active, .btn--primary.is-pressed { background: var(--chocolate-press); }

.btn--secondary { background: transparent; color: var(--chocolate); border-color: var(--chocolate); }
.btn--secondary:hover, .btn--secondary.is-hover { background: var(--chocolate); color: var(--porcelain); }
.btn--secondary:active, .btn--secondary.is-pressed { background: var(--chocolate-press); color: var(--porcelain); border-color: var(--chocolate-press); }

.flip .btn--primary { background: var(--porcelain); color: var(--chocolate); }
.flip .btn--primary:hover, .flip .btn--primary.is-hover { background: var(--honey); color: var(--midnight); }
.flip .btn--primary:active, .flip .btn--primary.is-pressed { background: var(--tint-2); color: var(--chocolate); }
.flip .btn--secondary { background: transparent; color: var(--porcelain); border-color: rgba(250, 249, 247, 0.7); }
.flip .btn--secondary:hover, .flip .btn--secondary.is-hover { background: var(--porcelain); color: var(--chocolate); border-color: var(--porcelain); }
.flip .btn--secondary:active, .flip .btn--secondary.is-pressed { background: var(--tint-2); color: var(--chocolate); }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: inherit; font-weight: 700; font-size: 17px; line-height: 1.3;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  text-decoration-color: currentColor; cursor: pointer;
}
.link:hover, .link.is-hover { text-decoration-thickness: 3px; }
.link--em { color: var(--chocolate); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.icon-btn:hover, .icon-btn.is-hover { background: rgba(10, 17, 40, 0.1); }
.flip .icon-btn:hover { background: rgba(250, 249, 247, 0.14); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }

.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid currentColor; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.live { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 16px; text-decoration: none; padding: 0 18px; border-radius: var(--r-pill); background: var(--chocolate); color: var(--porcelain); position: relative; z-index: 2; }
.live:hover { background: var(--chocolate-hover); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); }

/* ---------- 6. Mockups ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 5 / 4; container-type: inline-size; }
.media--hero { aspect-ratio: 16 / 8; }
.media__num { position: absolute; top: 24px; left: 28px; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; z-index: 3; }
.browser { background: #FFFFFF; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 17, 40, 0.22); }
.browser__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F1EEEA; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5CEC5; display: block; }
.browser img { width: 100%; }
.phone { background: #0B0B10; border-radius: 40px; padding: 9px; box-shadow: 0 24px 60px rgba(10, 17, 40, 0.3); }
.phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 32px; }

.media--hero .m-vizi .m-pic, .media--hero .m-maki .m-pic { left: 6%; top: 14%; width: 94%; }
.m-vizi .m-pic, .m-maki .m-pic { position: absolute; left: 8%; top: 22%; width: 110%; max-width: none; border-radius: 14px; filter: drop-shadow(0 24px 40px rgba(10, 17, 40, 0.28)); }
.m-art { position: absolute; left: 0; right: 0; bottom: 0; top: 48px; width: 100%; height: calc(100% - 48px); object-fit: contain; }
.media--hero .m-art { top: 0; height: 100%; }
.m-pic-img { width: 100%; border-radius: 14px; filter: drop-shadow(0 18px 30px rgba(10, 17, 40, 0.2)); }

.maru-viz { display: flex; align-items: center; width: 90%; }
.maru-chats { display: flex; flex-direction: column; gap: 14px; flex: 0 0 25%; }
.maru-chats span { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: var(--r-pill); border: 1.5px solid currentColor; font-size: 14px; font-weight: 700; white-space: nowrap; }
.maru-wires { flex: 0 0 11%; height: 154px; position: relative; }
.maru-wires i { position: absolute; left: 0; right: 6px; height: 2px; background: currentColor; opacity: 0.55; }
.maru-wires i::after { content: ""; position: absolute; right: -6px; top: -4px; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.maru-wires i:nth-child(1) { top: 21px; }
.maru-wires i:nth-child(2) { top: 77px; }
.maru-wires i:nth-child(3) { top: 133px; }
.maru-win { flex: 1; background: var(--porcelain); color: var(--midnight); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.maru-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--tint); }
.maru-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CDBFB3; display: block; }
.maru-bar b { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chocolate); }
.maru-win ul { padding: 8px 0; }
.maru-win li { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 600; }
.maru-win li::before { content: ""; width: 12px; height: 15px; border: 1.5px solid var(--chocolate); border-radius: 2px; flex: none; }
.coni-net { width: 90%; height: auto; max-height: 100%; color: var(--porcelain); }
.coni-net text { fill: currentColor; font-family: var(--font); font-size: 16px; font-weight: 700; paint-order: stroke; stroke: #1B2547; stroke-width: 7px; stroke-linejoin: round; }
.m-flomaru .m-ipad { position: absolute; left: 4%; top: 20%; width: 90%; }
.m-flomaru .phone { position: absolute; right: 6%; bottom: -16%; width: 24%; }
.m-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 6% 36px; }

.motif-list { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: 62%; position: relative; }
.motif-list::before { content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 2px; background: currentColor; opacity: 0.35; }
.motif-list span { position: relative; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px 0 12px; border: 1.5px solid currentColor; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; background: transparent; }
.motif-list span::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: currentColor; flex: none; }
.motif-photos { display: flex; align-items: center; gap: 6%; width: 78%; }
.motif-photos .src { width: 28%; aspect-ratio: 3 / 4; border-radius: 18px; border: 2px solid currentColor; display: flex; align-items: flex-end; padding: 10px; font-size: clamp(10px, 2.3cqw, 18px); font-weight: 700; line-height: 1.2; }
.motif-photos .arrow { font-size: 36px; font-weight: 700; }
.motif-photos .outs { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.motif-photos .outs i { display: block; aspect-ratio: 1 / 1; border-radius: 14px; background: currentColor; opacity: 0.22; }
.motif-photos .outs i:nth-child(2), .motif-photos .outs i:nth-child(3) { opacity: 0.45; }
.motif-path { display: flex; align-items: center; width: 80%; position: relative; justify-content: space-between; }
.motif-path::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: currentColor; opacity: 0.4; }
.motif-path span { position: relative; width: 22%; aspect-ratio: 1 / 1; border-radius: 50%; border: 2px solid currentColor; background: inherit; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.2; padding: 6px; }
.motif-lang { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; width: 80%; }
.motif-lang span { font-size: clamp(14px, 6cqw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; padding: 0.15em 0.45em; border-radius: var(--r-pill); border: 2px solid currentColor; }
.motif-lang span:nth-child(2n) { background: var(--midnight); border-color: var(--midnight); color: var(--tint-2); }

/* ---------- 7. Nav ---------- */
.nav { background: transparent; }
.nav__bar { display: flex; align-items: center; gap: 32px; height: 88px; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 16px; font-weight: 600; color: inherit; text-decoration: none; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 3px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { font-weight: 800; }
.nav__tools { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.nav--scrolled { position: sticky; top: 0; background: var(--porcelain); border-bottom: 1px solid var(--line); }
.nav--scrolled .nav__bar { height: 68px; }
.nav__burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; }
.nav__burger svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.nav__menu { display: none; }

/* ---------- 8. Hero ---------- */
.hero-wrap { overflow: hidden; }
.hero { padding-top: 72px; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 56px; }
.hero__meta dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero__meta dd { margin-top: 4px; font-size: 17px; font-weight: 600; }
.hero__peek { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--col-gap); height: 440px; margin-top: 80px; overflow: hidden; align-items: start; }
.hero__peek .browser { box-shadow: 0 -8px 60px rgba(10, 17, 40, 0.18); }
.hero__peek img.ipad { width: 100%; }
.hero__peek img.pic { width: 100%; border-radius: 14px 14px 0 0; filter: drop-shadow(0 -8px 40px rgba(0, 0, 0, 0.3)); }

/* ---------- 9. Intro + paths ---------- */
.intro-statement { grid-column: 1 / span 10; }
.intro-copy-row { margin-top: 48px; }
.intro-copy { grid-column: 6 / span 6; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: 104px; }
.path { display: flex; flex-direction: column; justify-content: space-between; gap: 72px; min-height: 400px; padding: 40px; border-radius: var(--r-lg); text-decoration: none; transition: transform .2s ease; }
.path:hover, .path.is-hover { transform: translateY(-6px); }
.path__title { font-size: 44px; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; min-height: 2.04em; }
.path__line { margin-top: 14px; font-size: 18px; line-height: 1.45; }
.path__go { display: inline-flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 700; }
.path__go .circle { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; background: currentColor; transition: transform .15s ease; }
.path__go .circle b { color: var(--porcelain); font-weight: 700; }
.path--honey .path__go .circle b, .path--tint .path__go .circle b { color: var(--honey); }
.path--tint .path__go .circle b { color: var(--tint); }
.path:hover .path__go .circle { transform: translateX(6px); }
.path--midnight { background: var(--midnight); color: var(--porcelain); }
.path--chocolate { background: var(--chocolate); color: var(--porcelain); }
.path--honey { background: var(--honey); color: var(--midnight); }
.path--midnight .path__line, .path--chocolate .path__line { opacity: 0.85; }
.path--midnight .path__go .circle b { color: var(--midnight); }
.path--chocolate .path__go .circle b { color: var(--chocolate); }

/* ---------- 10. Section heads ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- 11. Work tiles ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px var(--col-gap); margin-top: 72px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 22px; }
.tile .media { transition: transform .25s ease; }
.tile:hover .media, .tile.is-hover .media { transform: scale(0.985); }
.tile__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tile__name { font-size: 36px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.tile__btn { display: block; text-align: left; font: inherit; color: inherit; }
.tile__btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.tile__btn:focus-visible { outline: none; }
.tile__btn:focus-visible::after { outline: 3px solid var(--chocolate); outline-offset: 6px; }
.tile__arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--chocolate); color: var(--chocolate); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.tile:hover .tile__arrow { background: var(--chocolate); color: var(--porcelain); }
.tile__line { font-size: 18px; line-height: 1.5; max-width: 560px; }
.tile__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.case-slot { grid-column: 1 / -1; }

/* ---------- 12. Case study ---------- */
.case-frame { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter); }
.case { background: var(--porcelain); }
.case__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.case__actions { flex: none; }
.case__name { font-size: 88px; line-height: 0.96; font-weight: 800; letter-spacing: -0.045em; }
.case__sub { margin-top: 18px; }
.case__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.case__layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-top: 72px; }
.case__side { grid-column: 1 / span 3; }
.case__body { grid-column: 5 / -1; }
.facts { border-top: 2px solid var(--midnight); }
.facts dt { padding-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--chocolate); }
.facts dd { margin-top: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.toc { margin-top: 40px; position: sticky; top: 96px; }
.toc a { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; border-top: 1px solid var(--line); }
.toc a span:first-child { color: var(--chocolate); font-weight: 800; width: 18px; }
.toc a:hover { color: var(--chocolate); }
.part { padding-bottom: 56px; }
.part + .part { padding-top: 48px; border-top: 1px solid var(--line); }
.part__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.part__n { font-size: 15px; font-weight: 800; color: var(--chocolate); letter-spacing: 0.04em; }
.part__body > * + * { margin-top: 16px; }
.part__note { margin-top: 16px; }
.decision { padding: 18px 0; border-top: 1px solid var(--line); }
.decision:first-child { border-top: 0; padding-top: 0; }
.decision__title { margin: 0 0 6px; font-size: 18px; line-height: 1.35; font-weight: 800; }
.more { margin-top: 20px; border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.more summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--chocolate); }
.more[open] summary::after { content: "\2212"; }
.more > div { padding: 0 18px 18px; font-size: 15px; line-height: 1.55; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.shot { position: relative; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4 / 3; padding: 7% 7% 0; display: flex; align-items: flex-end; }
.shot .browser { width: 100%; }
.shot--pic { aspect-ratio: 16 / 10; padding: 5%; align-items: center; }
.shots figure:has(.shot--wide) { grid-column: 1 / -1; }
.shot--wide.shot--pic { aspect-ratio: 16 / 8; padding: 4% 5% 0; align-items: flex-start; }
.shot--wide.shot--pic .m-pic-img { border-radius: 14px 14px 0 0; }
.shot--ipad { padding: 5% 5% 0; }
.shot .m-ipad { width: 100%; margin-bottom: -5%; }
.shot--phone { justify-content: center; }
.shot--phone .phone { width: 38%; margin-bottom: -18%; }
.shot--wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.shot--wide .m-ipad { width: 70%; margin: 0 auto -6%; }
.shot-cap { margin-top: 10px; font-size: 14px; color: var(--muted); }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); padding-top: 48px; border-top: 1px solid var(--line); }
.split--single { grid-template-columns: minmax(0, 1fr); }
.split__col { border-radius: var(--r-md); padding: 32px; background: var(--tint); }
.split__col--next { background: var(--chocolate); color: var(--porcelain); }
.split__col--next .part__n { color: var(--honey); }
.split__col--next .ph { background: var(--honey); }
.split__col .part__head { margin-bottom: 14px; }

/* ---------- 13. Services ---------- */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: 64px; border-top: 2px solid var(--midnight); }
.svc-list { margin-top: 72px; }
.svc:last-of-type { border-bottom: 2px solid var(--midnight); }
.svc__name { grid-column: 1 / span 5; padding-right: 32px; }
.svc__num { display: block; margin-bottom: 18px; font-size: 15px; font-weight: 800; color: var(--chocolate); letter-spacing: 0.06em; }
.svc__title { font-size: 48px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.svc__body { grid-column: 6 / -1; }
.svc__label { margin-top: 36px; color: var(--muted); }
.svc__list { margin-top: 12px; border-top: 1px solid var(--line); }
.svc__list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; font-weight: 500; }
.svc__proof { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); background: var(--tint); color: var(--midnight); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.pill:hover { background: var(--chocolate); color: var(--porcelain); }
.pill--static { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.pill--static:hover { background: transparent; color: var(--muted); }
.sec-close { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 88px; }

/* ---------- 14. Workflows ---------- */
.wf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wf-list { margin-top: 56px; }
.wf { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 200px; padding: 28px; border-radius: var(--r-md); background: var(--porcelain); }
.wf:nth-child(2) { background: var(--honey); }
.wf:nth-child(3) { background: var(--chocolate); color: var(--porcelain); }
.wf:nth-child(4) { background: var(--midnight); color: var(--porcelain); }
.wf__icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wf__title { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- 15. How I work ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 72px; }
.mantra-card { display: flex; flex-direction: column; justify-content: flex-start; gap: 56px; min-height: 640px; padding: 36px; border-radius: var(--r-lg); }
.mantra-card .num { font-size: 88px; line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; }
.mantra-card .mantra { font-size: 36px; }
.mantra-card .text { margin-top: 24px; font-size: 16px; line-height: 1.6; }
.mantra-card--choc { background: var(--chocolate); color: var(--porcelain); }
.mantra-card--honey { background: var(--honey); color: var(--midnight); }
.mantra-card--tint { background: var(--tint); color: var(--midnight); }

/* ---------- 16. About + experience ---------- */
.about-photo { grid-column: 1 / span 5; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--r-lg); background: var(--tint); }
.about-copy { grid-column: 7 / -1; }
.about-copy p strong { font-weight: 800; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 80px; }
.logo-cell { padding: 32px 28px; border-radius: var(--r-md); background: var(--porcelain); display: flex; flex-direction: column; gap: 28px; min-height: 220px; justify-content: flex-start; }
.logo-cell img { height: 36px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.logo-cell__name { font-size: 18px; font-weight: 800; line-height: 1.3; }
.logo-cell__role { font-size: 14px; line-height: 1.45; color: var(--muted); }
.xp-rows { margin-top: 80px; }
.xp { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); padding-block: 36px; border-top: 2px solid var(--midnight); align-items: start; }
.xp:last-child { border-bottom: 2px solid var(--midnight); }
.xp__years { font-size: 16px; font-weight: 700; color: var(--chocolate); font-variant-numeric: tabular-nums; padding-top: 6px; }
.xp__role { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.xp__org { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--muted); }
.xp__line { font-size: 17px; line-height: 1.55; padding-top: 6px; }

/* ---------- 17. Contact + footer ---------- */
.contact-q { font-size: 120px; line-height: 0.96; font-weight: 800; letter-spacing: -0.045em; }
.contact-main .contact-q + .lead { margin-top: 40px; }
.contact-main { grid-column: 1 / span 9; }
.contact-side { grid-column: 1 / span 5; margin-top: 56px; padding: 36px; border-radius: var(--r-lg); background: var(--choc-deep); }
.contact-side .lead { font-size: 26px; font-weight: 700; line-height: 1.3; }
.contact-actions { margin-top: 16px; }
.footer { border-top: 1px solid var(--line-dark); }
.footer__row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: 40px; }
.footer__brand img { height: 26px; width: auto; }
.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.footer__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 16px; font-weight: 600; color: var(--porcelain); text-decoration: none; }
.footer__link:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__legal { padding-bottom: 44px; font-size: 14px; color: var(--on-dark-muted); }
.footer__legal a { color: var(--on-dark-muted); }

/* ==========================================================================
   Phone: one breakpoint, 767px and below. Design width 390, 20px gutters.
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 20px; --section-y: 80px; --col-gap: 16px; }
  body { font-size: 17px; }
  .display { font-size: 54px; line-height: 1; letter-spacing: -0.04em; }
  .title { font-size: 44px; }
  .h2 { font-size: 36px; }
  .h3 { font-size: 24px; }
  .mantra { font-size: 30px; }
  .statement { font-size: 30px; line-height: 1.18; }
  .lead { font-size: 20px; }
  .body { font-size: 17px; }

  .grid12, .svc, .case__layout { display: flex; flex-direction: column; gap: 24px; }
  .rail, .main, .about-photo, .about-copy, .contact-main, .contact-side, .svc__name, .svc__body, .case__side, .case__body, .intro-statement, .intro-copy { grid-column: auto; }
  .btn-row .btn { flex: 1 1 100%; }

  .nav__bar { height: 72px; gap: 12px; }
  .nav--scrolled .nav__bar { height: 64px; }
  .nav__links, .nav__tools { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__menu { display: block; border-top: 1px solid var(--line); padding: 8px 0 28px; background: var(--porcelain); color: var(--midnight); }
  .nav__menu a.m-link { display: flex; align-items: center; min-height: 60px; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--midnight); text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav__menu .m-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }

  .hero { padding-top: 40px; }
  .hero__row { margin-top: 36px; gap: 28px; }
  .hero__meta { flex-direction: column; gap: 14px; }
  .hero__peek { grid-template-columns: 1fr; height: 240px; margin-top: 48px; }
  .hero__peek .ipad-col { display: none; }

  .intro-copy-row { margin-top: 24px; }
  .paths { grid-template-columns: 1fr; margin-top: 56px; }
  .path { min-height: 300px; padding: 28px; gap: 48px; }
  .path__title { font-size: 36px; }

  .work-grid, .wf-grid, .two-up, .split, .how-grid, .shots { grid-template-columns: 1fr; }
  .work-grid { gap: 56px; margin-top: 40px; }
  .tile__name { font-size: 30px; }
  .media__num { top: 18px; left: 20px; }
  .media { aspect-ratio: 1 / 1; border-radius: 24px; }
  .media--hero { aspect-ratio: 1 / 1.05; }
  .m-vizi .m-pic, .m-maki .m-pic { left: 6%; top: 30%; width: 150%; }
  .maru-chats span { height: 34px; font-size: 12px; }
  .maru-chats { gap: 10px; }
  .maru-wires { height: 114px; }
  .maru-wires i:nth-child(1) { top: 17px; }
  .maru-wires i:nth-child(2) { top: 57px; }
  .maru-wires i:nth-child(3) { top: 97px; }
  .maru-win li { font-size: 11px; padding: 5px 10px; }
  .m-flomaru .m-ipad { left: 2%; top: 24%; width: 120%; }
  .m-flomaru .phone { right: 4%; width: 32%; bottom: -18%; }
  .motif-lang span { font-size: 28px; padding: 4px 14px; }

  .case-frame { padding-block: 24px; }
  .case__name { font-size: 56px; }
  .case__layout { padding-top: 40px; gap: 32px; }
  .toc { position: static; }
  .shot--wide { aspect-ratio: 4 / 3; grid-column: auto; }
  .split { gap: 16px; padding-top: 32px; }
  .split__col { padding: 24px 20px; }

  .svc { padding-block: 40px; gap: 20px; }
  .svc-list { margin-top: 40px; }
  .svc__name { padding-right: 0; }
  .svc__title { font-size: 34px; }
  .svc__label { margin-top: 24px; }
  .sec-close { margin-top: 48px; }

  .wf-list { margin-top: 36px; }
  .wf { min-height: 150px; }

  .how-grid { margin-top: 40px; }
  .mantra-card { min-height: 0; padding: 28px 24px; gap: 40px; }
  .mantra-card .num { font-size: 64px; }
  .mantra-card .mantra { font-size: 30px; }

  .logos { grid-template-columns: 1fr 1fr; margin-top: 48px; gap: 12px; }
  .logo-cell { padding: 20px 16px; min-height: 170px; }
  .xp-rows { margin-top: 48px; }
  .xp { grid-template-columns: 1fr; row-gap: 6px; padding-block: 24px; }
  .xp__role { font-size: 26px; }

  .contact-q { font-size: 52px; }
  .contact-side { margin-top: 36px; padding: 24px; }
  .contact-side .lead { font-size: 22px; }
  .footer__row { gap: 12px; padding-block: 28px; }
  .footer__links { margin-left: -10px; width: calc(100% + 10px); gap: 0; }
  .footer__link { padding: 0 10px; }
  .toc { display: none; }
  .facts dd { padding-bottom: 12px; }
  .shot--pic { padding: 3%; }
  .case__head { flex-direction: column; align-items: flex-start; }
  .path__title { min-height: 0; }
  .contact-main .contact-q + .lead { margin-top: 24px; }
}

/* ===== from the board: project/rimaru-new.css ===== */
/* ==========================================================================
   Rimaru NEW foundations (proposal, batch 1). Loads AFTER rimaru.css, only in the new frames.
   Desktop only (1440). Nothing here changes a class the old frames use: new classes start with n-.
   Hex and rgba values live only in section 1. Everything below uses tokens.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #FFFFFF;
  --soft-honey: #F7E9CE;     /* pastel: honey */
  --soft-choc: #EFE3D9;      /* pastel: chocolate (the old tint, named by role) */
  --soft-ink: #E6E9F2;       /* pastel: midnight */
  --ground-2: #F3F1EE;       /* quiet neutral band and field */
  --honey-hover: #E9B34C;    /* solid button hover */
  --honey-press: #E0A53A;    /* solid button pressed */
  --disabled-bg: #ECE8E3;
  --disabled-ink: #6B645C;
  --veil-1: rgba(250, 249, 247, 0.16);  /* ghost hover on dark */
  --veil-2: rgba(250, 249, 247, 0.26);  /* ghost pressed on dark */
  /* end of the hint pulse */
  --ring: rgba(10, 17, 40, 0.08);
  --veil-light: rgba(250, 249, 247, 0.66);  /* hint veil over an interactive board */

  --nav-pad: 40px;           /* the nav spans the page with this side padding, not the content column */
  --n-col: 1200px;           /* content column at 1440: margins of 120 */
  --n-section-y: 120px;
  --n-block: 48px;
  --n-field-pad: 56px;
  --n-shot-r: 14px;
  --n-shot-shadow: 0 0 0 1px var(--ring), 0 24px 60px -24px rgba(10, 17, 40, 0.28);

  --t-title: 88px;
  --t-h2: 56px;
  --t-statement: 48px;
  --t-lead: 24px;
  --t-hero-d: 84px;
  --hero-d-h: 860px;         /* Option D hero height; the photo is 0.8 of it wide */
  --hero-d-text-w: 568px;    /* text area left of the photo, 64px clear of it */
}
.n-calm { --t-title: 64px; --t-h2: 44px; --t-statement: 40px; --t-lead: 22px; }

/* ---------- 2. Contained layout ---------- */
.n-wrap { width: 100%; max-width: calc(var(--n-col) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.n-sec { padding-block: var(--n-section-y); }
.n-band { background: var(--ground-2); }
.n-stack > * + * { margin-top: var(--n-block); }
.n-stack-s > * + * { margin-top: 24px; }
.n-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.n-split__text { grid-column: 1 / span 5; }
.n-split__vis { grid-column: 6 / -1; }
.n-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.n-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }

/* ---------- 3. Type ---------- */
.n-title { font-size: var(--t-title); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.n-h2 { font-size: var(--t-h2); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.n-statement { font-size: var(--t-statement); line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; }
.n-lead { font-size: var(--t-lead); line-height: 1.5; }
.n-label { font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- 4. Picture fields and the one picture frame (the bare frame) ---------- */
.n-field { position: relative; overflow: hidden; border-radius: var(--r-md); padding: var(--n-field-pad); background: var(--ground-2); }
.n-field--pad-s { padding: 32px; }
.n-field--honey { background: var(--honey); }
.n-field--soft-honey { background: var(--soft-honey); }
.n-field--soft-choc { background: var(--soft-choc); }
.n-field--soft-ink { background: var(--soft-ink); }
.n-field--ground { background: var(--ground-2); }
.n-field--porcelain { background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line); }

.n-shot { --shot-ratio: 16 / 10; background: var(--paper); border-radius: var(--n-shot-r); overflow: hidden; box-shadow: var(--n-shot-shadow); }
.n-shot img { width: 100%; aspect-ratio: var(--shot-ratio); object-fit: cover; object-position: top; }
.n-cap { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.n-cap b { color: var(--midnight); font-weight: 700; }

/* ---------- 5. Buttons and links: three kinds, text only, no icons ---------- */
.n-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .12s ease, color .12s ease, box-shadow .12s ease; }
.n-btn--l { height: 44px; padding: 0 18px; font-size: 16px; }
.n-btn--solid { background: var(--honey); color: var(--midnight); }
.n-btn--solid:hover, .n-btn--solid.is-hover { background: var(--honey-hover); }
.n-btn--solid:active, .n-btn--solid.is-pressed { background: var(--honey-press); }
.n-btn--white { background: var(--paper); color: var(--midnight); box-shadow: 0 0 0 1px var(--line); }
.n-btn--white:hover, .n-btn--white.is-hover { background: var(--porcelain); }
.n-btn--white:active, .n-btn--white.is-pressed { background: var(--ground-2); }
.n-btn--ghost { background: transparent; color: var(--midnight); }
.n-btn--ghost:hover, .n-btn--ghost.is-hover { background: var(--soft-choc); }
.n-btn--ghost:active, .n-btn--ghost.is-pressed { background: var(--tint-2); }
.n-dark .n-btn--ghost { color: var(--porcelain); }
.n-dark .n-btn--ghost:hover, .n-dark .n-btn--ghost.is-hover { background: var(--veil-1); }
.n-dark .n-btn--ghost:active, .n-dark .n-btn--ghost.is-pressed { background: var(--veil-2); }
.n-btn:focus-visible, .n-btn.is-focus, .n-link:focus-visible, .n-link.is-focus { outline: 2px solid var(--midnight); outline-offset: 2px; box-shadow: 0 0 0 5px var(--honey); }
.n-dark .n-btn:focus-visible, .n-dark .n-btn.is-focus, .n-dark .n-link:focus-visible, .n-dark .n-link.is-focus { outline-color: var(--porcelain); }
.n-btn[disabled], .n-btn.is-disabled { background: var(--disabled-bg); color: var(--disabled-ink); cursor: not-allowed; }
.n-btn--ghost[disabled], .n-btn--ghost.is-disabled { background: transparent; }
.n-link { display: inline-block; color: var(--chocolate); font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 2px; cursor: pointer; border-radius: 4px; }
.n-link:hover, .n-link.is-hover { text-decoration: underline; }
.n-dark .n-link { color: var(--honey); }
.n-row-btns { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- 6. Nav and the approved hero ---------- */
.n-nav { display: flex; align-items: center; gap: 32px; height: 88px; padding-inline: var(--nav-pad); }
.n-nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.n-nav .nav__link { color: inherit; }

/* The approved hero: photo, ground 2, no chocolate */
.n-page-hero .n-hero-d { background: var(--ground-2); color: var(--midnight); }
.n-page-hero .n-field { background: var(--soft-honey); }
.n-page-hero .hero__meta dt { color: var(--muted); }
.n-page-hero .n-hero-d { position: relative; height: var(--hero-d-h); overflow: hidden; display: flex; flex-direction: column; }
.n-page-hero .n-hero-d > .n-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.n-hero-d__left { width: 100%; max-width: var(--hero-d-text-w); flex: 1; display: flex; flex-direction: column; }
.n-hero-d__text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.n-hero-photo { position: absolute; top: 0; right: 0; width: calc(var(--hero-d-h) * 0.8); height: var(--hero-d-h); margin: 0; border-radius: 0; box-shadow: none; background: none; }
.n-hero-photo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.n-hero-d__title { font-size: var(--t-hero-d); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.n-hero-d__title .line { display: block; }
.n-hero-d__title .em { color: var(--chocolate); }
.n-hero-d__sub { margin-top: 28px; max-width: 560px; font-size: 22px; }
.n-hero-d__btns { margin-top: 36px; }

/* ---------- 8. Token chips (documentation: swatches and contrast pairs) ---------- */
.n-bg-porcelain { background: var(--porcelain); } .n-fg-porcelain { color: var(--porcelain); }
.n-bg-midnight { background: var(--midnight); } .n-fg-midnight { color: var(--midnight); }
.n-bg-chocolate { background: var(--chocolate); } .n-fg-chocolate { color: var(--chocolate); }
.n-bg-honey { background: var(--honey); } .n-fg-honey { color: var(--honey); }
.n-bg-honey-hover { background: var(--honey-hover); }
.n-bg-honey-press { background: var(--honey-press); }
.n-bg-ink2 { background: var(--ink-2); } .n-fg-ink2 { color: var(--ink-2); }
.n-bg-soft-honey-c { background: var(--soft-honey); } .n-fg-soft-honey { color: var(--soft-honey); }
.n-bg-soft-choc-c { background: var(--soft-choc); } .n-fg-soft-choc { color: var(--soft-choc); }
.n-bg-soft-ink-c { background: var(--soft-ink); } .n-fg-soft-ink { color: var(--soft-ink); }
.n-bg-ground-2 { background: var(--ground-2); } .n-fg-ground-2 { color: var(--ground-2); }
.n-bg-white { background: var(--paper); } .n-fg-white { color: var(--paper); }
.n-bg-muted { background: var(--muted); } .n-fg-muted { color: var(--muted); }
.n-bg-on-dark-muted { background: var(--on-dark-muted); } .n-fg-on-dark-muted { color: var(--on-dark-muted); }
.n-bg-soft-honey { background: var(--soft-honey); color: var(--midnight); }
.n-bg-soft-ink { background: var(--soft-ink); color: var(--midnight); }
.n-bg-ground { background: var(--ground-2); color: var(--midnight); }
.n-bg-dark { background: var(--midnight); color: var(--porcelain); }
.n-shot { position: relative; }
.n-over { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 12px; }

.n-hero-d > .n-nav { gap: 8px; width: calc(100% - var(--hero-d-h) * 0.8 - 24px); }
.n-hero-d .n-nav__links { margin-left: 0; gap: 0; }
.n-hero-d .nav__link { padding: 0 14px; font-size: 16px; white-space: nowrap; }
.n-hero-d .nav__link::after { left: 14px; right: 14px; }
.n-nav__cta { position: absolute; top: 26px; right: var(--nav-pad); z-index: 2; }

/* ---------- 9. Homepage sections ---------- */
.n-sec--end-tight { padding-bottom: 56px; }
.n-sec--start-tight { padding-top: 0; }
.n-story { max-width: none; }
.n-story > * + * { margin-top: 28px; }
.n-story-close { margin-top: 64px; max-width: none; }
.n-paths-sec .paths { margin-top: 0; }
.n-split--top { align-items: start; }
.n-accent { color: var(--chocolate); }
.n-works { display: flex; flex-direction: column; gap: 96px; margin-top: 72px; }
.n-work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.n-work__text { grid-column: 1 / span 6; }
.n-work__text > * + * { margin-top: 20px; }
.n-work__vis { grid-column: 8 / -1; }
.n-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.n-offers { margin-top: 56px; border-bottom: 2px solid var(--midnight); }
.n-offer { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); align-items: start; padding-block: 36px; border-top: 2px solid var(--midnight); }
.n-offer__n { padding-top: 8px; font-size: 15px; font-weight: 800; letter-spacing: 0.06em; color: var(--chocolate); }
.n-offer__t { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.n-offer__l { padding-top: 4px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.n-how .n-offers { border-bottom: 1px solid var(--line-dark); }
.n-how .n-offer { border-top: 1px solid var(--line-dark); }
.n-how .n-offer__n { color: var(--honey); }
.n-how .n-offer__l { color: var(--porcelain); }
.n-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; text-align: left; }
.n-zoom__inner { display: block; transition: transform .5s ease; }
.n-veil { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px; text-align: center; background: var(--veil-light); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); color: var(--midnight); cursor: zoom-in; opacity: 1; transition: opacity .4s ease; animation: n-veil-in .4s ease-out both; }
.n-veil.is-leaving { opacity: 0; pointer-events: none; }
.n-veil__title { font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.n-veil__line { max-width: 640px; font-size: var(--t-lead); line-height: 1.4; font-weight: 500; }
@keyframes n-veil-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .n-veil { animation: none; transition: none; } .n-zoom__inner { transition: none; } }
.n-footer { background: var(--midnight); color: var(--porcelain); padding-block: 72px 48px; }
.n-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.n-footer__brand img { height: 26px; width: auto; }
.n-footer__note { margin-top: 16px; max-width: 36ch; font-size: 15px; line-height: 1.55; color: var(--porcelain); }
.n-footer__head { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.n-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--porcelain); text-decoration: none; }
.n-footer__links a:hover { color: var(--honey); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.n-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-muted); }

/* ---------- 10. Brand logo as a section title; case page helpers ---------- */
.n-h2--logo { line-height: 1; }
.n-brand { display: block; height: 52px; width: auto; }
.n-brand--l { height: 72px; }
.n-offers--plain .n-offer { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.n-offers--plain .n-offer__t { font-size: 28px; }
.n-case-nav { height: 88px; background: var(--ground-2); }
.n-hl { color: var(--chocolate); }
.n-sub { margin-top: 56px; }
.n-sub + .n-sub { margin-top: 96px; }
.n-veil--s .n-veil__title { font-size: 72px; }
.n-case-nav .n-nav__links { margin-left: auto; gap: 0; }
.n-case-nav .nav__link { padding: 0 14px; font-size: 16px; white-space: nowrap; }
.n-case-nav .nav__link::after { left: 14px; right: 14px; }

/* ---------- 11. Product visual fields (homepage sections) ---------- */
.n-field--midnight { background: var(--midnight); color: var(--porcelain); }
.n-art img { display: block; width: 100%; max-width: 1088px; aspect-ratio: 2 / 1; object-fit: contain; margin-inline: auto; }
.n-motif { container-type: inline-size; display: flex; align-items: center; justify-content: center; min-height: 440px; }
.n-field--midnight .coni-net { width: 62%; max-height: 520px; height: auto; display: block; margin-inline: auto; }

/* Section text on the homepage and case pages: up to 960px (four fifths of the 1200 column), same on every section. */
.n-wide { max-width: none; }

/* ===== from the board: project/wwm.css ===== */
/* ==========================================================================
   Work with me page: page-specific classes (WWM frames only). Loads after rimaru-new.css.
   Tokens only: no hex or rgba values here. Desktop only (1440).
   ========================================================================== */

/* Header band: same nav arrangement as the approved hero (logo, links, Book a call top right), no photo */
.w-head { position: relative; background: var(--ground-2); color: var(--midnight); }
.w-head .n-nav { gap: 8px; }
.w-head .n-nav__links { margin-left: 0; gap: 0; }
.w-head .nav__link { padding: 0 14px; font-size: 16px; white-space: nowrap; }
.w-head .nav__link::after { left: 14px; right: 14px; }
.w-head__body { padding-block: 96px 120px; }
.w-head__sub { margin-top: 32px; max-width: 760px; }
.w-head__btns { margin-top: 40px; }

/* Service section A: number and title left, problem and the plain list right */
.w-svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: 2px solid var(--midnight); padding-top: 64px; }
.w-svc__name { grid-column: 1 / span 5; padding-right: 32px; }
.w-svc__num { display: block; margin-bottom: 18px; font-size: 15px; font-weight: 800; letter-spacing: 0.06em; color: var(--chocolate); }
.w-svc__body { grid-column: 6 / -1; }
.w-svc__body > .w-sub { margin-top: 40px; }
.w-list { margin-top: 12px; border-top: 1px solid var(--line); }
.w-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; font-weight: 500; }

/* Service section B: what you get (left), how it runs and the proof (right), then the picture */
.w-more { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: 40px; }
.w-more__get { grid-column: 1 / span 5; padding-right: 32px; }
.w-more__get .n-statement { margin-top: 0; }
.w-more__how { grid-column: 6 / -1; }
.w-steps { margin-top: 12px; border-top: 1px solid var(--line); }
.w-steps li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.w-steps b { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 800; }
.w-proof { margin-top: 40px; }
.w-proof p:not(.w-sub) { margin-top: 12px; font-size: 17px; line-height: 1.55; }
.w-proof .n-link { margin-top: 12px; }
.w-pic { margin-top: 48px; }

/* ---------- Projects (homepage part and Projects page) ---------- */
:root { --scrim: rgba(10, 17, 40, 0.62); }  /* dimmed page behind the opened project */
.w-proj__title { margin-top: 0; }
.w-note { font-size: 18px; line-height: 1.55; font-weight: 700; }
.w-brief { margin-top: 20px; }
.w-brief > * + * { margin-top: 16px; }
.w-brief p { font-size: 18px; line-height: 1.6; }
.w-svc__body > .w-note + .n-lead { margin-top: 16px; }
.w-credit { margin-top: 24px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.w-go { margin-top: 28px; }
.w-group { margin-bottom: 56px; }
.w-svc--follow { margin-top: 64px; }
.w-intro { margin-top: 32px; max-width: 760px; }
.w-intro + .w-intro { margin-top: 20px; }
/* homepage project section: the question large on one side, the text on the other */
.w-home { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.w-home__q { grid-column: 1 / span 6; }
.w-home__t { grid-column: 8 / -1; }
.w-home__t .n-offer__t { margin-top: 0; }
.w-home__t p.w-body { margin-top: 16px; font-size: 18px; line-height: 1.6; }
.w-home__t .w-credit { margin-top: 16px; }
.w-home .n-field { padding: 56px; }
/* opened project over the dimmed Projects page */
.w-modal-frame { position: relative; overflow: hidden; }
.w-scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim); }
.w-dialog { position: relative; z-index: 2; width: 1040px; margin: 56px auto; background: var(--paper); border-radius: var(--r-md); padding: 48px 56px 56px; }
.w-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.w-dialog__bar--end { margin-top: 56px; padding-top: 32px; padding-bottom: 0; border-bottom: 0; border-top: 1px solid var(--line); }
.w-dialog__head { padding-top: 40px; }
.w-dialog__sec { margin-top: 40px; }
.w-dialog__sec > .n-offer__t { font-size: 28px; }
.w-dialog__sec p, .w-dialog__sec li { margin-top: 12px; font-size: 18px; line-height: 1.6; }
.w-dialog__sec ul { margin-top: 4px; padding-left: 0; }
.w-dialog__sec li { padding-left: 20px; position: relative; }
.w-dialog__sec li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--midnight); }
.w-behind { position: absolute; top: 0; left: 0; right: 0; }
.w-sub { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--muted); }

/* ---------- AI systems page ---------- */
.w-rest__group + .w-rest__group { margin-top: 72px; }
.w-rest { margin-top: 24px; border-top: 1px solid var(--line); }
.w-rest li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.w-rest b { grid-column: 1 / span 4; font-size: 18px; line-height: 1.4; font-weight: 700; }
.w-rest span { grid-column: 5 / -1; font-size: 18px; line-height: 1.5; }

/* ===== from the board: project/pages3.css ===== */
/* ==========================================================================
   Maru, Loci and Coni pages: page-specific classes (frames starting Maru-, Loci-, Coni-).
   Loads after rimaru.css and rimaru-new.css. Tokens only: no hex or rgba values here. Desktop only (1440).
   ========================================================================== */

/* Header band: same nav arrangement as the Work with me header (logo, links, Book a call top right), no photo */
.p-head { position: relative; background: var(--ground-2); color: var(--midnight); }
.p-head .n-nav { gap: 8px; }
.p-head .n-nav__links { margin-left: 0; gap: 0; }
.p-head .nav__link { padding: 0 14px; font-size: 16px; white-space: nowrap; }
.p-head .nav__link::after { left: 14px; right: 14px; }
.p-head__body { padding-block: 72px 96px; }
.p-head__sub { margin-top: 24px; max-width: 960px; }

/* Section text uses .n-wide from the kit: 960px, the same in every section of the three pages */

/* Visual fields in the problem section: a little smaller than the homepage sections so the page stays short */
.p-vis .n-art img { max-width: 880px; }
.p-vis .n-motif { min-height: 240px; }
.p-vis .coni-net { width: 56%; max-height: 420px; }
.p-vis .n-field--midnight .coni-net { width: 56%; }
.p-vis .motif-lang { width: 100%; flex-wrap: nowrap; }
.p-vis .motif-lang span { font-size: 56px; white-space: nowrap; }

/* The board block: one named block, so the interactive Vizi board can replace it later */
.p-board { display: block; }

/* Close: back to Ventures and on to the next product */
.p-next { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: center; }

/* Section rhythm on these pages: 60px top and bottom, so two sections in a row sit 120px apart and each frame still has air around its text */
.p-sec { padding-block: 60px; }

/* ===== from the board: project/vizi-page.css ===== */
/* ==========================================================================
   Vizi case page: page-specific classes (Vizi-* frames only). Loads after rimaru-new.css.
   Tokens only: no hex or rgba values here. Desktop only (1440).
   ========================================================================== */

/* A board block: the veil sits on the whole picture; the picture itself does nothing yet (the real interactive board replaces the block). */
.v-board .n-veil { cursor: default; }

/* See it move: the clip's words on the left, its poster on the right, one row per clip */
.v-clips > * + * { margin-top: 96px; }
.v-clip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.v-clip__text { grid-column: 1 / span 4; }
.v-clip__pic { grid-column: 5 / -1; }

/* ===== from the board: project/flo2.css ===== */
/* ==========================================================================
   Flomaru case page and Home 04: one reusable block for full-page screenshots.
   Classes: flo-shot, flo-shot__win, flo-shot__open, flo-pair. Loads after rimaru.css and rimaru-new.css.
   Tokens only: no hex or rgba values here. Desktop only (1440).
   The picture sits in the bare frame (n-shot: radius 14, ring, soft shadow, white behind it) at the full width of
   the content column. A tall page shows its top in a window of fixed height (--flo-win, 688px by default, so the field stays within 800px) and the
   rest scrolls inside the frame. A short page fits the window and shows whole, with no scroll.
   ========================================================================== */
.n-shot.flo-shot { --flo-win: 688px; width: 100%; margin-inline: 0; }
.n-shot.flo-shot .flo-shot__win { max-height: var(--flo-win); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--muted) var(--paper); border-radius: var(--n-shot-r); }
.n-shot.flo-shot .flo-shot__open { display: block; cursor: zoom-in; }
.n-shot.flo-shot img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: fill; }
/* keyboard focus: two rings inside the frame (honey 5px, midnight 2px), so the clipped frame still shows them */
.n-shot.flo-shot .flo-shot__win:focus-visible,
.n-shot.flo-shot .flo-shot__open:focus-visible { outline: 0; box-shadow: inset 0 0 0 5px var(--honey), inset 0 0 0 7px var(--midnight); }
/* a true pair: equal columns, tops aligned, same window height */
.flo-pair { align-items: start; }

/* ===== from the board: project/about.css ===== */
/* ==========================================================================
   About page: page-specific classes (About frames only). Loads after rimaru-new.css.
   Tokens only: no hex or rgba values here. Desktop only (1440).
   ========================================================================== */

/* Header band: same nav arrangement as the approved hero (logo, links, Book a call top right), no photo */
.a-head { position: relative; background: var(--ground-2); color: var(--midnight); }
.a-head .n-nav { gap: 8px; }
.a-head .n-nav__links { margin-left: 0; gap: 0; }
.a-head .nav__link { padding: 0 14px; font-size: 16px; white-space: nowrap; }
.a-head .nav__link::after { left: 14px; right: 14px; }
.a-head__body { padding-block: 96px 120px; }
.a-head__title { max-width: 1080px; }
.a-head__sub { margin-top: 32px; max-width: 900px; }

/* His story: his own text left, his photo right */
.a-story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.a-story__text { grid-column: 1 / span 6; }
.a-story__text > * + * { margin-top: 28px; }
.a-story__pic { grid-column: 8 / -1; }
.a-story__pic .n-shot { --shot-ratio: 4 / 5; }
.a-story__close { margin-top: 64px; max-width: 1000px; }

/* Path: one short section per step; name left, text right */
.a-path { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: 2px solid var(--midnight); padding-top: 64px; }
.a-path__name { grid-column: 1 / span 5; padding-right: 32px; }
.a-path__body { grid-column: 6 / -1; }
.a-when { margin-top: 16px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--muted); }
.a-p { font-size: 20px; line-height: 1.6; }
.a-p + .a-p { margin-top: 20px; }
.a-links { margin-top: 28px; gap: 28px; }
.a-pic { margin-top: 48px; }
.a-intro { margin-top: 24px; max-width: 760px; }

/* Rows on how I work and outside work: title left, text right, no numbers */
.a-rows .n-offers { margin-top: 56px; }
.a-rows .n-offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.a-rows .n-offer__l { font-size: 20px; }

/* ===== from the board: styles a frame carries in its own <helmet>, scoped to that frame ===== */
/* Home-09-WorkWithMe */
[data-frame="Home-09-WorkWithMe"] .n-offer { grid-template-columns:minmax(0,1fr) minmax(0,1fr) }
/* Home-10-HowIWork */
[data-frame="Home-10-HowIWork"] .n-offer { grid-template-columns:minmax(0,1fr) minmax(0,1fr) }


/* ==========================================================================
   BEYOND THE BOARD. Added at build time, not designed. Nothing here changes the page at 1440
   with JavaScript on, except the opened "Read more" view, which is a real <dialog>.
   ========================================================================== */

/* The board hint ("Try it." veil). Approved difference from the frames (Ali, 15 Nov 2026): boards
   start plain; site.js shows the veil once per visit, on the first board that is about 70% in view.
   It eases in with the kit's own n-veil-in animation and out with the kit's .is-leaving fade.
   Without JavaScript it never appears. */
.n-veil { display: none; }
.n-veil.is-shown { display: flex; }

/* Motion clips (Vizi page): the board shows the poster picture; the built page plays the clip in its place,
   framed exactly like the picture (.n-shot img). */
.n-shot video { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: var(--shot-ratio); object-fit: cover; object-position: top; }

/* The opened view drawn in AIS-14 as a modal over the dimmed page: the dialog fills the window and
   scrolls; its box is the board's .w-dialog; the dim is the board's --scrim. */
.ais-modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--midnight); overflow: auto; overscroll-behavior: contain; }
.ais-modal::backdrop { background: var(--scrim); }

/* Full-page pictures (Flomaru page) opened large: approved difference from the frames, which open the file in
   a new tab. The same dialog as above, holding the picture at full column width; it scrolls, Close stays in view. */
.flo-lightbox__box { width: min(1200px, calc(100% - 80px)); margin: 40px auto; padding: 0 24px 24px; background: var(--paper); border-radius: var(--r-md); }
.flo-lightbox__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 24px 0 16px; background: var(--paper); }
.flo-lightbox__box img { display: block; width: 100%; height: auto; border-radius: var(--n-shot-r); box-shadow: var(--n-shot-shadow); }

/* Smaller screens. Desktop (1440) is the design. Nothing below applies at 1024px or wider.
   The page reflows to one column using the kit's own classes: no sideways scroll, readable type,
   buttons at least 44px tall. */
@media (max-width: 1119px) {
  .w-dialog { width: auto; max-width: 1040px; margin: 56px 40px; }
}

@media (max-width: 1023px) {
  /* Nav: logo and Book a call on the first row, the five links wrap below. */
  .n-nav { flex-wrap: wrap; height: auto; min-height: 88px; padding-block: 22px; row-gap: 4px; }
  .n-nav__cta { position: static; order: 1; margin-left: auto; }
  .n-nav .n-nav__links { order: 2; flex: 1 1 100%; flex-wrap: wrap; margin-left: -14px; }

  /* One column. */
  .w-svc, .w-more { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .w-svc__name, .w-svc__body, .w-more__get, .w-more__how { grid-column: 1 / -1; padding-right: 0; }
  .n-offer, [data-frame] .n-offer { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .w-rest li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .w-rest b, .w-rest span { grid-column: 1 / -1; }
  .v-clip { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .v-clip__text, .v-clip__pic { grid-column: 1 / -1; }
  .w-home, .a-story, .a-path { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .w-home__q, .w-home__t, .a-story__text, .a-story__pic, .a-path__name, .a-path__body { grid-column: 1 / -1; padding-right: 0; }
  .a-story__pic { max-width: 480px; }
  .w-home .n-field { padding: 40px; }
  .a-rows .n-offer, .a-rows [data-frame] .n-offer { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .n-shot { max-width: 100%; }
  .n-case-nav > span:last-child { margin-left: auto !important; order: 1; }

  /* The five greetings wrap instead of running off the field. */
  .p-vis .motif-lang { flex-wrap: wrap; }
  .p-vis .motif-lang span { font-size: 36px; }
}

@media (max-width: 767px) {
  /* The kit's phone scale (rimaru.css, 767px block) applied to the new type tokens. */
  :root { --t-title: 44px; --t-h2: 36px; --t-statement: 30px; --t-lead: 20px; --n-section-y: 80px; --n-field-pad: 16px; }
  .n-statement { line-height: 1.18; }
  .w-head__body { padding-block: 48px 80px; }
  .p-head__body { padding-block: 48px 64px; }
  .p-sec { padding-block: 40px; }
  .n-offer__t { font-size: 24px; }
  .n-btn { height: 44px; }
  .n-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .p-vis .motif-lang span { font-size: 24px; }
  .n-pair { grid-template-columns: minmax(0, 1fr); }
  .flo-lightbox__box { width: calc(100% - 32px); margin: 16px auto; padding: 0 12px 12px; }
  .n-veil { padding: 16px; gap: 6px; }
  .n-veil__title { font-size: 36px; }
  .n-veil__line { font-size: 15px; }
  .w-dialog { margin: 16px; padding: 24px 20px 32px; }
  .w-dialog__bar { flex-wrap: wrap; }
  .w-dialog__sec > .n-offer__t { font-size: 24px; }
}
