/* ============ DAK BUILDS · dark studio design system ============
   Original dark canvas (bg #1a1a1a, cream text, honcho-style light blue,
   dakbuilds maroon accents), VT323 display type as the terminal-native voice,
   mono labels as the "systems underneath" layer. Movement: smooth scroll,
   staggered mask reveals, stroke-draw accents. */
:root {
  --bg: #1a1a1a;
  --bg-raise: #212121;
  --line: #333333;
  --text: #f5f0e8;        /* dakbuilds cream as the light */
  --muted: #9a958c;
  --blue: #a9c9f0;        /* honcho-style light blue */
  --blue-deep: #4a7fb5;   /* dakbuilds blue */
  --maroon: #5c1a1b;      /* dakbuilds maroon */
  --display: 'VT323', monospace;
  --mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: var(--bg); }
em { font-style: normal; } /* VT323 has no italic; accents carry color + underline instead */
.accent { color: var(--blue); }

/* ============ ANNOUNCEMENT BAR ============ */
.announce {
  background: var(--blue);
  color: #101418;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.announce-bold { font-weight: 700; }
.announce a { text-decoration: underline; font-weight: 700; margin-left: 8px; }

/* ============ NAV ============ */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-links { display: flex; gap: 8px; }
.nav-right { justify-content: flex-end; }
.nav-box {
  border: 1px dashed var(--line);
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, color 0.2s, border-style 0.2s;
}
.nav-box:hover { border-color: var(--blue); color: var(--blue); border-style: solid; }
.nav-logo {
  font-family: var(--display);
  font-size: 34px;
  color: var(--blue);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 84px;
  overflow: visible;
  text-align: left;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-kicker { margin-bottom: 22px; }
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 9.5vw, 132px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 30px;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title.done .line { overflow: visible; } /* release clip so the underline can hang below the text */
.hero-title .lift {
  display: inline-block;
  transform: translateY(115%);
  animation: liftIn 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.hero-title .line:nth-child(1) .lift { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) .lift { animation-delay: 0.22s; }
.hero-title .line:nth-child(3) .lift { animation-delay: 0.34s; }
@keyframes liftIn { to { transform: translateY(0); } }
.hero-title em { position: relative; white-space: nowrap; }
.underline {
  position: absolute;
  left: 0;
  bottom: -0.08em;
  width: 100%;
  height: 0.16em;
  overflow: visible;
}
.underline path {
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawIn 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.15s forwards;
}
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 46px;
}
.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ============ TERMINAL (systems artifact) ============ */
.terminal {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  background: #141414;
  text-align: left;
  box-shadow: 0 0 28px rgba(74, 127, 181, 0.12);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.terminal-label { margin-left: 10px; font-size: 12px; color: var(--muted); }
.terminal-body {
  padding: 18px 16px 22px;
  font-size: 14px;
  min-height: 58px;
  color: var(--blue);
}
.terminal-prompt { color: var(--muted); }
.cursor { animation: blink 1s steps(1) infinite; color: var(--blue); }
@keyframes blink { 50% { opacity: 0; } }

/* ============ BUTTONS ============ */
.hero-ctas { display: flex; flex-direction: column; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 15px 26px;
  border: 1px solid var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.2s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(5px); }
.btn-fill { background: var(--text); color: var(--bg); }
.btn-fill:hover { color: var(--text); border-color: var(--maroon); }
.btn-line { background: transparent; color: var(--text); }
.btn-line:hover { color: var(--text); border-color: var(--maroon); }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-raise);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--display);
  font-size: 30px;
  color: var(--blue);
  text-transform: uppercase;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section { padding: 110px 24px; max-width: 1120px; margin: 0 auto; text-align: left; }
.kicker {
  color: var(--blue-deep);
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-sub { color: var(--muted); margin-bottom: 64px; max-width: 560px; }
/* title with no subhead under it absorbs the sub's gap before the content */
.section-title.no-sub { margin-bottom: 64px; }

/* ============ STATEMENT BAND ============ */
.band {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(74, 127, 181, 0.10), transparent 70%),
    var(--bg-raise);
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}
.band-inner { position: relative; text-align: center; padding: 90px 24px; }
.band-kicker { color: var(--blue); }
.band-line {
  font-family: var(--display);
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
}
.band-line em { color: var(--blue); }

/* ============ FOCUS LIST ============ */
.focus-list { border-top: 1px solid var(--line); }
.focus-row {
  display: grid;
  grid-template-columns: 110px 300px 1fr;
  gap: 28px;
  align-items: start;
  padding: 44px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding-left 0.3s;
}
.focus-row:hover { background: var(--bg-raise); padding-left: 20px; }
.focus-num {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--blue);
}
.focus-row h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
}
.focus-row p { color: var(--muted); font-size: 14px; max-width: 560px; }

/* ============ CONTACT / EMAIL CARD ============ */
.contact { max-width: 760px; }
.contact-card {
  border: 1px solid var(--line);
  background: #141414;
  box-shadow: 0 0 28px rgba(74, 127, 181, 0.12);
}
.contact-body { padding: 30px 26px 26px; }
.contact-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-email {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(26px, 5.4vw, 58px);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap; /* the address reads as one unit; never break it mid-word */
  max-width: 100%;
  border-bottom: 2px solid var(--blue-deep);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--blue); border-color: var(--blue); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.form-status { font-size: 13px; color: var(--blue); min-height: 20px; margin-top: 14px; }
.form-status.error { color: #d98a8b; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 24px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  background: var(--bg-raise);
}
.footer-logo { font-family: var(--display); font-size: 42px; color: var(--blue); line-height: 1; }
.footer p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-links a:hover { color: var(--blue); border-color: var(--blue); }
.footer-note { font-size: 11px; color: #6a655c; margin-top: 14px; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--stagger, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .hero-title .lift { animation: none; transform: none; }
  .hero-title .line { overflow: visible; }
  .underline path { animation: none; stroke-dashoffset: 0; }
  .marquee-track, .cursor { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn::before { transition: none; }
}

/* ============ TABLET ============ */
@media (max-width: 1024px) {
  .focus-row { grid-template-columns: 80px 1fr; }
  .focus-row p { grid-column: 2; }
}

/* ============ MOBILE ============ */
@media (max-width: 720px) {
  /* stacked nav is too tall to stay sticky on mobile: it buries section titles */
  .nav { grid-template-columns: 1fr; justify-items: center; gap: 10px; position: static; }
  .nav-logo { order: -1; }
  .hero { padding: 64px 18px 56px; }
  .hero-row { flex-direction: column; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .section { padding: 80px 18px; }
  .band { min-height: 320px; }
  .focus-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-body { padding: 24px 18px 22px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
}
