/*
 * The landing in the Main Power design (ai.main-power.org; its source: branch main-power/codex/ai-main-power-site-2026-09-30,
 * sites/ai-main-power/site/styles.css). The tokens, the header, the first screen with its panel, the sections' heads,
 * the grids of cells on hairlines, the cream sections, the questions, the footer, the dialogs and the chat button are
 * that file's; what the landing has and Main Power has not – the projects, the people, the ways to reach us, the
 * directions' drawn examples – is written here in the same language: no radius, hairlines, one orange.
 */

:root {
  --bg: #0c0a09;
  --bg-soft: #151210;
  --panel: #1a1614;
  --panel-2: #211c19;
  --cream: #f4eee9;
  --cream-soft: #d7cec7;
  --muted: #aaa19b;
  --orange: #fe4716;
  --orange-soft: #ff7b52;
  --ink: #171310;
  --ink-soft: #6d645e;
  --paper: #f0e9e2;
  --line: rgba(244, 238, 233, 0.18);
  --line-strong: rgba(244, 238, 233, 0.34);
  --line-ink: rgba(23, 19, 16, 0.2);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --max: 1440px;
  --font-body: Arial, sans-serif;
  --font-heading: "Helvetica Neue", "Arial Nova", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--bg); }
body {
  margin: 0;
  color: var(--cream);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 1rem;
  transform: translateY(-130%);
  background: var(--orange);
  color: var(--ink);
  padding: .8rem 1rem;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

/* --- Header ---------------------------------------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 4rem);
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  background: rgba(12, 10, 9, .28);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background .2s, min-height .2s;
}
.site-header.is-scrolled { min-height: 76px; background: rgba(12, 10, 9, .94); }
.brand { display: inline-flex; align-items: center; }
.brand-lockup { color: var(--orange); display: inline-flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; background: currentColor; -webkit-mask: url("assets/mark.png") center / contain no-repeat; mask: url("assets/mark.png") center / contain no-repeat; }
.brand-words { display: grid; font-family: var(--font-heading); font-size: .92rem; font-weight: 800; letter-spacing: .12em; line-height: .95; text-transform: uppercase; }
.desktop-nav { justify-self: center; display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.6rem); }
.desktop-nav a, .header-link {
  color: var(--cream-soft);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  transition: color .18s;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible, .header-link:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: .85rem; }
.language-switch { display: inline-flex; border: 1px solid var(--line-strong); font-weight: 800; font-size: .72rem; letter-spacing: .04em; }
.language-switch > * { padding: .68rem .66rem; }
.language-switch > * + * { border-left: 1px solid var(--line-strong); }
.language-switch b { color: var(--ink); background: var(--cream); }
.language-switch a:hover { color: var(--orange); }
.button, .button-outline {
  border: 1px solid var(--orange);
  border-radius: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .82rem 1.25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.button { color: var(--ink); background: var(--orange); }
.button:hover, .button:focus-visible { background: var(--orange-soft); transform: translateY(-1px); }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }
.button-outline { color: var(--cream); background: transparent; border-color: var(--line-strong); }
.button-outline:hover, .button-outline:focus-visible { color: var(--orange); border-color: var(--orange); }
.on-paper .button-outline { color: var(--ink); border-color: rgba(23, 19, 16, .4); }
.button-arrow { font-size: 1.05rem; }
/* A way on that is not a button: a word underlined in orange. */
.text-link { padding: .62rem 0 .25rem; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.text-link:hover { color: var(--orange-soft); }
.menu-button { display: none; width: 52px; height: 52px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--cream); }

.mobile-menu {
  position: fixed;
  z-index: 75;
  inset: 0;
  overflow-y: auto;
  padding: 7rem 1.5rem 2rem;
  background: var(--bg);
}
.mobile-menu nav { display: grid; border-top: 1px solid var(--line); }
.mobile-menu nav a {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 6.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.mobile-menu nav span { color: var(--orange); font-family: var(--font-body); font-size: .68rem; letter-spacing: .08em; }
.mobile-menu .button { width: 100%; margin-top: 1.5rem; }
.menu-reach { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.3rem 0 0; }
.mobile-menu .language-switch { margin-top: 1.4rem; }

/* --- First screen ---------------------------------------------------------------------------------------------------- */

.hero {
  min-height: 940px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 9.5rem clamp(1.25rem, 4vw, 4rem) 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url("assets/hero-frankfurt.jpg") center 30% / cover no-repeat;
  filter: saturate(.78) contrast(1.04);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,10,9,.95) 0%, rgba(12,10,9,.8) 42%, rgba(12,10,9,.42) 72%, rgba(12,10,9,.7) 100%),
    linear-gradient(0deg, rgba(12,10,9,1) 0%, transparent 32%);
}
.hero-grid-lines {
  position: absolute;
  z-index: -1;
  inset: 92px 0 0;
  pointer-events: none;
  opacity: .55;
  background-image: linear-gradient(rgba(244,238,233,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(244,238,233,.07) 1px, transparent 1px);
  background-size: 100% 25%, 20% 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 90%);
}
.hero-inner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 520px);
  gap: clamp(3rem, 7vw, 10rem);
  align-items: center;
}
.hero-inner > .wizard { justify-self: end; width: 100%; }
.kicker, .section-label {
  color: var(--cream-soft);
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.65rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 800;
}
.kicker::before, .section-label::before { content: ""; width: 8px; height: 8px; background: var(--orange); flex: 0 0 auto; }
.hero h1 {
  /* The headline's longest word, in em (a page with a longer one says so): the headline is never larger than that word
     fits its column – beside the panel 85vw - 520px, alone the page's width. */
  --word: 9.5;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, min(4.3vw, calc((85vw - 520px) / var(--word))), 5.4rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .93;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: .22em; }
.hero h1 .accent { display: inline; color: var(--orange); }
.hero-intro { max-width: 640px; margin: 2.1rem 0 0; color: var(--cream-soft); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.6; }
.hero-intro b { display: block; color: var(--cream); }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 2rem 0 0; }
/* Beside the copy the panel is the talk's way in; under it (narrow screens) a button leads down to the panel. */
.hero-talk { display: none; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2.4rem; border: 1px solid var(--line); }
.hero-proof div { min-height: 84px; display: flex; align-items: center; padding: 1rem 1.15rem; border-right: 1px solid var(--line); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .07em; line-height: 1.4; }
.hero-proof div:last-child { border-right: 0; }

/* --- The panel of the first screen: the talk, in two steps ------------------------------------------------------------- */

.wizard {
  color: var(--cream);
  background: rgba(21,18,16,.96);
  border: 1px solid rgba(254,71,22,.68);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 2.4vw, 2rem);
}
.wizard-top { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.wizard-eyebrow { color: var(--orange); letter-spacing: .13em; text-transform: uppercase; font-size: .68rem; font-weight: 900; }
.wizard-step { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.wizard-progress { grid-column: 1 / -1; height: 3px; background: rgba(244,238,233,.12); overflow: hidden; }
.wizard-progress span { display: block; height: 100%; background: var(--orange); transition: width .24s; }
.wizard-stage h3, .dialog-title { margin: 0 0 .2rem; font-family: var(--font-heading); font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.05; text-transform: uppercase; }
.wizard-stage > p { color: var(--muted); margin: 0 0 1.25rem; font-size: .92rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.choice {
  min-height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: .72rem .8rem .72rem 2.35rem;
  color: var(--cream-soft);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.choice:hover { border-color: var(--orange); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice::before { content: ""; position: absolute; left: .8rem; width: 16px; height: 16px; border: 1px solid var(--line-strong); }
.choice:has(input:checked) { color: var(--cream); border-color: var(--orange); background: rgba(254,71,22,.1); }
.choice:has(input:checked)::before { background: var(--orange); box-shadow: inset 0 0 0 4px var(--panel); }
.choice:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 1px; }
.choice.radio::before { border-radius: 50%; }
.wizard-fields { display: grid; gap: .85rem; }
.field { display: grid; gap: .35rem; }
.field > span, .field-set legend { color: var(--cream-soft); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; }
.field small, .field-set small { color: var(--muted); font-size: inherit; font-weight: 400; letter-spacing: .06em; }
.field input, .field textarea { width: 100%; min-height: 50px; color: var(--cream); background: #0f0d0c; border: 1px solid var(--line); border-radius: 0; padding: .75rem .85rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7f766f; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--orange); }
.field-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-set legend { padding: 0; margin-bottom: .45rem; }
.form-error { margin: 1rem 0 0; padding: .75rem .9rem; border-left: 3px solid var(--orange); background: rgba(254,71,22,.1); color: var(--cream); font-size: .88rem; }
.wizard-actions { display: flex; gap: .75rem; margin-top: 1.25rem; }
.wizard-actions .button { flex: 1; }
.wizard-actions .button-outline { min-width: 110px; }
.wizard-note { color: var(--muted); margin: 1rem 0 0; font-size: .73rem; line-height: 1.5; }
.wizard-note a, .wizard-status a { color: var(--cream-soft); text-decoration: underline; text-underline-offset: 2px; }
.wizard-note a:hover, .wizard-status a:hover { color: var(--orange); }
.wizard-status { border-left: 3px solid var(--orange); background: rgba(254,71,22,.1); padding: 1rem; }
.wizard-status h3 { margin: 0 0 .55rem; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.1; text-transform: uppercase; }
.wizard-status p { margin: .5rem 0 0; color: var(--cream-soft); font-size: .92rem; }
.wizard-status strong { color: var(--cream); }
.wizard-status h3 [data-echo="email"] { text-transform: none; }
/* The call's answer stands alone in its dialog: the cross keeps its corner. */
[data-call] ~ .wizard-status { margin-right: 3.6rem; }

/* --- Sections -------------------------------------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(5.5rem, 9vw, 9.5rem) clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .46fr); gap: clamp(2rem, 5vw, 6rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 6vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .9;
  text-transform: uppercase;
}
/* A heading that is a whole sentence: smaller, so its words stay whole. */
.section h2.long { max-width: 22ch; font-size: clamp(2rem, 4vw, 4.4rem); letter-spacing: -.045em; line-height: .95; }
.section h2 .accent { color: var(--orange); }
.section-lead { color: var(--cream-soft); margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; }
.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.section-cta span { color: var(--muted); font-size: .9rem; }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper .section-label, .on-paper .section-lead { color: var(--ink-soft); }

/* --- 01 The five directions ------------------------------------------------------------------------------------------ */

.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; padding: 1px; background: rgba(23,19,16,.24); }
.service-card { position: relative; grid-column: span 4; display: flex; flex-direction: column; padding: clamp(1.25rem, 2.4vw, 2rem); background: rgba(248,244,240,.82); overflow: hidden; scroll-margin-top: 90px; }
.service-card.service-feature { grid-column: span 8; }
.service-card.service-dark { background: #191411; color: #f5eee8; }
.service-card-head { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; }
.service-number { padding-top: .32rem; color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { min-width: 0; margin: 0; font-family: var(--font-heading); font-size: clamp(1.55rem, 2.3vw, 2.9rem); line-height: .95; letter-spacing: -.045em; text-transform: uppercase; overflow-wrap: break-word; }
/* A narrow card gives its name the whole line; the price stands under it. */
.service-card:not(.service-feature) .service-card-head { grid-template-columns: auto 1fr; }
.service-card:not(.service-feature) .service-tag { grid-column: 2; padding-top: 0; }
.service-card h3 sup { margin-left: .4em; color: var(--orange); font-family: var(--font-body); font-size: .62rem; font-weight: 900; letter-spacing: .14em; vertical-align: top; }
.service-tag { padding-top: .32rem; color: var(--orange); text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; font-weight: 900; white-space: nowrap; }
.service-demo { flex: 1 0 auto; display: grid; margin: clamp(1.5rem, 3vw, 2.4rem) 0; border: 1px solid var(--line-ink); background: rgba(255,255,255,.46); }
.service-dark .service-demo { border-color: rgba(244,238,233,.2); background: rgba(255,255,255,.035); }
.service-copy { display: grid; gap: .7rem; }
.service-copy > strong { font-family: var(--font-heading); font-size: clamp(1.2rem, 1.55vw, 1.55rem); line-height: 1.12; letter-spacing: -.02em; }
.service-copy p { max-width: 60ch; margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.service-dark .service-copy p, .service-dark .service-facts { color: #bbaea5; }
.service-facts { display: grid; gap: .4rem; margin: .2rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--line-ink); list-style: none; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.service-dark .service-facts { border-color: rgba(244,238,233,.16); }
.service-facts li { position: relative; padding-left: 1.05rem; }
.service-facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; background: var(--orange); }
.service-copy p.service-price { color: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-links { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; }
.service-links .quiet { color: var(--ink-soft); }
.service-dark .service-links .quiet { color: #bbaea5; }
.service-links .quiet:hover { color: var(--orange); }
/* In the wide card the facts stand beside the words. */
.service-feature .service-copy { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.service-feature .service-copy > * { grid-column: 1; }
.service-feature .service-facts { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0 0 0 clamp(1.5rem, 3vw, 3rem); border-top: 0; border-left: 1px solid var(--line-ink); align-self: stretch; align-content: start; }

/* The drawn examples: cells on hairlines, a small label in capitals, the AI's cell dark. */
.demo-label { display: block; color: #8a7d74; font-size: .6rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.service-dark .demo-label { color: #a99b92; }
.demo-label.hot { color: var(--orange); }
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0; padding: .8rem 1rem; border-bottom: 1px solid var(--line-ink); font-size: .78rem; font-weight: 800; }
.service-dark .demo-head { border-color: rgba(244,238,233,.16); }
.demo-head span, .demo-head time { color: var(--orange); font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.demo-msg { max-width: 88%; margin: 0; padding: .6rem .8rem; background: #efe3da; font-size: .82rem; line-height: 1.4; }
.demo-msg.bot { justify-self: end; background: #2b1a13; color: #fff; }
.service-dark .demo-msg { background: rgba(244,238,233,.1); }
.service-dark .demo-msg.bot { background: var(--orange); color: var(--ink); font-weight: 700; }
.demo-src { margin: 0; color: #8a7d74; font-size: .68rem; }
.service-dark .demo-src { color: #a99b92; }

.site-demo { grid-template-columns: 1.15fr .85fr; }
.site-window { display: grid; grid-template-rows: auto auto 1fr; background: #f8f3ee; }
.site-bar { display: flex; align-items: center; gap: .3rem; margin: 0; padding: .6rem .8rem; border-bottom: 1px solid rgba(23,19,16,.14); color: #8a7d74; font-size: .66rem; }
.site-bar i { width: 7px; height: 7px; background: rgba(23,19,16,.22); }
.site-bar span { margin-left: .5rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; padding: .7rem 1rem; border-bottom: 1px solid rgba(23,19,16,.14); font-size: .7rem; color: var(--ink-soft); }
.site-nav b { margin-right: auto; color: var(--ink); }
.site-body { display: grid; align-content: center; gap: 1rem; padding: 1.4rem 1rem; }
.site-body strong { font-family: var(--font-heading); font-size: clamp(1.4rem, 2.6vw, 2.7rem); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.site-body p { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; color: var(--ink-soft); font-size: .72rem; }
.site-body p span:first-child { padding: .5rem .8rem; background: var(--orange); color: var(--ink); font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.site-found { display: grid; grid-template-rows: auto 1fr; border-left: 1px solid var(--line-ink); }
.site-found > div { display: grid; align-content: start; gap: .55rem; padding: 1rem; }
.site-found > div + div { border-top: 1px solid var(--line-ink); }
.site-found .result { margin: 0; font-size: .82rem; line-height: 1.35; }
.site-found .result b { display: block; }
.site-found .result span { color: #8a7d74; font-size: .68rem; }

.chat-demo { align-content: start; }
.chat-demo .talk { display: grid; gap: .55rem; padding: 1rem; }
.chat-demo .lead { display: grid; gap: .6rem; padding: 1rem; border-top: 1px solid rgba(244,238,233,.16); }
.chat-demo dl { display: grid; margin: 0; }
.chat-demo dl div { display: grid; grid-template-columns: 5.2rem 1fr; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid rgba(244,238,233,.13); font-size: .78rem; }
.chat-demo dt { color: #a99b92; }
.chat-demo dd { margin: 0; font-weight: 700; }
.chat-demo .done { margin: 0; color: var(--orange); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.week-demo { align-content: start; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: rgba(23,19,16,.14); }
.week-days li { display: grid; gap: .5rem; justify-items: center; padding: .7rem 0; background: #f8f3ee; color: #8a7d74; font-size: .62rem; font-weight: 800; }
.week-days i { width: 14px; height: 14px; background: var(--orange); }
.week-demo .demo-src { padding: .7rem 1rem; }
.ads-head { border-top: 1px solid var(--line-ink); }
.ads-list { margin: 0; padding: 0; list-style: none; }
.ads-list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(23,19,16,.14); font-size: .76rem; }
.ads-list li:last-child { border-bottom: 0; }
.ads-list b { display: block; }
.ads-list span { color: var(--ink-soft); }
.ads-list em { align-self: end; font-style: normal; font-weight: 800; white-space: nowrap; }
.ads-list i { grid-column: 1 / -1; height: 4px; background: linear-gradient(90deg, var(--orange) var(--w), rgba(23,19,16,.14) var(--w)); }

.video-demo { align-content: start; }
.frames { display: grid; grid-template-columns: 9fr 12.8fr 16fr 28.4fr; gap: .6rem; align-items: end; margin: 0; padding: 1rem; list-style: none; }
.frames li { display: grid; gap: .3rem; font-size: .62rem; color: #8a7d74; line-height: 1.25; }
.frames i { display: block; border: 1px solid rgba(23,19,16,.5); background: rgba(23,19,16,.06); }
.frames li:first-child i { border-color: var(--orange); background: rgba(254,71,22,.16); }
.frames b { color: var(--ink); font-size: .72rem; }
.video-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line-ink); }
.video-steps li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: baseline; padding: .55rem 1rem; border-bottom: 1px solid rgba(23,19,16,.14); font-size: .78rem; counter-increment: step; }
.video-steps li:last-child { border-bottom: 0; }
.video-steps li::before { content: counter(step, decimal-leading-zero); color: var(--orange); font-size: .62rem; font-weight: 900; }

.flow-demo { align-content: start; }
.flow { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(23,19,16,.14); }
.flow li { position: relative; display: grid; gap: .3rem; padding: .85rem 1rem; background: #f8f3ee; font-size: .78rem; }
.flow li b { font-size: .8rem; }
.flow li span { color: var(--ink-soft); }
.flow li.is-ai { background: #2b1a13; color: #fff; }
.flow li.is-ai span { color: var(--orange); font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.flow li.step:not(:last-child)::after { content: ""; position: absolute; z-index: 2; left: 1.4rem; bottom: -.4rem; width: .7rem; height: .7rem; border-right: 1px solid var(--orange); border-bottom: 1px solid var(--orange); background: inherit; transform: rotate(45deg); }
.flow li.out { grid-template-columns: 6.2rem 1fr; align-items: baseline; }

/* --- 02 The projects -------------------------------------------------------------------------------------------------- */

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work-card { display: grid; align-content: start; gap: clamp(1.5rem, 3vw, 2.6rem); padding: clamp(1.25rem, 2.4vw, 2.2rem); background: var(--bg); }
.work-wide { grid-column: span 8; grid-row: span 2; }
.work-side { grid-column: span 4; }
.work-next { grid-column: span 4; align-content: space-between; background: var(--bg-soft); }
.work-next p { margin: 0; font-family: var(--font-heading); font-size: clamp(1.5rem, 2.4vw, 2.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; text-transform: uppercase; }
.work-next .button { justify-self: start; }
.work-type { margin: 0 0 .9rem; color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 900; }
.work-card h3 { margin: 0; font-family: var(--font-heading); font-size: clamp(1.25rem, 1.8vw, 1.9rem); line-height: 1.1; letter-spacing: -.025em; }
.work-facts { display: grid; margin: 1.3rem 0 0; border-top: 1px solid var(--line); }
.work-facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.work-facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; padding-top: .2rem; }
.work-facts dd { margin: 0; color: var(--cream-soft); font-size: .95rem; }
.work-card .text-link { display: inline-block; margin-top: 1.1rem; }
.work-shots { position: relative; margin: 0; padding: 0 clamp(2.2rem, 5vw, 4.5rem) clamp(1.2rem, 2.4vw, 2.2rem) 0; }
.work-side .work-shots { padding-right: 2.6rem; }
.shot { display: block; border: 1px solid var(--line-strong); background: #100e0d; }
.shot.desk::before { content: ""; display: block; height: 22px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(244,238,233,.3) 0 7px, transparent 7px 12px, rgba(244,238,233,.3) 12px 19px, transparent 19px 24px, rgba(244,238,233,.3) 24px 31px, transparent 31px) 10px 50% / 31px 7px no-repeat; }
.shot img { width: 100%; height: auto; }
.shot.phone { position: absolute; right: 0; bottom: 0; width: 24%; aspect-ratio: 780 / 1500; overflow: hidden; border-color: rgba(254,71,22,.7); box-shadow: var(--shadow); }
.work-side .shot.phone { width: 27%; }
.shot.phone img { height: 100%; object-fit: cover; object-position: top; }

/* --- 03 The partnership ----------------------------------------------------------------------------------------------- */

.partner { background: var(--bg-soft); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.process-card { min-height: 300px; position: relative; display: flex; flex-direction: column; padding: 2rem; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(244,238,233,.04), transparent 70%); }
.process-card:last-child { border-right: 0; }
.process-card .number { color: var(--orange); font-family: var(--font-heading); font-size: 3.8rem; font-weight: 800; line-height: 1; }
.process-card h3 { margin: auto 0 .8rem; padding-top: 3rem; font-family: var(--font-heading); font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.process-card p { color: var(--muted); margin: 0; }

/* --- 04 About us ------------------------------------------------------------------------------------------------------ */

.about { overflow: hidden; }
.about::before { content: "04"; position: absolute; top: 2rem; right: -1.5rem; color: transparent; -webkit-text-stroke: 1px rgba(254,71,22,.22); font-family: var(--font-heading); font-size: clamp(15rem, 32vw, 34rem); font-weight: 800; line-height: .8; pointer-events: none; }
.about-shell { position: relative; border: 1px solid var(--line); box-shadow: var(--shadow); }
.signal-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.signal { min-height: 220px; display: flex; flex-direction: column; padding: clamp(1.25rem, 2.2vw, 2rem); background: #100e0d; }
.signal span { color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 900; }
.signal p { margin: auto 0 0; padding-top: 2rem; color: var(--cream-soft); }

/* --- 05 Questions ------------------------------------------------------------------------------------------------------ */

.faq .section-lead button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--orange); font-weight: 800; cursor: pointer; }
.faq-list { border-top: 1px solid rgba(23,19,16,.25); }
.faq-item { border-bottom: 1px solid rgba(23,19,16,.25); }
.faq-question { width: 100%; display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: center; padding: 1.5rem 0; color: var(--ink); background: transparent; border: 0; text-align: left; cursor: pointer; }
.faq-number { color: var(--orange); font-size: .72rem; font-weight: 900; }
.faq-question strong { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.3vw, 2.3rem); line-height: 1.05; letter-spacing: -.035em; text-transform: uppercase; }
.faq-icon { font-size: 1.7rem; transition: transform .2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 4.2rem 1.6rem; max-width: 900px; color: #5d544e; font-size: 1.05rem; }

/* --- Contacts ---------------------------------------------------------------------------------------------------------- */

.contact-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(420px, .72fr); gap: clamp(2.5rem, 7vw, 9rem); align-items: start; }
.contact-copy h2 { max-width: 9ch; }
.contact-copy h2.long { max-width: 16ch; }
.contact-copy .section-lead { max-width: 34ch; margin-top: 2rem; }
.reach { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: #0f0d0c; }
.reach li { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center; min-height: 86px; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.reach li:last-child { border-bottom: 0; }
.reach li > span { color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 900; }
.reach li > b { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.reach li > b.plain { color: var(--cream-soft); font-family: var(--font-body); font-size: .9rem; font-weight: 400; }

/* --- Footer ------------------------------------------------------------------------------------------------------------ */

.site-footer { padding: 3.5rem clamp(1.25rem, 4vw, 4rem) 6.5rem; border-top: 1px solid var(--line); background: #080706; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.footer-description { max-width: 60ch; color: var(--muted); font-size: .86rem; }
.footer-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; margin-top: 2.8rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.footer-group h2 { margin: 0 0 1rem; color: var(--cream-soft); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 900; }
.footer-group ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .86rem; }
.footer-group ul + ul { margin-top: 1.1rem; }
.footer-group a:hover { color: var(--orange); }
.footer-group b { color: var(--cream); }
.footer-group sup { margin-left: .35em; color: var(--orange); font-size: .58rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom { max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

/* --- Dialogs ----------------------------------------------------------------------------------------------------------- */

.site-dialog {
  width: min(94vw, 620px);
  max-height: 92vh;
  color: var(--cream);
  background: var(--bg-soft);
  border: 1px solid rgba(254,71,22,.75);
  border-radius: 0;
  padding: 0;
  box-shadow: var(--shadow);
}
.site-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.dialog-inner { position: relative; padding: clamp(1.4rem, 4vw, 2.5rem); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; color: var(--cream); background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 1.25rem; }
.dialog-close:hover { color: var(--orange); border-color: var(--orange); }
.dialog-title { padding-right: 3.5rem; font-size: clamp(1.9rem, 5vw, 3rem); line-height: .92; letter-spacing: -.05em; }
.dialog-topic { margin: .9rem 0 0; color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 900; }
.dialog-lead { color: var(--muted); margin: .7rem 0 1.5rem; }
.dialog-form { display: grid; gap: .9rem; }
.dialog-form .button { width: 100%; margin-top: .3rem; }
.dialog-form .form-error { margin: 0; }
.dialog-form .wizard-note { margin: 0; }
.dialog-form .choice-grid { grid-template-columns: repeat(3, 1fr); }
.dialog-form .choice-grid.days { grid-template-columns: 1fr 1fr; }
.dialog-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-row .wizard-note { flex: 1; }
.dialog-top { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; padding-right: 3.5rem; }
.dialog-top + .wizard-progress { margin: 1rem 0 1.5rem; }
.dialog-form h3 { margin: 0; font-family: var(--font-heading); font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.05; text-transform: uppercase; }
.dialog-when { margin: 0; color: var(--orange); font-size: .8rem; font-weight: 800; }
.run { display: grid; margin: 0 0 1.2rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.run li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .8rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.run li::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--line-strong); }
.run li[data-state="running"] { color: var(--cream); }
.run li[data-state="running"]::before { border-color: var(--orange); background: rgba(254,71,22,.3); }
.run li[data-state="done"] { color: var(--cream-soft); }
.run li[data-state="done"]::before { border-color: var(--orange); background: var(--orange); }

/* --- Johann: the chat's button and its window --------------------------------------------------------------------------- */

.chat-launcher { position: fixed; z-index: 70; right: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .75rem; min-width: 178px; min-height: 64px; padding: .7rem 1rem; border: 1px solid #ff7650; border-radius: 0; background: var(--orange); color: var(--ink); box-shadow: 0 14px 48px rgba(12,10,9,.38); cursor: pointer; text-align: left; }
.chat-launcher:hover { background: #ff6a3d; }
.chat-launcher-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid currentColor; }
.chat-launcher-mark i { width: 25px; height: 25px; background: currentColor; -webkit-mask: url("assets/mark.png") center / contain no-repeat; mask: url("assets/mark.png") center / contain no-repeat; }
.chat-launcher strong, .chat-launcher small { display: block; }
.chat-launcher strong { font-size: 1rem; }
.chat-launcher small { margin-top: .12rem; font-size: .72rem; font-weight: 750; }
.chat-panel { position: fixed; z-index: 71; right: 1.25rem; bottom: 1.25rem; display: grid; grid-template-rows: auto auto 1fr auto; width: min(440px, calc(100vw - 2rem)); height: min(620px, calc(100dvh - 2rem)); border: 1px solid #56392e; background: #15110f; color: #f6efe9; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.chat-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: 1.15rem 1.2rem; border-bottom: 1px solid #51372c; }
.chat-avatar { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--orange); color: var(--orange); }
.chat-avatar i { width: 30px; height: 30px; background: currentColor; -webkit-mask: url("assets/mark.png") center / contain no-repeat; mask: url("assets/mark.png") center / contain no-repeat; }
.chat-header strong, .chat-header small { display: block; }
.chat-header strong { font-size: 1.35rem; }
.chat-header small { margin-top: .25rem; color: #c6b4a7; font-size: .82rem; }
.chat-header small i { display: inline-block; width: .55rem; height: .55rem; margin-right: .35rem; border-radius: 50%; background: #42cf72; box-shadow: 0 0 0 3px rgba(66,207,114,.16); }
.chat-close { width: 42px; height: 42px; border: 0; background: transparent; color: #f6efe9; font-size: 2rem; line-height: 1; cursor: pointer; }
.chat-disclosure { margin: 1rem 1.2rem 0; padding: .8rem 1rem; border: 1px solid #5c4338; color: #c8b6a9; font-size: .8rem; line-height: 1.45; text-align: center; }
.chat-log { overflow-y: auto; padding: 1rem 1.2rem .25rem; }
.chat-message > span { color: #ff8c67; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chat-message p { margin: .35rem 0 0; padding: .8rem 1rem; background: #231914; font-size: .94rem; line-height: 1.58; }
.chat-form { display: grid; grid-template-columns: 1fr 52px; gap: .5rem; padding: .75rem; border-top: 1px solid #5b3d31; }
.chat-form input { min-width: 0; height: 50px; padding: 0 .9rem; border: 1px solid #7a4a3a; border-radius: 0; background: #0f0c0b; color: #fff; }
.chat-form input::placeholder { color: #8f7e72; }
.chat-form button { border: 0; background: #91331f; color: #fff; font-size: 1.35rem; cursor: pointer; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Narrower screens --------------------------------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-actions { display: none; }
  .menu-button { display: block; }
}

@media (max-width: 1180px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 2rem; }
  .hero h1 { max-width: calc(var(--word) * 1em); font-size: clamp(2.5rem, 7vw, 5rem); }
  .wizard { max-width: 720px; scroll-margin-top: 96px; }
  .hero-talk { display: inline-flex; }
  .hero-inner > .wizard { justify-self: start; }
  .section-head { grid-template-columns: 1fr; }
  .service-card { grid-column: span 6; }
  .service-card.service-feature { grid-column: span 12; }
  .work-wide, .work-side, .work-next { grid-column: span 12; grid-row: auto; }
  .signal-list { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .site-header { min-height: 74px; padding-inline: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-words { font-size: .76rem; }
  .hero { padding: 7.4rem 1rem 3rem; }
  .hero-grid-lines { top: 74px; }
  .hero::before { background-position: 62% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(12,10,9,.8) 0%, rgba(12,10,9,.94) 43%, rgba(12,10,9,1) 100%); }
  .hero h1 { font-size: clamp(1.6rem, calc((100vw - 2rem) / var(--word)), 3.6rem); }
  .hero-intro { font-size: 1rem; }
  .hero-acts .button, .hero-acts .button-outline { width: 100%; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { min-height: 54px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-proof div:last-child { border-bottom: 0; }
  .choice-grid, .dialog-form .choice-grid { grid-template-columns: 1fr; }
  .dialog-form .choice-grid.times { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 4.5rem 1rem; }
  .section h2 { font-size: clamp(2.5rem, 13vw, 4.6rem); }
  .section h2.long { font-size: clamp(1.85rem, 8.4vw, 3rem); }
  .service-card, .service-card.service-feature { grid-column: span 12; }
  .service-card { padding: 1.2rem; }
  .service-card-head { grid-template-columns: auto 1fr; }
  .service-card-head .service-tag { grid-column: 2; padding-top: 0; }
  .service-feature .service-copy { grid-template-columns: 1fr; }
  .service-feature .service-facts { grid-column: 1; grid-row: auto; margin: .2rem 0 0; padding: .9rem 0 0; border-left: 0; border-top: 1px solid var(--line-ink); }
  .site-demo { grid-template-columns: 1fr; }
  .site-found { border-left: 0; border-top: 1px solid var(--line-ink); }
  .work-facts div { grid-template-columns: 1fr; gap: .2rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-card:last-child { border-bottom: 0; }
  .process-card h3 { padding-top: 2.2rem; }
  .about::before { display: none; }
  .signal-list { grid-template-columns: 1fr; }
  .signal { min-height: 0; }
  .faq-question { grid-template-columns: 2.1rem 1fr auto; }
  .faq-answer { padding: 0 0 1.5rem 3.1rem; }
  .contact-layout { display: block; }
  .contact .reach { margin-top: 2.5rem; }
  .contact .section-cta > a { width: 100%; }
  .reach li { grid-template-columns: 1fr auto; padding: 1rem; }
  .reach li > span { grid-column: 1 / -1; }
  .footer-groups { grid-template-columns: 1fr 1fr; }
  .chat-launcher { right: .8rem; bottom: .8rem; min-width: 154px; min-height: 56px; }
  .chat-panel { inset: 0; width: 100vw; height: 100dvh; max-width: none; }
}

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