/* yishai.xyz alternative site: Israeli modernist poster world.
   One token set. Every colour and text size on the site comes from here. */
:root {
  --paper: #ffffff;
  --ink: #141414;
  --ink-2: #44423e;
  --g-50: #f4f4f2;
  --g-200: #dcdcd8;
  --g-500: #6b6a66;

  --x: #cf2a12;      /* websites: vermilion */
  --y: #1d3fbf;      /* custom software: ultramarine */
  --z: #f4b000;      /* automation and AI: signal yellow */
  --x-50: #fbe7e3;
  --y-50: #e6eafa;
  --z-50: #fdf2cf;
  --x-700: #a8200c;
  --y-700: #142e8f;

  --display: 'Secular One', 'Miriam Libre', system-ui, sans-serif;
  --text-font: 'Miriam Libre', system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --h2: clamp(1.9rem, 1.4rem + 2vw, 3.1rem);
  --h1: clamp(2.3rem, 1.5rem + 3.4vw, 4.6rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
  --rule: 2px solid var(--ink);
  --hair: 1px solid var(--g-200);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-md)/1.65 var(--text-font);
  font-variant-numeric: tabular-nums;
  caret-color: var(--x);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--z); color: var(--ink); }
html { scrollbar-color: var(--ink) var(--g-50); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }
main:focus { outline: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* The header mark: squares settle in, then each letter is drawn, once per page load. */
.mark .m-sq { transform-box: fill-box; transform-origin: center; }
.mark .m-l { stroke-dasharray: 1 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .site-header .mark .m-sq { animation: mark-sq 420ms var(--ease) backwards; animation-delay: calc(var(--i) * 60ms); }
  .js .site-header .mark .m-l { animation: draw 460ms var(--ease) backwards; animation-delay: calc(200ms + var(--i) * 90ms); }
}
@keyframes mark-sq { from { opacity: 0; scale: 0.9; } }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.arrow { display: inline-block; transition: translate 240ms var(--ease); }
[dir='rtl'] .arrow { font-family: system-ui, sans-serif; }

/* Buttons: square corners, ink on paper, paper on colour. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border: 2px solid var(--ink); border-radius: 0;
  font: 700 var(--text-md)/1.2 var(--text-font); text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), translate 120ms var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--y); border-color: var(--y); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: var(--z); border-color: var(--z); }
.btn:hover .arrow, .text-link:hover .arrow, .svc-link:hover .arrow, .panel:hover .arrow, .other-card:hover .arrow, .guide-row a:hover .arrow { translate: 4px 0; }
[dir='rtl'] .btn:hover .arrow, [dir='rtl'] .text-link:hover .arrow, [dir='rtl'] .svc-link:hover .arrow, [dir='rtl'] .panel:hover .arrow, [dir='rtl'] .other-card:hover .arrow, [dir='rtl'] .guide-row a:hover .arrow { translate: -4px 0; }
.btn:active { translate: 0 1px; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--x); }
.text-link:hover { text-decoration-color: var(--ink); }

/* Breadcrumb */
.crumb { justify-self: start; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; min-height: 44px; text-decoration: none; }
.crumb:hover { text-decoration: underline; }
.crumb > :first-child { flex: none; margin-inline-end: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: var(--rule); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.3rem/1 var(--display); direction: ltr; }
.mark { width: 66px; height: 22px; flex: none; }
.main-nav { margin-inline-start: auto; }
.main-nav ul, .menu-panel ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: var(--text-sm); color: var(--ink-2); border-bottom: 3px solid transparent; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--ink); }
.main-nav a[data-axis='x']:hover, .main-nav a[data-axis='x'][aria-current='page'] { border-bottom-color: var(--x); }
.main-nav a[data-axis='y']:hover, .main-nav a[data-axis='y'][aria-current='page'] { border-bottom-color: var(--y); }
.main-nav a[data-axis='z']:hover, .main-nav a[data-axis='z'][aria-current='page'] { border-bottom-color: var(--z); }
.nav-sep { width: 1px; height: 20px; background: var(--g-200); margin-inline: 10px; }
.nav-letter { display: inline-grid; place-items: center; width: 20px; height: 20px; font: 400 0.8rem/1 var(--display); color: var(--paper); }
[data-axis='x'] .nav-letter { background: var(--x); }
[data-axis='y'] .nav-letter { background: var(--y); }
[data-axis='z'] .nav-letter { background: var(--z); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; padding-inline-start: 22px; margin-inline-start: 10px; border-inline-start: 1px solid var(--g-200); }
.language-link { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--ink-2); text-decoration: none; border: 1px solid var(--g-200); transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.language-link:hover { color: var(--ink); border-color: var(--ink); }
.header-cta { min-height: 44px; padding: 8px 18px; font-size: var(--text-sm); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: none; border: 2px solid var(--ink); font: 700 var(--text-sm)/1 var(--text-font); color: var(--ink); cursor: pointer; }
.menu-bars { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-bars::after { content: ''; position: absolute; inset-inline: 0; top: 3px; border-top: 2px solid currentColor; }
.menu-toggle[aria-expanded='true'] .menu-bars { border-color: transparent; }
.menu-toggle[aria-expanded='true'] .menu-bars::after { top: 3px; rotate: 0deg; }
.menu-panel { border-top: var(--rule); background: var(--paper); padding: 16px var(--gutter) 28px; }
.menu-panel ul { flex-direction: column; align-items: stretch; gap: 0; }
.menu-foot .language-link { padding-inline: 14px; font-size: var(--text-sm); }
.menu-panel li a { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: var(--hair); text-decoration: none; font: 400 1.35rem/1.2 var(--display); }
.menu-panel .nav-letter { width: 28px; height: 28px; font-size: 1rem; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }

@media (max-width: 1080px) {
  .main-nav, .header-actions > .language-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .header-row { min-height: 60px; }
  .wordmark span { font-size: 1.15rem; }
}

/* Sections */
.section { padding-block: var(--section); }
.section + .section { border-top: var(--rule); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { font-size: var(--text-lg); color: var(--ink-2); max-width: 62ch; }
.section-head-row { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Hero poster */
.hero { border-bottom: var(--rule); }
.poster { display: grid; grid-template-columns: repeat(3, 1fr); height: clamp(210px, 44vh, 440px); border-bottom: var(--rule); direction: ltr; }
.panel { position: relative; display: grid; place-items: center; overflow: hidden; text-decoration: none; color: var(--paper); }
.panel-x { background: var(--x); }
.panel-y { background: var(--y); }
.panel-z { background: var(--z); color: var(--ink); }
.panel + .panel { border-inline-start: var(--rule); }
.glyph { width: min(64%, 300px); height: auto; aspect-ratio: 1; margin-bottom: 30px; overflow: visible; }
.panel-name { position: absolute; inset-inline: 20px; bottom: 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--text-md); }
[dir='rtl'] .panel-name { direction: rtl; }
.panel-axis { font: 400 var(--text-md)/1 var(--display); }
.panel-short { display: none; }
.g-dot { transform-box: fill-box; transform-origin: center; }
.g-corner-br { transform-origin: 100% 100%; }
.g-corner-tl { transform-origin: 0 0; }
.g-stroke { stroke-dasharray: 1 1; }
.panel .g-dot { transition: scale 500ms var(--ease), translate 900ms var(--ease); }
.panel .glyph { transition: translate 600ms var(--ease); }

@media (hover: hover) and (pointer: fine) { .panel:hover .g-dot { scale: 1.1; } }
.panel:focus-visible .g-dot { scale: 1.1; }

/* Letter entrance, once per page view: the colour fields wipe up in a stagger, each letter is
   drawn stroke by stroke like a pen, then its accent sweeps in around its own corner.
   Fill mode is backwards only, so hover and pointer motion take over once it has played. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-assemble] .panel { animation: field-in 760ms var(--ease) backwards; animation-delay: calc(var(--p) * 90ms); }
  .js [data-assemble] .panel-x { --p: 0; }
  .js [data-assemble] .panel-y { --p: 1; }
  .js [data-assemble] .panel-z { --p: 2; }
  .js [data-assemble] .g-stroke { animation: draw 720ms var(--ease-in-out) backwards; animation-delay: calc(260ms + var(--p, 0) * 140ms + var(--i) * 170ms); }
  .js [data-assemble] .g-dot { animation: accent-in 900ms var(--ease) backwards; animation-delay: calc(820ms + var(--p, 0) * 140ms); }
  .js [data-assemble] .g-corner-br, .js [data-assemble] .g-corner-tl { animation-name: corner-in; }
  .js [data-assemble] .panel-name { animation: label-in 600ms var(--ease) backwards; animation-delay: calc(700ms + var(--p) * 90ms); }
}
@keyframes field-in { from { clip-path: inset(100% 0 0 0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes accent-in { from { opacity: 0; scale: 0.88; } }
@keyframes corner-in { from { opacity: 0; rotate: -90deg; } }
@keyframes label-in { from { opacity: 0; translate: 0 8px; } }

.hero-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(36px, 5vw, 64px); align-items: start; }
.hero-copy { display: grid; gap: 18px; }
.hero-brand { font: 400 var(--h3)/1.2 var(--display); color: var(--x); }
.lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 54ch; }

/* Email draft form */
.quick-draft { display: grid; gap: 10px; }
.field-label { font-weight: 700; font-size: var(--text-md); }
textarea, input[type='text'], input[type='email'], input[type='url'] {
  width: 100%; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--text-md)/1.55 var(--text-font); padding: 12px 14px; resize: vertical;
}
textarea:focus, input:focus { outline: 3px solid var(--z); outline-offset: 0; border-color: var(--ink); }
textarea::placeholder, input::placeholder { color: var(--g-500); }
.field-hint { font-size: var(--text-sm); color: var(--ink-2); }
.field-error { font-size: var(--text-sm); font-weight: 700; color: var(--x-700); }
[aria-invalid='true'] { border-color: var(--x); }
.draft-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.free-note { font-size: var(--text-sm); font-weight: 700; }

/* Services */
.svc-rows { border-top: var(--rule); }
.svc { display: grid; grid-template-columns: 96px minmax(0, 4fr) minmax(0, 4fr) auto; gap: clamp(20px, 3vw, 40px); align-items: start; padding-block: 32px; border-bottom: var(--rule); }
.svc-letter { display: grid; place-items: center; width: 96px; height: 96px; font: 400 3.4rem/1 var(--display); color: var(--paper); }
.svc-x .svc-letter { background: var(--x); }
.svc-y .svc-letter { background: var(--y); }
.svc-z .svc-letter { background: var(--z); color: var(--ink); }
.svc-body { display: grid; gap: 10px; }
.svc-body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.svc-body p { color: var(--ink-2); }
.svc-list { list-style: none; display: grid; gap: 8px; padding-top: 6px; }
.svc-list li { display: flex; gap: 10px; align-items: baseline; }
.svc-list li::before { content: ''; flex: none; width: 10px; height: 10px; translate: 0 -1px; }
.svc-x .svc-list li::before { background: var(--x); }
.svc-y .svc-list li::before { background: var(--y); }
.svc-z .svc-list li::before { background: var(--z); border-radius: 50%; }
.svc-y .svc-list li::before { border-radius: 50%; }
.svc-list a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--g-200); min-height: 24px; display: inline-block; }
.svc-x .svc-list a:hover { text-decoration-color: var(--x); }
.svc-y .svc-list a:hover { text-decoration-color: var(--y); }
.svc-z .svc-list a:hover { text-decoration-color: var(--ink); }
.svc-link { align-self: center; font-weight: 700; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }

/* Workflow demo */
.flow-demo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: 'steps board' 'steps controls'; gap: 20px clamp(24px, 4vw, 56px); }
.flow-steps { grid-area: steps; list-style: none; display: grid; gap: 0; border-top: var(--rule); align-content: start; }
.flow-step { border-bottom: var(--hair); padding-block: 14px; }
.flow-step-btn { all: unset; display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; font: 400 var(--h3)/1.2 var(--display); width: 100%; }
.flow-step-btn:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }
.flow-num { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; font: 400 1.1rem/1 var(--display); border: 2px solid var(--ink); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.flow-step p { color: var(--ink-2); padding-inline-start: 46px; font-size: var(--text-sm); margin-top: 4px; }
.flow-step.is-on .flow-num { color: var(--paper); border-color: transparent; }
.step-x.is-on .flow-num { background: var(--x); }
.step-y.is-on .flow-num { background: var(--y); }
.step-z.is-on .flow-num { background: var(--z); color: var(--ink); }
.step-ink.is-on .flow-num { background: var(--ink); }
.flow-step:not(.is-on) .flow-step-title { color: var(--g-500); }

.flow-board { grid-area: board; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--rule); min-height: 360px; }
.lane { display: grid; grid-template-rows: auto 1fr; transition: opacity 400ms var(--ease); }
.lane + .lane { border-inline-start: var(--rule); }
.lane-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 700; font-size: var(--text-sm); color: var(--paper); }
.lane-axis { font: 400 1.2rem/1 var(--display); }
.lane-x .lane-head { background: var(--x); }
.lane-y .lane-head { background: var(--y); }
.lane-z .lane-head { background: var(--z); color: var(--ink); }
.lane-x { background: var(--x-50); }
.lane-y { background: var(--y-50); }
.lane-z { background: var(--z-50); }
.lane > :last-child { margin: 16px; align-self: start; background: var(--paper); border: 2px solid var(--ink); padding: 14px; font-size: var(--text-sm); display: grid; gap: 8px; transition: opacity 400ms var(--ease), translate 500ms var(--ease); }
.mock-label { font-weight: 700; font-size: var(--text-xs); color: var(--ink-2); }
.mock-input { border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.mock-send { justify-self: end; padding: 6px 14px; background: var(--x); color: var(--paper); font-weight: 700; font-size: var(--text-xs); }
.mock-input.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 2px; vertical-align: text-bottom; background: var(--ink); animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mock-thinking { display: none; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); }
.mock-thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: think 900ms var(--ease-in-out) 2; }
.mock-thinking i:nth-child(2) { animation-delay: 120ms; }
.mock-thinking i:nth-child(3) { animation-delay: 240ms; margin-inline-end: 4px; }
@keyframes think { 50% { translate: 0 -4px; opacity: 0.4; } }
.flow-demo.is-thinking .mock-thinking { display: flex; }
.flow-board { position: relative; }
.flow-packet { position: absolute; top: 0; left: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--paper); border: 2px solid var(--ink); font-size: var(--text-xs); font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; }
.flow-packet svg, .flow-mail svg { width: 16px; height: 16px; flex: none; }
.flow-mail { position: absolute; top: 0; left: 0; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; background: var(--y); color: var(--paper); opacity: 0; pointer-events: none; }
.flow-cursor { position: absolute; top: 0; left: 0; z-index: 4; width: 22px; height: 22px; opacity: 0; pointer-events: none; transition: translate 560ms var(--ease-in-out), opacity 220ms var(--ease); }
.flow-demo.hold-approve[data-step='4'] .mock-approve { background: var(--ink); }
.flow-demo.hold-approve[data-step='4'] .mock-approve .a-idle { display: inline; }
.flow-demo.hold-approve[data-step='4'] .mock-approve .a-done { display: none; }
.flow-demo.hold-approve[data-step='4'] .mock-status [data-s='4'] { display: none; }
.flow-demo.hold-approve[data-step='4'] .mock-status [data-s='3'] { display: inline; }
.mock-record { margin: 0; }
.mock-record div { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: var(--hair); }
.mock-record div:last-child { border-bottom: 0; }
.mock-record dt { font-size: var(--text-xs); color: var(--ink-2); font-weight: 700; }
.mock-record dd { margin: 0; font-weight: 700; }
.mock-status span { display: none; }
.mock-draft p { font-size: var(--text-sm); line-height: 1.5; }
.mock-approve { justify-self: start; padding: 6px 12px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: var(--text-xs); }
.mock-approve .a-done { display: none; }

/* Step states. Pending lanes stay readable but quiet. */
.flow-demo[data-step='1'] .lane-y > :last-child, .flow-demo[data-step='1'] .lane-z > :last-child, .flow-demo[data-step='2'] .lane-z > :last-child { opacity: 0.22; translate: 0 8px; }
.flow-demo[data-step='1'] .mock-status [data-s='1'], .flow-demo[data-step='2'] .mock-status [data-s='2'], .flow-demo[data-step='3'] .mock-status [data-s='3'], .flow-demo[data-step='4'] .mock-status [data-s='4'] { display: inline; }
.flow-demo[data-step='4'] .mock-approve { background: var(--y); }
.flow-demo[data-step='4'] .mock-approve .a-idle { display: none; }
.flow-demo[data-step='4'] .mock-approve .a-done { display: inline; }
.flow-demo[data-step='3'] .lane-z > :last-child { outline: 4px solid var(--z); outline-offset: 4px; }

.flow-controls { grid-area: controls; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctl { min-width: 48px; min-height: 48px; padding: 8px 16px; background: var(--paper); border: 2px solid var(--ink); font: 700 var(--text-md)/1 var(--text-font); color: var(--ink); cursor: pointer; }
.ctl:hover { background: var(--g-50); }
.ctl-play { min-width: 110px; }
.flow-live { font-size: var(--text-sm); color: var(--ink-2); margin-inline-start: 8px; }
html:not(.js) .flow-controls { display: none; }

/* Process */
.process-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: var(--rule); }
.process-list li { display: grid; gap: 12px; align-content: start; padding: 28px clamp(16px, 2vw, 28px) 8px; }
.process-list li + li { border-inline-start: var(--hair); }
.process-num { font: 400 clamp(3rem, 2rem + 3vw, 5rem)/0.9 var(--display); }
.process-num { justify-self: start; display: grid; place-items: center; width: clamp(64px, 5vw, 84px); aspect-ratio: 1; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem) !important; line-height: 1 !important; color: var(--paper); }
.process-list li:nth-child(1) .process-num { background: var(--x); }
.process-list li:nth-child(2) .process-num { background: var(--y); }
.process-list li:nth-child(3) .process-num { background: var(--z); color: var(--ink); }
.process-list li:nth-child(4) .process-num { background: var(--ink); }
.process-list p { color: var(--ink-2); }

/* Rules or AI */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; border: var(--rule); }
.fit { padding: clamp(24px, 3vw, 44px); display: grid; gap: 18px; align-content: start; }
.fit-ai { background: var(--z); border-inline-start: var(--rule); }
.fit h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); }
.fit ul { list-style: none; display: grid; gap: 10px; }
.fit li { display: flex; gap: 12px; align-items: baseline; font-size: var(--text-lg); }
.fit-rules li::before { content: ''; flex: none; width: 12px; height: 12px; border: 2px solid var(--ink); }
.fit-ai li::before { content: ''; flex: none; width: 12px; height: 12px; background: var(--ink); border-radius: 50%; }
.fit-line { margin-top: 24px; font-size: var(--text-lg); max-width: 72ch; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.faq-list { border-top: var(--rule); }
details { border-bottom: var(--rule); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding-block: 16px; font: 400 var(--h3)/1.3 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 18px; height: 18px; background: linear-gradient(var(--ink), var(--ink)) center/100% 3px no-repeat, linear-gradient(var(--ink), var(--ink)) center/3px 100% no-repeat; transition: rotate 300ms var(--ease); }
details[open] summary::after { rotate: 45deg; }
summary:hover { color: var(--y); }
details p { padding-bottom: 22px; max-width: 64ch; color: var(--ink-2); }

/* Guide teaser */
.guide-row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule); }
.guide-row li + li { border-inline-start: var(--hair); }
.guide-row a { display: flex; justify-content: space-between; gap: 14px; padding: 22px clamp(12px, 2vw, 24px); min-height: 100%; text-decoration: none; font: 400 var(--h3)/1.25 var(--display); }
.guide-row a:hover { background: var(--g-50); }

/* Closing band */
.close-band { padding-block: var(--section); }
.close-ink { background: var(--ink); color: var(--paper); }
.close-x { background: var(--x); color: var(--paper); }
.close-y { background: var(--y); color: var(--paper); }
.close-z { background: var(--z); color: var(--ink); }
.close-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.close-grid > div:first-child { display: grid; gap: 14px; }
.close-grid p { font-size: var(--text-lg); }
.close-band .field-hint, .close-band .lede { color: inherit; opacity: 0.86; }
.close-ink .btn-ink, .close-y .btn-ink, .close-x .btn-ink { background: var(--z); color: var(--ink); border-color: var(--z); }
.close-ink .btn-ink:hover, .close-y .btn-ink:hover, .close-x .btn-ink:hover { background: var(--paper); border-color: var(--paper); }
.close-ink textarea, .close-y textarea, .close-x textarea { border-color: var(--paper); }
.close-band :focus-visible { outline-color: var(--z); }
.close-z :focus-visible { outline-color: var(--ink); }
.close-ink .field-error, .close-y .field-error, .close-x .field-error { color: var(--z); }
.close-actions { display: grid; gap: 16px; justify-items: start; }
.close-mail { font-weight: 700; font-size: var(--text-lg); user-select: all; }

/* Other services */
.others { padding-block: var(--section); border-top: var(--rule); }
.others h2 { margin-bottom: 32px; }
.others-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: var(--rule); }
.other-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 20px; align-items: center; padding: 24px; text-decoration: none; }
.other-card + .other-card { border-inline-start: var(--rule); }
.other-letter { grid-row: span 2; display: grid; place-items: center; width: 72px; height: 72px; font: 400 2.6rem/1 var(--display); color: var(--paper); }
.other-x .other-letter { background: var(--x); }
.other-y .other-letter { background: var(--y); }
.other-z .other-letter { background: var(--z); color: var(--ink); }
.other-name { font: 400 var(--h3)/1.2 var(--display); }
.other-line { grid-column: 2; color: var(--ink-2); font-size: var(--text-sm); }
.other-card .arrow { grid-row: 1 / span 2; grid-column: 3; font-size: 1.4rem; }
.other-card:hover { background: var(--g-50); }

/* Footer */
.site-footer { border-top: var(--rule); padding-block: 56px 28px; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.footer-lead { display: grid; gap: 14px; align-content: start; }
.footer-lead p { color: var(--ink-2); max-width: 34ch; }
.footer-col h2 { font: 700 var(--text-sm)/1.4 var(--text-font); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: var(--hair); color: var(--ink-2); }

/* Tablet and phone: recompose, do not shrink. */
@media (max-width: 980px) {
  .hero-band, .close-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: 72px minmax(0, 1fr); }
  .svc-letter { width: 72px; height: 72px; font-size: 2.6rem; }
  .svc-list, .svc-link { grid-column: 2; }
  .svc-link { justify-self: start; white-space: normal; }
  .flow-demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'board' 'controls' 'steps'; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:nth-child(3) { border-inline-start: 0; }
  .process-list li:nth-child(n + 3) { border-top: var(--hair); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .poster { height: 34svh; min-height: 240px; }
  .hero-band { gap: 20px; padding-block: 28px 40px; }
  .hero-band .hero-copy { display: contents; }
  .hero-band .lede { order: 3; }
  .hero-band .quick-draft { order: 2; }
  .hero-band .field-hint { display: none; }
  .hero-band textarea { min-height: 84px; }
  .glyph { width: 86%; margin-bottom: 30px; }
  .panel-name { inset-inline: 10px; bottom: 10px; font-size: var(--text-sm); gap: 6px; white-space: nowrap; }
  .panel-name .arrow, .panel-full { display: none; }
  .panel-short { display: inline; }
  .flow-board { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lane + .lane { border-inline-start: 0; border-top: var(--rule); }
  .lane { grid-template-columns: 118px 1fr; grid-template-rows: auto; }
  .lane-head { align-items: start; flex-direction: column; gap: 4px; }
  .lane > :last-child { margin: 12px; }
  .fit-grid, .others-row, .guide-row { grid-template-columns: minmax(0, 1fr); }
  .fit-ai, .other-card + .other-card { border-inline-start: 0; border-top: var(--rule); }
  .guide-row li + li { border-inline-start: 0; border-top: var(--hair); }
  .process-list { grid-template-columns: minmax(0, 1fr); }
  .process-list li + li { border-inline-start: 0; border-top: var(--hair); }
  .draft-actions .btn, .close-actions .btn { width: 100%; }
  .other-card { padding: 18px; }
  .other-letter { width: 56px; height: 56px; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* WhatsApp: a quiet link beside the email actions, and an outlined button on Contact. */
.wa-link { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-color: var(--y); }
.close-band .wa-link { text-decoration-color: currentColor; }
.btn-wa { background: var(--paper); color: var(--ink); border-color: var(--ink); justify-self: start; }
.btn-wa:hover { background: var(--ink); color: var(--paper); }
.wa-box { display: grid; gap: 8px; justify-items: start; border-top: var(--rule); padding-top: 18px; }
