/* ============================================================
   Skyway Digital — landing page
   Palette "Sunset over the bay":
     cream  #FBF3E9  (paper)
     navy   #1B2A41  (ink / structure)
     orange #E8622C  (cables / accent)
   Derived:
     orange-deep #C9501F (hover)
     taupe       #D8CBB6 (hairline on cream)
     paper-lift  #FFFDF9 (raised card)
   ============================================================ */

:root {
  --cream: #FBF3E9;
  --navy: #1B2A41;
  --orange: #E8622C;
  --orange-deep: #C9501F;
  --taupe: #D8CBB6;
  --paper-lift: #FFFDF9;
  --ink-60: rgba(27, 42, 65, 0.6);
  --ink-30: rgba(27, 42, 65, 0.3);
  --ink-12: rgba(27, 42, 65, 0.12);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --page-max: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- shared bits ---------------------------------------- */

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 0.9em;
  vertical-align: middle;
  background: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.5em;
  border: 0;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--cream);
  box-shadow: 0 1px 0 var(--orange-deep);
}

.btn--primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn__tick { font-size: 0.85em; transition: transform 0.18s ease; }
.hero__cta:hover .btn__tick { transform: translateY(2px); }

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

/* ---- topbar --------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--gutter);
  border-bottom: 1px solid var(--ink-12);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
}

.wordmark__digital {
  color: var(--orange);
  margin-left: 0.4em;
  position: relative;
}
.wordmark__digital::before {
  content: "/";
  color: var(--ink-30);
  margin-right: 0.4em;
  font-weight: 500;
}

.topbar__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-60);
}

/* ---- hero ----------------------------------------------- */

.hero {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 0;
}

.hero__copy { max-width: 44rem; position: relative; z-index: 2; }

.hero__heading {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__line { display: block; }
.hero__line--accent { color: var(--orange); }

.hero__tagline {
  margin: 0 0 2.2rem;
  max-width: 40ch;
  font-size: 1.12rem;
  color: var(--ink-60);
}

/* elevation drawing */
.hero__elevation {
  position: relative;
  margin: clamp(1rem, 4vw, 2.5rem) 0 0;
  padding-bottom: 2.2rem;
}

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

.span__water line {
  stroke: var(--ink-12);
  stroke-width: 1.5;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}

.deck {
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}
.deck--under { stroke: var(--ink-30); stroke-width: 1.5; }

.cable {
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.92;
}

.pylon { stroke: var(--navy); stroke-width: 4; stroke-linecap: round; }
.pylon__cap { stroke-width: 3; }

.span__stations line {
  stroke: var(--ink-30);
  stroke-width: 1.5;
}

.hero__caption {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-30);
}

/* draw-in animation */
.deck, .cable, .pylon { stroke-dasharray: 1; stroke-dashoffset: 1; }

.span.is-drawn .pylon { animation: draw 0.7s ease forwards; }
.span.is-drawn .deck { animation: draw 1s ease 0.5s forwards; }
.span.is-drawn .cable { animation: draw 0.9s ease forwards; }

.span.is-drawn .cable:nth-of-type(1)  { animation-delay: 0.75s; }
.span.is-drawn .cable:nth-of-type(2)  { animation-delay: 0.82s; }
.span.is-drawn .cable:nth-of-type(3)  { animation-delay: 0.89s; }
.span.is-drawn .cable:nth-of-type(4)  { animation-delay: 0.96s; }
.span.is-drawn .cable:nth-of-type(5)  { animation-delay: 1.03s; }
.span.is-drawn .cable:nth-of-type(6)  { animation-delay: 1.10s; }
.span.is-drawn .cable:nth-of-type(7)  { animation-delay: 1.10s; }
.span.is-drawn .cable:nth-of-type(8)  { animation-delay: 1.03s; }
.span.is-drawn .cable:nth-of-type(9)  { animation-delay: 0.96s; }
.span.is-drawn .cable:nth-of-type(10) { animation-delay: 0.89s; }
.span.is-drawn .cable:nth-of-type(11) { animation-delay: 0.82s; }
.span.is-drawn .cable:nth-of-type(12) { animation-delay: 0.75s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- contact -------------------------------------------- */

.contact {
  max-width: var(--page-max);
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact__intro { position: sticky; top: 2.5rem; }

.contact__heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact__lede { margin: 0; color: var(--ink-60); max-width: 34ch; }

/* form — framed like a drafting title block */
.form {
  background: var(--paper-lift);
  border: 1px solid var(--ink-12);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 18px 40px -30px rgba(27, 42, 65, 0.5);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}

.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field__label {
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.field__req { color: var(--orange); }

.field__input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--taupe);
  border-radius: 2px;
  padding: 0.7em 0.8em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.field__input::placeholder { color: var(--ink-30); }

.field__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 98, 44, 0.16);
}

.field__input--area { resize: vertical; min-height: 7rem; }

.field__input[aria-invalid="true"] { border-color: var(--orange-deep); }

.field__error {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--orange-deep);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.turnstile { min-height: 65px; }

.form__submit[disabled] { opacity: 0.6; cursor: progress; }

.form__status {
  margin: 1.3rem 0 0;
  padding: 0.9em 1em;
  border-radius: 2px;
  border-left: 3px solid var(--ink-30);
  font-size: 0.95rem;
  background: var(--cream);
}
.form__status[data-state="success"] {
  border-left-color: #2f7d5b;
  color: #235f45;
  background: rgba(47, 125, 91, 0.08);
}
.form__status[data-state="error"] {
  border-left-color: var(--orange-deep);
  color: var(--orange-deep);
  background: rgba(201, 80, 31, 0.08);
}

/* ---- footer --------------------------------------------- */

.footer {
  max-width: var(--page-max);
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding: 2.2rem var(--gutter) 3rem;
  border-top: 1px solid var(--ink-12);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 2rem;
}

.footer__mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-30);
}

/* ---- responsive ----------------------------------------- */

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar__meta { display: none; }
  .form__grid { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__submit { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deck, .cable, .pylon { stroke-dashoffset: 0; animation: none !important; }
  .btn { transition: none; }
}
