/* ============================================================
   DEBSOC — assets/css/main.css  (mobile-first responsive update)
   All original tokens preserved; media queries added/refined.
   ============================================================ */

/* ---------- Base font utilities ---------- */

@import url("https://fonts.googleapis.com/css2?family=Bitter:wght@500&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lobster&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");
.font-display { font-family: 'Playfair Display', serif; }
.font-accent   { font-family: 'Crimson Text', serif; }
.font-body     { font-family: 'Poppins', sans-serif; }

nav { font-family: 'Playfair Display', serif; }

html { scroll-behavior: smooth; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  background-color: #FAF7F2;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(3deg); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatMove {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}
@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}
@keyframes glowPulse {
  0%   { box-shadow: 0 0 8px  rgba(218,165,32,0.4); }
  50%  { box-shadow: 0 0 18px rgba(218,165,32,0.7); }
  100% { box-shadow: 0 0 8px  rgba(218,165,32,0.4); }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes beconScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes zoomInGallery {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.animate-float    { animation: floatMove 8s ease-in-out infinite; }
.animate-slide-up { animation: slideUp  0.8s ease-out forwards; }
.animate-fade-in  { animation: fadeIn   1s ease-out forwards; }

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ---------- Background pattern ---------- */
.pattern-bg {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(128,0,32,0.05)  0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(218,165,32,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(128,0,32,0.03)  0%, transparent 70%);
}

/* ---------- Card hover ---------- */
.card-hover { transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(128,0,32,0.25);
}

/* ---------- Primary button ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }

/* ---------- Nav glass buttons ---------- */
.nav-btn {
  position: relative;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #FAF7F2;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s ease-in-out;
  white-space: nowrap;
}
.nav-btn:hover {
  background: rgba(218,165,32,0.15);
  border-color: #DAA520;
  transform: translateY(-2px);
  animation: glowPulse 1.5s infinite ease-in-out;
}
.nav-btn.active-nav {
  background: rgba(218,165,32,0.2);
  border-color: #DAA520;
  box-shadow: 0 0 15px rgba(218,165,32,0.5);
}

/* ---------- BECON ticker ---------- */
.becon-ticker { width: 100%; overflow: hidden; }
.becon-track {
  display: flex;
  gap: 120px;
  white-space: nowrap;
  animation: beconScroll 4s linear infinite;
}
.becon-track a {
  font-size: 22px;
  font-weight: 700;
  color: #800020;
  letter-spacing: 2px;
  text-decoration: none;
}

/* ---------- Carousel (hero) ---------- */
.carousel { position: relative; }
.carousel-item {
  position: absolute;
  width: 320px;
  height: 220px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0;
  border-radius: 45px;
  overflow: hidden;
  transition: all 1s ease;
}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-item.center {
  transform: translate(-50%,-50%) scale(1.2);
  z-index: 3; opacity: 1;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.carousel-item.left  { transform: translate(-150%,-50%) scale(0.8); opacity: 0.6; z-index: 2; }
.carousel-item.right { transform: translate(50%,-50%)  scale(0.8); opacity: 0.6; z-index: 2; }

/* ---------- Carousel (about) ---------- */
.about-carousel { position: relative; width: 100%; height: 100%; }
.about-carousel .carousel-item {
  position: absolute;
  width: 320px; height: 220px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  opacity: 0;
  transition: all 0.7s ease;
  border-radius: 24px;
}
.about-carousel .carousel-item.center { transform: translate(-50%,-50%) scale(1);    opacity: 1; z-index: 3; }
.about-carousel .carousel-item.left   { transform: translate(-130%,-50%) scale(0.75); opacity: 0.6; z-index: 2; }
.about-carousel .carousel-item.right  { transform: translate(30%,-50%) scale(0.75);  opacity: 0.6; z-index: 2; }

/* ---------- Footer headings ---------- */
.footer-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: #DAA520;
}
.footer-heading::before {
  content: "";
  position: absolute;
  bottom: -4px; left: -6px;
  width: 8px; height: 8px;
  background: #DAA520;
  border-radius: 50%;
}
.footer-heading span.dot-right {
  position: absolute;
  bottom: -4px; right: -6px;
  width: 8px; height: 8px;
  background: #DAA520;
  border-radius: 50%;
}

/* ---------- BECON title decoration ---------- */
.becon-title {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.becon-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 85%; height: 3px;
  background: #DAA520;
}
.becon-title::before {
  content: "";
  position: absolute;
  bottom: -4px; right: -18px;
  width: 10px; height: 10px;
  background: #DAA520;
  border-radius: 50%;
}

/* ---------- Font helpers ---------- */
.font-playfair   { font-family: 'Playfair Display', serif; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }

/* ---------- About heading ---------- */
.about-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  color: #800020;
}
.about-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 70%; height: 3px;
  background: linear-gradient(to right, #800020, #DAA520);
  border-radius: 50px;
}

/* ---------- Team page ---------- */
.team-heading {
  font-family: 'Playfair Display', serif;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.team-heading::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 120px; height: 3px;
  background: linear-gradient(to right, #800020, #DAA520);
  border-radius: 50px;
}
.team-card { text-align: center; }
.team-photo {
  width: 180px; height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 20px auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.team-post {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: #DAA520; margin-bottom: 4px;
}
.team-dept { font-family: 'Montserrat', sans-serif; font-size: 13px; color: #555; }
.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: bold;
  color: #800020; margin-bottom: 10px;
  position: relative; display: inline-block;
  padding-bottom: 10px;
}
.team-name::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 60%; height: 2px;
  background: linear-gradient(to right, #800020, #DAA520);
  border-radius: 50px;
}
.team-watermark {
  position: absolute;
  top: 55%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; max-width: 90vw;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
#team-page > div,
.team-page-content { position: relative; z-index: 2; }

/* ---------- Bubbles ---------- */
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatBubble 6s ease-in-out infinite;
  z-index: 0;
}
.bubble-1 { width: 120px; height: 120px; background: #DAA520; top: 10%;  right: 8%;  }
.bubble-2 { width: 80px;  height: 80px;  background: #800020; top: 22%;  right: 18%; animation-delay: 2s; }
.bubble-3 { width: 60px;  height: 60px;  background: #DAA520; top: 35%;  right: 5%;  animation-delay: 4s; }

/* ---------- Gallery ---------- */
.gallery-img {
  width: 100%; height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.4s ease;
  cursor: pointer;
}
.gallery-img:hover { transform: scale(1.05); }
.gallery-btn {
  padding: 10px 18px;
  border: 2px solid #800020;
  color: #800020; border-radius: 8px;
  font-weight: 600; transition: 0.3s ease;
}
.gallery-btn:hover { background: #800020; color: white; }
.gallery-zoom { animation: zoomInGallery 0.8s ease forwards; }

/* ---------- Contact ---------- */
.contact-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 900px; max-width: 90vw;
  opacity: 0.05;
  pointer-events: none;
}
.contact-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.contact-heading::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 140px; height: 3px;
  background: linear-gradient(to right, #800020, #DAA520);
  border-radius: 50px;
}
.contact-row h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: #800020;
  margin-bottom: 6px;
}
.contact-row p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; color: #5c4a3d;
}
.contact-row {
  position: relative;
  padding-bottom: 20px;
}
.contact-row::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 200px; height: 1px;
  background: rgba(128,0,32,0.2);
}

/* ---------- Marquee ---------- */
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

/* ============================================================
   MOBILE-RESPONSIVE OVERRIDES
   All layout, spacing, typography scaled for phones/tablets.
   ============================================================ */

/* --- Global safety net --- */
img { max-width: 100%; height: auto; }

/* ======== ≤768 px — tablets & large phones ======== */
@media (max-width: 768px) {

  /* --- Body / root --- */
  body { overflow-x: hidden; }

  /* --- Section padding --- */
  .py-24 { padding-top: 3rem    !important; padding-bottom: 3rem    !important; }
  .py-20 { padding-top: 2.5rem  !important; padding-bottom: 2.5rem  !important; }
  .py-28 { padding-top: 3.5rem  !important; padding-bottom: 3.5rem  !important; }
  .px-8  { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

  /* --- Typography --- */
  .text-5xl  { font-size: 2.2rem   !important; }
  .text-4xl  { font-size: 1.8rem  !important; }
  .text-3xl  { font-size: 1.4rem  !important; }

  /* --- Homepage hero grid → single col --- */
  .hero-grid,
  .max-w-6xl.mx-auto.grid.lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Hero heading */
  h1.font-bold.text-5xl,
  h1.text-5xl { font-size: 1.5rem !important; line-height: 1.15 !important; }

  /* Hero bottom quote — un-absolute on mobile */
  .absolute.bottom-2.left-7 {
    position: relative !important;
    bottom: auto !important; left: auto !important;
    margin-top: 1.5rem;
    display: flex; justify-content: center;
    text-align: center;
    padding: 0 1rem;
  }

  /* Floating decorative circles — hide on mobile */
  .absolute.top-10.right-10,
  .absolute.bottom-20.left-10,
  .absolute.top-20.right-16,
  .absolute.bottom-24.left-16 { display: none !important; }

  /* --- Carousel sizes (hero) --- */
  .carousel-item {
    width: 210px !important;
    height: 150px !important;
    border-radius: 24px !important;
  }
  .carousel-item.left  { transform: translate(-120%,-50%) scale(0.75) !important; }
  .carousel-item.right { transform: translate(20%,-50%)   scale(0.75) !important; }

  /* --- About carousel sizes --- */
  .about-carousel { height: 240px !important; }
  .about-carousel .carousel-item {
    width: 200px !important; height: 150px !important;
  }

  /* --- About section image container --- */
  .relative.h-\[400px\] { height: 240px !important; }

  /* --- BECON hero section --- */
  .relative.h-\[90vh\] {
    height: auto !important;
    min-height: 75vh !important;
    padding: 4rem 1rem 3rem !important;
  }
  .font-display.text-4xl { font-size: 1.75rem !important; }
  .text-2xl.font-semibold { font-size: 1.1rem !important; }

  /* BECON logo+title row → stack */
  .flex.items-center.justify-center.gap-6.mb-8.flex-wrap {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center;
  }

  /* BECON about text — center on mobile */
  .max-w-4xl.ml-auto.pr-12 {
    margin-left: auto !important;
    padding-right: 0 !important;
    text-align: center;
  }

  /* CTA button rows → column */
  .flex.justify-center.gap-6.flex-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  .flex.justify-center.gap-6.flex-wrap a { width: 100%; max-width: 300px; text-align: center; }

  /* --- Hero CTA buttons → column --- */
  .flex.flex-wrap.gap-4 {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .flex.flex-wrap.gap-4 a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* --- Tribunal grid → single col --- */
  .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* --- Committee cards → single col --- */
  .max-w-7xl.mx-auto.grid.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .relative.bg-white.p-10.rounded-2xl { padding: 1.5rem !important; }

  /* --- Footer grid → 2 cols --- */
  footer .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
  footer .md\:col-span-2 { grid-column: span 2 !important; }

  /* --- BECON ticker font --- */
  .becon-track a { font-size: 16px !important; letter-spacing: 1px !important; }
  .becon-track   { gap: 50px !important; }

  /* --- Team grid → 2 cols --- */
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }

  /* Gallery grid → 2 cols */
  section .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ======== ≤480 px — small phones ======== */
@media (max-width: 480px) {

  /* Typography tighter */
  .text-5xl  { font-size: 1.85rem !important; }
  .text-4xl  { font-size: 1.55rem !important; }
  .text-3xl  { font-size: 1.25rem !important; }
  .text-2xl  { font-size: 1.1rem  !important; }
  .text-xl   { font-size: 1rem    !important; }
  .text-lg   { font-size: 0.95rem !important; }

  /* Section padding tighter */
  .px-6 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
  .py-24 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

  /* Nav logo */
  nav img.h-12, nav img.h-9, nav img.h-10 { height: 2.2rem !important; }
  nav .text-lg { font-size: 0.7rem  !important; }
  nav .text-xl { font-size: 0.85rem !important; }

  /* Mobile menu items */
  #mobile-menu a, #mobile-menu button {
    font-size: 0.9rem  !important;
    padding: 0.6rem 1rem !important;
  }

  /* Team → single col on very small */
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  section .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  /* Gallery single col */
  .gallery-img { height: 200px !important; }

  /* Team photo */
  .team-photo { width: 150px !important; height: 150px !important; }
  .team-name  { font-size: 18px !important; }

  /* Bubbles — hide on tiny screens */
  .bubble-1, .bubble-2, .bubble-3 { display: none !important; }

  /* Footer → single col */
  footer .grid {
    grid-template-columns: 1fr !important;
  }
  footer .md\:col-span-2 { grid-column: span 1 !important; }

  /* Contact */
  .contact-heading { font-size: 1.75rem !important; }
  .contact-row h3  { font-size: 16px !important; }
  .contact-row p   { font-size: 13px !important; }

  /* BECON scroll indicator */
  .w-14.h-14 { width: 2.75rem !important; height: 2.75rem !important; }

  /* Carousel even smaller */
  .carousel-item {
    width: 160px !important;
    height: 120px !important;
    border-radius: 18px !important;
  }
  .carousel-item.center { transform: translate(-50%,-50%) scale(1.1) !important; }
  .carousel-item.left   { transform: translate(-110%,-50%) scale(0.7) !important; }
  .carousel-item.right  { transform: translate(10%,-50%)   scale(0.7) !important; }

  .about-carousel { height: 200px !important; }
  .about-carousel .carousel-item {
    width: 160px !important; height: 120px !important;
  }

  /* Committee card padding */
  .relative.bg-white.p-10.rounded-2xl { padding: 1rem !important; }

  /* BECON ticker */
  .becon-track a { font-size: 13px !important; }
  .becon-track   { gap: 30px !important; }
}

/* ======== ≤360 px — very narrow phones ======== */
@media (max-width: 360px) {
  nav img { height: 1.9rem !important; }
  nav .text-lg { font-size: 0.65rem !important; }
  nav .text-xl { font-size: 0.78rem !important; }
  .text-5xl { font-size: 1.6rem !important; }
  .text-4xl { font-size: 1.35rem !important; }
}

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

:root {
  --white: #faf0e4;
  --black: #6e3404;
  --grey: #7e7e7e;
}

body {
  font-family: "Bitter", serif;
  color: var(--black);
  font-size: 14px;
  background-color: var(--white);
}

img {
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  margin: 4em auto;
  width: 100%;
  max-width: 820px;
}
.container div {
  margin-bottom: 6em;
}

/* UTILITY CLASSES */
.fct {
  width: 70px;
  font-size: 0.7rem;
  color: var(--grey);
  line-height: 16px;
}
.fct a {
  display: block;
}
.pgt {
  color: var(--grey);
  text-align: justify;
  line-height: 20px;
}
.pgt p {
  margin-bottom: 1em;
}

/* PAGE ONE
------------------------------------------ */
.page-one {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: min-content;
  gap: 1em;
}
.page-one__photo {
  grid-column: 1/8;
  grid-row: 1/4;
  position: relative;
  z-index: -1;
}
.page-one__photo figcaption {
  position: absolute;
  top: 0;
  right: -75px;
  z-index: 2;
}
.page-one__header,
.page-one__subhead {
  grid-column: 7/9;
  text-transform: uppercase;
}
.page-one__header {
  grid-row: 2/3;
}
.page-one__header h2 {
  font-size: 1.6rem;
  letter-spacing: 1px;
  background-color: var(--white);
  margin-bottom: 5px;
  padding: 0.05em 0.2em;
}
.page-one__header h1 {
  background-color: var(--white);
  font-size: 2rem;
  padding: 0.05em 0.2em;
}
.page-one__subhead {
  grid-row: 3/5;
}
.page-one__subhead p {
  line-height: 24px;
  margin-top: 20px;
  padding: 0.5em 0 0 0.5em;
  background-color: var(--white);
}
.page-one__quote {
  grid-column: 1/3;
  grid-row: 5/7;
  text-transform: uppercase;
  line-height: 18px;
  text-align: right;
  position: relative;
  height: min-content;
}
.page-one__quote p {
  padding: 20px 5px;
}
.page-one__quote::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-one__quote::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-one__desc {
  grid-column: 3/9;
  grid-row: 6/9;
  columns: 2;
  column-gap: 1em;
}
.page-one__info {
  grid-column: 1/3;
  grid-row: 8/9;
  text-transform: uppercase;
  line-height: 18px;
  text-align: right;
}

/* PAGE TWO
------------------------------------------ */
.page-two {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: min-content;
  gap: 1em;
}
.page-two figcaption {
  position: absolute;
}
.page-two__photo1 {
  grid-column: 1/5;
  grid-row: 1/4;
  margin-top: 150px;
  position: relative;
}
.page-two__photo1 figcaption {
  top: -20px;
  left: 0;
  z-index: 6;
}
.page-two__photo2 {
  grid-column: 5/9;
  grid-row: 1/4;
  position: relative;
  z-index: -1;
}
.page-two__photo2 figcaption {
  top: 0;
  left: -75px;
  z-index: 5;
  text-align: right;
}
.page-two__subhead {
  grid-column: 5/7;
  grid-row: 2/4;
  text-transform: uppercase;
  line-height: 24px;
  padding: 0.5em 0 0 0.5em;
  background-color: var(--white);
}
.page-two__info {
  grid-column: 1/3;
  grid-row: 8/9;
  text-transform: uppercase;
  line-height: 18px;
  position: relative;
  align-self: center;
}
.page-two__info p {
  padding: 20px 5px;
}
.page-two__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-two__info::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-two__desc {
  grid-column: 3/9;
  grid-row: 8/9;
  columns: 2;
}

/* PAGE THREE
------------------------------------------ */
.page-three {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: min-content;
  gap: 1em;
}
.page-three__photo1 {
  grid-column: 1/6;
  grid-row: 1/2;
  position: relative;
}
.page-three__photo1 figcaption {
  position: absolute;
  top: 0px;
  right: -75px;
}
.page-three__photo2 {
  grid-column: 1/5;
  grid-row: 2/3;
  position: relative;
}
.page-three__photo2 figcaption {
  position: absolute;
  top: 0;
  left: -80px;
  z-index: 10;
  text-align: right;
}
.page-three__photo3 {
  grid-column: 5/9;
  grid-row: 2/3;
  position: relative;
}
.page-three__photo3 figcaption {
  position: absolute;
  top: -20px;
  right: 0;
  width: 200px;
  text-align: right;
}
.page-three__desc {
  grid-column: 1/7;
  grid-row: 4/6;
  columns: 2;
}
.page-three__footnote {
  grid-column: 7/9;
  grid-row: 4/5;
}
.page-three__info {
  grid-column: 7/9;
  grid-row: 5/6;
  text-transform: uppercase;
  line-height: 18px;
  text-align: right;
  position: relative;
  height: min-content;
}
.page-three__info p {
  padding: 20px 5px;
  text-align: left;
}
.page-three__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}
.page-three__info::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 5px;
  background-color: var(--black);
}

footer {
  padding: 20px;
  text-align: center;
}
footer p {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--grey);
}
footer a {
  text-decoration: none;
}

@media screen and (max-width: 640px) {
  .page-one__header,
  .page-one__subhead {
    grid-column: 5/9;
    text-transform: uppercase;
  }

  figcaption {
    display: none;
  }
}
@media screen and (max-width: 480px) {
  .container {
    margin: 1em auto;
  }
  .container div {
    margin-bottom: 1em;
  }

  .page-one,
  .page-two,
  .page-three {
    padding: 0px 20px;
  }

  /* PAGE ONE */
  .page-one__photo {
    grid-column: 1/9;
  }
  .page-one__header {
    grid-row: 3/4;
  }
  .page-one__subhead {
    grid-column: 2/8;
    grid-row: 4/5;
  }
  .page-one__desc {
    grid-column: 1/9;
    grid-row: 5/6;
    columns: auto;
  }
  .page-one__desc p:nth-of-type(2) {
    padding-left: 40%;
  }
  .page-one__desc p:nth-of-type(1) {
    padding-right: 40%;
  }
  .page-one__info {
    grid-column: 6/9;
    grid-row: 5/7;
  }
  .page-one__quote {
    grid-column: 1/4;
    grid-row: 6/8;
    text-align: left;
    margin-top: -280px;
  }
  .page-one__quote::before,
  .page-one__quote::after {
    left: -5px;
  }

  /* PAGE TWO */
  .page-two__photo1 {
    grid-column: 1/6;
    grid-row: 3/6;
  }
  .page-two__photo2 {
    grid-column: 3/9;
    grid-row: 2/4;
  }
  .page-two__subhead {
    grid-column: 6/9;
    grid-row: 4/6;
    margin-top: -50px;
  }
  .page-two__info {
    grid-column: 1/3;
    grid-row: 6/7;
  }
  .page-two__desc {
    grid-column: 1/9;
    grid-row: 6/8;
    columns: auto;
    grid-auto-flow: column;
  }
  .page-two__desc p:nth-of-type(1),
  .page-two__desc p:nth-of-type(2) {
    padding-left: 34%;
  }

  /* PAGE THREE */
  .page-three__photo1 {
    grid-column: 1/9;
  }
  .page-three__desc {
    grid-column: 1/9;
    grid-row: 4/6;
    columns: auto;
  }
  .page-three__footnote {
    grid-column: 7/9;
    grid-row: 4/5;
  }
  .page-three__info {
    grid-column: 6/9;
    grid-row: 5/6;
  }
  .page-three__desc p:nth-of-type(1) {
    padding-right: 30%;
  }
  .page-three__desc p:nth-of-type(4),
  .page-three__desc p:nth-of-type(5) {
    padding-right: 40%;
  }
}
/* Profile styles: 1 = retro browser, 2 = Y2K search card, 3 = case file */
.ds{margin-top:24px;font-size:14px;line-height:1.45}
.ds,.ds *{box-sizing:border-box}
.ds p{margin:0;white-space:pre-line}
.ds img{display:block;width:100%;height:100%;object-fit:cover}
.ds-init{display:grid;place-items:center;height:100%;min-height:120px;font:700 56px "Pixelify Sans",monospace}
.ds-group[hidden]{display:none}
.ds-pick{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.ds-opt{display:flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid rgba(227,41,46,.55);border-radius:2px;cursor:pointer}
.ds-opt:has(input:checked){background:var(--red-dark);color:#fff}
#profile-content.has-style #profile-banner,
#profile-content.has-style #profile-avatar,
#profile-content.has-style .hero-ident{display:none}
#profile-content.has-style .profile-hero > .flex{padding-top:1.25rem;align-items:center}

/* ---------- Style 1: retro browser ---------- */
.ds1{background:#fff;color:#14163a;border:2px solid #000;box-shadow:6px 6px 0 #1f2fd0;font-family:"Space Grotesk",Arial,sans-serif}
.ds1 h4{margin:0 0 6px;font:700 15px "Pixelify Sans",monospace;color:#1f2fd0;text-transform:uppercase}
.ds1-bar{display:flex;justify-content:space-between;align-items:center;padding:4px 8px;border-bottom:2px solid #000;font:700 16px "Pixelify Sans",monospace;color:#1f2fd0}
.ds1-bar i{font-style:normal;letter-spacing:.3em;border:2px solid #000;padding:0 4px}
.ds1-menu{display:grid;grid-template-columns:1fr 1.4fr 1fr;border-bottom:2px solid #000;font:600 14px "Pixelify Sans",monospace;color:#1f2fd0;text-align:center}
.ds1-menu span{padding:3px;border-right:2px solid #000}
.ds1-menu span:last-child{border:0}
.ds1-url{display:flex;align-items:center;gap:10px;padding:6px 8px;border-bottom:2px solid #000;background:#dfe6ff;font:600 14px "Pixelify Sans",monospace;color:#1f2fd0}
.ds1-url div{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;background:#fff;border:2px solid #000;padding:2px 8px;color:#000}
.ds1-top{display:grid;grid-template-columns:32% 1fr 1fr;border-bottom:2px solid #000}
.ds1-photo{position:relative;min-height:190px;border-right:2px solid #000}
.ds1-follow{position:absolute;left:12%;right:12%;bottom:10%;padding:4px;background:#c9c9d6;color:#fff;text-align:center;font:700 22px "Pixelify Sans",monospace;letter-spacing:.2em}
.ds1-id{padding:10px 12px;border-right:2px solid #000;overflow-wrap:anywhere}
.ds1-name{font-weight:700;margin-bottom:8px}
.ds1-name span{color:#1f2fd0;font-weight:500}
.ds1-info b{color:#1f2fd0;text-transform:uppercase}
.ds1-about{padding:10px 12px;font-size:13px;overflow-wrap:anywhere}
.ds1-two{display:grid;grid-template-columns:1fr 1fr;border-bottom:2px solid #000}
.ds1-box{padding:10px 12px;overflow-wrap:anywhere}
.ds1-box + .ds1-box{border-left:2px solid #000}
.ds1-now{padding:10px 12px;border-bottom:2px solid #000;overflow-wrap:anywhere}
.ds1-now b{font-style:italic}
.ds1-cols{display:grid;grid-template-columns:repeat(3,1fr)}
.ds1-col{padding:10px 12px;text-align:center;overflow-wrap:anywhere}
.ds1-col + .ds1-col{border-left:2px solid #000}
.ds1-col h4{text-decoration:underline}

/* ---------- Style 2: Y2K search card ---------- */
.ds2{padding:14px;background:conic-gradient(#111 25%,#f3efe6 0 50%,#111 0 75%,#f3efe6 0) 0 0/28px 28px;font-family:"Space Grotesk",Arial,sans-serif;color:#1d3fa8}
.ds2-in{position:relative;display:grid;grid-template-columns:36% 1fr;gap:28px;align-items:center;min-height:340px;padding:28px;background:#f3efe6;border:6px solid #e8323a;overflow:hidden}
.ds2-win{border:3px solid #1d3fa8;border-radius:14px;background:#fff;box-shadow:6px 6px 0 #e8323a;overflow:hidden}
.ds2-win header{padding:5px 12px;background:#e8323a;color:#fff;font-weight:700}
.ds2-ph{aspect-ratio:4/5}
.ds2-name{margin:0;font:400 clamp(40px,7vw,84px)/1.05 Lobster,cursive;color:#e8323a;-webkit-text-stroke:2px #1d3fa8;paint-order:stroke fill;text-shadow:4px 4px 0 #1d3fa8;overflow-wrap:anywhere}
.ds2-sub{margin:6px 0 16px;font-weight:700;font-size:clamp(20px,3vw,32px);color:#1d3fa8}
.ds2-box{position:relative;padding:14px 14px 14px 52px;border:3px solid #1d3fa8;border-radius:14px;background:#fff;color:#14163a;overflow-wrap:anywhere}
.ds2-box::before{content:"";position:absolute;left:9px;top:9px;bottom:9px;width:28px;border-radius:14px;background:radial-gradient(circle,#fff 5px,transparent 6px) 0 0/28px 32px,#e8323a}
.ds2-tag{display:inline-block;margin-top:16px;padding:6px 20px;border-radius:99px;background:#1d3fa8;color:#fff;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.ds2-copy{margin-top:14px;font-size:11px;color:#e8323a}
.ds2-star{position:absolute;color:#1d3fa8;font-size:44px;line-height:1;pointer-events:none}
.ds2-star.a{right:18px;top:8px}
.ds2-star.b{left:30%;bottom:6px;color:#e8323a;font-size:30px}

/* ---------- Style 3: case file ---------- */
.ds3{position:relative;padding:44px 24px;background:#1c1c1c;overflow:hidden;font-family:"Space Grotesk",Arial,sans-serif}
.ds3::before{content:"";position:absolute;left:3%;top:2%;width:88%;height:94%;background:#c9262e;border-radius:10px;transform:rotate(-2.5deg)}
.ds3::after{content:"";position:absolute;left:8%;right:2%;top:4%;bottom:1%;background:#d9d9d4;transform:rotate(2deg)}
.ds3-paper{position:relative;z-index:2;max-width:660px;margin:0 auto;padding:22px;background:#fbfbf8;color:#111;box-shadow:0 10px 26px rgba(0,0,0,.55)}
.ds3-clip{position:absolute;left:20px;top:-20px;width:18px;height:54px;border:3px solid #9b9b9b;border-radius:10px}
.ds3-head{padding:8px 10px 12px;background:#111;color:#fff;text-align:center}
.ds3-head small{display:block;font-size:11px;letter-spacing:.12em}
.ds3-head h3{margin:0;font-size:clamp(24px,4.4vw,38px);line-height:1.1;letter-spacing:.04em}
.ds3-stamp{position:absolute;right:26px;top:74px;z-index:3;padding:2px 8px;border:2px solid #d0202a;color:#d0202a;font:700 12px "Pixelify Sans",monospace;letter-spacing:.08em;transform:rotate(-4deg)}
.ds3-mid{display:grid;grid-template-columns:1fr 38%;gap:18px;margin-top:22px}
.ds3-no{font-weight:700;margin-bottom:4px}
.ds3-row{display:flex;gap:10px;align-items:baseline;padding:6px 0;border-bottom:1px solid #999;font-size:12px}
.ds3-row b{flex:0 0 38%;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.ds3-row span{font:400 19px Caveat,cursive;overflow-wrap:anywhere}
.ds3-sig{font:400 30px Caveat,cursive}
.ds3-photo{position:relative;align-self:start;aspect-ratio:3/4;border:3px solid #111;border-radius:8px;overflow:hidden;transform:rotate(1.2deg)}
.ds3-qa{margin-top:20px}
.ds3-qa h5{margin:0 0 6px;font-size:16px}
.ds3-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid #111}
.ds3-q{padding:6px;background:#111;color:#fff;text-align:center;font-size:11px}
.ds3-a{min-height:90px;padding:10px;font:400 19px/1.25 Caveat,cursive;border-right:1px solid #111;overflow-wrap:anywhere}
.ds3-a:nth-child(4n+4){border-right:0}

@media (max-width:640px){
  .ds1-top{grid-template-columns:1fr}
  .ds1-photo{border-right:0;border-bottom:2px solid #000}
  .ds1-id{border-right:0;border-bottom:2px solid #000}
  .ds1-two,.ds1-cols{grid-template-columns:1fr}
  .ds1-box + .ds1-box,.ds1-col + .ds1-col{border-left:0;border-top:2px solid #000}
  .ds2-in{grid-template-columns:1fr;padding:18px}
  .ds3-mid{grid-template-columns:1fr}
  .ds3-photo{max-width:240px}
}