/* ============================================================
   nielcansino.com — personal landing page
   Brand: black + electric blue · Inter Black billboard type ·
   signature left-edge accent bar. Terminal-broadcast aesthetic.
   ============================================================ */

:root {
  --bg:            #000000;
  --bg-soft:       #0a0a0a;
  --bg-hover:      #141414;
  --divider:       #1a1a1a;
  --divider-lit:   #262626;

  --accent:        #2D9CFF;
  --accent-hot:    #5cb6ff;
  --accent-dim:    #2D9CFF88;
  --accent-glow:   #2D9CFF22;

  --text:          #ffffff;
  --text-mid:      #9a9a9a;
  --text-muted:    #555555;
  --text-ghost:    #2a2a2a;

  --strike:        #ff4d4d;

  --font-heading:  'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body:     'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', 'Consolas', monospace;

  --size-kicker:   clamp(12px, 1vw, 14px);
  --size-billboard: clamp(36px, 6.8vw, 128px);
  --size-h2:       clamp(34px, 5vw, 80px);
  --size-body:     clamp(17px, 1.4vw, 22px);
  --size-meta:     13px;

  --pad-page:      clamp(20px, 6vw, 96px);
  --pad-section:   clamp(80px, 12vw, 180px);
  --accent-bar:    6px;

  --ease-out:      cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.6, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ---- Global atmosphere ---- */

/* Faint radial accent that anchors the hero */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 500px at 15% 12%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 90% 85%, rgba(45,156,255,0.04) 0%, transparent 60%);
  z-index: 0;
}

/* Grain overlay — SVG fractalNoise as data URI */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

/* ---- Status strip ---- */
.status-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px var(--pad-page);
  border-bottom: 1px solid var(--divider);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.status-strip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}

.status-strip .status-right {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.status-strip .status-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.status-strip .status-right a:hover { color: var(--text); }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%      { opacity: 0.5; box-shadow: 0 0 16px var(--accent); }
}

/* ---- HERO ---- */
.hero {
  padding: clamp(56px, 10vw, 120px) var(--pad-page) var(--pad-section);
  position: relative;
  min-height: min(860px, calc(100vh - 46px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* Signature left accent bar */
.hero::before {
  content: '';
  position: absolute;
  top: clamp(56px, 10vw, 120px);
  left: 0;
  width: var(--accent-bar);
  height: clamp(120px, 18vw, 260px);
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  animation: bar-rise 900ms var(--ease-out) both;
}

@keyframes bar-rise {
  from { height: 0; opacity: 0; }
  to   { height: clamp(120px, 18vw, 260px); opacity: 1; }
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 36px);
  max-width: min(1080px, 100%);
  min-width: 0;
  overflow-wrap: break-word;
}

.hero-body > * { min-width: 0; max-width: 100%; }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--size-kicker);
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.js-loaded .kicker {
  opacity: 0;
  animation: fade-up 700ms var(--ease-out) 180ms both;
}

.kicker::before {
  content: '→';
  color: var(--accent);
}

.billboard {
  font-family: var(--font-heading);
  font-size: var(--size-billboard);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.billboard .hit { color: var(--accent); }

.js-loaded .billboard {
  opacity: 0;
  transform: translateY(0.25em);
  animation: billboard-in 900ms var(--ease-out) 280ms forwards;
}

@keyframes billboard-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.subpitch {
  max-width: 780px;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.5;
  color: var(--text-mid);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.js-loaded .subpitch {
  opacity: 0;
  animation: fade-up 700ms var(--ease-out) 720ms both;
}

.subpitch strong {
  color: var(--text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(12px, 1.5vw, 24px);
}
.js-loaded .cta-row {
  opacity: 0;
  animation: fade-up 700ms var(--ease-out) 860ms both;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--divider-lit);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 360ms var(--ease-in-out);
  z-index: -1;
}

.btn:hover::before { transform: translateX(0); }
.btn:hover {
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn .arrow {
  display: inline-block;
  transition: transform 240ms var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #000;
  --btn-border: var(--accent);
}
.btn-primary::before { background: var(--text); }
.btn-primary:hover { color: var(--bg); border-color: var(--text); }

.hero-portrait {
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--accent);
  align-self: end;
  box-shadow: 0 0 0 10px rgba(45,156,255,0.06), 0 40px 80px -20px rgba(0,0,0,0.8);
}
.js-loaded .hero-portrait {
  opacity: 0;
  animation: portrait-in 900ms var(--ease-out) 680ms both;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.12) contrast(1.04);
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, transparent 60%, rgba(0,0,0,0.4));
  pointer-events: none;
}

@keyframes portrait-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll hint under hero */
.scroll-hint {
  position: absolute;
  left: var(--pad-page);
  bottom: clamp(32px, 6vw, 56px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.js-loaded .scroll-hint {
  opacity: 0;
  animation: fade-up 700ms var(--ease-out) 1100ms both;
}

.scroll-hint .line {
  width: 48px;
  height: 1px;
  background: var(--text-ghost);
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scroll-line 2.6s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0%    { transform: translateX(-100%); }
  100%  { transform: translateX(100%); }
}

/* ---- Section framing ---- */
.section {
  padding: var(--pad-section) var(--pad-page);
  border-top: 1px solid var(--divider);
  position: relative;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(36px, 5vw, 72px);
}

.section-tag .num {
  color: var(--accent);
  font-weight: 500;
}

.section-tag .line {
  flex: 1;
  max-width: 380px;
  height: 1px;
  background: linear-gradient(to right, var(--divider-lit), transparent);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--size-h2);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 1100px;
}

.section-heading .hit { color: var(--accent); }

/* ---- WHAT I DO list ---- */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--divider);
}

.offer-row {
  display: grid;
  grid-template-columns: 56px minmax(200px, 1fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--divider);
  transition: background 300ms var(--ease-out), padding-left 300ms var(--ease-out);
  position: relative;
}

.offer-row::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  width: 16px; height: 2px;
  background: var(--accent);
  transition: transform 260ms var(--ease-out);
}

.offer-row:hover {
  background: var(--bg-soft);
  padding-left: 24px;
}
.offer-row:hover::before { transform: translateY(-50%) scaleX(1); }
.offer-row:hover .offer-name { color: var(--accent); }

.offer-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.offer-name {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  transition: color 300ms var(--ease-out);
}

.offer-desc {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  color: var(--text-mid);
  max-width: 560px;
}

.offer-desc strong { color: var(--text); font-weight: 600; }

/* ---- BROADCAST / Recent ---- */
.broadcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--divider);
  padding: clamp(24px, 2.5vw, 36px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color 240ms var(--ease-out), transform 240ms var(--ease-out), background 240ms var(--ease-out);
  overflow: hidden;
  min-height: 320px;
}

.card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 300ms var(--ease-out);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: #0c0c0c;
}
.card:hover::after { transform: scaleY(1); }

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-meta .chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--divider-lit);
  color: var(--accent);
  letter-spacing: 1.8px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  flex: 1;
}

.card-hook {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-mid);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-foot .read {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms var(--ease-out);
}
.card:hover .card-foot .read { color: var(--accent); }

/* ---- CONTACT ---- */
.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(56px, 12vw, 180px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
  color: var(--text);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.contact-heading .hit { color: var(--accent); }

.contact-sub {
  max-width: 680px;
  font-size: clamp(17px, 1.4vw, 22px);
  color: var(--text-mid);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.contact-link {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
  position: relative;
  overflow: hidden;
}

.contact-link:hover { background: var(--bg-soft); }
.contact-link:hover .contact-label { color: var(--accent); }

.contact-link.is-soon {
  cursor: default;
  opacity: 0.55;
}
.contact-link.is-soon:hover { background: var(--bg); }
.contact-link.is-soon:hover .contact-label { color: var(--text-muted); }
.contact-link.is-soon .contact-handle { color: var(--text-mid); }
.contact-link.is-soon .soon-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-left: 6px;
  transform: translateY(-2px);
  display: inline-block;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 200ms var(--ease-out);
}

.contact-handle {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-handle .arrow {
  color: var(--text-muted);
  font-weight: 400;
  transition: transform 240ms var(--ease-out), color 240ms var(--ease-out);
}
.contact-link:hover .contact-handle .arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: clamp(36px, 4vw, 56px) var(--pad-page);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer .mark {
  color: var(--text);
  font-weight: 600;
}
.site-footer .mark .dot { color: var(--accent); }

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
.site-footer a:hover { color: var(--text); }

/* ---- Scroll-triggered reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-bottom: clamp(48px, 10vw, 96px);
  }
  .hero-portrait {
    grid-row: 1;
    order: -1;
    width: clamp(160px, 40vw, 240px);
    align-self: flex-start;
    margin-bottom: 4px;
  }
  .scroll-hint { display: none; }
  .offer-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
  }
  .offer-desc {
    grid-column: 2 / 3;
  }
  .status-strip .hide-sm { display: none; }
  .status-strip .status-right { gap: 16px; }
}

@media (max-width: 380px) {
  :root { --size-billboard: 36px; --size-h2: 32px; }
}

@media (max-width: 520px) {
  :root { --size-billboard: 40px; --size-h2: 36px; }
  .status-strip {
    font-size: 10px;
    letter-spacing: 1.8px;
    gap: 10px;
  }
  .status-strip .status-right a { display: none; }
  .status-strip .status-right a.primary { display: inline; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { padding: 14px 18px; font-size: 12px; justify-content: center; }
  .contact-handle { font-size: 18px; }
  .kicker { letter-spacing: 2.5px; font-size: 11px; }
  .section-tag { letter-spacing: 2.5px; font-size: 11px; flex-wrap: wrap; }
  .section-tag .line { display: none; }
  .hero { padding-bottom: 60px; }
  .billboard { letter-spacing: -0.035em; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Motion reduce ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-loaded .kicker,
  .js-loaded .subpitch,
  .js-loaded .cta-row,
  .js-loaded .hero-portrait,
  .js-loaded .scroll-hint,
  .js-loaded .billboard {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero::before { height: clamp(120px, 18vw, 260px); opacity: 1; animation: none; }
}

/* ---- Selection / focus ---- */
::selection { background: var(--accent); color: var(--bg); }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
