/* Kidambi Exports: "under construction" page.
   Brand colours live here as tokens; see ../../brand/BRAND.md. */
:root {
  --ink-deep: #071a28;
  --ink: #0b2233;
  --sea: #124b5f;
  --teal: #1f7a7a;
  --saffron: #e8a23a;
  --sand: #f4ead8;
  --text: #f7f2e8;
  --muted: rgba(247, 242, 232, 0.72);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 72px;
  background: linear-gradient(170deg, var(--ink-deep) 0%, var(--ink) 40%, var(--sea) 100%);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* ---------- background ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.glow {
  position: absolute;
  width: 70vmax; height: 70vmax;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 162, 58, 0.22) 0%, rgba(232, 162, 58, 0.06) 35%, transparent 65%);
}

.routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.routes path {
  fill: none;
  stroke: rgba(244, 234, 216, 0.16);
  stroke-width: 1.2;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  animation: drift 40s linear infinite;
}
.routes path:nth-child(2) { animation-duration: 55s; stroke: rgba(232, 162, 58, 0.18); }
.routes path:nth-child(3) { animation-duration: 70s; }

.waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 34vh; animation: swell 26s ease-in-out infinite alternate; }
.waves .w1 { fill: rgba(31, 122, 122, 0.28); }
.waves .w2 { fill: rgba(18, 75, 95, 0.55); }
.waves .w3 { fill: rgba(7, 26, 40, 0.85); }

@keyframes drift { to { stroke-dashoffset: -440; } }
@keyframes swell { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* ---------- content ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  text-align: center;
  padding: 48px 28px;
  animation: rise 1.2s ease-out both;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--sand);
}

.rule {
  width: 72px; height: 2px;
  margin: 26px auto;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
}

.status {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--text);
}

.note { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }

/* ---------- contact button + form ---------- */
.cta {
  margin-top: 30px;
  padding: 12px 28px;
  border: 1px solid var(--saffron);
  border-radius: 999px;
  background: rgba(232, 162, 58, 0.08);
  color: var(--sand);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cta:hover, .cta:focus-visible { background: var(--saffron); color: var(--ink-deep); outline: none; }
.cta:disabled { opacity: 0.6; cursor: wait; }

.sent-note { margin-top: 16px; font-size: 0.92rem; color: var(--sand); }

.contact {
  width: min(460px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 14px;
  background: #0d2a3c;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.contact::backdrop { background: rgba(4, 14, 22, 0.7); backdrop-filter: blur(3px); }
.contact form { position: relative; padding: 28px 24px 22px; display: flex; flex-direction: column; text-align: left; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--sand); }
.contact .hint { margin: 6px 0 18px; font-size: 0.9rem; color: var(--muted); }
.contact label { margin: 12px 0 6px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); }
.contact input, .contact textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(244, 234, 216, 0.2);
  border-radius: 8px;
  background: rgba(7, 26, 40, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.contact textarea { resize: vertical; min-height: 110px; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--saffron); outline-offset: 1px; border-color: transparent; }
.contact .cf-turnstile { margin-top: 16px; min-height: 65px; }
.contact .send { align-self: flex-start; margin-top: 14px; }
.contact .close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: 0; background: none; color: var(--muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.contact .close:hover { color: var(--sand); }
.form-status { min-height: 1.2em; margin-top: 10px; font-size: 0.88rem; color: var(--sand); }
.form-status.error { color: #f2a28f; }
.privacy { margin-top: 6px; font-size: 0.75rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer {
  position: fixed;
  z-index: 1;
  bottom: 18px; left: 0; right: 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
footer .dot { margin: 0 8px; }

@media (max-width: 480px) {
  footer > span { display: block; }
  footer .dot { display: none; }
  .eyebrow { letter-spacing: 0.18em; font-size: 0.7rem; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .routes path, .waves, .card { animation: none; }
}
