:root {
  --bg: #FFFFFF;
  --ink: #0D0D0D;
  --muted: #6B7280;
  --line: #E5E7EB;
  --accent: #D62828;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Interactive Mouse-Tracked Hairlines */
.kinetic-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.k-line {
  position: absolute;
  background: rgba(13, 13, 13, 0.045);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.k-v {
  top: 0;
  bottom: 0;
  width: 1px;
  left: 50%;
}

.k-h {
  left: 0;
  right: 0;
  height: 1px;
  top: 48%;
}

/* Main Full-Viewport Frame */
.canvas {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 48px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Centerpiece Typography */
.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px 0;
}

.line-mask {
  overflow: hidden;
}

.display-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  transition: letter-spacing 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.display-title:hover {
  letter-spacing: -0.02em;
}

.display-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.08em;
}

/* Kinetic Horizon Line */
.horizon-track {
  position: relative;
  width: 100%;
  height: 1px;
  background: var(--line);
  overflow: hidden;
  transform-origin: left center;
}

.horizon-runner {
  position: absolute;
  top: 0;
  left: -18%;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--ink));
  animation: horizonSweep 3.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes horizonSweep {
  0% {
    left: -20%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 105%;
    opacity: 0;
  }
}

/* Contact Columns */
.contact-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.col-value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
}

.phone-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.phone-link:hover {
  color: var(--accent);
}

.social-inline {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Sharp Animated Underline Links & Actions (No Capsules) */
.text-action {
  position: relative;
  display: inline-block;
  background: none;
  border: 0;
  padding: 2px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.text-action::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.text-action:hover {
  color: var(--accent);
}

.text-action:hover::after {
  background: var(--accent);
  transform: scaleX(1.06);
}

/* Bottom Marquee & Footer */
.bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  animation: marqueeScroll 24s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Staggered Load Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(38px);
  animation: revealUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-fade {
  opacity: 0;
  animation: revealFade 0.8s ease forwards;
}

.reveal-rule {
  transform: scaleX(0);
  animation: revealRule 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.32s; }
.delay-3 { animation-delay: 0.48s; }
.delay-4 { animation-delay: 0.65s; }

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

@keyframes revealFade {
  to {
    opacity: 1;
  }
}

@keyframes revealRule {
  to {
    transform: scaleX(1);
  }
}

/* Responsive */
@media (max-width: 860px) {
  .canvas {
    padding: 28px 24px 24px;
    gap: 28px;
  }
  .contact-band {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .horizon-runner,
  .marquee-track,
  .reveal-up,
  .reveal-fade,
  .reveal-rule {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .k-line {
    display: none;
  }
}
