/* GridInFill — light, construction-technology layout. No external assets. */

:root {
  --bg: #ffffff;
  --bg-soft: #f2f4f6;
  --bg-warm: #f7f1ec;
  --ink: #14283f;
  --ink-soft: #243d58;
  --muted: #5c6570;
  --line: #e1e4ea;
  --line-strong: #c8ced6;
  --accent: #a35226;
  --accent-hover: #8c451f;
  --accent-ink: #ffffff;
  --danger: #8d2b2b;
  --shadow: 0 18px 40px rgba(28, 33, 40, 0.06);
  --radius: 14px;
  --header-offset: 5.75rem;
  --measure: 40rem;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.4rem;
  z-index: 40;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.stack > * + * {
  margin-top: 1rem;
}

.measure {
  max-width: var(--measure);
}

.lede {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  flex: none;
}

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.18rem 0.45rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}

p a,
figcaption a {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.16em;
}

.steps + .shot {
  margin-top: 1.5rem;
}

.about-block p + p {
  margin-top: 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

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

.button--secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--bg-soft);
}

.button--small {
  min-height: 2.6rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.95rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--accent);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo__mark {
  width: 1.8rem;
  height: 1.8rem;
}

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

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav a {
  font-weight: 600;
  text-decoration: none;
}

.nav ul a {
  padding-block: 0.2rem;
}

.nav ul a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 1rem;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--ink);
}

/* Heroes */

.hero {
  padding-block: clamp(3rem, 7vw, 5.75rem) clamp(2.5rem, 5vw, 4rem);
}

.hero h1,
.page-hero h1,
.contact-intro h1 {
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 12em;
}

.page-hero h1,
.contact-intro h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.status {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.page-hero {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--bg-soft);
}

.page-hero .lede,
.page-hero p {
  margin-top: 1rem;
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 7vw, 6.25rem);
}

.section--grey {
  background: var(--bg-soft);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section__head h2,
.feature h2,
.step h2,
.cta-panel h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__head h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.section__head p,
.card p,
.rail p,
.feature p,
.step p,
.note,
.cta-panel p {
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-height: 100%;
  padding: 1.35rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3,
.rail h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.index {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.link-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  text-decoration: none;
}

.link-list a span {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.link-list a strong {
  font-weight: 700;
}

.link-list a::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  background: var(--accent);
  flex: none;
}

.link-list a::after {
  content: "\2192";
  flex: none;
  font-weight: 500;
}

.link-list a:hover {
  color: #000;
}

.diagram {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.diagram figcaption {
  padding: 0.85rem 0.4rem 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.rail li {
  padding: 1.15rem 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 12px;
}

.rail__index {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rail p {
  font-size: 0.98rem;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.jump a {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.jump a:hover {
  border-color: var(--ink);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  scroll-margin-top: var(--header-offset);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.feature h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  margin-bottom: 0.75rem;
}

.feature:nth-child(even) .feature__copy {
  order: 2;
}

.feature:target {
  background: linear-gradient(90deg, var(--bg-warm), transparent 12rem);
}

.steps {
  position: relative;
  display: grid;
  gap: 0.25rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 1.4rem;
  width: 2px;
  background: var(--line);
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.3rem 1.25rem;
  padding-bottom: 2rem;
}

.step__index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.step h2 {
  padding-top: 0.45rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

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

.about-block {
  padding: 1.5rem 1.35rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-block h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.about-block--wide {
  grid-column: 1 / -1;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
}

.cta-panel h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  max-width: 16em;
}

/* Screenshot placeholders */

.shot {
  margin: 0;
}

.shot__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f7f8fa;
  background-image:
    linear-gradient(to right, rgba(28, 33, 40, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 33, 40, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

.shot--hero .shot__frame {
  aspect-ratio: 4 / 3;
}

.shot__empty {
  width: min(18rem, 86%);
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  text-align: center;
}

.shot__tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot__title {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shot__note {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot--live {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.shot--live img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.feature.feature--live {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.15rem;
}

.feature.feature--live .feature__copy {
  order: 0;
  max-width: 40rem;
}

.feature.feature--live .shot--live {
  margin-top: 0.35rem;
}

.feature.feature--live .shot--live + .shot--live {
  margin-top: 1.25rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.shot-row--pair {
  grid-template-columns: repeat(2, minmax(0, 22rem));
  justify-content: start;
}

.shot-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.shot-open img {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox {
  width: min(96vw, 1400px);
  max-height: 94vh;
  padding: 0.75rem;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.lightbox::backdrop {
  background: rgba(13, 27, 42, 0.82);
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  background: #f2f4f6;
}

.lightbox__close {
  margin-bottom: 0.5rem;
}

.shot-row figure {
  margin: 0;
}

.shot-row img {
  display: block;
  width: 100%;
  height: auto;
  background: #17140e;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.shot-row figcaption {
  margin-top: 0.55rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-points article {
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.contact-points h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.note {
  margin-top: 1.25rem;
  font-size: 0.98rem;
}

.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label,
.choice legend,
.field .label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.choice {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.65rem;
}

.choice legend {
  padding: 0;
}

.choice__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.choice__item:hover {
  border-color: var(--line-strong);
}

.choice__item:has(:checked) {
  border-color: #c9a000;
  background: var(--bg-warm);
  box-shadow: inset 3px 0 0 var(--accent);
}

.choice__item small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 400;
}

input,
textarea,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

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

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select,
.choice.is-invalid .choice__item {
  border-color: var(--danger);
}

.field__error {
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 650;
}

.form .button {
  justify-self: start;
}

.result {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1.1rem;
  background: var(--bg-soft);
  border-radius: 12px;
}

.result h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.result textarea {
  font-family: Consolas, "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  background: #fff;
}

/* Footer */

.site-footer {
  padding-block: 2.75rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration: none;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer .logo {
  margin-bottom: 0.75rem;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.missing {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.missing h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

/* Responsive */

@media (max-width: 68rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.4rem 1.25rem 1.15rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav ul a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .button {
    margin-top: 0.75rem;
  }
}

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

@media (max-width: 800px) {
  .shot-row,
  .shot-row--pair {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}

@media (max-width: 860px) {
  .hero__grid,
  .split,
  .feature,
  .contact-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .feature__copy {
    order: 0;
  }

  .about-block--wide {
    grid-column: auto;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .cards,
  .form-row,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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

  .actions .button {
    width: 100%;
  }

  .hero h1,
  .page-hero h1,
  .contact-intro h1 {
    max-width: none;
  }
}

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

@media (forced-colors: active) {
  .button,
  .card,
  .shot__frame,
  .choice__item {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .actions,
  .form button {
    display: none;
  }

  .site-header {
    position: static;
  }
}
