:root {
  --ink: #1d2329;
  --muted: #66717b;
  --paper: #ffffff;
  --soft: #f6f7f8;
  --line: #d9dee3;
  --link: #175f8c;
  --night: #01040b;
  --night-text: #edf6ff;
  --cyan: #7be7ff;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
a { color: var(--link); text-underline-offset: .18em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #78bce4; outline-offset: 2px; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header, .site-footer, .inner-main { width: min(100% - 3rem, 960px); margin-inline: auto; }
.site-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-size: .82rem; font-weight: 700; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.3rem; font-size: .9rem; }
.nav a { color: #3f4850; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #000; text-decoration: underline; text-underline-offset: .3em; }
.inner-main { flex: 1; }

.enter-page { width: min(100%, 640px); padding: 3.5rem 0 5rem; }
.page-title { margin: 0; font-size: 2rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.form-wrap { padding-top: 2rem; }
.field { margin-bottom: 1.75rem; }
label { display: block; margin-bottom: .45rem; font-weight: 650; }
input[type="tel"] { width: 100%; min-height: 48px; padding: .7rem .8rem; color: var(--ink); background: #fff; border: 1px solid #aeb7bf; border-radius: 4px; }
input[type="tel"]:focus { border-color: #4f8fb8; }
input[type="tel"]::placeholder { color: #7a858f; }
.consent { display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; margin-top: .25rem; }
.consent input { width: 1.1rem; height: 1.1rem; margin: .28rem 0 0; accent-color: #225f84; }
.consent label { margin: 0; color: #30373d; font-size: .94rem; font-weight: 400; line-height: 1.55; }
.fine-print, .form-status-note { color: var(--muted); font-size: .875rem; }
.fine-print { margin: 1rem 0 0; }
.button { margin-top: 1.1rem; padding: .7rem 1.15rem; color: #fff; background: #20262b; border: 1px solid #20262b; border-radius: 4px; cursor: pointer; }
.button:hover { background: #000; border-color: #000; }
.status { min-height: 1.5rem; margin: .9rem 0 0; color: #245f30; font-size: .9rem; font-weight: 600; }
.form-status-note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }

.legal-main { width: min(100% - 3rem, 720px); margin-inline: auto; padding: 3.5rem 0 5rem; }
.legal-main h1 { margin: 0; font-size: 2rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.revision { margin: .5rem 0 2.5rem; color: var(--muted); font-size: .875rem; }
.legal-copy { font-size: 1rem; line-height: 1.65; }
.legal-copy h2 { margin: 2.25rem 0 .65rem; font-size: 1.25rem; font-weight: 650; line-height: 1.35; }
.legal-copy h3 { margin: 1.5rem 0 .4rem; font-size: 1rem; font-weight: 650; line-height: 1.4; }
.legal-copy p { margin: 0 0 1rem; color: var(--ink); }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer-nav a { color: #4d5962; }
.site-footer p { margin: 0; }

.home-page { color: var(--night-text); background: var(--night); }
.home { width: min(100% - 3rem, 600px); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; padding: 3.5rem 0 2.5rem; }
.home-wordmark { margin: 0 0 1.2rem; font-size: .86rem; font-weight: 650; letter-spacing: .2em; line-height: 1.35; text-transform: uppercase; }
.home-wordmark a { color: var(--night-text); text-decoration: none; }
.still { width: 100%; margin: 0; }
.hero-media { display: block; width: 100%; height: auto; max-height: 64svh; object-fit: contain; filter: brightness(.9) contrast(1.02); }
.project-mark { display: grid; gap: .1rem; margin-top: 1.1rem; font-size: .8rem; font-weight: 650; letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; }
.project-mark span:last-child { color: var(--cyan); font-size: .72em; letter-spacing: .22em; }
.home-nav { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-top: 3rem; font-size: .76rem; }
.home-nav a { color: rgba(237,246,255,.7); text-decoration: none; }
.home-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }

@media (max-width: 720px) {
  .site-header, .site-footer, .inner-main { width: min(100% - 2rem, 960px); }
  .site-header { min-height: auto; padding: 1rem 0; align-items: flex-start; gap: 1rem; }
  .wordmark { max-width: 10rem; font-size: .76rem; }
  .nav { gap: .35rem .85rem; font-size: .86rem; }
  .enter-page { padding: 2.5rem 0 4rem; }
  .page-title, .legal-main h1 { font-size: 1.75rem; }
  .legal-main { width: min(100% - 2rem, 720px); padding: 2.5rem 0 4rem; }
  .revision { margin-bottom: 2rem; }
  .site-footer { grid-template-columns: 1fr; gap: .7rem; }
  .home { width: min(100% - 2rem, 600px); min-height: 100svh; padding: 2rem 0 1.5rem; }
  .home-wordmark { margin-bottom: 1rem; }
  .hero-media { max-height: 58svh; }
  .project-mark { margin-top: .9rem; }
  .home-nav { margin-top: 2.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-wordmark, .still, .project-mark, .home-nav { animation: appear .55s ease-out both; }
  .still { animation-delay: .06s; }
  .project-mark, .home-nav { animation-delay: .12s; }
  @keyframes appear { from { opacity: 0; } }
}
