/* WERKRAUM17: BMW-dominant cinematic photography, historical workshop identity.
   Exact measured reference + documented adaptations: build-notes/websites-2026-10-10/werkraum/direction.md.
   The unmodified BMW @theme is the starting token set; native CSS uses the corresponding :root below. */
@theme {
  --color-canvas: #262626;
  --color-surface: #000000;
  --color-cyan: #1c69d4;
  --color-text-inverse: #f2f2f2;
  --color-text-inverse-2: #ffffff;
  --font-bmwtypenextweb: 'bmwTypeNextWeb', system-ui, sans-serif;
  --text-display: 48px;
  --leading-display: 1.04;
  --text-heading-xl: 35px;
  --leading-heading-xl: 1.43;
  --text-heading-lg: 28px;
  --leading-heading-lg: 1.43;
  --text-heading: 23px;
  --leading-heading: 1.57;
  --text-heading-sm: 20px;
  --leading-heading-sm: 1.2;
  --text-subheading: 18px;
  --leading-subheading: 1.56;
  --text-subheading-2: 15px;
  --leading-subheading-2: 1.6;
  --text-body: 12px;
  --leading-body: 1.5;
  --radius-button: 3px;
  --shadow-button-1: rgb(242, 242, 242) 0px 0px 0px 1px inset;
  --shadow-button-2: rgb(38, 38, 38) 0px 0px 0px 1px inset;
  --shadow-button-3: rgba(0, 0, 0, 0.16) 0px 6px 20px 0px, rgba(0, 0, 0, 0.24) 0px 0px 1px 0px;
}
@font-face { font-family: "Plex"; src: url("/assets/IBMPlexSans-Latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 100 700; font-display: swap; unicode-range: U+2190-2199; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  color-scheme: dark;
  --canvas: #262626;
  --surface: #000000;
  --text: #f2f2f2;
  --white: #ffffff;
  --accent: #ff5a26;
  --muted: #b8bab0;
  --line: #53554b;
  --max: 1424px;
  --gutter: 48px;
  --section: 88px;
  --sans: "Plex", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 16px/1.5 var(--sans); letter-spacing: 0.005em; font-synthesis: none; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: 48px; font-weight: 500; line-height: 1.04; letter-spacing: 0; }
h3 { font-size: 28px; font-weight: 500; line-height: 1.43; letter-spacing: 0; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.label { font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.lead { font-size: 18px; line-height: 1.56; }
.muted { color: var(--muted); }
.section { padding-block: var(--section); }
.skip { position: absolute; top: -160px; left: 16px; z-index: 10; min-height: 44px; padding: 12px 16px; background: var(--white); color: var(--surface); }
.skip:focus { top: 12px; }
.signal { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--accent); }
.demo { background: var(--canvas); color: var(--muted); font-size: 12px; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.demo p { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.demo strong { color: var(--text); font-weight: 500; }
.demo nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.demo a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.demo a:hover { color: var(--white); text-decoration: underline; }
.top { background: var(--surface); }
.top-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 88px; }
.brand { display: inline-flex; min-height: 44px; flex-direction: column; justify-content: center; text-decoration: none; }
.brand > span, .foot-brand { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.026em; }
.brand-number { display: inline-block; margin-left: 8px; color: var(--accent); }
.brand small { font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nav { justify-self: end; display: flex; flex-wrap: wrap; gap: 0 32px; font-size: 16px; }
.nav a, .header-contact { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.header-contact { gap: 16px; padding-inline: 20px; border: 1px solid var(--line); border-radius: 3px; }
.header-contact span { color: var(--accent); }
.header-contact:hover { border-color: var(--text); }
.photo { position: relative; isolation: isolate; overflow: hidden; background: var(--canvas); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ai-label { position: absolute; z-index: 3; right: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 4px 8px; background: var(--surface); color: var(--white); font: 500 12px/1.5 var(--sans); letter-spacing: 0; white-space: nowrap; }
.hero { position: relative; isolation: isolate; background: var(--surface); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { object-position: 60% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(0 0 0 / 0.92) 0%, rgb(0 0 0 / 0.76) 25%, rgb(0 0 0 / 0) 68%), linear-gradient(0deg, rgb(0 0 0 / 0.52), rgb(0 0 0 / 0) 40%); }
.hero-copy { position: relative; z-index: 2; min-height: 704px; padding-block: 64px 88px; pointer-events: none; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--text); }
.hero h1 { max-width: 9em; margin-top: 24px; color: var(--white); font-size: clamp(48px, 5vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.026em; text-transform: uppercase; text-wrap: nowrap; }
.hero h1 > span { display: block; }
.hero-intro { max-width: 352px; margin-top: 40px; }
.hero-intro > p + p { margin-top: 8px; }
.hero-intro .lead { font-weight: 500; }
.hero-intro .button { margin-top: 24px; pointer-events: auto; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 56px; padding: 12px 24px; border-radius: 3px; text-decoration: none; font-weight: 500; }
.button-outline { background: var(--surface); color: var(--white); box-shadow: inset 0 0 0 1px var(--text); }
.button-outline:hover { background: var(--text); color: var(--surface); }
.arrow { color: var(--accent); }
.hero-rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-rail .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 24px; color: var(--muted); }
.hero-rail p { padding-block: 16px; }
.rail-mark { margin-right: 16px; color: var(--accent); }
.hero-rail a { display: inline-grid; place-items: center; min-height: 52px; width: 44px; color: var(--text); text-decoration: none; font-size: 20px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 88px; align-items: end; margin-bottom: 48px; }
.section-head > .label { grid-column: 1 / -1; color: var(--muted); }
.section-head > .lead { max-width: 32em; }
.section-number { color: var(--accent); }
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.detail-photo { aspect-ratio: 1; }
.detail-photo img { object-position: 50% 50%; }
.image-note { margin-top: 16px; color: var(--muted); }
.service { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 24px; padding-block: 24px 32px; border-top: 1px solid var(--line); }
.service:first-child { padding-top: 16px; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-no { padding-top: 4px; font: 500 23px/1.57 var(--mono); color: var(--accent); }
.service h3 { margin-bottom: 8px; }
.service p:not(.service-no) { color: var(--muted); }
.service ul { margin-top: 16px; }
.service li { position: relative; padding-left: 16px; }
.service li + li { margin-top: 4px; }
.service li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
.section-note { margin-top: 32px; color: var(--muted); }
.process { background: var(--canvas); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps li { padding-top: 24px; border-top: 1px solid var(--line); }
.steps .label { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.steps h3 { margin: 24px 0 12px; }
.steps p:not(.label) { max-width: 28em; color: var(--muted); }
.stance { display: grid; grid-template-columns: minmax(0, 1fr); }
.stance-photo { aspect-ratio: 1672 / 941; }
.stance-photo img { position: absolute; inset: 0; object-position: 50% 50%; }
.stance-copy { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 88px; padding-block: 64px 88px; }
.stance-copy > .label { grid-column: 1 / -1; color: var(--muted); }
.stance h2 { grid-column: 1; grid-row: 2 / span 3; margin-top: 16px; }
.stance-copy .lead { grid-column: 2; grid-row: 2; margin-top: 16px; }
.stance-copy > .muted { grid-column: 2; grid-row: 3; }
.stance-copy .lead, .stance-copy > .muted { max-width: 28em; }
.signoff { grid-column: 2; grid-row: 4; font-weight: 500; }
.stance-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact { border-top: 1px solid var(--line); }
.contact-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; color: var(--muted); }
.fiction-tag { padding: 4px 8px; border: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 48px; }
.contact h2 { font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -0.026em; text-transform: uppercase; }
.contact-copy > p + p { margin-top: 16px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 32px; }
.button-accent { background: var(--accent); color: var(--surface); }
.button-accent .arrow { color: var(--surface); }
.button-accent:hover { background: var(--text); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; }
.text-link span { color: var(--accent); }
.foot { background: var(--canvas); color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; padding-block: 48px 32px; }
.foot-brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.foot-top > p { max-width: 40em; }
.foot-top p > a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 16px 24px; border-top: 1px solid var(--line); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 12px; }
.foot-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
.to-top { display: inline-grid; place-items: center; min-height: 44px; width: 44px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); text-decoration: none; }
@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .nav { gap: 0 24px; }
  .hero h1 { font-size: 48px; }
  .hero-copy { min-height: 640px; }
  .service-grid { gap: 32px; }
  .section-head { gap: 24px 48px; }
  .steps { gap: 24px; }
  .stance-copy { column-gap: 48px; }
  .contact h2 { font-size: 48px; }
}
@media (max-width: 800px) {
  :root { --gutter: 24px; --section: 48px; }
  .top-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; padding-top: 16px; min-height: 0; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-top: 8px; }
  .hero-media { position: relative; height: auto; aspect-ratio: 1672 / 941; }
  .hero-media img { object-position: center; }
  .hero-media::after { display: none; }
  .hero-copy { min-height: 0; padding-block: 32px 48px; }
  .hero h1 { font-size: 72px; }
  .hero-intro { max-width: none; margin-top: 24px; }
  .hero-rail .wrap > p:nth-child(2) { display: none; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 32px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .detail-photo { aspect-ratio: 3 / 2; }
  .service { grid-template-columns: 44px minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps h3 { margin-top: 16px; }
  .stance { grid-template-columns: minmax(0, 1fr); }
  .stance-photo { aspect-ratio: 1672 / 941; }
  .stance-copy { width: 100%; display: flex; flex-direction: column; gap: 0; padding: 48px var(--gutter); }
  .stance-copy > .muted { margin-top: 16px; }
  .signoff { margin-top: 24px; }
  .stance h2 { margin-block: 24px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .demo p { padding-block: 8px 0; }
  .demo nav { gap: 0 24px; }
  .brand > span { font-size: 23px; }
  .brand small { font-size: 12px; }
  .header-contact { padding-inline: 12px; gap: 8px; font-size: 12px; }
  .nav { gap: 0 24px; }
  .hero h1 { font-size: clamp(36px, 12.5vw, 48px); }
  .hero-copy { padding-block: 24px 40px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 0; }
  .hero h1 { margin-top: 16px; }
  .hero-rail p { font-size: 12px; letter-spacing: 0; }
  .hero-rail .wrap { gap: 0 8px; }
  .rail-mark { margin-right: 8px; }
  h2 { font-size: 35px; line-height: 1.2; }
  h3 { font-size: 23px; line-height: 1.57; }
  .service { grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
  .service-no { font-size: 18px; }
  .contact h2 { font-size: 48px; }
  .button { padding-inline: 16px; gap: 16px; }
  .ai-label { right: 12px; bottom: 12px; }
  .foot-top { padding-top: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .photo img { transition: transform 0.8s ease; }
  .photo:hover img, .service-grid:focus-within .photo img { transform: scale(1.025); }
  .hero-media img { animation: hero-settle 7s ease-out both; }
  .button .arrow { transition: transform 0.2s ease; }
  .button:hover .arrow, .button:focus-visible .arrow { transform: translate(2px, -2px); }
  @keyframes hero-settle { from { transform: scale(1.035); } to { transform: scale(1); } }
  @supports (animation-timeline: view()) {
    .stance-photo img { animation: photo-pan linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes photo-pan { from { transform: scale(1.04) translateY(-1%); } to { transform: scale(1.04) translateY(1%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .photo img { transform: none !important; }
}
