/*
 * KNAPPSTAT — visual system
 * Tailwind handles the layout utilities in index.html.
 * This file holds the brand, reusable components, and responsive details.
 */

/* 01. Brand tokens & foundations */
@font-face {
  font-family: "Manrope";
  src: url("../assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@layer components {
  :root {
    --ink: #101310;
    --surface: #1b1f1b;
    --surface-raised: #242924;
    --paper: #f1f3ea;
    --muted: #a5ada0;
    --line: #353c32;
    --accent: #d5fa58;
    --font-body: "Manrope", "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    color-scheme: dark;
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--paper);
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
  }
  body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  body.dialog-open {
    overflow: hidden;
  }
  ::selection {
    background: var(--accent);
    color: var(--ink);
  }
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  button,
  summary,
  select {
    cursor: pointer;
  }
  button,
  a,
  input,
  textarea,
  select,
  summary {
    -webkit-tap-highlight-color: transparent;
  }
  a {
    text-decoration: none;
  }
  button:focus-visible,
  a:focus-visible,
  summary:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible,
  pre:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
  }
  [hidden] {
    display: none !important;
  }
  .page-shell {
    width: min(100% - 6rem, 1224px);
    margin-inline: auto;
  }
  .section-pad {
    padding-block: 7rem;
  }
  .eyebrow,
  .mini-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    letter-spacing: 0.085em;
  }
  .eyebrow {
    margin: 0 0 1.8rem;
  }
  .muted {
    color: var(--muted);
  }
  .accent-text {
    color: var(--accent);
  }
  .skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 100;
    background: var(--accent);
    color: var(--ink);
    padding: 0.7rem 1rem;
  }
  .skip-link:focus {
    top: 1rem;
  }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    min-height: 3.5rem;
    padding: 0.95rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    transition:
      background 0.2s,
      color 0.2s,
      border-color 0.2s,
      transform 0.2s;
  }
  .button span {
    font-size: 1.25rem;
    line-height: 1;
  }
  .button:hover {
    transform: translateY(-2px);
  }
  .button-accent {
    background: var(--accent);
    color: var(--ink);
  }
  .button-accent:hover {
    background: #e2ff88;
  }
  .button-outline {
    background: transparent;
    color: var(--paper);
    border-color: #56604e;
  }
  .button-outline:hover {
    background: var(--surface-raised);
    border-color: var(--muted);
  }
  .button-dark {
    color: var(--paper);
    background: var(--ink);
  }
  .button-dark:hover {
    background: #2a3521;
  }
  .button-small {
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
    gap: 1.6rem;
  }
  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #63713f;
  }
  .text-link:hover {
    color: var(--accent);
  }

  /* 02. Header & navigation */
  .site-header {
    padding-block: 1.4rem;
    border-bottom: 1px solid var(--line);
  }
  .wordmark {
    display: inline-flex;
    align-items: center;
    color: var(--paper);
    font-size: 1.6rem;
    letter-spacing: -0.065em;
    line-height: 1;
    font-weight: 800;
  }
  .brand-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-right: 0.6rem;
    border-radius: 5px;
    background: var(--accent);
    color: var(--ink);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    padding-right: 2px;
  }
  .brand-period {
    color: var(--accent);
  }
  .desktop-nav a {
    font-size: 0.875rem;
    color: #c4cabe;
    transition: color 0.2s;
  }
  .desktop-nav a:hover {
    color: var(--accent);
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px;
  }
  .menu-toggle span {
    display: block;
    height: 1px;
    width: 100%;
    background: var(--paper);
    transition: transform 0.2s;
  }
  .menu-toggle span + span {
    margin-top: 6px;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .mobile-menu {
    margin-top: 1.2rem;
    padding: 1rem 1.5rem 0;
    border-top: 1px solid var(--line);
  }
  .mobile-menu a {
    display: block;
    padding: 0.8rem 0;
  }

  /* 03. Hero & interactive browser preview */
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 2rem;
  }
  .tiny-cross {
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 1.15rem;
    margin-right: 0.5rem;
    vertical-align: -1px;
  }
  .hero h1 {
    margin: 0;
    font-size: clamp(3.4rem, 7.7vw, 6.8rem);
    line-height: 1.06;
    letter-spacing: -0.07em;
    font-weight: 600;
  }
  .hero h1 .accent-text {
    white-space: nowrap;
  }
  .hero-bottom {
    margin-top: 2.5rem;
  }
  .hero-description {
    color: #b4bcac;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0;
  }
  .hero-showcase {
    margin-top: 3.8rem;
  }
  .showcase-heading {
    padding-bottom: 1rem;
  }
  .showcase-heading .eyebrow {
    margin: 0;
  }
  .preview-hint {
    color: var(--muted);
    font-size: 0.8125rem;
  }
  .showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 1rem;
  }
  .studio-preview {
    --demo-accent: #d5fa58;
    --demo-soft: #f1f3ea;
    overflow: hidden;
    border: 1px solid #424b3b;
    border-radius: 8px;
    background: var(--demo-soft);
    color: #192117;
    transition: background 0.45s;
  }
  .studio-preview[data-theme="lilac"] {
    --demo-accent: #c6b5ff;
    --demo-soft: #f1ecfa;
  }
  .studio-preview[data-theme="sky"] {
    --demo-accent: #9ddaff;
    --demo-soft: #eef6f9;
  }
  .studio-preview[data-theme="peach"] {
    --demo-accent: #ffb39e;
    --demo-soft: #fcf0e9;
  }
  .browser-bar {
    height: 34px;
    padding-inline: 1rem;
    background: #252b22;
    color: #b5bdad;
  }
  .browser-bar > span:not(.browser-code) {
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background: #69715f;
  }
  .browser-bar p {
    margin: 0 auto;
    padding-right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.015em;
  }
  .browser-code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
  }
  .demo-site {
    position: relative;
    padding: 1.4rem 2.5rem 1.1rem;
    overflow: hidden;
  }
  .demo-nav {
    position: relative;
    z-index: 1;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1b281826;
  }
  .demo-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.06em;
  }
  .demo-brand > span {
    font-size: 1.7rem;
    line-height: 1;
  }
  .demo-nav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.035em;
  }
  .demo-menu {
    font-size: 1.7rem;
  }
  .demo-content {
    position: relative;
    z-index: 1;
    padding-block: 2rem 1.7rem;
  }
  .demo-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.7rem;
  }
  .demo-content h2 {
    margin: 0;
    font-size: clamp(2.8rem, 4.5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.065em;
    font-weight: 650;
  }
  .demo-content h2 span {
    position: relative;
    display: inline-block;
    isolation: isolate;
  }
  .demo-content h2 span::before {
    content: "";
    position: absolute;
    inset: 53% -0.08em 0.015em;
    z-index: -1;
    background: var(--demo-accent);
    transition: background 0.45s;
    transform: rotate(-2deg);
  }
  .demo-description {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .demo-cta {
    display: inline-flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.1rem;
    padding: 0.7rem 1rem;
    background: #192117;
    color: #fff;
    font-size: 0.875rem;
    border-radius: 3px;
  }
  .demo-cta:hover {
    background: #3b4934;
  }
  .type-art {
    position: absolute;
    right: 2.5rem;
    bottom: 3rem;
    width: 220px;
    height: 265px;
    display: grid;
    align-items: center;
    justify-items: center;
    pointer-events: none;
  }
  .type-art > span:first-child {
    font-size: 23rem;
    line-height: 0.7;
    letter-spacing: -0.08em;
    font-weight: 800;
    color: var(--demo-accent);
    text-shadow:
      -1px 0 #192117,
      0 1px #192117,
      1px 0 #192117,
      0 -1px #192117,
      8px 8px 0 #192117;
    transform: rotate(-12deg);
    transition: color 0.45s;
  }
  .type-art-star {
    position: absolute;
    right: -1.1rem;
    bottom: -0.4rem;
    font-size: 6rem;
    line-height: 1;
    color: #192117;
  }
  .demo-site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid #1b281826;
    padding-top: 1rem;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
  }
  .demo-message {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 1rem;
    z-index: 3;
    background: #192117;
    color: white;
    font-size: 0.875rem;
    border-radius: 4px;
    box-shadow: 0 8px 25px #0003;
    padding: 0.9rem 1.2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: 0.25s;
  }
  .demo-message.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .showcase-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .style-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.5rem;
    border-radius: 8px;
  }
  .style-card .mini-label {
    color: var(--muted);
  }
  .small-icon {
    color: var(--accent);
    font-size: 1.3rem;
  }
  .style-card h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin-top: 1.2rem;
  }
  .style-card > p:not(.palette-label) {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.6rem;
  }
  .palette-options {
    margin-top: 1rem;
  }
  .palette-swatch {
    display: grid;
    place-items: center;
    border-radius: 100%;
    border: 1px solid transparent;
    width: 44px;
    height: 44px;
    padding: 5px;
    transition:
      transform 0.2s,
      border-color 0.2s;
  }
  .palette-swatch > span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }
  .palette-swatch:hover {
    transform: scale(1.1);
  }
  .palette-swatch.active {
    border-color: var(--paper);
  }
  .palette-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 1rem;
  }
  .responsive-card {
    position: relative;
    overflow: hidden;
    background: #d5dfc5;
    color: #293223;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    min-height: 154px;
  }
  .responsive-card > p {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
  }
  .responsive-card strong {
    font-weight: 600;
  }
  .devices {
    position: absolute;
    right: 1.2rem;
    top: 3rem;
    width: 130px;
    height: 55px;
    transform: rotate(-8deg);
  }
  .device-desktop {
    width: 95px;
    height: 61px;
    border: 1.5px solid #526444;
    border-radius: 5px;
    background: #e6eeda;
    padding: 7px;
  }
  .device-desktop span,
  .device-phone span {
    display: block;
    width: 55%;
    height: 4px;
    border-radius: 1px;
    background: #526444;
    margin-bottom: 5px;
  }
  .device-desktop i,
  .device-phone i {
    display: block;
    height: 6px;
    background: #bfcea9;
    margin-bottom: 3px;
    border-radius: 1px;
  }
  .device-phone {
    position: absolute;
    right: 16px;
    bottom: -10px;
    border: 1.5px solid #526444;
    padding: 8px 5px;
    border-radius: 5px;
    width: 30px;
    height: 49px;
    background: #e6eeda;
    transform: rotate(13deg);
  }
  .device-phone span {
    height: 3px;
    width: 100%;
  }
  .device-phone i {
    height: 8px;
  }
  .showcase-caption {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 1.3rem 0 0;
  }
  .caption-square {
    display: inline-block;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent);
    margin-right: 0.6rem;
    vertical-align: 1px;
  }
  .showcase-caption > span:last-child > span {
    margin-left: 1rem;
  }

  /* 04. Services */
  .services-section {
    border-bottom: 1px solid var(--line);
  }
  .section-intro h2,
  .section-heading h2 {
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 1.14;
    letter-spacing: -0.055em;
    font-weight: 600;
  }
  .section-intro > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 380px;
    margin-top: 1.5rem;
    line-height: 1.85;
  }
  .section-intro .text-link {
    margin-top: 1.8rem;
  }
  .service-item {
    border-bottom: 1px solid var(--line);
  }
  .service-item:first-child {
    border-top: 1px solid var(--line);
  }
  .service-item summary {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding-block: 1.6rem;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 600;
  }
  .service-item summary::-webkit-details-marker {
    display: none;
  }
  .service-icon {
    display: inline-grid;
    width: 30px;
    flex-shrink: 0;
    place-items: center;
    font-size: 1.5rem;
    color: var(--accent);
  }
  .code-icon {
    font-family: var(--font-mono);
    font-size: 1rem;
  }
  .details-indicator {
    position: relative;
    margin-left: auto;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .details-indicator::before,
  .details-indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 12px;
    height: 1px;
    background: var(--paper);
    transition: transform 0.2s;
  }
  .details-indicator::after {
    transform: rotate(90deg);
  }
  .service-item[open] .details-indicator::after {
    transform: rotate(0);
  }
  .service-body {
    padding: 0 2rem 1.7rem 3.05rem;
  }
  .service-body p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.1rem;
  }
  .tag {
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0.25rem 0.6rem;
    color: #bac3b1;
    font-size: 0.8125rem;
  }

  /* 05. Concept projects — small, genuine HTML website compositions */
  .section-heading {
    margin-bottom: 3rem;
  }
  .section-aside {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
  }
  .project-open {
    display: block;
    width: 100%;
    position: relative;
    border-radius: 8px;
    padding: 2.8rem 1.8rem;
    overflow: hidden;
    text-align: left;
    border: 1px solid #ffffff12;
    transition: border-color 0.25s;
  }
  .project-open:hover {
    border-color: #ffffff65;
  }
  .fieldhouse-preview {
    background: #28382e;
  }
  .coffee-preview {
    background: #d6ad95;
  }
  .project-window {
    display: block;
    background: #faf9f4;
    box-shadow: 0 10px 35px #0003;
    transition: transform 0.4s;
    overflow: hidden;
  }
  .project-open:hover .project-window {
    transform: translateY(-6px);
  }
  .property-nav,
  .coffee-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 0.9rem 1rem;
    color: #243529;
  }
  .property-nav strong {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    letter-spacing: -0.06em;
    font-weight: 400;
  }
  .property-nav strong > span,
  .coffee-nav strong > span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    margin-left: 1px;
    vertical-align: top;
  }
  .property-nav > span,
  .coffee-nav > span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
  }
  .property-nav-button {
    border-bottom: 1px solid #87927f;
    padding-bottom: 2px;
  }
  .property-hero {
    position: relative;
    display: block;
    height: 272px;
    overflow: hidden;
    background: #1e3627;
  }
  .property-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #001209ad, #0012090d);
  }
  .property-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .property-overlay {
    position: absolute;
    z-index: 1;
    inset: 1.8rem 1.4rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    color: #fff;
  }
  .property-overlay .mini-label {
    font-size: 0.75rem;
  }
  .property-overlay > strong {
    font-family: Georgia, serif;
    font-size: clamp(2rem, 3.15vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-top: 1rem;
    font-weight: 400;
  }
  .property-link {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
    margin-top: auto;
    font-size: 0.8125rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ffffff80;
  }
  .image-counter {
    position: absolute;
    z-index: 1;
    bottom: 1.8rem;
    right: 1.4rem;
    color: white;
    font-size: 0.75rem;
    font-family: var(--font-mono);
  }
  .property-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    color: #344736;
    font-size: 0.75rem;
  }
  .coffee-nav {
    background: #f5eddf;
    color: #652f23;
    min-height: 58px;
  }
  .coffee-nav strong {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.065em;
  }
  .coffee-nav-symbol {
    font-size: 1.6rem !important;
    line-height: 1;
  }
  .coffee-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 272px;
    background: #f5eddf;
    color: #652f23;
  }
  .coffee-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 1rem;
  }
  .coffee-copy .mini-label {
    font-size: 0.75rem;
    letter-spacing: 0.015em;
  }
  .coffee-copy > strong {
    font-family: Georgia, serif;
    font-size: clamp(1.9rem, 2.7vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.04;
    margin-top: 1rem;
  }
  .coffee-menu-button {
    display: block;
    color: #fff6e8;
    background: #783f2e;
    border-radius: 100px;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
    margin-top: 1rem;
  }
  .coffee-small {
    font-size: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    line-height: 1.4;
  }
  .coffee-hero img {
    width: 100%;
    height: 100%;
    min-height: 272px;
    object-fit: cover;
  }
  .coffee-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem 0.5rem;
    background: #783f2e;
    color: #fff6e8;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .project-hover-label {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--ink);
    border-radius: 4px;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-weight: 650;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s;
  }
  .project-open:hover .project-hover-label {
    opacity: 1;
    transform: translateY(0);
  }

  .project-open:focus-visible .project-hover-label {
    opacity: 1;
    transform: translateY(0);
  }
  .project-meta {
    padding-top: 1.4rem;
  }
  .project-meta h3 {
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    font-weight: 600;
  }
  .project-meta p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.25rem;
  }
  .project-type {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    padding-top: 0.3rem;
  }
  .concept-note {
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: var(--muted);
  }

  /* 06. Process */
  .process-section {
    background: var(--surface);
    border-block: 1px solid var(--line);
  }
  .process-grid {
    margin-top: 3.5rem;
  }
  .process-grid li {
    border-top: 1px solid #58624e;
    padding-top: 1.3rem;
  }
  .step-number {
    display: block;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }
  .process-grid h3 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.04em;
  }
  .process-grid p {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 1rem;
    line-height: 1.8;
    max-width: 350px;
  }
  .step-label {
    display: block;
    margin-top: 2rem;
    color: #c7cebd;
    font-family: var(--font-mono);
    font-size: 0.75rem;
  }

  /* 07. Contact & footer */
  .contact-section {
    background: var(--accent);
    color: var(--ink);
    padding-block: 6.5rem;
    color-scheme: light;
  }
  .contact-copy {
    position: relative;
  }
  .contact-copy h2 {
    font-size: clamp(3.8rem, 6.5vw, 6rem);
    line-height: 1.03;
    letter-spacing: -0.07em;
    font-weight: 600;
  }
  .contact-copy h2 span {
    font-family: Georgia, serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.055em;
  }
  .contact-copy > p:not(.eyebrow) {
    font-size: 1.0625rem;
    line-height: 1.75;
    max-width: 325px;
    margin-top: 2rem;
    color: #364120;
  }
  .contact-asterisk {
    display: block;
    font-size: 4.5rem;
    line-height: 1;
    margin-top: 2rem;
  }
  .contact-form {
    align-self: center;
  }
  .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .form-field label {
    font-size: 0.875rem;
    font-weight: 650;
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    background: #ecffb338;
    border: 1px solid #647d3166;
    border-radius: 4px;
    padding: 0.85rem 0.95rem;
    color: var(--ink);
    min-width: 0;
    width: 100%;
    font-size: 1rem;
  }
  .form-field textarea {
    resize: vertical;
    min-height: 115px;
  }
  .form-field input::placeholder,
  .form-field textarea::placeholder {
    color: #556536;
    opacity: 1;
  }
  .form-field input:focus-visible,
  .form-field textarea:focus-visible,
  .form-field select:focus-visible,
  .contact-section button:focus-visible {
    outline-color: #344818;
  }
  .form-field select {
    min-height: 54px;
  }
  .form-field select option {
    background: var(--paper);
  }
  .contact-submit .button {
    width: 100%;
    justify-content: space-between;
  }
  .form-note {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #425329;
    margin-top: 1rem;
  }
  .site-footer {
    padding-block: 3rem 1.5rem;
  }
  .footer-top {
    padding-bottom: 2.5rem;
  }
  .footer-top > p {
    color: #c0c8b7;
    font-size: 0.875rem;
  }
  .back-top {
    display: inline-flex;
    align-items: center;
    gap: 1.3rem;
    font-size: 0.875rem;
  }
  .back-top:hover {
    color: var(--accent);
  }
  .footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    color: var(--muted);
    font-size: 0.8125rem;
  }

  /* 08. Accessible dialogs & inquiry preview */
  .site-dialog {
    position: fixed;
    margin: auto;
    padding: 0;
    width: min(680px, calc(100% - 2rem));
    max-height: 90dvh;
    border: 1px solid #58624e;
    border-radius: 12px;
    background: var(--surface);
    color: var(--paper);
    overflow: auto;
    box-shadow: 0 24px 100px #0008;
  }
  .site-dialog::backdrop {
    background: #080c08cc;
    backdrop-filter: blur(6px);
  }
  .dialog-inner {
    padding: 2.5rem;
  }
  .dialog-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 100%;
    font-size: 1.6rem;
    line-height: 1;
    background: var(--ink);
  }
  .dialog-close:hover {
    color: var(--accent);
  }
  .dialog-inner > .eyebrow {
    padding-right: 2rem;
  }
  .dialog-inner h2 {
    font-size: 2.5rem;
    letter-spacing: -0.055em;
    line-height: 1.15;
    font-weight: 600;
  }
  .dialog-description {
    color: var(--muted);
    margin-top: 1rem;
  }
  .dialog-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 5px;
    margin-block: 1.5rem;
  }
  .dialog-inner h3 {
    font-size: 1rem;
    font-weight: 650;
  }
  .feature-list {
    list-style: none;
    margin-block: 1rem 1.5rem;
  }
  .feature-list li {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
    font-size: 1rem;
    color: #c4cdba;
  }
  .feature-list li::before {
    content: "✓";
    color: var(--accent);
    flex-shrink: 0;
  }
  .dialog-note {
    margin-block: 1rem;
    color: var(--muted);
    font-size: 0.875rem;
  }
  #inquiry-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    border: 1px solid var(--line);
    background: var(--ink);
    border-radius: 4px;
    padding: 1.2rem;
    margin-block: 1.5rem;
  }
  .noscript-note {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--paper);
    color: var(--ink);
    z-index: 50;
  }
      /* FIELDHOUSE: background of the opened project dialog. */
      #project-dialog[data-project="fieldhouse"] {
        --project-dialog-background: #28382e;
      }

      /* GOOD DAY: background of the opened project dialog. */
      #project-dialog[data-project="goodday"] {
        --project-dialog-background: #4a2d24;
      }

      /* Apply the selected color to the dialog and its content wrapper. */
      #project-dialog,
      #project-dialog > .dialog-inner {
        background: var(--project-dialog-background, var(--surface, #1b1f1b));
      }

      /* Keep each preview's hover label inside its own button. */
      #fieldhouse-example > .project-open,
      #goodday-example > .project-open {
        position: relative;
        isolation: isolate;
      }

  /* 09. Subtle motion. Content stays visible when JavaScript is unavailable. */
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .hero-copy {
    animation: arrive 0.6s ease-out both;
  }
  .hero-showcase {
    animation: arrive 0.7s 0.1s ease-out both;
  }

  /* 10. Responsive refinements */
  @media (min-width: 1440px) {
    .hero h1 {
      font-size: 7rem;
    }
  }

  @media (max-width: 1100px) {
    .page-shell {
      width: calc(100% - 4rem);
    }
    .showcase-grid {
      grid-template-columns: minmax(0, 1fr) 255px;
    }
    .demo-site {
      padding-inline: 1.6rem;
    }
    .type-art {
      right: 1.5rem;
      width: 160px;
      height: 235px;
    }
    .type-art > span:first-child {
      font-size: 18rem;
    }
    .type-art-star {
      right: -1rem;
      font-size: 4.5rem;
      bottom: 1rem;
    }
    .style-card {
      padding: 1.25rem;
    }
    .palette-options {
      gap: 0.35rem;
    }
    .property-nav > span:not(.property-nav-button),
    .coffee-nav > span:not(.coffee-nav-symbol) {
      display: none;
    }
    .project-open {
      padding: 2.2rem 1.25rem;
    }
    .coffee-copy {
      padding: 1.4rem 0.9rem;
    }
    .coffee-menu-button {
      font-size: 0.75rem;
      padding-inline: 0.65rem;
    }
  }

  @media (max-width: 767px) {
    .page-shell {
      width: calc(100% - 3rem);
    }
    .site-header {
      padding-block: 1rem;
    }
    .wordmark {
      font-size: 1.5rem;
    }
    .hero {
      padding-top: 3rem;
    }
    .hero h1 {
      font-size: clamp(3.15rem, 10.3vw, 5.3rem);
      letter-spacing: -0.07em;
    }
    .eyebrow {
      font-size: 0.75rem;
      margin-bottom: 1.4rem;
      letter-spacing: 0.035em;
    }
    .hero-description {
      font-size: 1rem;
    }
    .hero-bottom {
      margin-top: 1.6rem;
    }
    .hero-actions {
      gap: 0.7rem;
    }
    .button {
      gap: 1rem;
    }
    .hero-showcase {
      margin-top: 3rem;
    }
    .showcase-heading .preview-hint {
      display: none;
    }
    .showcase-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .demo-site {
      padding: 1.1rem 1.5rem;
    }
    .demo-content {
      padding-block: 1.6rem;
    }
    .demo-content h2 {
      font-size: clamp(2.7rem, 8vw, 4rem);
    }
    .demo-nav-label {
      font-size: 0.75rem;
    }
    .type-art {
      right: 2rem;
      bottom: 3.5rem;
      width: 135px;
      height: 210px;
    }
    .type-art > span:first-child {
      font-size: 17rem;
    }
    .type-art-star {
      font-size: 4rem;
      right: -1rem;
      bottom: 0;
    }
    .demo-description {
      max-width: 60%;
    }
    .showcase-sidebar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .style-card h3 {
      font-size: 1rem;
      margin-top: 0.8rem;
    }
    .style-card > p:not(.palette-label) {
      display: none;
    }
    .palette-label {
      margin-top: 0.7rem;
    }
    .palette-options {
      gap: 0.2rem;
      flex-wrap: wrap;
    }
    .palette-swatch {
      width: 40px;
      height: 44px;
      padding: 5px 3px;
      border-radius: 22px;
    }
    .palette-swatch > span {
      width: 30px;
      height: 30px;
    }
    .responsive-card {
      padding: 1.2rem;
    }
    .responsive-card > p {
      margin-top: 5rem;
    }
    .devices {
      top: 4rem;
      right: 1rem;
    }
    .showcase-caption > span:last-child {
      display: none;
    }
    .section-pad {
      padding-block: 4.5rem;
    }
    .section-intro h2,
    .section-heading h2 {
      font-size: 2.5rem;
    }
    .section-intro > p:not(.eyebrow) {
      max-width: 100%;
    }
    .service-item summary {
      font-size: 1rem;
      gap: 0.8rem;
    }
    .service-body {
      padding-left: 2.65rem;
      padding-right: 0;
    }
    .project-grid {
      gap: 2.5rem;
    }
    .project-open {
      padding: 2.2rem 1.5rem;
    }
    .property-overlay > strong {
      font-size: 2.7rem;
    }
    .coffee-copy > strong {
      font-size: 2.5rem;
    }
    .project-hover-label {
      opacity: 1;
      transform: none;
      font-size: 0.8125rem;
      padding: 0.5rem 0.8rem;
      bottom: 0.7rem;
      right: 0.7rem;
    }
    .process-grid {
      margin-top: 2.5rem;
    }
    .process-grid li {
      padding-top: 1.2rem;
    }
    .step-number {
      margin-bottom: 1rem;
    }
    .step-label {
      margin-top: 1.2rem;
    }
    .process-grid p {
      max-width: 100%;
    }
    .contact-section {
      padding-block: 4.5rem;
    }
    .contact-copy h2 {
      font-size: 4.5rem;
    }
    .contact-asterisk {
      position: absolute;
      right: 1rem;
      top: 1.5rem;
      font-size: 4rem;
    }
    .contact-copy > p:not(.eyebrow) {
      max-width: 100%;
    }
    .site-footer {
      padding-top: 2.5rem;
    }
    .dialog-inner {
      padding: 2rem 1.5rem;
    }
    .dialog-inner h2 {
      font-size: 2rem;
    }
  }

  @media (max-width: 440px) {
    .page-shell {
      width: calc(100% - 2.5rem);
    }
    .hero h1 {
      font-size: clamp(2.55rem, 10.5vw, 4rem);
    }
    .hero .eyebrow {
      font-size: 0.75rem;
    }
    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }
    .hero-actions .button {
      justify-content: space-between;
    }
    .showcase-heading .eyebrow {
      max-width: 230px;
    }
    .demo-site {
      padding-inline: 1rem;
    }
    .demo-nav-label {
      display: none;
    }
    .demo-content h2 {
      font-size: 2.6rem;
    }
    .type-art {
      right: 0.8rem;
      bottom: 3.5rem;
      width: 78px;
      height: 145px;
      opacity: 0.8;
    }
    .type-art > span:first-child {
      font-size: 11rem;
      text-shadow:
        -1px 0 #192117,
        0 1px #192117,
        1px 0 #192117,
        0 -1px #192117,
        5px 5px 0 #192117;
    }
    .type-art-star {
      font-size: 2.7rem;
      right: -0.6rem;
      bottom: 0;
    }
    .demo-description {
      max-width: 75%;
    }
    .demo-site-footer {
      font-size: 0.75rem;
      align-items: start;
    }
    .demo-site-footer > span {
      max-width: 46%;
    }
    .showcase-sidebar {
      grid-template-columns: minmax(0, 1fr);
    }
    .style-card {
      padding: 1.1rem 1.25rem;
    }
    .style-card h3 br {
      display: none;
    }
    .palette-options {
      gap: 0.6rem;
    }
    .palette-label {
      margin-top: 0.5rem;
    }
    .responsive-card {
      min-height: 140px;
    }
    .responsive-card > p {
      margin-top: 2rem;
    }
    .devices {
      top: 3.5rem;
    }
    .project-open {
      padding: 1.7rem 0.9rem;
    }
    .property-nav {
      padding-inline: 0.75rem;
    }
    .property-nav-button {
      font-size: 0.75rem;
    }
    .property-overlay {
      inset: 1.5rem 1rem;
    }
    .property-overlay > strong {
      font-size: 2.4rem;
    }
    .image-counter {
      display: none;
    }
    .property-footer {
      padding-inline: 0.7rem;
      gap: 0.5rem;
    }
    .coffee-copy {
      padding: 1.2rem 0.75rem;
    }
    .coffee-copy > strong {
      font-size: 2rem;
    }
    .coffee-copy .mini-label {
      line-height: 1.4;
    }
    .coffee-menu-button {
      font-size: 0.75rem;
      padding: 0.6rem;
      border-radius: 4px;
    }
    .coffee-footer {
      justify-content: flex-start;
      padding-left: 0.75rem;
      gap: 0.6rem;
    }
    .contact-copy h2 {
      font-size: 3.8rem;
    }
    .contact-asterisk {
      right: 0;
      font-size: 3rem;
      top: 2rem;
    }
  }

  /* Honor visitor motion preferences, including anchor navigation. */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
    }
  }
} /* End component layer: Tailwind utilities can still override components. */
