@font-face {
  font-family: Geist;
  src: url("./assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page-bg: #f5f4ee;
  --page-text: #171914;
  --accent: #d7fc52;
  --accent-ink: #171914;
  --muted: #50534a;
  --rule: #a6a79b;
  --card: #fbfaf5;
  --services-bg: #f0efe7;
  --contact-bg: #171914;
  --contact-text: #f5f4ee;
  --contact-rule: #888b7c;
  --error: #ffb2a3;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(3.75rem, 8vw, 8rem);
  font-family: Geist, Inter, Arial, sans-serif;
  font-synthesis: none;
  scrollbar-gutter: stable;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-preview-palette="light"])) {
    --page-bg: #1a1c17;
    --page-text: #f5f4ee;
    --muted: #bfc1b4;
    --rule: #676b5e;
    --card: #22251e;
    --services-bg: #1e211a;
    --contact-bg: #10120f;
  }
}

:root[data-preview-palette="light"] { color-scheme: light; }
:root[data-preview-palette="dark"] {
  color-scheme: dark;
  --page-bg: #1a1c17;
  --page-text: #f5f4ee;
  --muted: #bfc1b4;
  --rule: #676b5e;
  --card: #22251e;
  --services-bg: #1e211a;
  --contact-bg: #10120f;
}

@supports (color: color-mix(in srgb, black, white)) {
  :root, :root[data-preview-palette] {
    --services-bg: color-mix(in srgb, var(--page-bg), var(--page-text) 3%);
    --card: color-mix(in srgb, var(--page-bg), white 4%);
    --muted: color-mix(in srgb, var(--page-text) 76%, var(--page-bg));
    --rule: color-mix(in srgb, var(--page-text) 36%, var(--page-bg));
    --contact-bg: color-mix(in srgb, #10120f 90%, var(--page-bg));
    --contact-text: color-mix(in srgb, #f5f4ee 90%, var(--page-text));
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html.has-modal { overflow: hidden; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button, summary, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(100% - 2 * var(--gutter), 88rem); margin-inline: auto; }
section[id] { scroll-margin-top: 1rem; }
.section-space { padding-block: var(--section-space); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 5vw, 5.5rem);
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.065em; }
h2 { font-size: clamp(2.85rem, 6.2vw, 6.25rem); line-height: 0.94; }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.4rem); line-height: 1.02; letter-spacing: -0.045em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85em;
  min-height: 2.75rem;
  padding: 0.62em 0.92em;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.18;
  text-decoration: none;
}
.button > span { flex: none; }
.button-outline { border-color: currentColor; background: transparent; }
.button-outline:hover { background: var(--accent); color: var(--accent-ink); }
.button-accent, .text-button { background: var(--accent); color: var(--accent-ink); }
.button-accent:hover, .text-button:hover { filter: brightness(0.93); }
.button-accent:focus-visible, .text-button:focus-visible, .layout-switch button:focus-visible { outline-color: var(--page-text); }

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  min-height: 5.25rem;
  gap: 1rem;
  border-bottom: 1px solid var(--page-text);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.52rem;
  font-size: clamp(1.45rem, 2.55vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.075em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-sub { display: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.11em;
  padding-inline: 0.12em;
}
.brand-mark i { width: 0.17em; height: 0.78em; background: currentColor; transform: skewX(-31deg); }
.site-nav { display: grid; grid-template-columns: auto auto 1fr; gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.site-nav a { font-weight: 700; text-decoration: none; }
.site-nav a:not(.button):hover, .footer-inner nav a:hover { text-decoration: underline; text-underline-offset: 0.24em; }
.site-nav .button { justify-self: end; }
.menu-toggle { display: none; }
.menu-icon {
  width: 0.9em;
  height: 0.55em;
  border-block: 1.5px solid currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4.5vw, 4.75rem) clamp(3.5rem, 6.5vw, 6.5rem);
}
.hero-copy { min-width: 0; font-size: clamp(3rem, 7.55vw, 7.55rem); }
.hero-copy h1 { max-width: 9.6ch; font-size: 1em; line-height: 0.91; }
.hero-copy p {
  max-width: 31ch;
  margin-block: clamp(1.15rem, 2.5vw, 2.25rem) clamp(1.4rem, 2.7vw, 2.5rem);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  letter-spacing: -0.026em;
  line-height: 1.28;
}
.hero-copy .button {
  display: flex;
  width: fit-content;
  font-size: clamp(1.025rem, 1.45vw, 1.35rem);
}
.hero-visual {
  position: relative;
  align-self: center;
  max-width: 100%;
  min-width: 0;
  min-height: 11.25rem;
  width: 100%;
  aspect-ratio: 1.27;
  background-color: #dcf984;
  background-image:
    linear-gradient(rgba(69, 83, 22, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 83, 22, 0.12) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-poster, #hero-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-poster { object-fit: cover; }
#hero-stage { visibility: hidden; }
#hero-stage canvas { display: block; width: 100%; height: 100%; }
.hero-visual.has-3d #hero-stage { visibility: visible; }
.hero-visual.has-3d .hero-poster { visibility: hidden; }
.hero-motion-toggle {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #171914;
  border-radius: 0;
  background: #e8fbaf;
  color: #171914;
  font-size: 0.8rem;
  font-weight: 700;
}
.hero-motion-toggle:hover { background: #171914; color: #f5f4ee; }
.hero-motion-toggle:focus-visible { outline-color: #171914; }
.hero-visual.has-3d::before {
  content: "";
  position: absolute;
  inset: 77% 14% 11%;
  background: radial-gradient(ellipse, rgba(57, 68, 19, 0.25), transparent 66%);
}
.hero-visual figcaption {
  position: absolute;
  bottom: 0.8rem;
  inset-inline: 0.95rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: #171914;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  letter-spacing: 0.02em;
}

.services { background: var(--services-bg); border-block: 1px solid var(--rule); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: clamp(1.6rem, 3.7vw, 3.5rem);
}
.section-heading p { margin-top: 0.75rem; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.layout-switch { display: inline-flex; align-self: end; border: 1px solid var(--page-text); }
.layout-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 5.25rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 700;
}
.layout-switch button + button { border-inline-start: 1px solid var(--page-text); }
.layout-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.layout-switch button:hover { text-decoration: underline; }
.grid-icon, .list-icon { display: inline-block; width: 0.85rem; height: 0.85rem; }
.grid-icon { border: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center/1px 100% no-repeat, linear-gradient(currentColor, currentColor) center/100% 1px no-repeat; }
.list-icon { border-block: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat; }
.service-board { container-type: inline-size; }
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  align-items: stretch;
}
.service-cards + .service-cards:not([hidden]) { margin-top: 1.5rem; }
.service-cards.is-list { grid-template-columns: minmax(0, 1fr); }
.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--card);
}
.service-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.8;
  border-bottom: 1px solid var(--rule);
  background: #92947b;
}
.service-art img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 300%;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}
.design-art img { left: -100%; }
.installation-art img { left: -200%; }
.service-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(1.1rem, 2.2vw, 2rem);
}
.service-copy > p { margin-block: 0.7rem 1.2rem; color: var(--muted); }
.text-button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0.7rem;
  margin-top: auto;
  font-weight: 750;
  text-align: left;
}
.text-button > span { margin-left: 0.35rem; }
.has-service-dialog .service-fallback { display: none; }
.service-fallback summary { font-weight: 750; }
.service-more { margin-top: 0.8rem; }
.service-more ul, #service-dialog-content ul { padding-inline-start: 1.4rem; }
@container (min-width: 34rem) {
  .is-list > .service-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.35fr); }
  .is-list .service-art { align-self: stretch; border-right: 1px solid var(--rule); border-bottom: 0; }
  .is-list .service-copy { justify-content: center; }
  .is-list .text-button { margin-top: 0; }
}

.faq h2 { max-width: 7ch; }
.questions { border-top: 1px solid var(--rule); }
.questions details { border-bottom: 1px solid var(--rule); }
.questions summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.9rem;
  list-style: none;
  font-size: clamp(1.1rem, 2.05vw, 1.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.questions summary::-webkit-details-marker { display: none; }
.questions details p { padding: 0 2rem 1.15rem 0; max-width: 59ch; color: var(--muted); }
.faq-icon { position: relative; flex: none; width: 1.05rem; height: 1.05rem; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: currentColor; }
.faq-icon::before { inset: calc(50% - 1px) 0; }
.faq-icon::after { inset: 0 calc(50% - 1px); }
details[open] .faq-icon::after { display: none; }
dfn { font-style: normal; text-decoration: underline dotted; text-underline-offset: 0.16em; }
.tip-toggle {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  margin-left: 0.3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
}
.tip-toggle:hover, .tip-toggle[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
.questions details .term-tip {
  max-width: 27rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  border-inline-start: 0.2rem solid var(--accent);
  background: var(--card);
  color: var(--page-text);
}

.contact { background: var(--contact-bg); color: var(--contact-text); color-scheme: dark; }
.contact h2 { max-width: 8.5ch; }
.contact .split > div > p { margin-top: 1.35rem; max-width: 35ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 650; }
.optional { color: #c1c3b6; font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--contact-rule);
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.field textarea { display: block; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 0.35rem; color: var(--error); font-size: 0.88rem; }
.contact-form > .button { grid-column: 1 / -1; justify-self: start; }
.contact-form > .button:focus-visible { outline-color: var(--contact-text); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem 2.5rem;
  padding-block: 1.85rem;
}
.footer-inner .wordmark { font-size: 1.5rem; }
.footer-inner .wordmark-sub { display: inline; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-inner nav a { font-weight: 650; text-decoration: none; }
.footer-inner small { color: var(--muted); }

.service-dialog {
  width: min(38rem, 100% - 2rem);
  max-height: calc(100% - 2rem);
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid var(--rule);
  background: var(--page-bg);
  color: var(--page-text);
  overscroll-behavior: contain;
}
.service-dialog::backdrop { background: rgba(11, 13, 9, 0.69); overflow: hidden; overscroll-behavior: contain; }
.dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 0.9rem; }
.dialog-top h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
.dialog-close { min-width: 2.75rem; padding: 0.35rem; justify-content: center; font-size: 1.5rem; }
#service-dialog-content { margin-top: 1.25rem; }

.config-mode { scroll-padding-bottom: 4.65rem; }
.config-tools > button {
  position: fixed;
  z-index: 4;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  border-color: #171914;
}
.config-panel {
  width: min(48rem, 100% - 2 * var(--gutter));
  margin: 1.25rem auto 0;
  scroll-margin-top: 1rem;
  padding: 1rem;
  overflow: auto;
  background: var(--card);
  color: var(--page-text);
  border: 1px solid var(--page-text);
  box-shadow: 0 0.8rem 3rem rgba(0, 0, 0, 0.22);
}
@supports selector(:has(*)) {
  @media (min-width: 1200px) {
    .config-mode:has(.config-panel:not([hidden])) body { margin-inline-end: 24.5rem; }
    .config-panel {
      position: fixed;
      z-index: 4;
      right: max(0.85rem, env(safe-area-inset-right));
      bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 3.2rem);
      width: 23rem;
      max-height: calc(100vh - 5rem);
      max-height: calc(100dvh - 5rem);
      margin: 0;
    }
  }
}
.config-panel h2 { font-size: 1.65rem; line-height: 1.08; letter-spacing: -0.045em; }
.config-panel p { margin-top: 0.45rem; font-size: 0.86rem; }
.config-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.config-panel .button { font-size: 0.88rem; }
.config-status { min-height: 1.35em; font-weight: 700; }
.config-panel fieldset { min-width: 0; margin: 0.75rem 0 0; padding: 0.75rem; border: 1px solid var(--rule); }
.config-panel legend, .config-panel label { font-weight: 700; }
.config-panel label { display: block; font-size: 0.87rem; }
.config-panel input:not([type="color"]), .config-panel select, .config-panel textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-block: 0.3rem 0.55rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--page-bg);
  color: var(--page-text);
}
.config-panel input[type="range"] { padding-inline: 0; accent-color: var(--accent); }
.config-panel input[type="color"] { display: block; width: 100%; min-height: 2.4rem; padding: 0.15rem; }
.config-panel textarea { resize: vertical; }
.config-panel .scale-label { display: flex; justify-content: space-between; gap: 0.6rem; }
.config-colors, .config-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.config-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#config-tags button { margin-top: 0.75rem; }
.config-mode [contenteditable="true"] { outline: 1px dashed currentColor; outline-offset: 0.2rem; cursor: text; }
.config-mode [contenteditable="true"]:focus { outline-style: solid; }
.config-mode [data-resizable] {
  min-width: min(12.5rem, 100%);
  max-height: 62.5rem;
  resize: both;
  overflow: auto;
}
.config-mode [data-dropzone] { min-height: 6rem; outline: 1px dashed var(--rule); outline-offset: 0.25rem; }
.config-mode [data-dropzone]:empty::before {
  content: "Drop a service card here";
  align-self: center;
  justify-self: center;
  padding: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.config-mode .service-card[draggable="true"] { cursor: grab; }
.config-mode .service-card.config-dragging { opacity: 0.55; user-select: none; }
.config-card-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px dashed var(--rule);
}
.config-card-controls button {
  min-height: 2.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--page-bg);
  font-size: 0.8rem;
  font-weight: 650;
}
.config-card-controls button:enabled:hover { background: var(--accent); color: var(--accent-ink); }
.config-card-controls button:disabled { opacity: 0.5; cursor: default; }
.is-list > .service-card > .config-card-controls { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .header-inner { display: flex; justify-content: space-between; min-height: 4.5rem; flex-wrap: wrap; }
  .site-nav { display: flex; flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    position: absolute;
    z-index: 3;
    top: calc(100% + 0.4rem);
    right: 0;
    display: flex;
    width: min(100%, 18rem);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.65rem;
    border: 1px solid var(--page-text);
    background: var(--page-bg);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.14);
  }
  .js .site-nav.is-open a { padding: 0.75rem; }
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.85rem; }
  .hero-copy { font-size: clamp(3rem, 11.7vw, 5.5rem); }
  .hero-visual { aspect-ratio: 1.4; }
  .faq h2, .contact h2 { max-width: none; }
}

@media (max-width: 435px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .site-nav .button { min-height: 2.4rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .text-button { transition: background-color 150ms ease, filter 150ms ease; }
}

@media (forced-colors: active) {
  .button-accent, .text-button, .hero-motion-toggle { border: 1px solid ButtonText; }
}
