/* MA IT-Solutions, make-over 2026-11. Direction "Ein Motiv": the ring from the logo is the one motif. */

@font-face { font-family: "League Spartan"; src: url("/fonts/league-spartan-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0E2033; --navy-surface: #182F47; --light: #EAF1FA; --light-surface: #DCE6F2;
  --muted-on-navy: #9FB1C6; --muted-on-light: #4A5E74;
  --orange: #FF4A1F; --orange-hover: #FF5C36; --danger: #C3321B; --success: #1F8A5B;

  --bg: var(--light); --surface: var(--light-surface); --ink: var(--navy); --muted: var(--muted-on-light);
  --action: var(--navy); --action-ink: var(--light); --action-hover: var(--navy-surface); --focus: var(--navy);

  --font-display: "League Spartan", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-text: Figtree, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 1rem + 7vw, 8rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(.75rem, 1.4vw, 1.5rem);
  --section: clamp(4.5rem, 10vw, 10rem);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

.field-navy, .site-header, .site-footer, .page-head {
  color-scheme: dark;
  --bg: var(--navy); --surface: var(--navy-surface); --ink: var(--light); --muted: var(--muted-on-navy);
  --action: var(--orange); --action-ink: var(--navy); --action-hover: var(--orange-hover); --focus: var(--orange);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 0; } /* header is not sticky: anchors land flush at the section top */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, address, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
address { font-style: normal; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: .88; text-wrap: balance; hyphens: none; }
h1, h2 { padding-top: .08em; }
p { max-width: 62ch; text-wrap: pretty; }
::selection { background: var(--orange); color: var(--navy); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--margin); top: -4rem; z-index: 50; background: var(--orange); color: var(--navy); padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: .75rem; }

.field-navy { background: var(--navy); color: var(--ink); }
.field-light { background: var(--light); color: var(--navy); }
.field-deep { background: var(--navy-surface); }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--section); }
.muted { color: var(--muted); }
.lead { font-size: var(--step-lead); line-height: 1.35; }

/* buttons: the one button shape is fully round (the motif) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 3rem; padding: 0 1.5rem; border: 0; border-radius: 999px; background: var(--action); color: var(--action-ink); font: 600 var(--step-body)/1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 120ms var(--ease), transform 120ms var(--ease); }
.btn:hover { background: var(--action-hover); }
.btn:active { transform: scale(.97); }
.btn-secondary { background: var(--surface); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); filter: brightness(1.12); }
.btn-lg { min-height: 3.25rem; padding: 0 1.75rem; }
@media (max-width: 380px) { .btn { max-width: 100%; white-space: normal; padding-block: .6rem; line-height: 1.2; text-align: center; } }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 120ms var(--ease); }
.text-link { text-decoration-color: currentColor; }
.text-link:hover { text-decoration-thickness: 3px; }

/* small ring: bullet in text size */
.ring-list li { position: relative; padding-left: 1.6em; }
.ring-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: .82em; height: .82em; border: .2em solid currentColor; border-radius: 50%; }
.field-navy .ring-list li::before { border-color: var(--orange); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; background: var(--navy); color: var(--ink); }
.site-header .container { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); padding: 1rem var(--margin); }
.brand { display: block; flex: none; }
.brand img { width: clamp(130px, 12vw, 168px); height: auto; }
.brand .logo-dark { display: none; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin-left: auto; }
.nav-list { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.nav-link { display: inline-block; padding: .6rem 0; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 120ms var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration-color: currentColor; }
.lang-switch { padding: .6rem .2rem; font-weight: 600; text-decoration: none; }
.lang-switch:hover { text-decoration: underline; }
.lang-group { display: inline-flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; margin-left: auto; min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 1rem/1 var(--font-text); cursor: pointer; }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; position: fixed; inset: 0; z-index: 40; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem; padding: 6rem var(--margin) 3rem; margin: 0; background: var(--navy); }
  .js .nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; gap: .5rem; }
  .js .nav-link { font-family: var(--font-display); font-size: clamp(2.25rem, 9vw, 3.5rem); letter-spacing: -.04em; line-height: 1.05; }
  .js .nav-toggle { position: relative; z-index: 41; }
  .no-js-wrap .nav, html:not(.js) .nav { flex-wrap: wrap; margin-left: 0; width: 100%; }
  html:not(.js) .site-header .container { flex-wrap: wrap; }
}

/* ---------- hero: one giant orange ring, cropped by the edge ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 5rem); display: grid; align-content: center; padding: clamp(3rem, 8vh, 6rem) var(--margin) clamp(4rem, 10vh, 7rem); }
.hero-ring { position: absolute; top: 50%; right: -38vh; width: 118vh; height: 118vh; transform: translateY(-50%); border: clamp(48px, 9vh, 110px) solid var(--orange); border-radius: 50%; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 7vw, 7rem); }
.hero .lead { margin-top: 2rem; max-width: 34ch; }
.hero-ring { top: 60%; right: -52vh; width: 104vh; height: 104vh; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (max-width: 760px) {
  .hero { min-height: 0; align-content: start; padding-top: 2.5rem; padding-bottom: 46vw; }
  .hero-ring { top: auto; bottom: -38vw; right: -24vw; width: 92vw; height: 92vw; transform: none; border-width: 15vw; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: 8.4vw; }
}

/* ---------- why: heading left, three arguments right ---------- */
.why .head { grid-column: 1 / span 5; }
.why .head h2 { font-size: var(--step-head); }
.why .head p { margin-top: 1.75rem; }
.why .points { grid-column: 7 / span 6; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.why .points h3 { font-family: var(--font-text); font-weight: 600; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.25; }
.why .points p { margin-top: .5rem; }
.why .points li::before { top: .3em; width: 1.1rem; height: 1.1rem; border-width: 4px; }
.why .points li { padding-left: 2.25rem; }
@media (max-width: 900px) { .why .head, .why .points { grid-column: 1 / -1; } .why .points { margin-top: 3rem; } }

/* ---------- services: an index of six rows ---------- */
.services .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.services .head h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.services .head p { grid-column: 8 / span 5; color: var(--muted); }
.service-list { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(2rem, 3.5vw, 3rem); }
.service { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; }
.service h3 { grid-column: 1 / span 5; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1; position: relative; padding-left: clamp(2rem, 3vw, 2.75rem); }
.service h3::before { content: ""; position: absolute; left: 0; top: .12em; width: .6em; height: .6em; border: .14em solid var(--orange); border-radius: 50%; }
.service h3, .service p { grid-row: 1; }
.service p { grid-column: 6 / span 4; }
.service .tags { grid-column: 10 / span 3; color: var(--muted); font-size: var(--step-small); line-height: 1.6; }
@media (max-width: 900px) {
  .services .head h2, .services .head p { grid-column: 1 / -1; }
  .services .head p { margin-top: 1.5rem; }
  .service h3, .service p, .service .tags { grid-column: 1 / -1; grid-row: auto; }
  .service p { margin-top: .75rem; }
  .service .tags { margin-top: .5rem; }
}

/* ---------- process: the logo's line with rings, plus "where are you" ---------- */
.process .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; }
.process .head h2 { grid-column: 1 / span 6; font-size: var(--step-head); }
.process .head p { grid-column: 8 / span 5; align-self: end; }
.steps { position: relative; margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.steps::before { content: ""; position: absolute; top: 1.4rem; left: 1.4rem; right: calc(25% - 1.4rem); height: 6px; margin-top: -3px; background: var(--navy); }
.step { position: relative; padding-top: 4.5rem; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 2.8rem; height: 2.8rem; box-sizing: border-box; border: 7px solid var(--navy); border-radius: 50%; background: var(--light); transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.step h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); line-height: 1; }
.step p { margin-top: .75rem; max-width: 30ch; }
.chooser { margin-top: clamp(4rem, 8vw, 6rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); }
.chooser h3 { grid-column: 1 / span 5; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1; }
.chooser fieldset { grid-column: 1 / span 5; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chooser legend { padding: 0; margin-bottom: .75rem; color: var(--muted); font-size: var(--step-small); }
.chooser input { position: absolute; opacity: 0; pointer-events: none; }
.chooser label { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; background: var(--light); font-weight: 600; cursor: pointer; transition: background-color 120ms var(--ease), color 120ms var(--ease); }
.chooser label:hover { background: #fff; }
.chooser input:checked + label { background: var(--navy); color: var(--light); }
.chooser input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 3px; }
.answers { grid-column: 7 / span 6; grid-row: 1 / span 2; }
.answer { display: none; }
.answer p + p { margin-top: .75rem; }
.answer .btn { margin-top: 1.5rem; }
.chooser:has(#start-idee:checked) .a-idee,
.chooser:has(#start-unklar:checked) .a-unklar,
.chooser:has(#start-bestand:checked) .a-bestand { display: block; }
@supports not selector(:has(*)) { .answer { display: block; margin-bottom: 2rem; } }
.process:has(#start-idee:checked) .step-1::before,
.process:has(#start-unklar:checked) .step-1::before,
.process:has(#start-bestand:checked) .step-2::before { background: var(--orange); border-color: var(--navy); }
@media (max-width: 900px) {
  .process .head h2, .process .head p { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .steps::before { top: 1.4rem; bottom: 1.4rem; left: 1.4rem; right: auto; width: 6px; height: auto; margin: 0 0 0 -3px; }
  .step { padding-top: 0; padding-left: 4.25rem; min-height: 2.8rem; }
  .chooser h3, .chooser fieldset, .answers { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- references: who we worked for ---------- */
.refs .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; }
.refs .head h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.refs .head p { grid-column: 8 / span 5; align-self: end; color: var(--muted); }
/* client logos: single-colour light versions (images/kunden/mono/, made by _build/mono_logos.py) on the navy field.
   --s is the optical correction per mark, so wide or heavy logos do not outweigh light or tall ones */
.logos { --logo-h: clamp(30px, 2.8vw, 42px); margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) var(--gutter); align-items: center; justify-items: start; }
.logos img { --s: 1; height: calc(var(--logo-h) * var(--s)); width: auto; max-width: calc(100% - 1rem); opacity: .92; }
.logos .s65 { --s: .65; } .logos .s70 { --s: .7; } .logos .s80 { --s: .8; } .logos .s85 { --s: .85; } .logos .s90 { --s: .9; }
.logos .s105 { --s: 1.05; } .logos .s110 { --s: 1.1; } .logos .s125 { --s: 1.25; }
.audiences { margin-top: clamp(4rem, 8vw, 6rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.audiences h3 { font-family: var(--font-text); font-weight: 600; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.25; }
.audiences p { margin-top: .5rem; color: var(--muted); }
.sectors { margin-top: 2.5rem; color: var(--muted); font-size: var(--step-small); }
@media (max-width: 900px) {
  .refs .head h2, .refs .head p { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audiences { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- about: the one photo in the circle ---------- */
.about { align-items: center; }
.about .copy { grid-column: 1 / span 6; }
.about .copy h2 { font-size: var(--step-head); }
.about .copy > p { margin-top: 1.5rem; }
.about .copy > p:first-of-type { margin-top: 2rem; }
.about .copy .text-link { display: inline-block; margin-top: 1.75rem; }
/* the logo's mark inside the ring, in place of a photo until MA has its own */
.about-mark { grid-column: 8 / span 5; aspect-ratio: 1; border: clamp(28px, 3.6vw, 56px) solid var(--orange); border-radius: 50%; display: grid; place-items: center; }
.about-mark img { width: 34%; height: auto; }
.about .facts { grid-column: 1 / -1; margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.about .facts strong { display: block; font-size: var(--step-lead); line-height: 1.25; }
.about .facts span { display: block; margin-top: .4rem; }
@media (max-width: 900px) {
  .about .copy { grid-column: 1 / -1; }
  .about-mark { grid-column: 1 / -1; margin-top: 3rem; width: 72%; max-width: 24rem; justify-self: center; }
  .about .facts { grid-template-columns: 1fr; }
}

/* ---------- faq ---------- */
.faq-wrap { align-items: start; }
.faq-wrap h2 { grid-column: 1 / span 4; font-size: var(--step-head); position: sticky; top: 2rem; }
.faq { grid-column: 6 / span 7; }
.faq details { padding-block: 1.1rem; }
.faq details + details { margin-top: .25rem; }
.faq summary { position: relative; list-style: none; cursor: pointer; padding-left: 2.25rem; font-weight: 600; font-size: var(--step-lead); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border: 4px solid var(--orange); border-radius: 50%; transition: background-color 200ms var(--ease); }
.faq details[open] summary::before { background: var(--orange); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.faq-body { padding: .75rem 0 .5rem 2.25rem; }
@media (max-width: 900px) { .faq-wrap h2, .faq { grid-column: 1 / -1; } .faq-wrap h2 { position: static; margin-bottom: 2rem; } }

/* ---------- closing scene and footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: var(--ink); padding: var(--section) var(--margin) 2rem; }
.close { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.close h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.close p { grid-column: 1 / span 6; }
.close .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.close-ring { position: absolute; top: calc(var(--section) * .4); right: -9vw; width: 38vw; height: 38vw; border: clamp(24px, 3.4vw, 52px) solid var(--orange); border-radius: 50%; pointer-events: none; }
.site-footer--plain { padding-top: clamp(3rem, 6vw, 5rem); }
.site-footer--plain .footer-info { margin-top: 0; }
.footer-info { position: relative; z-index: 1; margin-top: clamp(5rem, 10vw, 9rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.footer-info > div { grid-column: span 3; }
.footer-info h2 { font-family: var(--font-text); font-size: var(--step-body); font-weight: 600; letter-spacing: 0; line-height: 1.5; padding: 0; }
.footer-info a { text-decoration-color: transparent; }
.footer-info a:hover { text-decoration-color: currentColor; }
.footer-info p, .footer-info address, .footer-info ul { margin-top: .5rem; color: var(--muted); }
.footer-info a { color: var(--ink); }
.wordmark { position: relative; z-index: 1; margin-top: clamp(3rem, 6vw, 5rem); font-family: var(--font-display); font-weight: 700; letter-spacing: -.045em; line-height: .8; font-size: clamp(3rem, 11.6vw, 13rem); white-space: nowrap; }
.footer-meta { position: relative; z-index: 1; margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; color: var(--muted); font-size: var(--step-small); }
.footer-meta p { max-width: none; }
@media (max-width: 900px) {
  .close h2, .close p { grid-column: 1 / -1; }
  .close-ring { top: auto; bottom: 34%; right: -30vw; width: 70vw; height: 70vw; border-width: 11vw; opacity: 1; }
  .footer-info > div { grid-column: span 6; }
}
@media (max-width: 520px) { .footer-info > div { grid-column: 1 / -1; } .wordmark { font-size: 13.4vw; } }

/* ---------- inner pages: page head, prose, contact, 404 ---------- */
.page-head { position: relative; overflow: hidden; background: var(--navy); color: var(--light); padding: clamp(3rem, 8vw, 6rem) var(--margin) clamp(3rem, 7vw, 5.5rem); }
.page-head h1 { position: relative; z-index: 1; font-size: clamp(2.4rem, 1rem + 5vw, 6rem); max-width: 74vw; }
@media (max-width: 760px) { .page-head h1 { max-width: none; font-size: clamp(2rem, 9vw, 3rem); } }
.page-head p { position: relative; z-index: 1; margin-top: 1.25rem; color: var(--muted-on-navy); }
.page-head .lead { color: var(--light); max-width: 46ch; }
.page-ring { position: absolute; top: 50%; right: -12vw; width: 34vw; height: 34vw; min-width: 220px; min-height: 220px; transform: translateY(-50%); border: clamp(22px, 3vw, 44px) solid var(--orange); border-radius: 50%; pointer-events: none; }
@media (max-width: 760px) { .page-ring { top: auto; bottom: -110px; transform: none; right: -100px; width: 220px; height: 220px; border-width: 30px; } .page-head { padding-bottom: 7rem; } }
.container { padding-inline: var(--margin); }
.page-head .container, .section .container.prose { padding-inline: 0; }
.prose { max-width: 46rem; }
.section > .container.prose { margin-left: var(--margin); padding-right: var(--margin); }
.prose h2 { margin-top: 3rem; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); line-height: 1.05; }
.prose h3 { margin-top: 2rem; font-family: var(--font-text); font-weight: 600; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.25; }
.prose h4 { margin-top: 1.5rem; font-weight: 600; }
.prose p, .prose ul, .prose ol { margin-top: 1rem; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.6em; }
.prose ul li + li { margin-top: .35rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .42em; width: .7em; height: .7em; border: .17em solid currentColor; border-radius: 50%; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose a { overflow-wrap: anywhere; }
.prose .mt-4 { margin-top: 0; }
.prose > h1 { font-size: var(--step-head); }
.prose .lead { margin-top: 1.5rem; }
.prose .mt-8 { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; align-items: start; }
.contact-aside { grid-column: 1 / span 4; display: grid; gap: 2.5rem; }
.contact-grid > div { grid-column: 6 / span 7; }
.contact-aside h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); line-height: 1; }
.contact-aside .card { display: grid; gap: 1rem; }
.contact-aside .card:first-child { padding: clamp(1.5rem, 3vw, 2rem); background: var(--surface); }
.contact-line { position: relative; padding-left: 1.6em; }
.contact-line::before { content: ""; position: absolute; left: 0; top: .42em; width: .7em; height: .7em; border: .17em solid var(--navy); border-radius: 50%; }
.contact-line .small { font-size: var(--step-small); }
.contact-aside .btn { justify-self: start; margin-top: .5rem; }
@media (max-width: 900px) { .contact-aside, .contact-grid > div { grid-column: 1 / -1; } .contact-grid > div { order: -1; } }

.form { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem var(--gutter); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field > label, .checkbox label { font-weight: 600; }
.req { font-weight: 400; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 3rem; padding: .75rem; border: 2px solid transparent; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; }
.textarea { min-height: 10rem; resize: vertical; }
.select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2033' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hint { color: var(--muted); font-size: var(--step-small); }
.error { display: none; color: var(--danger); font-size: var(--step-small); font-weight: 600; }
.field.is-invalid .error, .is-invalid + .error, .checkbox.is-invalid + .error { display: block; }
.field.is-invalid .input, .field.is-invalid .textarea { border-color: var(--danger); }
.error svg { display: none; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.checkbox input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--navy); }
.checkbox label { font-weight: 400; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: visually hidden honeypot, not a rule */
.alert { display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: 1rem 1.25rem; background: var(--surface); }
.alert svg { width: 1.4rem; height: 1.4rem; }
.alert strong { display: block; }
.alert-success svg { color: var(--success); }
.alert-danger svg { color: var(--danger); }
#submit-btn svg, .contact-line svg { display: none; }

/* ---------- motion (content is visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* text never starts below full opacity: the reveal is only a short rise, so a missed observer leaves content fully readable */
  .js .reveal { transform: translateY(14px); transition: transform 600ms var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
  .js .reveal.is-visible { transform: none; }
  .js .hero-ring { animation: ring-in 1200ms var(--ease) both; }
  .js .hero-copy > * { animation: rise 800ms var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 90ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .js .close-ring.is-visible, .js .page-ring { animation: ring-in 1200ms var(--ease) both; }
  .answer { animation: rise 320ms var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ring-in { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
.d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; }
