/* Dean Cristofori — Hero Launch
   Ported from Claude Design "Hero Launch.dc.html" (project Professional portfolio website design).
   Palette: bg #0a0b0d · hero #08090a · text #dde3e7 · bone #e8e1d2
            cyan #82d7e6 / #7ecbdc / #9fdcea · amber #d9a04c */

html, body {
  margin: 0;
  padding: 0;
  background: #0a0b0d;
  color: #dde3e7;
}
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #9fdcea; text-decoration: none; }
a:hover { color: #cdeef7; }
::selection { background: rgba(130,215,230,0.25); color: #eef7fa; }
button { font-family: inherit; }

@keyframes sonarPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
@keyframes sonarPing {
  0%   { transform: scale(0.2); opacity: 0.75; }
  70%  { opacity: 0.25; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* — grain — */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22180%22 height=%22180%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%222%22/%3E%3C/filter%3E%3Crect width=%22180%22 height=%22180%22 filter=%22url(%23n)%22 opacity=%220.6%22/%3E%3C/svg%3E');
}

main { display: flex; flex-direction: column; }

/* — hero shell — */
.hero {
  position: relative;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #08090a;
}
.sonar-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 56%;
  background-image: url('../assets/dac-sonar.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.75) 45%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.75) 45%, #000 70%);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 88px 88px;
}
.frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.corner { position: absolute; width: 24px; height: 24px; pointer-events: none; }
.corner--tl {
  top: 14px; left: 14px;
  border-top: 1px solid rgba(130,215,230,0.55);
  border-left: 1px solid rgba(130,215,230,0.55);
}
.corner--br {
  bottom: 14px; right: 14px;
  border-bottom: 1px solid rgba(130,215,230,0.55);
  border-right: 1px solid rgba(130,215,230,0.55);
}
.ticks {
  position: absolute;
  top: 46px; left: 44px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.tick { height: 4px; }
.tick--1 { width: 18px; background: rgba(130,215,230,0.5); }
.tick--2 { width: 10px; background: rgba(130,215,230,0.28); }
.tick--3 { width: 4px;  background: rgba(130,215,230,0.45); }
.tick--4 { width: 4px;  background: rgba(130,215,230,0.2); }
.baseline-glow {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130,215,230,0.35), transparent);
}

/* — sonar hotspot — */
.sonar {
  --sonar-dur: 3.6s;
  --sonar-ring-a: 0.4;
  --sonar-ring-b: 0.25;
  --sonar-bright: 1;
  --sonar-glow: 0.28;
  --sonar-label-op: 0;
  position: absolute;
  top: 50%; left: 72%;
  width: 140px; height: 140px;
  transform: translate(-50%, -50%);
  cursor: crosshair;
  display: grid;
  place-items: center;
  z-index: 2;
}
/* port addition: no hover on touch devices — the hotspot is decorative there
   and must not swallow taps meant for content behind it */
@media (hover: none) {
  .sonar { pointer-events: none; }
}
.sonar:hover {
  --sonar-dur: 1.3s;
  --sonar-ring-a: 0.75;
  --sonar-ring-b: 0.5;
  --sonar-bright: 1.9;
  --sonar-glow: 0.55;
  --sonar-label-op: 1;
}
.sonar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: sonarPing var(--sonar-dur) cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
  /* port addition: the ping scales to 2.6x — without this the invisible scaled
     ring intercepts clicks far outside the hotspot (e.g. the hero actions) */
  pointer-events: none;
}
.sonar-core { pointer-events: none; }
.sonar-ring--a { border: 1px solid rgba(130,215,230,var(--sonar-ring-a)); }
.sonar-ring--b {
  border: 1px solid rgba(130,215,230,var(--sonar-ring-b));
  animation-delay: calc(var(--sonar-dur) / -2);
}
.sonar-core {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,252,255,0.95) 0%, rgba(130,215,230,0.65) 45%, transparent 72%);
  filter: blur(1px) brightness(var(--sonar-bright));
  box-shadow: 0 0 26px 8px rgba(130,215,230,var(--sonar-glow));
  animation: sonarPulse 3.2s ease-in-out infinite;
  transition: filter 0.3s;
}
.sonar-label {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: #9fdcea;
  opacity: var(--sonar-label-op);
  transition: opacity 0.35s;
  pointer-events: none;
}

/* — hero content — */
.hero-content {
  position: relative;
  max-width: 1220px;
  margin: auto;
  padding: 90px 28px 70px;
  width: 100%;
  box-sizing: border-box;
}
.hero-name-block { width: fit-content; }
.hero-name {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  /* min() guard is a port addition: keeps the nowrap name from clipping on narrow phones */
  font-size: min(clamp(64px, 8.5vw, 120px), 13vw);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: #e8e1d2;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-role {
  margin-top: 4px;
  margin-right: -0.31em;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  /* min() guard is a port addition: keeps the justified role on one line on narrow phones */
  font-size: min(clamp(24px, 3.4vw, 46px), 5.6vw);
  letter-spacing: 0.31em;
  color: #7ecbdc;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: justify;
  text-align-last: justify;
}
.hero-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  max-width: 640px;
}
.hero-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(130,215,230,0.55), rgba(130,215,230,0.12));
}
.hero-divider-dot { width: 5px; height: 5px; }
.hero-divider-dot--solid { background: #7ecbdc; }
.hero-divider-dot--faint { background: rgba(130,215,230,0.35); }
.hero-tagline {
  margin-top: 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #aeb8be;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 48px;
  /* port addition: sit above the sonar hotspot so the actions stay clickable
     when the hotspot drifts over them at narrow widths */
  position: relative;
  z-index: 3;
}
.btn-reel {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 19px 38px;
  min-height: 44px;
  background: rgba(130,215,230,0.08);
  border: 1px solid rgba(130,215,230,0.5);
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #bfe9f2;
  transition: background 0.25s, border-color 0.25s;
}
.btn-reel:hover {
  background: rgba(130,215,230,0.16);
  border-color: #82d7e6;
}
.btn-reel-tri {
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #82d7e6;
}
.link-contact {
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  min-height: 44px;
  box-sizing: border-box;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #8b949c;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: color 0.2s;
}
.link-contact:hover { color: #cdeef7; }
.status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}
.status-tri {
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 13px solid rgba(217,160,76,0.85);
}
.status-lines { display: flex; flex-direction: column; gap: 4px; }
.status-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: #d9a04c;
}
.status-line--dim {
  letter-spacing: 0.18em;
  color: rgba(217,160,76,0.55);
}

/* — cred band — */
.cred-band {
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(130,215,230,0.07), rgba(255,255,255,0.02));
  backdrop-filter: blur(18px) saturate(1.3) brightness(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.3) brightness(1.2);
}
.cred-band-bg {
  position: absolute;
  top: -320px; right: 0; bottom: -60px;
  width: 58%;
  background-image: url('../assets/dac-sonar.webp');
  background-size: cover;
  background-position: center bottom;
  filter: blur(28px) saturate(1.5) brightness(1.6);
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.cred-band-inner {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}
.cred-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cred { flex: 1 1 auto; padding: 20px 24px 22px; }
.cred-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: #eef2f4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cred-label {
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #6d7982;
  white-space: nowrap;
}
/* port addition: let cred text wrap on phones instead of clipping */
@media (max-width: 640px) {
  .cred-value, .cred-label { white-space: normal; }
}

/* — footer — */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  background: #0a0b0d;
}
.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: #525b62;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #7f8992;
}
.footer-links a:hover { color: #cdeef7; }

/* — reel modal — */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4,5,7,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 4vmin;
  box-sizing: border-box;
}
.modal[hidden] { display: none; }
.modal-panel {
  position: relative;
  width: min(1360px, 94vw);
  max-height: 88vh;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: #82d7e6;
}
.modal-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 10px 18px;
  min-height: 44px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #dde3e7;
  transition: border-color 0.2s;
}
.modal-close:hover { border-color: #82d7e6; }
.modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
}
.modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
