:root {
  color-scheme: dark;
  --color-canvas: #171918;
  --color-ink: #f5f4ef;
  --color-muted: #bbbdb8;
  --color-accent: #e44810;
  --color-accent-hover: #f15a23;
  --color-on-accent: #ffffff;
  --color-divider: rgb(245 244 239 / 15%);
  --color-facet-slate: #252b28;
  --color-facet-charcoal: #1e2320;
  --color-facet-earth: #392c25;
  --color-facet-brown: #563225;
  --color-facet-terracotta: #963f25;
  --color-facet-rust: #713722;
  --font-sans: "Segoe UI", Arial, sans-serif;
  --font-body: 1.125rem;
  --font-body-mobile: 1rem;
  --font-label: 0.875rem;
  --font-footer: 0.875rem;
  --font-service: 1.625rem;
  --font-service-mobile: 1.125rem;
  --font-action: 1rem;
  --font-title: clamp(2.5rem, 7.1vw, 6.25rem);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --line-body: 1.75;
  --line-title: 1.08;
  --line-label: 1.5;
  --tracking-title: -0.06em;
  --tracking-label: 0.13em;
  --tracking-label-mobile: 0.08em;
  --tracking-tagline: 0.055em;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --page-width: 75rem;
  --description-width: 42rem;
  --brand-width: 20rem;
  --button-height: 3.5rem;
  --button-width-mobile: 20rem;
  --radius-button: 0.375rem;
  --border-width: 1px;
  --focus-width: 2px;
  --focus-offset: 4px;
  --ambient-overscan: 8vmax;
  --ambient-duration: 42s;
  --ambient-shift-x: 1.25rem;
  --ambient-shift-y: -1rem;
  --ambient-rotation: 1deg;
  --intro-title-duration: 600ms;
  --intro-line-delay: 180ms;
  --intro-fade-duration: 650ms;
  --intro-fade-delay: 360ms;
  --intro-contact-delay: 500ms;
  --intro-shift: 0.75rem;
  --marquee-gap: 2rem;
  --marquee-duration: 90s;
  --marquee-edge: 3rem;
  --motion-control-height: 2.75rem;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--color-canvas);
}

body {
  isolation: isolate;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--color-ink); background: var(--color-accent); }

.svg-utilities { position: absolute; overflow: hidden; pointer-events: none; }

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, var(--page-width));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: var(--space-10) var(--space-6) var(--space-6);
}

/* Only the decorative layer clips. The page can scroll and show focus freely. */
.ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--color-canvas);
}

.ambient__facets {
  position: absolute;
  top: calc(-1 * var(--ambient-overscan));
  left: calc(-1 * var(--ambient-overscan));
  width: calc(100% + var(--ambient-overscan) * 2);
  height: calc(100% + var(--ambient-overscan) * 2);
}

.facet--slate { fill: var(--color-facet-slate); }
.facet--charcoal { fill: var(--color-facet-charcoal); }
.facet--earth { fill: var(--color-facet-earth); }
.facet--brown { fill: var(--color-facet-brown); }
.facet--terracotta { fill: var(--color-facet-terracotta); }
.facet--rust { fill: var(--color-facet-rust); }
.facet--orange { fill: var(--color-accent); }

.site-header { display: flex; justify-content: center; }

/* Crop the unchanged original JPEG. The native SVG key removes neutral pixels,
   retaining the original RGB wordmark, while the HTML tagline sits at its right. */
.brand {
  position: relative;
  overflow: hidden;
  flex: none;
  width: min(100%, var(--brand-width));
  aspect-ratio: 1034 / 277;
}

.brand__image {
  position: absolute;
  top: -174.729242%;
  left: -10.735010%;
  display: block;
  width: 121.276596%;
  max-width: none;
  height: auto;
  filter: url("#brand-color-key");
}

.brand__tagline {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--color-ink);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
  line-height: var(--line-label);
  letter-spacing: var(--tracking-tagline);
  white-space: nowrap;
}

.hero {
  margin-block: auto;
  padding-block: var(--space-14) var(--space-12);
  text-align: center;
}

.eyebrow {
  margin: 0 0 var(--space-6);
  color: var(--color-muted);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
  line-height: var(--line-label);
  letter-spacing: var(--tracking-label);
}

h1 {
  margin: 0;
  font-size: var(--font-title);
  font-weight: var(--weight-semibold);
  line-height: var(--line-title);
  letter-spacing: var(--tracking-title);
}

.title__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.13em;
  margin-bottom: -0.06em;
}

.title__inner { display: block; }
.hero__accent { color: var(--color-accent); }

.hero__description {
  max-width: var(--description-width);
  margin: var(--space-6) auto 0;
  color: var(--color-muted);
  text-wrap: pretty;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  font-size: var(--font-action);
  font-weight: var(--weight-semibold);
  line-height: var(--line-label);
}

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  text-underline-offset: var(--space-1);
}

.contact__primary {
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-button);
  color: var(--color-on-accent);
  background: var(--color-accent);
  text-decoration: none;
}

.contact__primary:hover { background: var(--color-accent-hover); }

.contact__secondary {
  padding: var(--space-3) var(--space-4);
  color: var(--color-ink);
  font-weight: var(--weight-regular);
  text-decoration-thickness: var(--border-width);
}

.contact__secondary:hover, .motion-toggle:hover { color: var(--color-accent-hover); }

a:focus-visible, .motion-toggle:focus-visible {
  outline: var(--focus-width) solid var(--color-ink);
  outline-offset: var(--focus-offset);
}

.services { margin-top: var(--space-12); }

.services h2 {
  margin: 0 0 var(--space-5);
  color: var(--color-muted);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
  line-height: var(--line-label);
}

.services__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  margin: 0;
  padding: var(--space-5) var(--space-4);
  border-block: var(--border-width) solid var(--color-divider);
  list-style: none;
  color: var(--color-muted);
  font-size: var(--font-service);
  line-height: var(--line-label);
}

.marquee {
  display: none;
  overflow: hidden;
  padding-block: var(--space-5);
  border-block: var(--border-width) solid var(--color-divider);
  mask-image: linear-gradient(to right, transparent, #000 var(--marquee-edge), #000 calc(100% - var(--marquee-edge)), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--marquee-edge), #000 calc(100% - var(--marquee-edge)), transparent);
}

.marquee__track { display: flex; width: max-content; }

.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--marquee-gap);
  min-width: var(--page-width);
  padding-right: var(--marquee-gap);
  color: var(--color-muted);
  font-size: var(--font-service);
  font-weight: var(--weight-medium);
  line-height: var(--line-label);
  white-space: nowrap;
}

.marquee__group i { color: var(--color-accent); font-style: normal; }

/* The normal list is the single accessible source in every motion state. */
.motion-ready[data-motion-enabled="true"] .services__list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}

.motion-ready[data-motion-enabled="true"] .marquee { display: block; }

.motion-ready .ambient__facets {
  animation: ambient-drift var(--ambient-duration) ease-in-out infinite alternate;
}

.motion-ready .marquee__track {
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}

.intro-ready .title__inner {
  animation: title-reveal var(--intro-title-duration) cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.intro-ready .title__line:nth-child(2) .title__inner { animation-delay: var(--intro-line-delay); }

.intro-ready .hero__description {
  animation: content-reveal var(--intro-fade-duration) ease-out var(--intro-fade-delay) both;
}

.intro-ready .contact {
  animation: content-reveal var(--intro-fade-duration) ease-out var(--intro-contact-delay) both;
}

/* Pause continuous motion without stranding the one-time text entrance. */
.motion-ready[data-motion-paused="true"] .ambient__facets,
.motion-ready[data-motion-paused="true"] .marquee__track { animation-play-state: paused; }

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--font-footer);
  line-height: var(--line-label);
  text-align: center;
}

.site-footer p { margin: 0; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--motion-control-height);
  margin-top: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-button);
  color: var(--color-muted);
  background: transparent;
  font: inherit;
  font-size: var(--font-label);
  text-decoration: underline;
  text-decoration-thickness: var(--border-width);
  text-underline-offset: var(--space-1);
  cursor: pointer;
}

.motion-toggle[hidden] { display: none; }

@keyframes ambient-drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--ambient-shift-x), var(--ambient-shift-y)) rotate(var(--ambient-rotation)); }
}

@keyframes marquee-scroll { to { transform: translateX(-50%); } }

@keyframes title-reveal {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes content-reveal {
  from { opacity: 0; transform: translateY(var(--intro-shift)); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  :root { --font-service: var(--font-service-mobile); --marquee-gap: 1.25rem; --marquee-edge: 1.5rem; }
  .page { padding-top: var(--space-8); }
  .hero { padding-block: var(--space-12); }
  .eyebrow { margin-bottom: var(--space-5); letter-spacing: var(--tracking-label-mobile); }
  .hero__description { font-size: var(--font-body-mobile); }
  .contact { margin-top: var(--space-6); }
  .contact__primary { width: min(100%, var(--button-width-mobile)); padding-inline: var(--space-4); }
  .services { margin-top: var(--space-10); }
  .services__list { flex-direction: column; gap: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .ambient__facets,
  .motion-ready .marquee__track,
  .intro-ready .title__inner,
  .intro-ready .hero__description,
  .intro-ready .contact { animation: none; }
  .motion-toggle, .motion-ready[data-motion-enabled="true"] .marquee { display: none; }
  .motion-ready[data-motion-enabled="true"] .services__list {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: var(--space-5) var(--space-4);
    overflow: visible;
    clip-path: none;
    border-block: var(--border-width) solid var(--color-divider);
  }
}
