/* AOSOFT — quiet-luxury editorial landing page */

/* Self-hosted DM Sans (SIL Open Font License 1.1) — latin + latin-ext (Polish). Variable: one file covers 400–700. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/dm-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/dm-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #102746;
  --ink-2: #2a4262;
  --muted: #536780;          /* 5.6:1 on --paper */
  --muted-2: #5c6e85;        /* ≥4.75:1 on white, paper and mist for small meta text */
  --blue: #1457b8;
  --blue-dark: #0e438e;
  --blue-soft: #eef5fc;
  --blue-line: #d7e4f2;
  --peach: #fff0e7;
  --line: #dfe6ed;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --mist: #f2f5f7;
  --navy: #102844;
  --ok: #2f8f6b;
  --err: #b42318;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading: var(--sans);   /* headings: same family as body, semibold, tight tracking */
  --radius: 10px;
  --header-h: 76px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--blue);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.anchor-top { position: absolute; top: 0; }
main:focus { outline: none; }

.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #3f6693; font-weight: 700; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #4f6f93; font-weight: 700; }

/* ---------------------------------------------------------- buttons/links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; background: var(--blue); color: #fff; padding: 11px 18px; border: 1px solid var(--blue); border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue-line); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: #bcd2ea; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: #e8f0fa; border-color: #e8f0fa; }
.btn-light:focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px #fff; }

.text-link { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; color: var(--blue); }
.text-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; gap: 28px; padding: 0 max(32px, 5vw); background: rgba(251, 250, 247, .94); border-bottom: 1px solid #e8ebee; backdrop-filter: saturate(1.2) blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand-name { font-size: 21px; font-weight: 500; letter-spacing: .15em; }
.brand-rule { height: 32px; width: 1px; background: #b3c3d4; margin: 0 4px; }
.brand-tag { font-size: 11px; line-height: 1.35; color: var(--muted); }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; }
.site-nav a { padding: 6px 0; position: relative; }
.site-nav a:hover { color: var(--blue); }
.head-actions { display: flex; gap: 14px; align-items: center; }
.lang-toggle { min-width: 44px; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: transparent; font-size: 13px; font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.lang-toggle:hover { border-color: #bcd2ea; color: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "copy art" "assistant assistant" "proof proof"; column-gap: 48px; align-items: center; padding-top: 44px; padding-bottom: 64px; }
.hero-copy { grid-area: copy; }
.hero h1 { font: 600 clamp(40px, 4.6vw, 60px)/1.06 var(--heading); letter-spacing: -.03em; margin: 0 0 22px; }
.hero h1 em { color: #275c9e; font-style: normal; }
.lead { max-width: 500px; color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 22px; }
.proof { grid-area: proof; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin: 28px 0 0; padding: 0 4px; }
.proof li { padding-left: 16px; border-left: 2px solid #c9dbef; }
.proof b, .proof span { display: block; }
.proof b { font-size: 14px; }
.proof span { font-size: 13px; color: var(--muted); line-height: 1.45; }

.hero-art { grid-area: art; margin: 0; position: relative; }
.hero-art img { width: 100%; height: auto; }
.hero-flow { position: absolute; left: 6%; bottom: -6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--muted); box-shadow: 0 10px 24px rgba(22,57,88,.08); }
.hero-flow span, .hero-flow strong { padding: 4px 8px; border-radius: 4px; background: var(--mist); font-weight: 600; }
.hero-flow strong { background: #e6f0fd; color: var(--blue); }
.hero-flow i { font-style: normal; color: #8aa0b7; }

/* --------------------------------------------------------------- assistant */
.assistant { grid-area: assistant; margin-top: 32px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; background: var(--blue-soft); border: 1px solid #dce8f5; border-radius: 14px; padding: 30px 32px; scroll-margin-top: calc(var(--header-h) + 16px); }
.assistant-intro { display: flex; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.spark { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border-radius: 10px; color: var(--blue); font-size: 18px; }
.assistant .eyebrow { margin-bottom: 8px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #fff4e5; color: #8a4b08; border: 1px solid #f3d9b4; font-size: 11px; letter-spacing: .06em; }
.assistant h2 { font: 600 clamp(25px, 2.3vw, 30px)/1.15 var(--heading); letter-spacing: -.02em; margin: 0 0 10px; }
.assistant-intro p:last-child { font-size: 15px; color: var(--muted); margin: 0; }
.assistant-panel { display: grid; gap: 14px; min-width: 0; }

.chat { list-style: none; margin: 0; padding: 4px 2px; display: grid; gap: 10px; max-height: 360px; overflow-y: auto; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 10px 14px 12px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.msg p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-who { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.msg-progress { margin-left: 8px; font-size: 11px; color: var(--blue); font-weight: 600; }
.msg-bot { background: #fff; border: 1px solid var(--blue-line); border-top-left-radius: 4px; justify-self: start; }
.msg-user { background: var(--blue); color: #fff; border-top-right-radius: 4px; justify-self: end; }
.msg-user .msg-who { color: #cfe0f7; }

.ask { background: #fff; border: 1px solid #c9d9ea; border-radius: 10px; padding: 14px 16px 12px; transition: border-color .2s, box-shadow .2s; }
.ask:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 87, 184, .15); }
.ask-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ask textarea { display: block; width: 100%; min-height: 64px; border: 0; outline: 0; resize: vertical; background: transparent; font-size: 16px; line-height: 1.5; padding: 0; }
.ask textarea::placeholder { color: #7d8ea2; }
.ask-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf0f4; flex-wrap: wrap; }
.ask-help { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex: 1 1 220px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.ask-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.field-error { color: var(--err); font-size: 13px; font-weight: 600; margin: 6px 0 0; }

.next { display: grid; gap: 14px; }
.brief { background: #fff; border: 1px solid var(--blue-line); border-radius: 10px; padding: 18px 20px; }
.brief h3 { font: 600 19px/1.25 var(--heading); letter-spacing: -.01em; margin: 0 0 12px; }
.brief dl { margin: 0; display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 18px; font-size: 14px; }
.brief dt { font-weight: 700; color: var(--ink-2); }
.brief dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.brief dd.is-empty { font-style: italic; color: var(--muted-2); }
.next-intro { margin: 4px 0 0; font-weight: 700; font-size: 15px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { text-align: left; display: grid; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid #c9d9ea; border-radius: 10px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.choice:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(20, 87, 184, .1); }
.choice:focus-visible { outline: none; box-shadow: var(--focus); }
.choice strong { color: var(--blue); font-size: 15px; }
.choice span { font-size: 13px; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--blue-line); border-radius: 10px; padding: 18px 20px; display: grid; gap: 12px; justify-items: start; }
.panel-title { font: 600 18px/1.25 var(--heading); letter-spacing: -.01em; margin: 0; }
.panel p { margin: 0; font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 4px; width: 100%; max-width: 420px; }
.field label { font-size: 13px; font-weight: 700; }
.field input[type="email"], .field input[type="tel"] { min-height: 44px; padding: 8px 12px; border: 1px solid #c3d2e2; border-radius: 6px; background: #fff; font-size: 16px; }
.field input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 87, 184, .18); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; max-width: none; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.field-check label { font-weight: 500; font-size: 14px; }
.field-check .field-error { grid-column: 1 / -1; }
.privacy { font-size: 13px; color: var(--muted); }
.privacy summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.privacy p { margin-top: 6px; font-size: 13px; }
.next-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.panel .mail-alt { font-size: 14px; }
.mail-alt strong { color: var(--ink); user-select: all; }

/* ---------------------------------------------------------------- sections */
.section { padding-top: 80px; padding-bottom: 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 36px; }
.section-heading h2, .about h2 { font: 600 clamp(29px, 3vw, 40px)/1.12 var(--heading); letter-spacing: -.025em; margin: 0; max-width: 620px; }
.section-heading > p { max-width: 430px; border-left: 1px solid #d5dfe8; padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services article { padding: 28px 28px 30px 0; display: flex; flex-direction: column; }
.services article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.service-icon { width: 40px; height: 40px; margin: 18px 0 12px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.services h3 { font: 600 21px/1.25 var(--heading); letter-spacing: -.015em; margin: 0 0 10px; }
.services p { font-size: 15px; color: var(--muted); margin: 0 0 18px; flex: 1; }

/* -------------------------------------------------------------------- work */
.work { background: var(--mist); }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.showcase { position: relative; display: grid; background: var(--surface); border: 1px solid #e1e7ed; border-radius: 14px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.showcase:hover { box-shadow: 0 18px 40px rgba(16, 39, 70, .08); transform: translateY(-2px); }
.showcase-lg { grid-column: 1 / -1; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.showcase-lg.driving { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.showcase-lg.driving .showcase-art { order: -1; }
.showcase-sm { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); min-height: 230px; }
.showcase-sm .showcase-art { order: -1; }
.nursery { background: radial-gradient(90% 120% at 80% 40%, #ffe6d6 0, #fff3ea 45%, #fff 78%); }
.driving { background: radial-gradient(90% 120% at 20% 40%, #dce9f8 0, #edf4fc 45%, #fff 78%); }
.playvenue { background: radial-gradient(110% 100% at 15% 40%, #e6f0fa 0, #f6f9fd 55%, #fff 80%); }
.tablecircle { background: radial-gradient(110% 100% at 15% 40%, #ffeadd 0, #fff6ef 55%, #fff 80%); }

.showcase-copy { position: relative; z-index: 1; padding: 30px 8px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.showcase-sm .showcase-copy { padding: 26px 26px 22px 6px; }
.showcase h3 { font: 600 clamp(24px, 2.1vw, 28px)/1.12 var(--heading); letter-spacing: -.015em; margin: 12px 0 12px; }
.showcase-sm h3 { font-size: clamp(22px, 1.9vw, 25px); margin: 10px 0 8px; }
.showcase-copy > p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; max-width: 340px; }
.features { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.features li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.features svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.showcase-foot { margin-top: auto; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.showcase .text-link { font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; color: var(--blue); background: #fff; border: 1px solid #cddcee; padding: 3px 10px; border-radius: 999px; }
.status { font-size: 12px; font-weight: 600; color: #1f6b4f; background: #e6f4ec; border: 1px solid #cfe8d8; padding: 3px 10px; border-radius: 999px; }
.showcase-art { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; }
.showcase-lg .showcase-copy { padding: 44px 12px 40px 44px; }
.showcase-lg.driving .showcase-copy { padding: 44px 44px 40px 12px; }
.showcase-lg .showcase-copy > p { max-width: 440px; font-size: 15px; }
.showcase-lg .features { grid-template-columns: 1fr 1fr; column-gap: 22px; row-gap: 12px; max-width: 520px; }
.showcase-lg h3 { font-size: clamp(27px, 2.6vw, 34px); }
.showcase-lg .showcase-art { align-self: stretch; padding: 18px 8px 0 0; }
.showcase-lg.driving .showcase-art { padding: 18px 0 0 8px; }
.showcase-lg .showcase-art img { max-height: 470px; object-fit: contain; }
.showcase-art img { width: 100%; height: auto; }
.showcase-sm .showcase-art { padding: 14px 0 10px 12px; }
/* Product screenshots from each product's brand pack: full-bleed, cropped by object-fit. */
.showcase .showcase-art.shot { padding: 0; align-self: stretch; overflow: hidden; background: var(--shot-bg, #eef2f6); }
.showcase-art.shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: var(--shot-pos, center); }
.showcase-lg .showcase-art.shot { min-height: 440px; }
.showcase-sm .showcase-art.shot { min-height: 260px; }
.nursery .shot { --shot-bg: #d9ecf1; --shot-pos: 50% 30%; }
.driving .shot { --shot-bg: #f5f7fa; --shot-pos: 0 45%; }
.playvenue .shot { --shot-bg: #0b1230; --shot-pos: 50% 40%; }
.tablecircle .shot { --shot-bg: #f3ece2; --shot-pos: 70% 40%; }
.note { font-size: 13px; color: var(--muted-2); margin: 18px 0 0; }

/* ----------------------------------------------------------------- process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.steps li { border-top: 1px solid #c9d6e3; padding: 18px 8px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border: 2px solid var(--blue); border-radius: 50%; background: var(--paper); }
.steps b { font-size: 13px; color: var(--blue); letter-spacing: .06em; }
.steps h3 { font-size: 16px; line-height: 1.35; margin: 8px 0 6px; font-weight: 700; }
.steps p { font-size: 14px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 48px; align-items: center; border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 56px; }
.team { grid-column: 1 / -1; margin-top: 8px; }
.team .eyebrow { margin-bottom: 14px; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.person { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 22px; align-items: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.person img { width: 128px; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; }
.person img { object-fit: cover; object-position: 50% 0; background: var(--mist); }
.person h4 { font: 600 20px/1.2 var(--heading); letter-spacing: -.01em; margin: 2px 0 4px; }
.person-role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.person p:last-child { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.about .eyebrow { margin-bottom: 8px; }
.about h2 { font-size: clamp(27px, 2.6vw, 34px); }
.about > p { font-size: 16px; color: var(--muted); line-height: 1.75; border-left: 1px solid var(--line); padding-left: 26px; margin: 0; }

/* ----------------------------------------------------------------- closing */
.closing { background: var(--navy); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.closing::after { content: ""; position: absolute; right: -5%; top: -100%; width: 60%; height: 300%; background: repeating-radial-gradient(ellipse, transparent 0 24px, #2e6093 25px 26px, transparent 27px 40px); transform: rotate(-14deg); opacity: .4; pointer-events: none; }
.closing .wrap { position: relative; z-index: 1; }
.closing .eyebrow { color: #b4d0f3; }
.closing h2 { font: 600 clamp(32px, 3.6vw, 46px)/1.1 var(--heading); letter-spacing: -.025em; margin: 0 0 12px; max-width: 700px; }
.closing p:not(.eyebrow) { font-size: 17px; color: #d0dbe8; margin: 0 0 26px; max-width: 560px; }

/* ------------------------------------------------------------------ footer */
.site-footer { display: grid; gap: 10px; padding: 22px max(32px, 5vw); font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.site-footer b { font-size: 16px; font-weight: 600; letter-spacing: .14em; color: var(--ink); }
.site-footer .footer-mail { color: var(--ink-2); font-weight: 600; }
.site-footer a { color: var(--blue); font-weight: 600; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-top { margin-left: auto; }
.footer-legal { margin: 0; }

/* ------------------------------------------------------------- legal pages */
.legal-header .head-actions { margin-left: auto; }
a.lang-toggle { display: inline-flex; align-items: center; justify-content: center; }
.legal { max-width: 780px; padding-top: 48px; padding-bottom: 88px; }
.legal h1 { font: 600 clamp(32px, 3.4vw, 42px)/1.1 var(--heading); letter-spacing: -.025em; margin: 0 0 8px; }
.legal-meta { font-size: 14px; color: var(--muted); margin: 0 0 32px; }
.legal h2 { font: 600 21px/1.3 var(--heading); letter-spacing: -.01em; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: 14px; background: var(--mist); padding: 1px 6px; border-radius: 4px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--mist); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.legal tr:last-child td { border-bottom: 0; }

/* ================================================================ tablet */
@media (max-width: 1080px) {
  .showcase-lg .features { grid-template-columns: 1fr; }
  .site-header { gap: 20px; }
  .brand-rule, .brand-tag { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "assistant" "proof" "art"; padding-top: 44px; }
  .hero-copy { max-width: 640px; }
  .assistant { grid-template-columns: 1fr; margin-top: 36px; gap: 22px; }
  .assistant-intro { position: static; }
  .hero-art { margin-top: 40px; max-width: 640px; justify-self: center; width: 100%; }
  .projects { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .team-list { grid-template-columns: 1fr; }
  .about > p { grid-column: 1 / -1; border: 0; padding: 0; }
}

/* ================================================================= mobile */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header { padding: 0 20px; gap: 12px; }
  .brand img { width: 26px; height: 26px; }
  .brand-name { font-size: 18px; }
  .menu-toggle { display: flex; }
  .head-cta { display: none; }
  .head-actions { margin-left: auto; gap: 8px; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; padding: 8px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; font-size: 17px; box-shadow: 0 16px 24px rgba(16, 39, 70, .06); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid #edf0f3; }
  .site-nav a:last-child { border-bottom: 0; }

  .wrap { width: calc(100% - 40px); }
  .hero { padding-top: 32px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .lead { font-size: 16px; }
  .proof { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; padding: 0; }
  .assistant { padding: 22px 18px; border-radius: 12px; }
  .assistant-intro { flex-direction: column; gap: 12px; position: static; }
  .msg { max-width: 94%; }
  .ask-actions { width: 100%; }
  .ask-actions .btn { flex: 1 1 auto; }
  .choices { grid-template-columns: 1fr; }
  .brief dl { grid-template-columns: 1fr; gap: 2px; }
  .brief dd { margin-bottom: 8px; }
  .hero-flow { position: static; margin-top: 10px; justify-content: center; }

  .section { padding-top: 56px; padding-bottom: 60px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p { margin-top: 16px; padding-left: 16px; }
  .services { grid-template-columns: 1fr; }
  .services article, .services article + article { padding: 24px 0; border-left: 0; }
  .services article + article { border-top: 1px solid var(--line); }
  .service-icon { margin-top: 12px; }

  .showcase-lg, .showcase-lg.driving, .showcase-sm { grid-template-columns: 1fr; }
  .showcase .showcase-art.shot, .showcase-lg .showcase-art.shot, .showcase-sm .showcase-art.shot { min-height: 0; aspect-ratio: 4 / 3; }
  .showcase-sm .showcase-art { order: 0; padding: 0 20px 18px; }
  .showcase-copy, .showcase-sm .showcase-copy { padding: 22px 20px 6px; }
  .showcase-lg .showcase-art, .showcase-lg.driving .showcase-art { order: 0; padding: 4px 8px 0; }
  .showcase-lg .showcase-copy, .showcase-lg.driving .showcase-copy { padding: 24px 20px 6px; }
  .projects { grid-template-columns: 1fr; }
  .showcase-foot { padding-bottom: 8px; }
  .showcase:hover { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .about { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; gap: 18px; }
  .person { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .person img { width: 88px; }
  .closing { padding: 56px 0; }
  .site-footer { padding: 20px; }
  .footer-top { margin-left: 0; }
  .legal { padding-top: 32px; padding-bottom: 60px; }
}

@media (max-width: 380px) {
  .steps { grid-template-columns: 1fr; }
  .brand-name { letter-spacing: .1em; }
}

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

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .assistant, .closing, .skip-link { display: none; }
  body { background: #fff; }
}
