/* AIDepartment landing page.
   Identity: "Severance mood · Floor Plan". The mark is a floor plan of A, I and D;
   the page is the drawing sheet it sits on. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --navy: #0f1c2e;
  --navy-2: #16283f;
  --paper: #f1eee5;
  --paper-hi: #faf8f2;
  --paper-edge: #ddd8cb;
  --ink-2: #3d4b5c;
  --ink-3: #5b6676;

  /* The three lit rooms */
  --teal: #93d5c9;   /* the work */
  --ochre: #c4923a;  /* waiting for you */
  --rose: #d9aaa1;   /* memory */

  --route: #23887a;  /* ceiling lights */
  --green: #2c5547;

  --display: "Archivo", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--navy);
  font: 400 16px/1.55 var(--sans);
  background-color: var(--paper);
  /* Drafting grid: 48 px major lines, 12 px minor lines */
  background-image:
    linear-gradient(rgba(15, 28, 46, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(15, 28, 46, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, 0.025) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--green);
}

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

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

/* ── Sheet ─────────────────────────────────────────── */

.sheet {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.north {
  position: fixed;
  top: 20px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font: 600 10px/1 var(--mono);
  color: var(--navy);
  opacity: 0.7;
}
.north svg {
  width: 18px;
  height: 25px;
}

.status {
  margin: 0 0 clamp(28px, 6vh, 48px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--paper-hi);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: 0 0 0 3px rgba(196, 146, 58, 0.18);
  animation: lamp 2.4s ease-in-out infinite;
}

.lamp-on {
  background: var(--route);
  box-shadow: 0 0 0 3px rgba(35, 136, 122, 0.18);
  animation: none;
}

@keyframes lamp {
  50% {
    box-shadow: 0 0 0 5px rgba(196, 146, 58, 0.06);
  }
}

/* ── Mark ──────────────────────────────────────────── */

.plate {
  width: min(320px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.lights circle {
  fill: var(--route);
}

.plate-caption {
  width: 100%;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--navy);
  font: 600 clamp(7.5px, 2.2vw, 10.5px)/1 var(--display);
  font-stretch: 125%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The ceiling lights switch on wing by wing, left to right. */
@media (prefers-reduced-motion: no-preference) {
  .lights circle {
    opacity: 0;
    animation: light-on 0.5s ease-out forwards;
  }
  .lights .l0 { animation-delay: 0.35s; }
  .lights .l1 { animation-delay: 0.47s; }
  .lights .l2 { animation-delay: 0.59s; }
  .lights .l3 { animation-delay: 0.71s; }
  .lights .l4 { animation-delay: 0.83s; }
  .lights .l5 { animation-delay: 0.95s; }
  .lights .l6 { animation-delay: 1.07s; }
  .lights .l7 { animation-delay: 1.19s; }
  .lights .l8 { animation-delay: 1.31s; }
  .lights .l9 { animation-delay: 1.43s; }

  .reveal {
    opacity: 0;
    transform: translateY(6px);
    animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .reveal-1 { animation-delay: 0.1s; }
  .reveal-2 { animation-delay: 0.25s; }
  .reveal-3 { animation-delay: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .lamp {
    animation: none;
  }
}

@keyframes light-on {
  0% { opacity: 0; }
  40% { opacity: 1; filter: drop-shadow(0 0 2px rgba(35, 136, 122, 0.9)); }
  100% { opacity: 1; }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Copy ──────────────────────────────────────────── */

.wordmark {
  margin: clamp(36px, 7vh, 56px) 0 0;
  font: 750 clamp(40px, 10vw, 68px)/1 var(--display);
  font-stretch: 118%;
  letter-spacing: -0.02em;
}

.wordmark-sm {
  font-size: clamp(32px, 7.5vw, 50px);
  line-height: 1.08;
}

.tagline {
  margin: 14px 0 0;
  font: 500 clamp(19px, 4.4vw, 24px)/1.3 var(--sans);
  letter-spacing: -0.01em;
  color: var(--navy);
}

.lede {
  max-width: 30em;
  text-wrap: pretty;
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--ink-2);
}

/* ── Sign-up form ──────────────────────────────────── */

.signup {
  width: 100%;
  max-width: 460px;
  margin: clamp(32px, 6vh, 48px) 0 0;
  text-align: left;
}

.signup-label {
  display: block;
  margin: 0 0 8px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field {
  display: flex;
  border: 1.5px solid var(--navy);
  border-radius: 3px;
  background: var(--paper-hi);
  box-shadow: 0 1px 0 rgba(15, 28, 46, 0.06), 0 10px 28px rgba(15, 28, 46, 0.08);
}
.field:focus-within {
  outline: 2px solid var(--route);
  outline-offset: 3px;
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 14px 14px;
  border: 0;
  border-radius: 2px 0 0 2px;
  background: transparent;
  color: var(--navy);
  font: 400 16px/1.2 var(--sans);
}
.field input::placeholder {
  color: #8a909a;
}
.field input:focus {
  outline: none;
}

.field button {
  flex: none;
  padding: 0 20px;
  border: 0;
  border-left: 1.5px solid var(--navy);
  border-radius: 0 1px 1px 0;
  background: var(--navy);
  color: var(--paper);
  font: 650 15px/1 var(--display);
  font-stretch: 110%;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.15s ease;
}
.field button:hover {
  background: var(--navy-2);
}
.field button:focus-visible {
  outline: none;
  background: var(--green);
}
.field button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.field button:hover svg {
  transform: translateX(2px);
}

.consent {
  margin: 12px 0 0;
  text-wrap: pretty;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ── Title block ───────────────────────────────────── */

.titleblock {
  width: calc(100% - 48px);
  max-width: 640px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  border: 1.5px solid var(--navy);
  background: rgba(241, 238, 229, 0.92);
  font: 400 11px/1.35 var(--mono);
  color: var(--navy);
}
.titleblock > div {
  padding: 8px 12px;
  min-width: 0;
}
.titleblock > div + div {
  border-left: 1px solid var(--navy);
}
.titleblock .k {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.titleblock .v {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.titleblock .note {
  grid-column: 1 / -1;
  border-left: 0;
  border-top: 1px solid var(--navy);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.titleblock .note a {
  opacity: 0.75;
}

/* ── Plain pages (privacy, confirmed) ─────────────── */

.doc {
  text-align: left;
  align-items: stretch;
}
.doc .plate {
  width: 132px;
  align-self: flex-start;
}
.doc h1 {
  margin: 40px 0 0;
  font: 750 clamp(30px, 7vw, 42px)/1.1 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.015em;
}
.doc h2 {
  margin: 32px 0 0;
  font: 650 17px/1.3 var(--display);
  font-stretch: 108%;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc p {
  margin: 10px 0 0;
}
.doc ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}
.doc .back {
  margin-top: 40px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Small screens ─────────────────────────────────── */

@media (max-width: 480px) {
  .north {
    display: none;
  }
  .field {
    flex-direction: column;
  }
  .field input {
    border-radius: 2px 2px 0 0;
  }
  .field button {
    justify-content: center;
    padding: 14px 20px;
    border-left: 0;
    border-top: 1.5px solid var(--navy);
    border-radius: 0 0 1px 1px;
  }
  .titleblock {
    grid-template-columns: 1fr 1fr;
  }
  .titleblock > div:nth-child(3) {
    display: none;
  }
}
