/* ============================================================
   Sandbox Strategies — sandboxstrategies.io
   Palette: ink #050A14 / deep #0A1628 / blue #2E6BFF / cyan #4FD8FF
   Type: Archivo (display, expanded) / Space Grotesk (body) / JetBrains Mono (utility)
   ============================================================ */

:root {
  --ink: #050a14;
  --deep: #0a1628;
  --edge: rgba(140, 170, 220, 0.14);
  --blue: #2e6bff;
  --cyan: #4fd8ff;
  --text: #e8eef9;
  --dim: #8a9bb8;
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #1a2c4a var(--ink, #050a14);
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.mono { font-family: var(--mono); }

/* ---------- background field ---------- */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(5, 10, 20, 0) 40%, rgba(5, 10, 20, 0.75) 100%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.35) 0%, rgba(5, 10, 20, 0) 30%);
}

.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.85), rgba(5, 10, 20, 0.55));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}

.wordmark { display: flex; align-items: baseline; gap: 10px; }

.wordmark-main {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.wordmark-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--dim);
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.site-nav a { color: var(--dim); transition: color 0.2s ease; }
.site-nav a:hover { color: var(--cyan); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-solid {
  background: var(--blue);
  color: #fff;
}
.btn-solid:hover { background: #1f56e0; transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--edge);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.header-cta { padding: 10px 18px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 90px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(32px, 9.2vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-title span { display: block; }
.hero-title .accent { color: var(--blue); }

.hero-sub {
  max-width: 580px;
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--dim);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-coords {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  opacity: 0.6;
}

.hero { position: relative; }

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.r1 { animation-delay: 0.08s; }
.r2 { animation-delay: 0.18s; }
.r3 { animation-delay: 0.3s; }
.r4 { animation-delay: 0.42s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- sections ---------- */
.section {
  padding: 110px var(--gutter);
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.55), rgba(10, 22, 40, 0.25));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-note {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

/* ---------- services ledger ---------- */
.ledger { border-top: 1px solid var(--edge); }

.ledger-row {
  display: grid;
  grid-template-columns: 110px 1fr 1.2fr;
  gap: 28px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--edge);
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.ledger-row:hover {
  background: linear-gradient(90deg, rgba(46, 107, 255, 0.08), transparent 70%);
  padding-left: 14px;
}

.ledger-tag {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.ledger-title {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
}

.ledger-desc { color: var(--dim); font-size: 16px; }

/* ---------- studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.studio-lede {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
  font-weight: 500;
}

.principles { list-style: none; border-top: 1px solid var(--edge); }

.principles li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--edge);
  font-size: 17px;
}

.principle-key {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue);
}

/* ---------- contact ---------- */
.contact { padding-bottom: 130px; }

.contact-mail {
  display: block;
  font-family: var(--display);
  font-stretch: 122%;
  font-weight: 900;
  font-size: clamp(28px, 6.4vw, 88px);
  line-height: 1.04;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: var(--text);
  transition: color 0.25s ease;
}
.contact-mail:hover { color: var(--cyan); }

.contact-tel {
  display: inline-block;
  margin-top: 26px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--dim);
  border-bottom: 1px solid var(--edge);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-tel:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
  padding: 30px var(--gutter) 44px;
  border-top: 1px solid var(--edge);
  background: rgba(5, 10, 20, 0.8);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.footer-left { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-dim { color: var(--dim); }

.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--dim); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--cyan); }

/* ---------- legal pages ---------- */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px var(--gutter) 100px;
}

.legal-main h1 {
  font-family: var(--display);
  font-stretch: 122%;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.legal-updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 48px;
}

.legal-main h2 {
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 700;
  font-size: 21px;
  margin: 44px 0 14px;
}

.legal-main p, .legal-main li { color: var(--dim); font-size: 16px; }
.legal-main ul { padding-left: 22px; margin: 12px 0; }
.legal-main li { margin: 6px 0; }
.legal-main a { color: var(--cyan); border-bottom: 1px solid rgba(79, 216, 255, 0.3); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .wordmark-sub { display: none; }
  .header-cta { margin-left: auto; padding: 9px 14px; font-size: 12px; }
  .ledger-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { flex-direction: column; gap: 8px; margin-bottom: 40px; }
  .hero-coords { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .btn, .ledger-row { transition: none; }
}
