/* NovaCrest static site */

:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-muted: #e9eee8;
  --ink: #171a16;
  --ink-soft: #545b52;
  --ink-faint: #777f74;
  --moss: #335f48;
  --moss-dark: #1f2b24;
  --clay: #8a4d39;
  --brass: #9a7035;
  --line: #d8ddd4;
  --line-strong: #bdc6b9;
  --white: #ffffff;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --container: 1180px;
  --gutter: 1.5rem;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(31, 43, 36, 0.11);
  --ring: 0 0 0 3px rgba(51, 95, 72, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(23, 26, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 22, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

button {
  border: 0;
}

svg {
  display: block;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section[id],
#top {
  scroll-margin-top: 6rem;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -5rem;
  z-index: 100;
  transform: translateX(-50%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--moss-dark);
  color: var(--white);
  font-weight: 700;
  transition: top 180ms var(--ease);
}

.skip-link:focus-visible {
  top: 1rem;
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  gap: 0.45rem;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--dark {
  background: var(--moss-dark);
  color: var(--white);
}

.btn--dark:hover {
  background: #121a15;
  box-shadow: 0 10px 24px rgba(31, 43, 36, 0.16);
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.95rem 1.25rem;
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--moss-dark);
  font-weight: 700;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.text-link:hover {
  color: var(--clay);
  border-color: var(--clay);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(245, 246, 242, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(245, 246, 242, 0.95);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}

.brand__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 6px;
  background: var(--moss-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.72rem;
  border-radius: 6px;
  color: #333a32;
  font-size: 0.96rem;
  font-weight: 600;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.nav__link:hover {
  background: rgba(51, 95, 72, 0.08);
  color: var(--moss-dark);
}

.nav__actions {
  justify-self: end;
}

.nav__toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav__toggle span {
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -0.38rem;
}

.nav__toggle span::after {
  top: 0.38rem;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(0.38rem) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 46rem;
  padding: 7.5rem 0 5.5rem;
  background:
    linear-gradient(90deg, rgba(245, 246, 242, 0.98) 0%, rgba(245, 246, 242, 0.92) 52%, rgba(233, 238, 232, 0.75) 100%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero__scene {
  position: absolute;
  inset: 5.5rem 0 0 auto;
  width: min(46rem, 52vw);
  pointer-events: none;
}

.console {
  position: absolute;
  top: 0;
  right: 2.5rem;
  width: min(27.5rem, 90%);
  border: 1px solid rgba(31, 43, 36, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: console-float 9s var(--ease) infinite alternate;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.console__dots {
  display: inline-flex;
  gap: 0.32rem;
}

.console__dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.console__title {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.console__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(51, 95, 72, 0.25);
  border-radius: 999px;
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 700;
}

.console__pill i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--moss);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

.console__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.console__stat {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.75);
}

.console__stat b {
  display: block;
  color: var(--moss-dark);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.console__stat span {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
}

.console__rows {
  padding: 0.45rem 0.55rem 0.55rem;
}

.console__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.55rem;
  border-radius: 6px;
}

.console__row + .console__row {
  border-top: 1px solid var(--line);
}

.row-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.row-dot--moss { background: var(--moss); }
.row-dot--brass { background: var(--brass); }
.row-dot--clay { background: var(--clay); }

.console__row.is-flagged .row-dot {
  animation: pulse-dot 2.2s var(--ease) infinite;
}

.row-text {
  color: var(--ink-soft);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-chip {
  flex: none;
  margin-left: auto;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.row-chip--moss {
  color: var(--moss);
  background: rgba(51, 95, 72, 0.1);
}

.row-chip--brass {
  color: #7c5a2a;
  background: rgba(154, 112, 53, 0.12);
}

.row-chip--clay {
  color: var(--clay);
  background: rgba(138, 77, 57, 0.11);
}

.console-chip {
  position: absolute;
  top: 24.5rem;
  right: 22rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(31, 43, 36, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: console-float 7s var(--ease) 0.8s infinite alternate;
}

.console-chip__check {
  display: grid;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(51, 95, 72, 0.12);
  color: var(--moss);
  font-weight: 700;
}

.console-chip__text {
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.35;
}

.console-chip__text b {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
}

/* Console rows stagger in once the hero scene reveals */
.js .hero__scene .console__row {
  opacity: 0;
}

.hero__scene.is-in .console__row,
html:not(.js) .console__row {
  animation: row-in 460ms var(--ease) forwards;
}

.hero__scene.is-in .console__row:nth-child(1) { animation-delay: 420ms; }
.hero__scene.is-in .console__row:nth-child(2) { animation-delay: 560ms; }
.hero__scene.is-in .console__row:nth-child(3) { animation-delay: 700ms; }
.hero__scene.is-in .console__row:nth-child(4) { animation-delay: 840ms; }

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes console-float {
  from { transform: translateY(0); }
  to { transform: translateY(-0.55rem); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51, 95, 72, 0.35); }
  50% { box-shadow: 0 0 0 0.35rem rgba(51, 95, 72, 0); }
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__copy {
  max-width: 46rem;
}

.kicker,
.eyebrow,
.brief__eyebrow,
.example__type {
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero__title {
  margin-top: 1rem;
  max-width: 45rem;
  font-size: 4.9rem;
}

.hero__text {
  max-width: 41rem;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.brief {
  max-width: 38rem;
  margin-top: 4.5rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 246, 242, 0.72);
}

.brief__eyebrow {
  padding: 1rem 0 0;
}

.brief__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0.8rem;
}

.brief__list li {
  min-height: 5.8rem;
  padding: 1rem 1rem 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.brief__list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.brief__list li:nth-child(even) {
  padding-left: 1rem;
}

.brief__list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--moss);
  font-family: var(--font-display);
  font-weight: 700;
}

.section {
  padding: 6.5rem 0;
}

.section--intro {
  padding-bottom: 7rem;
}

.section--muted {
  background: var(--surface-muted);
}

.split,
.method-layout,
.fit-layout,
.faq-layout,
.contact-layout,
.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
}

.section__copy h2,
.method-copy h2,
.fit-panel h2,
.faq-copy h2,
.contact-copy h2,
.section__head h2 {
  margin-top: 0.65rem;
  font-size: 3rem;
}

.section__lead,
.method-copy p,
.contact-copy > p,
.section__head p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.section__head {
  max-width: 49rem;
  margin-bottom: 3rem;
}

.section__head h2 {
  max-width: 42rem;
}

.section__head p {
  max-width: 45rem;
  margin-top: 1rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 1rem;
  margin-top: 3.5rem;
}

.work-card {
  grid-column: span 4;
  min-height: 17rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.work-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(31, 43, 36, 0.08);
}

.work-card--wide {
  grid-column: span 8;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84)),
    repeating-linear-gradient(90deg, rgba(51, 95, 72, 0.08) 0 1px, transparent 1px 4rem);
}

.work-card--tall {
  min-height: 23rem;
  background: #fdfdfb;
}

.work-card__index {
  display: block;
  margin-bottom: 2rem;
  color: var(--moss);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.work-card h3 {
  max-width: 19rem;
  font-size: 1.75rem;
}

.work-card p {
  max-width: 31rem;
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.method-layout {
  align-items: start;
}

.method-copy {
  position: sticky;
  top: 7rem;
}

.method-copy p {
  margin-top: 1rem;
}

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline__item span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 6px;
  background: var(--moss-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
}

.timeline__item h3 {
  grid-column: 2;
  font-size: 1.6rem;
}

.timeline__item p {
  grid-column: 2;
  max-width: 38rem;
  margin-top: 0.45rem;
  color: var(--ink-soft);
}

.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Block padding leaves room for the active card's 44px shadow, which
     would otherwise be clipped by this scroll container. */
  padding: 1rem max(var(--gutter), calc(50% - 20rem)) 3rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline: none;
  box-shadow: inset var(--ring);
  border-radius: var(--radius);
}

.example {
  display: flex;
  flex: 0 0 min(40rem, 86vw);
  flex-direction: column;
  gap: 1.3rem;
  padding: 1.6rem;
  border: 1px solid rgba(31, 43, 36, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: center;
  transition:
    opacity 320ms var(--ease),
    transform 320ms var(--ease),
    border-color 320ms var(--ease),
    box-shadow 320ms var(--ease);
}

.js .carousel .example:not(.is-active) {
  opacity: 0.45;
  transform: scale(0.985);
}

.carousel .example.is-active {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.example h3 {
  max-width: 30rem;
  margin-top: 0.5rem;
  font-size: 1.7rem;
}

.example dl {
  display: grid;
  gap: 1px;
  margin: auto 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.example dl div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.example dt {
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 700;
}

.example dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.carousel__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 0.4rem;
}

.js .carousel__controls {
  display: flex;
}

.carousel__btn {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease),
    opacity 180ms var(--ease);
}

.carousel__btn:hover:not([disabled]) {
  border-color: var(--moss);
  color: var(--moss);
  transform: translateY(-1px);
}

.carousel__btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 240ms var(--ease), background-color 240ms var(--ease);
}

.carousel__dot.is-active {
  width: 1.5rem;
  background: var(--moss);
}

.fit-layout {
  align-items: stretch;
}

.fit-panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fit-panel--good {
  box-shadow: inset 0 0 0 5px rgba(51, 95, 72, 0.06);
}

.fit-panel--bad {
  background: #fbfaf8;
  box-shadow: inset 0 0 0 5px rgba(138, 77, 57, 0.06);
}

.fit-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.fit-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--moss);
}

.fit-panel--bad .fit-list li::before {
  background: var(--clay);
}

.faq-layout {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid rgba(31, 43, 36, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--moss);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 1.2rem 1.2rem;
  color: var(--ink-soft);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(31, 43, 36, 0.96), rgba(31, 43, 36, 0.92)),
    var(--moss-dark);
  color: rgba(255, 255, 255, 0.78);
}

.contact-section h2,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-copy > p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-note {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-note span {
  color: var(--white);
  font-weight: 700;
}

.contact-note p {
  max-width: 28rem;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.66);
}

.form-wrap {
  min-width: 0;
}

.contact-form,
.form-success {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.field label {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0.78rem 0.85rem;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.9);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-status {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 198, 198, 0.34);
  border-radius: 6px;
  background: rgba(122, 41, 41, 0.22);
  color: #ffe4e0;
  font-size: 0.94rem;
}

.form-status[hidden],
.form-success[hidden] {
  display: none;
}

.form-success {
  color: rgba(255, 255, 255, 0.76);
}

.form-success h3 {
  color: var(--white);
  font-size: 2rem;
}

.form-success p:last-child {
  margin-top: 0.5rem;
}

.site-footer {
  padding: 3.2rem 0 2.4rem;
  background: #111511;
  color: rgba(255, 255, 255, 0.66);
}

.footer-layout {
  grid-template-columns: 1.1fr 0.7fr 1fr;
  align-items: start;
  gap: 2rem;
}

.brand--footer {
  color: var(--white);
}

.brand--footer .brand__mark {
  background: var(--surface-muted);
  color: var(--moss-dark);
}

.site-footer p {
  max-width: 24rem;
  margin-top: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 180ms var(--ease);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-meta {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  text-align: right;
  font-size: 0.94rem;
}

.utility-main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 6rem var(--gutter);
}

.utility-card {
  width: min(100%, 44rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.utility-card h1 {
  margin-top: 0.7rem;
  font-size: 3.2rem;
}

.utility-card p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.utility-card .btn {
  margin-top: 1.5rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 80ms;
}

.reveal[data-delay="2"] {
  transition-delay: 150ms;
}

.reveal[data-delay="3"] {
  transition-delay: 220ms;
}

.reveal[data-delay="4"] {
  transition-delay: 290ms;
}

@media (max-width: 1060px) {
  .hero__scene {
    display: none;
  }

  .work-card,
  .work-card--wide,
  .work-card--tall {
    grid-column: span 6;
    min-height: 15rem;
  }

  .example {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 4.5rem;
  }

  .brand {
    order: 0;
  }

  .nav__toggle {
    display: grid;
    order: 1;
  }

  .nav__links,
  .nav__actions {
    display: none;
    flex-basis: 100%;
    width: 100%;
  }

  .nav__links {
    order: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 0 0.4rem;
    border-top: 1px solid var(--line);
  }

  .nav__link {
    width: 100%;
    min-height: 2.85rem;
  }

  .nav__actions {
    order: 3;
    padding-bottom: 1rem;
  }

  .nav__actions .btn {
    width: 100%;
  }

  body.nav-open .nav__links,
  body.nav-open .nav__actions {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 5.75rem 0 4.5rem;
  }

  .hero__title {
    font-size: 3.6rem;
  }

  .split,
  .method-layout,
  .fit-layout,
  .faq-layout,
  .contact-layout,
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .method-copy {
    position: static;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1rem;
  }

  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero__scene {
    display: none;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__text,
  .section__lead,
  .method-copy p,
  .contact-copy > p,
  .section__head p {
    font-size: 1.04rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn,
  .hero__actions .text-link {
    width: 100%;
  }

  .brief__list,
  .field-grid,
  .example dl {
    grid-template-columns: 1fr;
  }

  .brief__list li:nth-child(odd) {
    border-right: 0;
  }

  .brief__list li:nth-child(even) {
    padding-left: 0;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section__copy h2,
  .method-copy h2,
  .fit-panel h2,
  .faq-copy h2,
  .contact-copy h2,
  .section__head h2 {
    font-size: 2.25rem;
  }

  .work-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 2.2rem;
  }

  .work-card,
  .work-card--wide,
  .work-card--tall {
    grid-column: auto;
    min-height: auto;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .example {
    padding: 1rem;
  }

  .fit-panel,
  .contact-form,
  .form-success,
  .utility-card {
    padding: 1.1rem;
  }
}

/* ------------------------------------------------------------------ */
/* Announcement bar                                                    */
/* ------------------------------------------------------------------ */

.topbar {
  background: var(--moss-dark);
  color: rgba(255, 255, 255, 0.82);
  animation: topbar-in 480ms var(--ease) both;
}

.topbar__inner {
  padding: 0.62rem 0;
  font-size: 0.92rem;
  text-align: center;
  text-wrap: balance;
}

.topbar a {
  margin-left: 0.4rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: text-decoration-color 180ms var(--ease), color 180ms var(--ease);
}

.topbar a:hover {
  color: #e4c489;
  text-decoration-color: #e4c489;
}

@keyframes topbar-in {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* Capabilities marquee                                                */
/* ------------------------------------------------------------------ */

.marquee {
  overflow: hidden;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__list {
  display: flex;
  gap: 2.6rem;
}

.marquee__list li {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.marquee__list li::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  background: var(--brass);
  opacity: 0.65;
  transform: rotate(45deg);
}

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

/* ------------------------------------------------------------------ */
/* Button icon                                                          */
/* ------------------------------------------------------------------ */

.btn__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 200ms var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(0.2rem);
}

/* ------------------------------------------------------------------ */
/* Engagement plans                                                     */
/* ------------------------------------------------------------------ */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  border: 1px solid rgba(31, 43, 36, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 43, 36, 0.08);
}

.plan--primary {
  border-top: 3px solid var(--moss);
  box-shadow: var(--shadow);
}

.plan__tag {
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 700;
}

.plan h3 {
  margin-top: 0.55rem;
  font-size: 2.1rem;
}

.plan__lead {
  max-width: 30rem;
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.plan__list {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.plan__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.plan__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--moss);
  font-weight: 700;
}

.plan__cta {
  margin-top: auto;
  padding-top: 1.7rem;
}

.plan__note {
  margin-top: 0.85rem;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------ */
/* Contact: next steps + glow                                           */
/* ------------------------------------------------------------------ */

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(32rem 22rem at 88% 8%, rgba(51, 95, 72, 0.5), transparent 62%),
    radial-gradient(26rem 18rem at 6% 100%, rgba(154, 112, 53, 0.22), transparent 60%);
}

.contact-section > .container {
  position: relative;
}

.contact-steps {
  display: flex;
  gap: 1.4rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-steps li {
  flex: 1;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
}

.contact-steps li span {
  display: block;
  margin-bottom: 0.3rem;
  color: #e4c489;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* FAQ smooth open                                                      */
/* ------------------------------------------------------------------ */

.faq-body {
  overflow: hidden;
}

.faq-item summary::after {
  transition: transform 220ms var(--ease);
}

.faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------ */
/* Footer wordmark                                                      */
/* ------------------------------------------------------------------ */

.site-footer {
  overflow: hidden;
  padding-bottom: 0;
}

.footer-wordmark {
  margin: 3.2rem 0 -0.14em;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 15.5vw, 13.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.82;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

@supports (-webkit-text-stroke: 1px black) {
  .footer-wordmark {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  }
}

/* Brass-flagged (in build) row pulses in brass, not moss */
.console__row.is-flagged .row-dot--brass {
  animation-name: pulse-dot-brass;
}

@keyframes pulse-dot-brass {
  0%, 100% { box-shadow: 0 0 0 0 rgba(154, 112, 53, 0.4); }
  50% { box-shadow: 0 0 0 0.35rem rgba(154, 112, 53, 0); }
}

/* ------------------------------------------------------------------ */
/* Responsive: new components                                           */
/* ------------------------------------------------------------------ */

/* Below ~1280px the console's left edge collides with the 45rem headline
   column (common on 125%/150%-scaled laptops and iPad landscape), so the
   decorative scene only renders on viewports wide enough to clear it. */
@media (max-width: 1280px) {
  .hero__scene {
    display: none;
  }
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .contact-steps {
    gap: 1rem;
  }
}

@media (max-width: 680px) {
  .topbar__long {
    display: none;
  }

  .topbar__inner {
    font-size: 0.84rem;
  }

  .marquee {
    padding: 0.85rem 0;
  }

  .contact-steps {
    flex-direction: column;
    gap: 0.9rem;
  }

  .example {
    flex-basis: 88vw;
    padding: 1.1rem;
  }

  .example h3 {
    font-size: 1.35rem;
  }

  .example dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .plan {
    padding: 1.2rem;
  }

  .plan h3 {
    font-size: 1.8rem;
  }
}

/* ------------------------------------------------------------------ */
/* Reduced motion: stop infinite/large animations explicitly           */
/* (the global 1ms rule would make loops flicker instead of stopping)  */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .console,
  .console-chip,
  .console__pill i,
  .console__row.is-flagged .row-dot {
    animation: none;
  }

  .js .hero__scene .console__row {
    opacity: 1;
    animation: none;
  }

  .topbar {
    animation: none;
  }

  .js .carousel .example:not(.is-active) {
    transform: none;
  }
}
