:root {
  --ink: #16181d;
  --muted: #4e5660;
  --paper: #f3efe6;
  --paper-2: #e7e1d6;
  --blue: #506898;
  --blue-deep: #24344c;
  --gold: #e8c800;
  --line: #cfc6b8;
  --danger: #7a2e24;
  --ok: #1e4d32;
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --measure: 40rem;
  --wide: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}
img, svg { display: block; }
a { color: inherit; }
a:hover { color: var(--blue-deep); }
:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.sheet {
  width: min(var(--wide), calc(100% - 3.2rem));
  margin: 0 0 0 max(1.4rem, 6vw);
  padding: 1.6rem 0 4.5rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  text-decoration: none;
}
.brand img { width: 34px; height: 28px; }
.brand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.place {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); }

.door { padding: 3.2rem 0 2.2rem; }
.door h1 { max-width: none; }
.call-title {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 0.9;
  margin: 0 0 0.8rem;
}
.write-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.door h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: -0.015em;
}
.door .filter {
  margin: 1.4rem 0 0;
  max-width: var(--measure);
  font-size: 1.12rem;
}
.door .filter strong { font-weight: 500; }

.film {
  margin: 0.4rem 0 3.2rem;
}
.film .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--blue-deep);
  border: 1px solid var(--ink);
}
.film a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.2rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.line-note {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.reveal {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.line-plate {
  display: block;
  margin-top: 0.35rem;
  width: 166px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}
.line-plate[hidden] { display: none !important; }
.film iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0 0 2.6rem;
  border-bottom: 1px solid var(--line);
}
.points li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.8rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  max-width: 46rem;
}
.points .n {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--blue);
  line-height: 1.2;
}
.points p { margin: 0; }
.points .lead {
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.tools {
  margin: 2.2rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.tools strong { color: var(--ink); font-weight: 500; }

.names {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin: 2.8rem 0 0;
  max-width: 46rem;
}
.names a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.reach {
  margin: 2.4rem 0 0;
  max-width: 36rem;
  font-size: 1.12rem;
}
.office-note {
  color: var(--muted);
  margin-top: 0.35rem;
}
.names p { margin: 0; }
.names span {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 3.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
  font-size: 0.95rem;
}
.foot h2 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot p { margin: 0; }
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.pilot {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 3rem;
  padding-top: 2.4rem;
}
.phones span {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.phones span:first-child { margin-top: 0.4rem; }
.contact-grid .reach { margin: 0.4rem 0 0.8rem; }
.foot p + p { margin-top: 0.7rem; }
.phones a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.form-note, .status {
  max-width: 38rem;
}
.status {
  min-height: 1.4em;
  margin: 0 0 1rem;
}
.status.err { color: var(--danger); }
.status.ok { color: var(--ok); }
form {
  display: grid;
  gap: 0.85rem;
  max-width: 38rem;
}
label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0;
  border-radius: 0;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--blue); }
button {
  justify-self: start;
  min-height: 44px;
  margin-top: 0.4rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
button:disabled { color: var(--muted); border-bottom-color: var(--line); cursor: not-allowed; }
.cipher {
  max-width: 38rem;
  margin-top: 1rem;
  padding: 0.8rem;
  background: var(--paper-2);
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 16rem;
  overflow: auto;
}

@media (max-width: 720px) {
  .top, .names, .foot, .contact-grid { display: block; }
  .nav { margin-top: 0.8rem; }
  .names p + p, .foot h2, .phones { margin-top: 1.4rem; }
  .door h1 { font-size: 3.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
