/* ============================================================
   ORRY — site.css
   Red / black cyber theme
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --void:      #050608;
  --bg:        #0a0b0e;
  --panel:     #101216;
  --panel-2:   #15181d;
  --line:      #1d2128;
  --line-hot:  #3d1219;

  --red:       #ff2b3d;
  --red-hi:    #ff6070;
  --red-deep:  #b30d1c;
  --red-ink:   rgba(255, 43, 61, 0.09);
  --red-glow:  rgba(255, 43, 61, 0.28);

  --text:      #e8eaee;
  --dim:       #99a1ad;
  --faint:     #5c646f;

  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;

  --r:         4px;
  --r-lg:      8px;
  --maxw:      1180px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

/* ── Ambient backdrop: grid + red bloom + scanlines ─────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,43,61,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,43,61,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(255,43,61,.15), transparent 65%),
    radial-gradient(600px 400px at 92% 12%, rgba(179,13,28,.10), transparent 70%);
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,.16) 3px,
    rgba(0,0,0,0) 4px
  );
  opacity: .35;
  mix-blend-mode: multiply;
}

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

section.band {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
section.band:first-of-type { border-top: 0; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line-hot), transparent);
}

.sec-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}
.sec-sub {
  color: var(--dim);
  max-width: 62ch;
  margin-bottom: 44px;
  font-size: 15.5px;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,11,14,.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.stuck {
  border-bottom-color: var(--line);
  background: rgba(8,9,11,.9);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand .bracket { color: var(--red); }
.brand .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links a.active { color: var(--red); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 rgba(255,43,61,0);
}
.btn-primary:hover {
  background: var(--red-hi);
  box-shadow: 0 6px 26px var(--red-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 6px 13px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.status-chip .led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(44px, 8.5vw, 92px);
  line-height: .96;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero h1 .accent {
  color: var(--red);
  text-shadow: 0 0 40px var(--red-glow);
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--dim);
  letter-spacing: .06em;
  margin-bottom: 22px;
}
.hero-tagline {
  font-size: 18px;
  color: var(--text);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-tagline .cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--red);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
}
.hero-meta a { color: var(--faint); text-decoration: none; transition: color .18s; }
.hero-meta a:hover { color: var(--red); }
.hero-meta span, .hero-meta a { display: inline-flex; align-items: center; gap: 7px; }

/* Terminal card */
.term {
  background: linear-gradient(180deg, var(--panel) 0%, #0c0e11 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,43,61,.05);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #0b0d10;
  border-bottom: 1px solid var(--line);
}
.term-bar .b { width: 10px; height: 10px; border-radius: 50%; background: #232830; }
.term-bar .b:first-child { background: var(--red-deep); }
.term-bar .path {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
.term-body {
  padding: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--dim);
  overflow-x: auto;
}
.term-body .k { color: var(--red); }
.term-body .s { color: #9fb3c8; }
.term-body .c { color: var(--faint); }
.term-body .p { color: var(--red); }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}
.stat {
  background: var(--bg);
  padding: 22px 20px;
  transition: background .22s;
}
.stat:hover { background: var(--panel); }
.stat .v {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 7px;
}
.stat .l {
  font-size: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── About ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.bio p { color: var(--dim); margin-bottom: 16px; font-size: 15.5px; }
.bio p:last-child { margin-bottom: 0; }

.skill-group { margin-bottom: 26px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--dim);
  background: var(--panel);
  transition: border-color .18s, color .18s, transform .18s;
}
.chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

/* ── Project cards ──────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, var(--red), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover {
  border-color: var(--line-hot);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.card:hover::before { opacity: 1; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 6px;
}
.card h3 { font-size: 19px; letter-spacing: -0.01em; }
.card-org {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.card-org .sep { color: var(--line-hot); margin: 0 7px; }

.badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  border: 1px solid var(--line-hot);
  color: var(--red);
  background: var(--red-ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-body { color: var(--dim); font-size: 14.5px; flex: 1; }
.card-body p { margin-bottom: 12px; }
.card-body p:last-child { margin-bottom: 0; }
.card-body.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-more {
  background: none;
  border: 0;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 0 0;
  align-self: flex-start;
}
.card-more:hover { text-decoration: underline; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.card-shot {
  width: calc(100% + 52px);
  margin: -26px -26px 20px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  display: block;
}
.card-link {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: .06em;
}
.card-link:hover { text-decoration: underline; }

/* ── Certifications ─────────────────────────────────────── */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.cert {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.cert:hover {
  border-color: var(--line-hot);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
}
.cert-badge {
  width: 74px; height: 74px;
  object-fit: contain;
}
.cert-seal {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-hot);
  background: radial-gradient(circle at 50% 35%, rgba(255,43,61,.16), transparent 70%);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .04em;
}
.cert h4 { font-size: 15.5px; }
.cert .issuer { font-size: 13px; color: var(--dim); }
.cert .date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .1em;
}
.cert .verify {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2px;
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--red), var(--line) 25%, var(--line) 75%, transparent);
}
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.tl-item h3 { font-size: 19px; }
.tl-period {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--red);
  letter-spacing: .08em;
  white-space: nowrap;
}
.tl-company {
  font-size: 14.5px;
  color: var(--dim);
  margin-bottom: 14px;
}
.tl-company .loc { color: var(--faint); }
.tl-bullets { list-style: none; }
.tl-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 14.5px;
}
.tl-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 11px;
  top: 1px;
}

/* ── Education ──────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.edu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: var(--r);
  padding: 22px;
}
.edu h4 { font-size: 16px; margin-bottom: 4px; }
.edu .school { color: var(--dim); font-size: 14px; }
.edu .year {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--red);
  letter-spacing: .08em;
  margin: 8px 0;
}
.edu .notes { font-size: 13.5px; color: var(--faint); }

/* ── Resume ─────────────────────────────────────────────── */
.resume-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.resume-icon {
  width: 62px; height: 62px;
  flex-shrink: 0;
  border-radius: var(--r);
  border: 1px solid var(--line-hot);
  background: var(--red-ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .08em;
}
.resume-info { flex: 1; min-width: 220px; }
.resume-info h3 { font-size: 19px; margin-bottom: 5px; }
.resume-info p { color: var(--dim); font-size: 14.5px; }
.resume-info .meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 7px;
  letter-spacing: .06em;
}
.resume-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.resume-viewer {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel-2);
}
.resume-viewer iframe {
  width: 100%;
  height: 78vh;
  min-height: 520px;
  border: 0;
  display: block;
}

/* ── Contact ────────────────────────────────────────────── */
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(255,43,61,.10), transparent 70%),
    var(--panel);
  padding: 56px 34px;
  text-align: center;
}
.contact-panel h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.contact-panel p { color: var(--dim); max-width: 48ch; margin: 0 auto 28px; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  position: relative;
  z-index: 1;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .06em;
}
.foot-inner a { color: var(--faint); text-decoration: none; }
.foot-inner a:hover { color: var(--red); }

/* ── Empty state ────────────────────────────────────────── */
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 44px 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: .06em;
}

/* ── Reveal on scroll ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  section.band { padding: 68px 0; }
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8,9,11,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 20px;
    transform: translateY(-120%);
    transition: transform .32s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 10px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .card-shot { width: calc(100% + 52px); }
  .resume-panel { flex-direction: column; align-items: flex-start; }
  .foot-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scanlines { display: none; }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .nav, .backdrop, .scanlines, .hero-actions, .contact-actions, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .cert, .edu, .term { border-color: #ccc; background: #fff; }
}
