:root {
  color-scheme: light dark;
  --paper: #a1b49b;
  --paper-deep: #96aa8f;
  --ink: #1c2a22;
  --ink-soft: #303f32;
  --chrome-muted: var(--ink);
  --forest: #17251e;
  --forest-soft: #24372d;
  --cream: #e7eddf;
  --line: rgba(23, 33, 28, 0.28);
  --line-width: 1.5px;
  --moss: #5d765f;
  --accent: #eeeadd;
  --accent-readable: var(--accent);
  --accent-contour: 2.5px rgba(28, 42, 34, 0.75);
  --chrome-surface: #202c24;
  --grain-texture: url("../textures/grain.svg");
  --grain-blend: screen;
  --accent-text: var(--ink-soft);
  --contact-surface: #202c24;
  --contact-text: var(--cream);
  --dot-texture: url("../textures/dots-light.svg");
  --sun: var(--ink);
  --section-surface: #869d81;
  --project-card: #bbcbb4;
  --project-card-active: #c9d8c0;
  --project-text: var(--ink);
  --project-muted: var(--ink-soft);
  --project-accent: var(--project-text);
  --project-border: rgba(23, 33, 28, 0.24);
  --project-border-hover: var(--accent-readable);
  --section-decoration: #7b9177;
  --shadow: 0 24px 70px rgba(31, 39, 33, 0.16);
  --shadow-hover: 0 32px 90px rgba(31, 39, 33, 0.12);
  --radius-sm: 0.55rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --content: 76rem;
  --header-height: 5.5rem;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

[data-theme="dark"] {
  --accent-contour: 0 transparent;
  --chrome-surface: #17211b;
  --accent: #e0b65a;
  --accent-readable: var(--accent);
  --grain-blend: multiply;
  --paper: #202c24;
  --paper-deep: #26362c;
  --ink: #eeeadd;
  --ink-soft: #cbd0c2;
  --chrome-muted: var(--ink-soft);
  --forest: #17211b;
  --forest-soft: #293b30;
  --cream: var(--ink);
  --line: rgba(244, 237, 225, 0.18);
  --line-width: 1px;
  --moss: #91ab8f;
  --contact-surface: #a1b49b;
  --contact-text: #202c24;
  --dot-texture: url("../textures/dots-dark.svg");
  --sun: var(--accent-readable);
  --section-surface: #17211b;
  --project-card: var(--forest-soft);
  --project-card-active: #354b3d;
  --project-text: var(--cream);
  --project-muted: var(--ink-soft);
  --project-accent: var(--project-text);
  --project-border: rgba(251, 247, 239, 0.2);
  --project-border-hover: var(--accent);
  --section-decoration: #303b2a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-hover: 0 32px 90px rgba(0, 0, 0, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-contour: 0 transparent;
    --chrome-surface: #17211b;
    --accent: #e0b65a;
    --accent-readable: var(--accent);
    --grain-blend: multiply;
    --paper: #202c24;
    --paper-deep: #26362c;
    --ink: #eeeadd;
    --ink-soft: #cbd0c2;
    --chrome-muted: var(--ink-soft);
    --forest: #17211b;
    --forest-soft: #293b30;
    --cream: var(--ink);
    --line: rgba(244, 237, 225, 0.18);
    --line-width: 1px;
    --moss: #91ab8f;
    --contact-surface: #a1b49b;
    --contact-text: #202c24;
    --dot-texture: url("../textures/dots-dark.svg");
    --sun: var(--accent-readable);
    --section-surface: #17211b;
    --project-card: var(--forest-soft);
    --project-card-active: #354b3d;
    --project-text: var(--cream);
    --project-muted: var(--ink-soft);
    --project-accent: var(--project-text);
    --project-border: rgba(251, 247, 239, 0.2);
    --project-border-hover: var(--accent);
    --section-decoration: #303b2a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --shadow-hover: 0 32px 90px rgba(0, 0, 0, 0.24);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background:
    var(--dot-texture) 0 0 / 19px 19px repeat,
    var(--paper);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
}

body > main {
  flex: 1 0 auto;
}

/* Fill tall home viewports with the contact surface, not empty dotted space. */
.page-home {
  display: flex;
  flex-direction: column;
}

.page-home > .hero {
  flex-shrink: 0;
}

.page-home > .section:last-child {
  flex: 1 0 auto;
  display: grid;
  align-items: center;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--forest);
  background: var(--cream);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  --paper: var(--chrome-surface);
  --accent-contour: 0 transparent;
  --section-surface: var(--chrome-surface);
  --ink: #eeeadd;
  --ink-soft: #cbd0c2;
  --chrome-muted: var(--ink-soft);
  --accent: #e0b65a;
  --accent-readable: var(--accent);
  --sun: var(--accent);
  --line: rgba(244, 237, 225, 0.18);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: var(--line-width) solid var(--line);
  background: var(--section-surface);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 5.5rem;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.primary-nav ul,
.utility-nav,
.footer-nav,
.status-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.primary-nav a,
.nav-software__toggle,
.utility-nav a,
.text-link {
  font-size: 0.86rem;
  font-weight: 680;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.primary-nav a {
  position: relative;
  padding-block: 0.45rem;
  color: var(--chrome-muted);
  white-space: nowrap;
}

.primary-nav a::after,
.nav-software__label::after,
.hero-heading__greeting a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after,
.primary-nav a[aria-current="location"]::after,
.nav-software__toggle:hover .nav-software__label::after,
.nav-software__toggle:focus-visible .nav-software__label::after,
.nav-software__toggle[aria-current] .nav-software__label::after,
.hero-heading__greeting a:hover::after,
.hero-heading__greeting a:focus-visible::after {
  transform: scaleX(1);
}

.primary-nav a[aria-current="page"],
.primary-nav a[aria-current="location"],
.nav-software__toggle[aria-current] {
  color: var(--ink);
}

.nav-software { position: relative; }
.nav-software__toggle {
  position: relative;
  min-height: 2.8rem;
  padding: 0;
  border: 0;
  color: var(--chrome-muted);
  background: transparent;
  cursor: pointer;
  line-height: inherit;
}
.nav-software__label { position: relative; display: inline-block; padding-block: 0.45rem; }
.nav-software__caret {
  position: absolute;
  left: calc(100% + 0.15rem);
  top: 50%;
  width: 0.5rem;
  font-size: 0.65rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}
.nav-software__toggle[hidden],
.primary-nav [data-software-fallback][hidden],
.nav-software__dropdown[hidden] { display: none; }
.nav-software__toggle[aria-expanded="true"] .nav-software__caret { transform: translateY(-50%) rotate(180deg); }
.nav-software__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 21rem;
  /* The transparent padding bridges the gap without breaking hover. */
  padding-top: 0.75rem;
}
.nav-software__panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.25rem;
  max-height: calc(100vh - var(--header-height) - 1rem);
  max-height: calc(100dvh - var(--header-height) - 1rem);
  overflow-y: auto;
  padding: 1.25rem;
  border: var(--line-width) solid var(--line);
  border-radius: var(--radius-md);
  background: var(--section-surface);
  box-shadow: var(--shadow);
}
.nav-software__heading {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.04em;
}
.nav-software__empty { margin: 0; color: var(--ink-soft); font-size: 0.8rem; }
.nav-software__projects { display: grid; gap: 0.25rem; }
.nav-software__projects a,
.nav-software__overview {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
}
.nav-software__overview { grid-column: 1 / -1; text-align: center; }
.nav-software__projects a::after,
.nav-software__overview::after { display: none; }
.nav-software__projects a:hover,
.nav-software__projects a:focus-visible,
.nav-software__projects a[aria-current="page"],
.nav-software__overview:hover,
.nav-software__overview:focus-visible,
.nav-software__overview[aria-current="page"] {
  color: var(--ink);
  background: var(--forest-soft);
}
/* Without JS, mouse and keyboard focus still reveal the links. */
.nav-software:not([data-enhanced]) .nav-software__dropdown { display: none; }
.nav-software:not([data-enhanced]):hover .nav-software__dropdown,
.nav-software:not([data-enhanced]):focus-within .nav-software__dropdown { display: block; }

.utility-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.utility-nav a,
.icon-button,
.menu-button {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.4rem 0.7rem;
  border: var(--line-width) solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.utility-nav a[aria-current="true"] {
  color: var(--paper);
  background: var(--ink);
}

.theme-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-icon--sun,
:root:not([data-theme="light"]) .theme-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-icon--moon,
:root:not([data-theme="light"]) .theme-icon--moon {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-icon--sun {
    display: block;
  }

  :root:not([data-theme]) .theme-icon--moon {
    display: none;
  }
}

.menu-button {
  display: none;
  position: relative;
  width: 2.8rem;
  padding: 0;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.menu-button::before {
  margin-top: -6px;
}

.menu-button::after {
  margin-top: 6px;
}

.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4.5rem, 9vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: stretch;
  gap: clamp(3rem, 6vw, 6rem);
}

.hero-grid > :first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.project-status {
  margin: 0 0 1rem;
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.feature-card h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(5rem, 10vw, 9rem);
  text-align: center;
}

.hero-heading__greeting,
.hero-heading__welcome,
.hero-heading__brand {
  display: block;
}

.hero-heading__greeting,
.hero-heading__welcome {
  font-size: 0.22em;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-shadow: 0 2px 5px rgba(14, 21, 17, 0.3);
}

.hero-heading__greeting {
  margin-bottom: 0.12em;
}

.hero-heading__greeting a {
  position: relative;
  display: inline-block;
  color: var(--accent-readable);
  text-decoration: none;
}

.hero-heading__greeting a::after {
  bottom: -0.12em;
}

.hero-heading__welcome {
  margin-bottom: 0.4em;
}

.hero-heading__brand {
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  filter: drop-shadow(0 12px 22px rgba(14, 21, 17, 0.32));
}

.page-hero--wide-heading .grain-word {
  --grain-ink: var(--accent-readable);
}

.rt-accent {
  color: var(--accent-readable);
}

.rt-accent,
.hero-disciplines__hint,
.page-hero--wide-heading .grain-word {
  -webkit-text-stroke: var(--accent-contour);
  paint-order: stroke fill;
}

.grain-word {
  color: var(--grain-ink, var(--ink));
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .grain-word {
    display: inline-block;
    /* Keep italic glyph overhang inside the text-clipped background. */
    padding-inline: 0.12em;
    margin-inline: -0.12em;
    background-image: var(--grain-texture),
      linear-gradient(var(--grain-ink, var(--ink)), var(--grain-ink, var(--ink)));
    background-size: 512px 512px;
    background-blend-mode: var(--grain-blend);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-aside {
  min-width: 0;
}

.hero-disciplines {
  margin: 0;
  padding: 0;
  border-top: var(--line-width) solid var(--line);
  list-style: none;
}

.hero-disciplines li {
  padding: 0.42rem 0;
  border-bottom: var(--line-width) solid var(--line);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.15;
}

.hero-disciplines__link {
  color: inherit;
  text-decoration: none;
}

.hero-disciplines__link:hover {
  color: var(--accent-text);
}

.hero-disciplines li > span {
  font-style: italic;
}

.hero-disciplines__hint {
  display: block;
  margin-top: 0.15rem;
  color: var(--accent-readable);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-actions,
.language-gate__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border: var(--line-width) solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--paper);
  background: var(--ink);
}

.button--secondary {
  background: transparent;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  border-top: var(--line-width) solid var(--line);
}

main > section:nth-of-type(even) {
  background:
    linear-gradient(135deg, transparent 0 64%, var(--section-decoration) 64% 65%, transparent 65%),
    var(--section-surface);
  /* Keep the diagonal out of translucent borders; the solid surface stays below them. */
  background-clip: padding-box, border-box;
}

.section--dark {
  color: var(--project-text);
}

.section--dark .section-kicker,
.section--dark .project-status {
  color: var(--project-accent);
}

.section--dark .section-intro,
.section--dark .project-card__preview,
.section--dark .project-card__detail,
.section--dark .text-link {
  color: var(--project-muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 1fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading h2,
.feature-card h2,
.contact-panel h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.section-intro {
  max-width: 47rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.feature-grid,
.project-grid,
.service-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  min-height: 31rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border: var(--line-width) solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper-deep) 76%, transparent);
  box-shadow: var(--shadow);
}

.feature-card--audio {
  background:
    repeating-linear-gradient(90deg, transparent 0 1.45rem, color-mix(in srgb, var(--moss) 15%, transparent) 1.45rem 1.52rem),
    color-mix(in srgb, var(--paper-deep) 85%, transparent);
}

.feature-card--software {
  color: var(--cream);
  background: var(--forest);
}

.feature-card__number {
  display: block;
  margin-bottom: clamp(7rem, 16vw, 12rem);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.feature-card p {
  max-width: 34rem;
  color: var(--ink-soft);
}

.feature-card--software p {
  color: #c8cec7;
}

.feature-card .text-link {
  display: inline-block;
  margin-top: 1.1rem;
}

.project-grid {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.project-grid-shell {
  position: relative;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 17rem;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border: var(--line-width) solid var(--project-border);
  border-radius: var(--radius-md);
  background: var(--project-card);
  transition: border-color 220ms ease, background-color 220ms ease,
    opacity 220ms ease;
}

/* Resting shadows share the grid's back plane, below every card surface.
   Only an interactive card creates its own raised stacking context. */
.project-card::before,
.content-grid > .content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.project-card::before {
  transition: box-shadow 220ms ease;
}

.project-grid[data-enhanced] .project-card {
  cursor: pointer;
}

.project-grid[data-enhanced] .project-card:hover,
.project-grid[data-enhanced] .project-card:focus-within {
  border-color: var(--project-border-hover);
  z-index: 1;
}

.project-grid[data-enhanced] .project-card:hover::before,
.project-grid[data-enhanced] .project-card:focus-within::before {
  box-shadow: var(--shadow-hover);
}

.project-grid[data-active] .project-card:not(.is-active) {
  display: none;
}

.project-grid[data-active] .project-card.is-active {
  grid-column: 1 / -1;
  background: var(--project-card-active);
}

.project-grid.is-animating:not([data-active]) .project-card:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

.project-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.service-card h3,
.status-list strong {
  margin: 0;
  font-size: 1rem;
}

.project-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.1;
}

/* Product pages use the shared theme and stay editable through localized data. */
.product-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.product-back:hover { text-decoration: underline; }

.product-hero .product-status {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.product-hero h1 { max-width: none; }

.product-tagline {
  max-width: 42rem;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.2;
  text-wrap: balance;
}

.product-gallery h2,
.product-story h2,
.product-faq h2,
.product-newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

.product-gallery__items { display: grid; gap: 2rem; margin-top: 2.5rem; }
.product-shot { margin: 0; }
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--line-width) solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.product-shot figcaption { margin-top: 1rem; color: var(--ink-soft); }

.product-carousel__scene { display: grid; gap: 2rem; }
.product-carousel [hidden] { display: none !important; }
.product-carousel[data-enhanced] .product-carousel__scene {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.product-carousel[data-enhanced] .product-shot,
.product-carousel__peek {
  position: absolute;
  top: 0;
  left: 50%;
  width: 74%;
  height: 100%;
  transform: translateX(-50%);
}
.product-carousel[data-enhanced] .product-shot {
  display: block;
}
.product-carousel[data-enhanced] .product-shot img,
.product-carousel__peek img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.product-carousel[data-enhanced] figcaption {
  display: none;
}
.product-carousel__caption {
  max-width: 74%;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.product-carousel__peek {
  opacity: 0.5;
  pointer-events: none;
}
.product-carousel__peek--previous { transform: translateX(-157%); }
.product-carousel__peek--next { transform: translateX(57%); }
.product-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.product-carousel__arrow {
  width: 3rem;
  height: 3rem;
  border: var(--line-width) solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-deep);
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}
.product-carousel__arrow:hover { background: var(--project-card); }
.product-carousel:focus-visible,
.product-carousel__arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.product-carousel__counter { color: var(--ink-soft); font-size: 0.85rem; }

.product-gallery__empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: clamp(15rem, 32vw, 25rem);
  gap: 1rem;
  padding: 2rem;
  border: var(--line-width) dashed var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper) 45%, transparent);
  text-align: center;
}
.product-gallery__empty p { max-width: 32rem; margin: 0; color: var(--ink-soft); }
.product-gallery__frame { font-size: 3rem; font-family: var(--font-display); }

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.product-story p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }
.product-story p + p { margin-top: 1.5rem; }
.product-features { margin-top: 4rem; grid-auto-rows: 1fr; }
.product-features h3 { margin: 0 0 1rem; font-size: 1.5rem; }
.product-features p { margin: 0; color: var(--ink-soft); }
.product-features .product-feature__status {
  margin: -0.25rem 0 1rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.product-faq__items { margin-top: 2.5rem; border-top: var(--line-width) solid var(--line); }
.product-faq__item { border-bottom: var(--line-width) solid var(--line); }
.product-faq__item summary {
  padding: 1.4rem 0;
  font-size: 1.1rem;
  font-weight: 650;
  cursor: pointer;
}
.product-faq__item summary::marker { color: var(--ink); }
.product-faq__item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.product-faq__item div { max-width: 48rem; padding: 0 0 1.4rem; color: var(--ink-soft); }
.product-faq__item p { margin: 0; }

.product-newsletter__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.product-newsletter__panel p { color: var(--ink-soft); }
.product-newsletter__contact { font-size: 0.85rem; line-height: 1.6; }
.product-newsletter__form fieldset { display: grid; gap: 0.8rem; margin: 1.5rem 0 0; padding: 0; border: 0; min-width: 0; }
.product-newsletter__form label { font-weight: 650; }
.product-newsletter__form input {
  width: 100%;
  min-width: 0;
  padding: 1rem;
  border: var(--line-width) solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--paper-deep);
  font: inherit;
  opacity: 1;
}
.product-newsletter__form button { justify-self: start; cursor: not-allowed; opacity: 0.6; }
.product-newsletter__form button:hover { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 50rem) {
  .product-story,
  .product-newsletter__panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 35rem) {
  .product-carousel[data-enhanced] .product-carousel__scene { aspect-ratio: 1 / 1; }
  .product-carousel[data-enhanced] .product-shot,
  .product-carousel__peek { width: 84%; }
  .product-carousel__peek--previous { transform: translateX(-153%); }
  .product-carousel__peek--next { transform: translateX(53%); }
}

.project-card .project-status {
  margin: 0.6rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
}

.project-card__control {
  display: none;
  align-self: start;
  margin-top: auto;
  padding: 1.5rem 0 0;
  border: 0;
  color: var(--project-accent);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.project-card__control:hover,
.project-card__control:focus-visible {
  text-decoration: underline;
}

.project-grid[data-enhanced] .project-card__control {
  display: inline-block;
}

.project-card__control:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.project-card__preview,
.project-card__detail p {
  margin: 1.5rem 0 0;
}

.project-card__preview {
  display: none;
}

.project-grid[data-enhanced] .project-card__preview {
  display: block;
}

.project-grid[data-enhanced] .project-card__detail {
  display: none;
}

.project-grid[data-active] .project-card.is-open {
  display: grid;
  grid-template-columns: minmax(12rem, 0.4fr) minmax(0, 1fr);
  align-content: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.project-grid[data-active] .project-card.is-open .project-card__top {
  display: block;
  grid-column: 1;
  grid-row: 1;
}

.project-grid[data-active] .project-card.is-open h3 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.project-grid[data-active] .project-card.is-open .project-card__control {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
}

.project-grid[data-active] .project-card.is-open .project-card__preview {
  display: none;
}

.project-grid[data-active] .project-card.is-open .project-card__detail {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.project-grid[data-active] .project-card.is-open .project-card__detail p {
  margin: 0;
}

.project-card__detail p + p,
.project-grid[data-active] .project-card.is-open .project-card__detail p + p {
  margin-top: 1rem;
}

.project-card p,
.service-card p {
  color: inherit;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  padding: 1.75rem;
  border-top: 3px solid var(--moss);
  background: color-mix(in srgb, var(--paper-deep) 55%, transparent);
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}

.status-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: var(--line-width) solid var(--line);
}

.status-list span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 5vw, 4.5rem)
    clamp(2.5rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  color: var(--contact-text);
  background: var(--grain-texture) 0 0 / 512px 512px repeat,
    var(--contact-surface);
  background-blend-mode: var(--grain-blend);
  box-shadow: var(--shadow);
}

@media (forced-colors: active) {
  .rt-accent,
  .hero-disciplines__hint,
  .page-hero--wide-heading .grain-word {
    -webkit-text-stroke: 0;
  }
  .hero-heading__greeting,
  .hero-heading__welcome {
    text-shadow: none;
  }

  .hero-heading__brand {
    filter: none;
  }

  .grain-word {
    color: CanvasText;
    background: none;
  }

  .contact-panel {
    background-image: none;
  }
}

.contact-panel p {
  max-width: 40rem;
  margin: 0.85rem 0 0;
}

.contact-panel .button {
  justify-self: end;
  border: 0;
  color: var(--forest);
  background: #eeeadd;
  box-shadow: 0 3px 6px rgba(14, 21, 17, 0.2),
    0 10px 22px rgba(14, 21, 17, 0.25);
}

.page-hero {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero--wide-heading h1 {
  max-width: none;
}

.page-hero--wide-heading {
  text-align: center;
}

.page-hero--wide-heading .section-inner {
  width: 100%;
  max-width: none;
  padding-inline: 10%;
}

.page-hero--wide-heading .page-hero__intro {
  max-width: none;
  text-wrap: balance;
}

.page-hero--wide-heading .page-hero__intro + .page-hero__intro {
  margin-top: clamp(1.25rem, 2vw, 2rem);
}

.page-hero--wide-heading .page-hero__intro a {
  text-decoration: none;
}

.page-hero__signature {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.page-hero__intro {
  max-width: 48rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.page-hero__intro + .page-hero__intro {
  margin-top: 0.65rem;
}

.rt-small { font-size: 0.85em; }
.rt-large { font-size: 1.2em; }
.rt-display { font-family: var(--font-display); }
.rt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.content-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.content-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: var(--line-width) solid var(--project-border);
  border-radius: var(--radius-md);
  background: var(--project-card);
  box-shadow: var(--shadow);
}

.content-grid > .content-card {
  box-shadow: none;
}

.content-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
}

.content-card__body + .content-card__body {
  margin-top: 1.1rem;
}

.content-grid--justified .content-card__body {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper-deep) 65%, transparent);
}

.legal-layout {
  width: min(calc(100% - 2.5rem), 52rem);
}

.legal-layout .notice {
  margin: 0 0 1rem;
}

.legal-address {
  font-style: normal;
  line-height: 1.6;
}

.legal-address__line {
  display: block;
}

.legal-card h2:not(:first-child) {
  margin-top: 2rem;
}

.legal-card p {
  margin-bottom: 0;
}

.site-footer {
  padding: 3rem 0;
  border-top: var(--line-width) solid var(--line);
  background: var(--section-surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.footer-note {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--chrome-muted);
  font-size: 0.84rem;
}

.footer-place {
  color: var(--accent-readable);
}

.footer-brandline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright {
  color: var(--chrome-muted);
  font-size: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  font-size: 0.84rem;
}

.language-gate {
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.language-gate__card {
  width: min(100%, 34rem);
  padding: clamp(2rem, 8vw, 4rem);
  border: var(--line-width) solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.language-gate h1 {
  margin: 2.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
}

@media (max-width: 44rem) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .menu-button {
    display: inline-grid;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: 1.25rem;
    max-height: calc(100vh - var(--header-height) - 1rem);
    max-height: calc(100dvh - var(--header-height) - 1rem);
    overflow-y: auto;
    padding: 1rem;
    border: var(--line-width) solid var(--line);
    border-radius: var(--radius-md);
    background: var(--section-surface);
    box-shadow: var(--shadow);
  }

  .primary-nav:not([data-open="true"]) {
    display: none;
  }

  .primary-nav > ul {
    display: grid;
    justify-content: stretch;
    gap: 0.15rem;
  }

  .primary-nav a {
    display: block;
    padding: 0.7rem 0.8rem;
  }

  .nav-software__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-sm);
    text-align: left;
  }
  .nav-software__toggle:is(:hover, [aria-current], [aria-expanded="true"]) {
    color: var(--ink);
    background: var(--forest-soft);
  }
  .nav-software__label { padding: 0; }
  .nav-software__label::after { display: none; }
  .nav-software__caret { position: static; transform: none; }
  .nav-software__toggle[aria-expanded="true"] .nav-software__caret { transform: rotate(180deg); }
  .nav-software__dropdown {
    position: static;
    width: auto;
    margin: 0.25rem 0 0.75rem;
    padding-top: 0;
  }
  .nav-software__panel {
    max-height: none;
    overflow: visible;
    padding: 0.8rem;
    box-shadow: none;
  }
  .nav-software__projects a { padding: 0.55rem 0.3rem; }

  .utility-nav {
    justify-self: end;
  }
}

@media (max-width: 50rem) {
  :root { --header-height: 4.75rem; }

  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 1.5rem), var(--content));
  }

  .header-inner {
    min-height: 4.75rem;
    gap: 0.65rem;
  }

  .wordmark {
    font-size: 1.55rem;
  }

  .utility-nav {
    gap: 0.25rem;
  }

  .utility-nav a,
  .icon-button {
    min-width: 2.45rem;
    min-height: 2.45rem;
    padding: 0.35rem 0.55rem;
  }

  .hero-grid,
  .section-heading,
  .feature-grid,
  .project-grid,
  .service-grid,
  .status-layout,
  .contact-panel,
  .content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .contact-panel .button {
    justify-self: start;
  }

  .feature-card {
    min-height: 25rem;
  }

  .project-grid[data-active] .project-card.is-open {
    display: flex;
    gap: 0;
  }

  .project-grid[data-active] .project-card.is-open .project-card__top {
    padding-right: 0;
  }

  .project-grid[data-active] .project-card.is-open h3 {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
  }

  .project-grid[data-active] .project-card.is-open .project-card__detail {
    padding-right: 0;
    margin-top: 1.5rem;
  }

  .project-grid[data-active] .project-card.is-open .project-card__control {
    margin-top: 1.5rem;
  }

  .content-grid--justified .content-card__body {
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
