:root{
  --chocolate-cosmos:#3E000C;
  --imperial-red:#FB4B4E;
  --fairy-tale:#FFCBDD;
  --claret:#7C0B2B;
  --engineering-orange:#D10000;

  --text: #fff7fa;
  --muted: rgba(255, 203, 221, 0.88);

  --sidebar-w: 16.666%;

  /* Home hover preview tint */
  --hover-tint: rgba(251, 75, 78, 0.18);
  --hover-base: rgba(62, 0, 12, 0.52);

  /* Safer viewport height for mobile browsers */
  --app-h: 100vh;
}
@supports (height: 100dvh){
  :root{ --app-h: 100dvh; }
}

/* =========================================================
   FONT
   - Absolute paths so it works from any /page/
   - Put BOTH files in /fonts/ with EXACT names/case
   ========================================================= */
@font-face{
  font-family: "BBHBogle";
  src:
    url("/fonts/BBHBogle-Regular.woff2") format("woff2"),
    url("/fonts/BBHBogle-Regular.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin:0;
  font-family: "BBHBogle", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1400px 700px at 75% 25%, rgba(251,75,78,0.28), transparent 60%),
    radial-gradient(1100px 600px at 25% 90%, rgba(209,0,0,0.18), transparent 55%),
    linear-gradient(140deg, var(--chocolate-cosmos), #1a0006 62%);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid rgba(251,75,78,0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================================================
   LOADER (optional, on pages where used)
   ========================================================= */
.loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #1a0006, var(--chocolate-cosmos));
  animation: loaderFadeOut 0.75s ease forwards;
  animation-delay: 3.2s;
}
.typing{
  font-size: clamp(18px, 2vw, 30px);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--fairy-tale);
  padding-right: 6px;
}
.typing .text{
  display: inline-block;
  width: 0;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(255,203,221,0.85);
  padding-right: 12px;
  will-change: width;
  animation:
    type 2.6s steps(22, end) forwards,
    caretBlink 0.65s step-end infinite;
}
@keyframes type { to { width: calc(22ch + 12px); } }
@keyframes caretBlink { 50% { border-color: transparent; } }
@keyframes loaderFadeOut{ to { opacity: 0; visibility: hidden; pointer-events: none; } }

.site{
  min-height: 100%;
  opacity: 0;
  animation: siteFadeIn 0.75s ease forwards;
  animation-delay: 3.3s;
}
@keyframes siteFadeIn{ to { opacity: 1; } }

/* =========================================================
   LAYOUT
   ========================================================= */
.layout{
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

aside{
  position: sticky;
  top: 0;
  height: var(--app-h);
  padding: 28px 18px;
  border-right: 1px solid rgba(255,203,221,0.16);
  background: rgba(62,0,12,0.62);
  backdrop-filter: blur(10px);
}

.sidebar{
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.logo{
  width: 100%;
  max-width: 180px;
  display: grid;
  place-items: center;
}
.logo-img{ width: 100%; height: auto; display: block; }

/* Links */
.navlink{
  color: rgba(255,203,221,0.80);
  font-size: 16px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
  padding: 6px 0;
}
.navlink:hover{ color: var(--text); transform: translateY(-1px); }
.navlink.active{ color: var(--text); }

/* Footer */
.sidebar-footer{
  margin-top: auto;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-bottom: 6px;
}
.socials{
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.iconbtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 6px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.iconbtn:hover{ transform: translateY(-1px); opacity: 0.95; }
.iconbtn svg{
  width: 18px;
  height: 18px;
  fill: rgba(255,203,221,0.88);
}
.copyright{
  color: rgba(255,203,221,0.70);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* =========================================================
   MAIN
   ========================================================= */
main{
  min-height: var(--app-h);
  padding: 34px;
}

/* Home page edge-to-edge preview: apply class="main--home" to <main> on homepage */
.main--home{ padding: 0; }

/* Home hover preview (home page only) */
.home-hero{
  position: relative;
  min-height: var(--app-h);
  display: grid;
  place-items: center;
}
.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:0;
  transform: scale(1.02);
  transition: opacity 240ms ease, transform 240ms ease;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.05) brightness(0.92) saturate(1.25);
}
.home-hero > *{ position: relative; z-index: 1; }

/* Keep button area padded while background reaches edges */
.home-hero .home-center{ padding: 34px; }

.home-hero:has(.home-btn.live:hover)::before{
  opacity: 1;
  transform: scale(1);
  background-image:
    linear-gradient(140deg, var(--hover-base), rgba(62,0,12,0.30)),
    linear-gradient(0deg, var(--hover-tint), var(--hover-tint)),
    url("/img/live.jpg");
  background-blend-mode: multiply, normal, normal;
}
.home-hero:has(.home-btn.creators:hover)::before{
  opacity: 1;
  transform: scale(1);
  background-image:
    linear-gradient(140deg, var(--hover-base), rgba(62,0,12,0.30)),
    linear-gradient(0deg, var(--hover-tint), var(--hover-tint)),
    url("/img/digital.jpg");
  background-blend-mode: multiply, normal, normal;
}

/* Home buttons */
.home-center{
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.home-btn{
  width: 320px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid rgba(255,203,221,0.22);
  background: rgba(255,203,221,0.05);
  color: rgba(255,203,221,0.96);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 36px;
  line-height: 1.05;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.home-btn:hover{
  transform: translateY(-2px);
  background: rgba(251,75,78,0.16);
  border-color: rgba(251,75,78,0.40);
  color: var(--text);
}

/* Headings / copy */
.page-title{
  margin: 0 0 10px;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: 30px;
}
.page-lead{
  margin: 0 0 18px;
  color: rgba(255,203,221,0.90);
  line-height: 1.75;
  font-size: 18px;
  max-width: 80ch;
}

/* TEMP ROSTER NOTICE (easy remove) */
.temp-note{
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,203,221,0.18);
  background: rgba(255,203,221,0.05);
  color: rgba(255,203,221,0.92);
  letter-spacing: 0.02em;
  line-height: 1.55;
  font-size: 14px;
  max-width: 980px;
}
.temp-note strong{ color: rgba(255,203,221,0.98); }

/* Roster grid */
.grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tile{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,203,221,0.16);
  background: rgba(255,203,221,0.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transform: translateZ(0);
  aspect-ratio: 1 / 1;
}
.tile .img{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tile .overlay{
  position:absolute;
  inset:0;
  background: rgba(62,0,12,0.0);
  transition: background 180ms ease;
}
.tile .name{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px;
  text-align: center;
  color: rgba(255,203,221,0.92);
  letter-spacing: 0.06em;
  font-size: 14px;
  background: linear-gradient(to top, rgba(62,0,12,0.82), rgba(62,0,12,0.0));
  transform: translateY(10px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}
.tile:hover .overlay{ background: rgba(251,75,78,0.18); }
.tile:hover .name{ transform: translateY(0); opacity: 1; }

/* About / contact shared layout */
.center-page{
  min-height: calc(var(--app-h) - 68px);
  display: grid;
  place-items: center;
}
.section-wrap{
  width: min(760px, 100%);
  display: grid;
  gap: 12px;
}
.section-title{
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: clamp(28px, 2.2vw, 40px);
  color: rgba(255,203,221,0.96);
  text-align: left;
}
.section-subtitle{
  margin: 0;
  color: rgba(255,203,221,0.78);
  line-height: 1.7;
  font-size: 16px;
  text-align: left;
}
.prose{
  color: rgba(255,203,221,0.92);
  line-height: 1.75;
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 0;
  text-align: left;
}
.about-logo-wrapper{
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.about-long-logo{
  max-width: 320px;
  width: min(320px, 90%);
  height: auto;
}
.signature{
  justify-self: start;
  width: min(220px, 46%);
  height: auto;
  opacity: 0.92;
  margin-top: 6px;
  display: block;
}

/* Forms */
form{
  width: 100%;
  display: grid;
  gap: 14px;
  margin-top: 6px;
}
label{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,203,221,0.78);
}
input, textarea{
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,203,221,0.20);
  background: rgba(255,203,221,0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
}
textarea{ min-height: 170px; resize: vertical; }

/* Buttons */
button.btn{
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(251,75,78,0.40);
  background: rgba(251,75,78,0.16);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  font-size: 16px;
  width: fit-content;
  margin-top: 6px;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(209,0,0,0.18);
  border-color: rgba(209,0,0,0.46);
}

/* Detail pages */
.backlink{
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(255,203,221,0.85);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.detail{
  width: min(980px, 100%);
  margin: 0 auto;
  padding-bottom: 40px;
}
.detail-photo{
  height: 300px;
  border-radius: 16px;
  border: 1px solid rgba(255,203,221,0.16);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}
.detail-title{
  margin: 18px 0 0;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: 30px;
}
.detail-bio{
  margin: 10px 0 0;
  color: rgba(255,203,221,0.90);
  line-height: 1.75;
  font-size: 18px;
  max-width: 80ch;
}
.detail-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  max-width: 820px;
}
.meta-title{
  color: rgba(255,203,221,0.72);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.meta-value{
  margin-top: 8px;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: rgba(255,203,221,0.95);
}
.detail-socials{
  margin-top: 18px;
  max-width: 820px;
}
.detail-socials a{
  color: rgba(255,203,221,0.95);
  border-bottom: 1px solid rgba(255,203,221,0.25);
}
.detail-socials a:hover{
  color: var(--text);
  border-bottom-color: rgba(251,75,78,0.55);
}
.detail-actions{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Services */
.services-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  max-width: 980px;
}
.service-card{
  border: 1px solid rgba(255,203,221,0.16);
  background: rgba(255,203,221,0.04);
  border-radius: 16px;
  padding: 18px;
  min-height: 140px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.service-card:hover{
  transform: translateY(-2px);
  border-color: rgba(251,75,78,0.38);
  background: rgba(251,75,78,0.08);
}
.service-icon{
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
}
.service-icon svg{
  width: 34px;
  height: 34px;
  fill: rgba(255,203,221,0.88);
}
.service-title{
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: rgba(255,203,221,0.96);
}
.service-desc{
  margin: 0;
  color: rgba(255,203,221,0.78);
  line-height: 1.6;
  font-size: 14px;
}

/* =========================================================
   RESPONSIVE MENU (NO JS) - CHECKBOX TOGGLE
   - Scopes to .sidebar to avoid affecting other navs
   ========================================================= */
.sidebar .nav-toggle{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sidebar .nav-toggle-btn{
  display: none;
  width: 100%;
  max-width: 260px;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  border: 1px solid rgba(255,203,221,0.20);
  background: rgba(255,203,221,0.05);
  color: rgba(255,203,221,0.92);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 14px;
  text-align: center;
  margin-top: 6px;
}

/* Desktop: menu always visible */
.sidebar .nav{
  width: 100%;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 6px;
}
@media (min-width: 981px){
  .sidebar .nav{ display: grid !important; }
  .sidebar .nav-toggle-btn{ display: none !important; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }

  aside{
    position: relative;
    top: auto;
    height: auto;
    padding: 16px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,203,221,0.16);
  }

  .sidebar{
    height: auto;
    display: grid;
    grid-template-rows: auto auto auto;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }

  .logo{ max-width: 140px; }

  /* Mobile: show toggle button */
  .sidebar .nav-toggle-btn{ display: block; }

  /* Collapse nav by default */
  .sidebar .nav{
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
  }

  /* Expand when checked (requires input + label + nav order) */
  .sidebar .nav-toggle:checked + .nav-toggle-btn + .nav{
    display: grid;
  }

  .sidebar .nav .navlink{
    font-size: 14px;
    padding: 10px 8px;
  }

  .sidebar-footer{
    width: 100%;
    margin-top: 10px;
  }

  main{
    min-height: auto;
    padding: 22px 14px;
  }

  /* Disable hover overlay on mobile */
  .home-hero::before{ display: none; }
  .home-hero{ min-height: auto; }
  .home-hero .home-center{ padding: 0; }

  /* Mobile button sizing */
  .home-btn{
    width: min(520px, 100%);
    height: 140px;
    font-size: 34px;
  }

  /* Grids */
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Detail */
  .detail-row{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .sidebar .nav{ grid-template-columns: 1fr; }

  .grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }

  .home-btn{ font-size: 30px; }

  .detail-photo{ height: 240px; }
  .signature{ width: min(200px, 60%); }
  .temp-note{ font-size: 13px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .loader, .typing .text, .site, .home-hero::before{
    animation: none !important;
    transition: none !important;
  }
  .loader{ display:none; }
  .site{ opacity: 1; }
}

/* =========================================================
   DESKTOP HARD-OVERRIDE: MENU MUST NEVER BE COLLAPSED
   (prevents "Menu" label showing on desktop on inner pages)
   ========================================================= */
@media (min-width: 981px){
  .sidebar .nav-toggle-btn{
    display: none !important;
  }
  .sidebar .nav{
    display: grid !important;
  }
}

/* =========================================================
   HOME HOVER PREVIEW: REMOVE EDGE GAPS (DESKTOP)
   - Full-bleed background
   - Buttons stay padded via an inner wrapper
   ========================================================= */
@media (min-width: 981px){
  /* Ensure homepage main is truly edge-to-edge */
  main.main--home{
    padding: 0 !important;
  }

  /* Ensure the hero fills the available area with no inset */
  .home-hero{
    min-height: var(--app-h);
    margin: 0;
    padding: 0;
  }

  /* Keep the buttons comfortably spaced without affecting background edges */
  .home-hero .home-center{
    padding: 34px; /* keep, but only affects button area (not background) */
    margin: 0;
  }

  /* Defensive: remove any accidental inset on pseudo-element */
  .home-hero::before{
    inset: 0 !important;
  }
}

/* =========================================================
   MOBILE: HOMEPAGE HEADER TOO TALL — REDUCE TOP AREA
   Only affects pages that contain .home-hero
   ========================================================= */
@media (max-width: 980px){
  /* Tighten the top (logo/menu/footer) spacing specifically on homepage */
  body:has(.home-hero) aside{
    padding: 10px 12px;
  }

  body:has(.home-hero) .sidebar{
    gap: 8px;
  }

  body:has(.home-hero) .logo{
    max-width: 110px;
  }

  body:has(.home-hero) .nav-toggle-btn{
    max-width: 240px;
    padding: 8px 10px;
    margin-top: 2px;
  }

  body:has(.home-hero) .sidebar-footer{
    gap: 0px;
    padding-bottom: 2px;
  }

  /* Stop the homepage hero from trying to be full viewport height on mobile */
  body:has(.home-hero) .home-hero{
    min-height: auto;
    padding: 18px 0; /* keeps it breathable without looking huge */
  }

  body:has(.home-hero) .home-hero .home-center{
    padding: 0;
  }
}

/* =========================================================
   MOBILE: REMOVE AUTO-PUSH GAP BELOW COPYRIGHT
   ========================================================= */
@media (max-width: 980px){
  .sidebar-footer{
    margin-top: 0;   /* override desktop behaviour */
  }
}

