/* KLARWERK: measured architectural direction, sources/adaptations in
   build-notes/websites-2026-10-10/klarwerk/direction.md.
   Original Storey Architecture library token block, copied verbatim (uncompiled record). */
@theme {
  --color-canvas: #000000;
  --color-surface: #ffffff;
  --color-text: #3d3d3d;
  --color-border: #bfbfbf;
  --font-new-grotesk: 'New Grotesk', system-ui, sans-serif;
  --font-new-grotesk-mono: 'New Grotesk Mono', system-ui, sans-serif;
  --text-display: 115px;
  --leading-display: 1.0;
  --tracking-display: -0.0260em;
  --text-heading-xl: 101px;
  --leading-heading-xl: 1.0;
  --tracking-heading-xl: -0.0298em;
  --text-heading-lg: 31.5px;
  --leading-heading-lg: 1.0;
  --tracking-heading-lg: -0.0947em;
  --text-body: 23px;
  --leading-body: 1.2;
  --tracking-body: -0.1302em;
  --text-body-sm: 21.5px;
  --leading-body-sm: 1.0;
  --text-caption: 16px;
  --leading-caption: 1.0;
  --tracking-caption: -0.1894em;
  --text-micro: 14.5px;
  --leading-micro: 1.0;
  --tracking-micro: -0.6944em;
  --text-micro-2: 11.5px;
  --leading-micro-2: 1.0;
  --tracking-micro-2: -0.8681em;
}

@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 {
  --canvas: #ffffff;
  --ink: #3d3d3d;
  --line: #bfbfbf;
  --paper: #f5f3ed;
  --accent: #244ac5;
  --label-bg: #000000;
  --max: 1424px;
  --gutter: 40px;
  --section: 144px;
  --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(--canvas); color: var(--ink); font: 400 18px/1.6 var(--sans); letter-spacing: 0.005em; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.06; letter-spacing: -0.026em; }
h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.eyebrow { font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.section-number { color: var(--accent); }
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 72px; }
.section-head > .eyebrow { padding-top: 8px; }
.section-lead { max-width: 30em; margin-top: 24px; }
.arrow { font-family: var(--mono); transition: transform 0.35s ease; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding-block: 8px; font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); }
.text-link:hover, .text-link:focus-visible { color: var(--accent); border-color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 0; font-size: 14px; font-weight: 500; text-decoration: none; transition: background 0.25s ease, color 0.25s ease; }
.button:hover { background: var(--ink); color: var(--canvas); }
.button:hover .arrow, .text-link:hover .arrow { transform: translate(2px, -2px); }
.skip { position: absolute; z-index: 10; top: -200px; left: 16px; padding: 12px 16px; min-height: 44px; background: var(--canvas); border: 1px solid var(--ink); font-size: 16px; }
.skip:focus { top: 12px; }

/* The fictional status is real, visible page content, not a dismissible overlay. */
.demo { border-bottom: 1px solid var(--line); font-size: 13px; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; }
.demo p { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.demo strong { font-weight: 500; }
.demo-dot { width: 4px; height: 4px; flex: none; background: var(--label-bg); }
.demo a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.demo a:hover { text-decoration: underline; }
.top-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px 72px; min-height: 104px; }
.wordmark { display: inline-block; padding-block: 8px; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; text-decoration: none; }
.brand-dot { color: var(--accent); }
.wordmark small { display: block; margin-top: 4px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; justify-self: end; gap: 0 32px; font-size: 14px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.contact-short { display: none; }

/* Architectural composition: headline and copy above the photograph, never on it. */
.hero { padding-top: 48px; }
.hero-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: end; }
h1 { margin-top: 20px; font-size: clamp(48px, 8.2vw, 115px); font-weight: 500; line-height: 1; letter-spacing: -0.026em; }
.hero-copy { max-width: 24em; padding-bottom: 8px; }
.hero-copy .text-link { margin-top: 24px; }
.hero-figure { margin-top: 48px; }
.photo { position: relative; overflow: hidden; background: var(--paper); }
.photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero-photo { aspect-ratio: 12 / 5; }
.hero-photo img { object-position: 50% 30%; }
.photo-label { position: absolute; z-index: 1; right: 12px; bottom: 12px; padding: 4px 8px; background: var(--label-bg); color: var(--canvas); font: 400 12px/1.6 var(--sans); letter-spacing: 0.005em; }
.hero-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 13px; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 32px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.hero-foot a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; text-decoration: none; }
.hero-foot a:hover { color: var(--accent); }

/* An asymmetric material spread, not a row of interchangeable image cards. */
.ideas-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; margin-top: 72px; align-items: start; }
.idea-shower { padding-top: 144px; }
.vanity-photo { aspect-ratio: 7 / 8; }
.vanity-photo img { object-position: 50% 50%; }
.shower-photo { aspect-ratio: 4 / 5; }
.shower-photo img { object-position: 50% 50%; }
.idea figcaption { margin-top: 24px; }
.caption-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.caption-number { font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; color: var(--accent); }
.idea h3 { margin-top: 20px; }
.idea figcaption > p { max-width: 31em; margin-top: 12px; font-size: 16px; }
.idea .text-link { margin-top: 20px; }
.image-note { max-width: 48em; margin-top: 48px; font-size: 14px; }

.services { padding-top: 0; }
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; padding-top: var(--section); border-top: 1px solid var(--line); }
.services-intro h2 { margin-top: 24px; font-size: clamp(36px, 3.4vw, 48px); }
.services-intro > p:last-child { max-width: 24em; margin-top: 24px; font-size: 16px; }
.service-list > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); }
.service-list > li:last-child { border-bottom: 1px solid var(--line); }
.service-list > li > .eyebrow { padding-top: 8px; }
.service-list p { max-width: 32em; margin-top: 12px; font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 13px; }
.tags li::before { content: "+"; margin-right: 8px; color: var(--accent); }
.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 72px; }
.steps li { padding-top: 24px; border-top: 1px solid var(--line); }
.steps .eyebrow { color: var(--accent); }
.steps h3 { margin-top: 24px; }
.steps p:last-child { max-width: 26em; margin-top: 16px; font-size: 16px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px 72px; }
.faq h2 { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding-block: 24px; font-size: 18px; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.sign { flex: none; color: var(--accent); font-size: 26px; line-height: 1; transition: transform 0.25s ease; }
.faq details[open] .sign { transform: rotate(45deg); }
.faq details > p { max-width: 40em; padding: 0 48px 24px 0; font-size: 16px; }
.faq details > p + p { padding-top: 0; }
.contact { background: var(--paper); }
.contact h2 { font-size: clamp(36px, 5vw, 72px); }
.contact-button { min-height: 56px; margin-top: 32px; background: var(--ink); color: var(--canvas); font-size: 16px; }
.contact-button:hover { background: var(--canvas); color: var(--ink); }
.contact-bottom { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px 72px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.contact-bottom > p { max-width: 35em; }
.contact-bottom nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.contact-bottom a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.foot-top { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 32px 72px; padding-block: 72px 48px; }
.foot-top > p { max-width: 36em; font-size: 14px; }
.foot-top p a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-block: 16px 32px; border-top: 1px solid var(--line); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.foot-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
.to-top { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); text-decoration: none; font-family: var(--mono); }

/* Always-visible progressive enhancement: supported CSS timelines add only photo depth.
   Unsupported browsers/noJS keep the same content and usable anchors. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .photo img { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
  .photo:hover img, .idea:focus-within img { transform: scale(1.035); }
  @supports (animation-timeline: view()) {
    .hero-photo img { animation: photo-depth linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes photo-depth { from { transform: scale(1.025) translateY(-1%); } to { transform: scale(1.025) translateY(1%); } }
  }
}
@media (max-width: 1100px) {
  .top-row { gap: 24px 32px; }
  .nav { gap: 0 24px; }
  .contact-long { display: none; }
  .contact-short { display: inline; }
}
@media (max-width: 1000px) {
  :root { --gutter: 32px; --section: 88px; }
  .hero-intro { gap: 32px 48px; }
  .section-head, .faq-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px 48px; }
  .ideas-grid { gap: 48px; margin-top: 48px; }
  .idea-shower { padding-top: 88px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .services-intro > p:last-child { max-width: 34em; }
  .steps { gap: 32px; margin-top: 48px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 56px; }
  .demo-row { align-items: start; }
  .demo-description { display: block; }
  .demo a { white-space: nowrap; min-height: 64px; }
  .demo-description::first-letter { color: transparent; }
  .top-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; min-height: 0; padding-top: 16px; }
  .header-contact { min-height: 44px; padding: 8px 12px; gap: 12px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-top: 8px; gap: 0 24px; }
  .hero { padding-top: 40px; }
  .hero-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  h1 { font-size: clamp(48px, 12vw, 72px); margin-top: 16px; }
  .hero-copy { max-width: 30em; padding-bottom: 0; }
  .hero-copy .text-link { margin-top: 16px; }
  .hero-figure { margin-top: 32px; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-figure figcaption { display: grid; gap: 8px; margin-top: 16px; }
  .hero-foot { align-items: start; flex-direction: column; gap: 0; margin-top: 24px; padding-block: 12px; }
  .section-head, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .section-head > .eyebrow { padding-top: 0; }
  .section-lead { margin-top: 20px; }
  .ideas-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 32px; }
  .idea-shower { padding-top: 0; }
  .vanity-photo { aspect-ratio: 4 / 5; }
  .shower-photo { aspect-ratio: 4 / 5; }
  .image-note { margin-top: 32px; }
  .services-grid { gap: 32px; }
  .services-intro h2 { font-size: 36px; }
  .service-list > li { grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding-block: 24px; }
  .service-list h3 { font-size: 22px; }
  .tags { gap: 8px 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
  .steps h3 { margin-top: 16px; }
  .faq summary { font-size: 16px; gap: 16px; }
  .faq details > p { padding-right: 0; }
  .contact-button { gap: 16px; padding-inline: 16px; font-size: 14px; }
  .contact-bottom { gap: 20px; margin-top: 40px; }
  .foot-top { gap: 24px; padding-block: 48px 32px; }
  .foot-bottom { gap: 16px; }
  .foot-bottom > .eyebrow { display: none; }
  .foot-bottom nav { gap: 0 16px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .demo { font-size: 12px; }
  .demo-description { display: none; }
  .demo a { min-height: 44px; gap: 8px; }
  .demo p { gap: 8px; max-width: 11em; }
  .wordmark { font-size: 22px; }
  .wordmark small { font-size: 12px; letter-spacing: 0.005em; }
  .nav { gap: 0 24px; }
  .photo-label { right: 8px; bottom: 8px; }
  .foot-bottom nav { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .photo img, .photo:hover img, .idea:focus-within img { transform: none !important; }
}
