/* ==========================================================================
   Ethan Hudson | Class of 2028 — Recruiting Site
   Mobile-first custom layer on top of Bootstrap 5
   ========================================================================== */

:root {
  --eh-black:      #0a0c0f;
  --eh-panel:      #12151b;
  --eh-panel-2:    #171b23;
  --eh-line:       rgba(255,255,255,.10);
  --eh-red:        #d7262f;
  --eh-red-soft:   #ff4d57;
  --eh-white:      #f4f6f8;
  --eh-muted:      #98a2b3;
  --eh-radius:     14px;
  --eh-shadow:     0 18px 50px rgba(0,0,0,.45);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--eh-black);
  color: var(--eh-white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Type ---------- */
.display-head {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: .95;
}
.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 700;
  font-size: .8rem;
  color: var(--eh-red-soft);
}
.lead-copy { color: #cdd5df; font-size: 1.02rem; line-height: 1.75; }
.text-muted-2 { color: var(--eh-muted) !important; }

.section { padding: 4rem 0; }
@media (min-width: 992px) { .section { padding: 6rem 0; } }

.section-title {
  font-size: clamp(2rem, 7vw, 3.2rem);
}
.rule {
  width: 56px; height: 4px; background: var(--eh-red);
  border-radius: 2px; margin: 1rem 0 1.75rem;
}
.rule-center { margin-left: auto; margin-right: auto; }

/* ---------- Nav ---------- */
.navbar {
  background: rgba(10,12,15,0);
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
  padding-block: .9rem;
}
.navbar.scrolled {
  background: rgba(10,12,15,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--eh-line);
}
.navbar-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  font-size: 1.15rem;
}
.navbar-brand .accent { color: var(--eh-red-soft); }
.navbar-nav .nav-link {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: .14em;
  font-weight: 600; font-size: .95rem; color: #cbd3de;
  padding-block: .55rem;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: #fff; }
.navbar-toggler { border-color: var(--eh-line); padding: .35rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(215,38,47,.35); }
.navbar-collapse { background: rgba(10,12,15,.97); border-radius: var(--eh-radius); margin-top: .6rem; }
@media (min-width: 992px) { .navbar-collapse { background: transparent; margin-top: 0; } }

/* ---------- Buttons ---------- */
.btn { font-family:"Barlow Condensed",sans-serif; text-transform:uppercase; letter-spacing:.12em; font-weight:700; border-radius: 999px; padding: .78rem 1.6rem; }
.btn-eh {
  background: var(--eh-red); color: #fff; border: 1px solid var(--eh-red);
  box-shadow: 0 10px 26px rgba(215,38,47,.28);
}
.btn-eh:hover, .btn-eh:focus { background: #b81f27; border-color:#b81f27; color: #fff; }
.btn-ghost { background: transparent; color: var(--eh-white); border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover, .btn-ghost:focus { background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.45); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: 5rem;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media, .hero__media picture { display: block; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 38% 50%;            /* phone: portrait frame, keeps his face clear of the headline */
  filter: saturate(1.04) contrast(1.02) brightness(1.05);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,12,15,.58) 0%, rgba(10,12,15,.14) 30%, rgba(10,12,15,.72) 76%, var(--eh-black) 100%),
    linear-gradient(90deg, rgba(10,12,15,.80) 0%, rgba(10,12,15,.42) 38%, rgba(10,12,15,0) 74%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: 3.25rem; width: 100%; }
@media (min-width: 992px) {
  .hero { align-items: center; }
  .hero__media img { object-position: 62% 42%; }   /* desktop: landscape frame, batter sits right of the type */
  .hero__inner { padding-bottom: 0; }
}
.hero__name { font-size: clamp(3rem, 15vw, 8rem); }
.hero__name .ln2 { color: var(--eh-red-soft); display: block; }
.hero__sub {
  font-family:"Barlow Condensed",sans-serif; text-transform:uppercase;
  letter-spacing:.18em; font-weight:600; color:#dfe5ec; font-size: clamp(.85rem,3.2vw,1.05rem);
}
.hero__tags { gap:.5rem; }
.tag {
  display:inline-flex; align-items:center; gap:.4rem;
  border:1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  border-radius: 999px; padding:.38rem .85rem;
  font-family:"Barlow Condensed",sans-serif; text-transform:uppercase;
  letter-spacing:.12em; font-weight:600; font-size:.82rem; color:#eaeef3;
}
.tag .dot { width:6px; height:6px; border-radius:50%; background: var(--eh-red-soft); }

.scroll-hint {
  position:absolute; bottom:1.1rem; left:50%; transform:translateX(-50%);
  z-index:3; color: rgba(255,255,255,.55); font-size:.72rem;
  font-family:"Barlow Condensed",sans-serif; letter-spacing:.2em; text-transform:uppercase;
  display:none;
}
@media (min-width:992px){ .scroll-hint{ display:block; animation: bob 2.4s ease-in-out infinite; } }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,7px)} }

/* ---------- Stat strip ---------- */
.statstrip { background: var(--eh-panel); border-block: 1px solid var(--eh-line); }
.stat { padding: 1.4rem .5rem; text-align:center; }
.stat + .stat { border-left: 1px solid var(--eh-line); }
.stat__val {
  font-family:"Barlow Condensed",sans-serif; font-weight:800;
  font-size: clamp(1.5rem, 6.5vw, 2.4rem); line-height:1; color:#fff;
}
.stat__val em { font-style: normal; color: var(--eh-red-soft); }
.stat__key {
  font-family:"Barlow Condensed",sans-serif; text-transform:uppercase;
  letter-spacing:.16em; font-size:.7rem; color: var(--eh-muted); margin-top:.45rem;
}

/* ---------- Cards / panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--eh-panel-2), var(--eh-panel));
  border: 1px solid var(--eh-line);
  border-radius: var(--eh-radius);
  padding: 1.5rem;
  height: 100%;
}
.panel--accent { border-top: 3px solid var(--eh-red); }
.panel h3 {
  font-family:"Barlow Condensed",sans-serif; text-transform:uppercase;
  letter-spacing:.08em; font-weight:800; font-size:1.3rem; margin-bottom:.6rem;
}
.panel p { color:#c2cbd6; margin-bottom:0; line-height:1.7; font-size:.97rem; }
.panel__icon {
  width:44px; height:44px; border-radius:12px; display:grid; place-items:center;
  background: rgba(215,38,47,.14); color: var(--eh-red-soft);
  border:1px solid rgba(215,38,47,.3); margin-bottom:1rem;
}
.panel__icon svg { width:22px; height:22px; }

/* ---------- Positions ---------- */
.pos-card {
  background: var(--eh-panel); border:1px solid var(--eh-line);
  border-radius: var(--eh-radius); padding: 1.15rem 1rem; text-align:center; height:100%;
  transition: transform .2s ease, border-color .2s ease;
}
.pos-card:hover { transform: translateY(-3px); border-color: rgba(215,38,47,.5); }
.pos-card .abbr {
  font-family:"Barlow Condensed",sans-serif; font-weight:800;
  font-size:2rem; line-height:1; color: var(--eh-red-soft);
}
.pos-card .full {
  font-family:"Barlow Condensed",sans-serif; text-transform:uppercase;
  letter-spacing:.1em; font-size:.78rem; color:#cbd3de; margin-top:.4rem;
}
.pos-card .badge-primary-pos {
  display:inline-block; margin-top:.55rem; font-size:.6rem; letter-spacing:.16em;
  text-transform:uppercase; font-weight:700; color:#0a0c0f; background: var(--eh-red-soft);
  border-radius:999px; padding:.15rem .5rem;
}

/* ---------- Story / quote ---------- */
.quote {
  border-left: 3px solid var(--eh-red);
  padding: .35rem 0 .35rem 1.25rem;
  font-family:"Barlow Condensed",sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.95rem);
  line-height:1.25; font-weight:600; color:#fff; text-transform:none;
}
.story-img {
  border-radius: var(--eh-radius); overflow:hidden; border:1px solid var(--eh-line);
  box-shadow: var(--eh-shadow);
}
.story-img img { width:100%; height:auto; display:block; }

/* ---------- Checklist ---------- */
.checklist { list-style:none; padding:0; margin:0; }
.checklist li {
  display:flex; gap:.75rem; align-items:flex-start;
  padding:.6rem 0; border-bottom:1px dashed rgba(255,255,255,.08);
  color:#c8d1dc; font-size:.98rem; line-height:1.6;
}
.checklist li:last-child { border-bottom:0; }
.checklist svg { flex:0 0 auto; width:18px; height:18px; color: var(--eh-red-soft); margin-top:.28rem; }

/* ---------- Video ---------- */
.video-frame {
  position:relative; border-radius: var(--eh-radius); overflow:hidden;
  border:1px solid var(--eh-line); box-shadow: var(--eh-shadow);
  background: var(--eh-panel);
}
.ratio-16x9 > * { border:0; }

/* ---------- Contact ---------- */
.contact-band {
  background:
    linear-gradient(180deg, rgba(10,12,15,.86), rgba(10,12,15,.94)),
    url("../img/ethan-swing.jpg") center 30% / cover no-repeat;
}
.contact-card {
  background: rgba(18,21,27,.88);
  border:1px solid var(--eh-line);
  border-radius: 18px; padding: 1.75rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--eh-shadow);
}
.contact-link {
  display:flex; align-items:center; gap:.9rem;
  padding:.85rem 1rem; border-radius:12px;
  border:1px solid var(--eh-line); background: rgba(255,255,255,.03);
  color:#eaeef3; text-decoration:none; transition: all .2s ease;
}
.contact-link:hover, .contact-link:focus {
  background: rgba(215,38,47,.12); border-color: rgba(215,38,47,.45); color:#fff;
}
.contact-link .ico { width:38px; height:38px; flex:0 0 auto; border-radius:10px; display:grid; place-items:center; background: rgba(255,255,255,.06); }
.contact-link .ico svg { width:19px; height:19px; }
.contact-link .lbl { font-family:"Barlow Condensed",sans-serif; text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; color: var(--eh-muted); }
.contact-link .val { font-weight:600; font-size:.98rem; word-break: break-word; }
@media (min-width: 768px) and (max-width: 1199.98px) {
  .contact-link { padding:.8rem .75rem; gap:.65rem; }
  .contact-link .val { font-size:.9rem; }
}

.mail-plain {
  color: var(--eh-muted); text-decoration: none; font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 1px;
}
.mail-plain:hover, .mail-plain:focus { color: #fff; border-bottom-color: var(--eh-red); }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--eh-panel); border-top:1px solid var(--eh-line); padding: 2.5rem 0 2rem; }
.social-btn {
  width:44px; height:44px; border-radius:50%; display:grid; place-items:center;
  border:1px solid var(--eh-line); color:#dfe5ec; background: rgba(255,255,255,.04);
  transition: all .2s ease;
}
.social-btn:hover { background: var(--eh-red); border-color: var(--eh-red); color:#fff; transform: translateY(-2px); }
.social-btn svg { width:20px; height:20px; }

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

/* ---------- A11y ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--eh-red-soft); outline-offset: 2px;
}
.skip-link {
  position:absolute; left:-9999px; top:0; z-index:1000;
  background: var(--eh-red); color:#fff; padding:.7rem 1.1rem; border-radius:0 0 10px 0;
}
.skip-link:focus { left:0; }
