/* ============================================
   BoilerHedge — site stylesheet
   Palette: deep navy (#0B1D34) + off-white (#F7F7F4)
   Chosen to match the logo's conjoined-wave identity rather than the
   black-and-gold every other Purdue club uses.
   ============================================ */

/* Lora for display, Montserrat for text/UI — both taken from the brand sheet. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

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

:root {
  /* surfaces — navy, stepped lighter for cards and alternating bands */
  --black: #0b1d34;
  --dark: #0f2540;
  --card: #12294a;
  --card-hover: #173154;

  /* Brand gold from the official palette sheet (#C8A96B). Variable names
     stay --gold-* from the previous scheme. */
  --gold: #c8a96b;
  --gold-light: #dbc08b;
  --gold-deep: #a88c52;
  --gold-glow: rgba(200, 169, 107, 0.12);
  --gold-line: rgba(200, 169, 107, 0.30);

  /* light blue from the palette, used for the wave and secondary accents */
  --blue-soft: #a6bdd6;

  /* type */
  --text: #f7f7f4;
  --text-mid: #c3ced9;
  --text-dim: #93a5b8;
  --border: #1d3a5c;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', 'Avenir Next', Avenir, 'Segoe UI', -apple-system, Arial, sans-serif;

  /* spacing scale */
  --section-y: 112px;
  --maxw: 1140px;
}

html {
  scroll-behavior: smooth;
}

/* Body copy is sans, headings are serif — the institutional convention
   (JPM, Citadel, Bridgewater). Serif body copy read closer to a blog. */
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text-mid);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.nav, .btn, .tag, .footer {
  font-family: var(--sans);
}

h1, h2, h3, h4,
.nav-logo {
  font-family: var(--serif);
  color: var(--text);
  font-weight: 600;
}

/* Optical tracking: large display type needs negative letter-spacing to
   avoid looking loose. This is most of the "professionally set" feeling. */
h1 { letter-spacing: -0.022em; }
h2 { letter-spacing: -0.018em; }
h3 { letter-spacing: -0.01em; }

::selection {
  background: var(--gold);
  color: var(--black);
}

/* Visible keyboard focus — the original had none, which is both an
   accessibility gap and something auditors flag immediately. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 29, 52, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

/* .scrolled is toggled by js/main.js once the page leaves the top */
.nav.scrolled {
  background: rgba(11, 29, 52, 0.94);
  box-shadow: 0 1px 0 var(--border), 0 8px 28px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-logo {
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--text-mid);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links .btn {
  padding: 8px 18px;
}

.nav-links a.btn,
.nav-links a.btn:hover,
.nav-links a.btn.active {
  color: var(--black);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
/* Squared-off buttons rather than full pills — pills read consumer/startup,
   a 4px radius reads institutional. */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline {
  border: 1px solid var(--gold-line);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  padding: 150px 0 130px;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy {
  max-width: 580px;
}

/* campus photo sits under a heavy dark overlay on its own layer so it can
   slowly drift-zoom; if img/campus.webp is missing the gradients still render */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* darker on the left where the text sits, photo shows through on the right */
  background:
    linear-gradient(to top, var(--black) 2%, transparent 42%),
    linear-gradient(to right, rgba(11, 29, 52, 0.96) 22%, rgba(11, 29, 52, 0.76) 58%, rgba(11, 29, 52, 0.55) 100%),
    url("../img/campus.webp") center 30% / cover no-repeat,
    var(--black);
  animation: hero-drift 34s ease-in-out infinite alternate;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes hero-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* hero content floats up on page load */
.hero .tag,
.hero h1,
.hero p,
.hero-actions {
  animation: rise-in 0.7s ease both;
}

.hero h1 { animation-delay: 0.08s; }
.hero p { animation-delay: 0.16s; }
.hero-actions { animation-delay: 0.24s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow label with a short gold rule — a small signal of considered design */
.hero .tag {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero .tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.06;
  margin-bottom: 26px;
  font-weight: 600;
}

.hero h1 span {
  color: var(--gold);
  font-style: italic;
}

.hero p {
  max-width: 600px;
  margin: 0 0 40px;
  color: var(--text-mid);
  font-size: 1.09rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* floating pill chips on the hero's right (SiteGround-style) */
.hero-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  flex-shrink: 0;
  width: 310px;
}

/* Static, uniformly aligned chips. The previous version floated each one on a
   staggered loop with random left offsets — motion for its own sake, and the
   single biggest thing making the page read as amateur. Now they fade in once
   and hold still. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: rgba(18, 41, 74, 0.55);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 15px 22px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rise-in 0.7s ease both;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-chips .chip:nth-child(1) { animation-delay: 0.30s; }
.hero-chips .chip:nth-child(2) { animation-delay: 0.38s; }
.hero-chips .chip:nth-child(3) { animation-delay: 0.46s; }
.hero-chips .chip:nth-child(4) { animation-delay: 0.54s; }

@media (max-width: 900px) {
  .hero-chips {
    display: none;
  }

  .hero {
    text-align: center;
  }

  .hero-inner {
    justify-content: center;
  }

  .hero p {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }
}

/* ============================================
   CINEMATIC PAGE HEADER (interior pages)
   Same language as the homepage hero, at about half height and without
   the scroll runway — so the four inner pages read as the same site.
   ============================================ */
.cine-head {
  position: relative;
  height: 62vh;
  min-height: 400px;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cine-head-media {
  position: absolute;
  inset: 0;
  background-position: center 44%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.4) contrast(1.04) brightness(0.32);
  animation: cine-head-drift 34s ease-in-out infinite alternate;
}

/* Very shallow drift. A big scale range is what makes a modest-resolution
   photo look soft, so this stays close to 1. */
@keyframes cine-head-drift {
  from { transform: scale(1.01); }
  to   { transform: scale(1.05); }
}

/* one scene per page, so each page has its own identity.
   The Daniels render is deliberately unused — it reads as a render. */
.cine-head.h-about  .cine-head-media { background-image: url("../img/p shot 7.jpg"); }
.cine-head.h-team   .cine-head-media { background-image: url("../img/p shot 8.jpg"); }
.cine-head.h-curric .cine-head-media { background-image: url("../img/purdue shot 4.jpg"); }
.cine-head.h-join   .cine-head-media { background-image: url("../img/purdue shot.jpg"); }

.cine-head-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 56% 40% at 50% 52%,
    rgba(247, 247, 244, 0.18), rgba(247, 247, 244, 0.06) 46%, transparent 74%);
  mix-blend-mode: screen;
}

.cine-head-streaks {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    114deg,
    transparent 0 42px,
    rgba(247, 247, 244, 0.05) 42px 43px,
    transparent 43px 96px
  );
  animation: streak-slide 14s linear infinite;
}

.cine-head-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 29, 52, 0.94) 3%, transparent 48%),
    radial-gradient(ellipse 110% 84% at 50% 48%, transparent 42%, rgba(11, 29, 52, 0.7) 100%);
}

.cine-head-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 28px;
  max-width: 900px;
}

/* same thin, wide-tracked treatment as the homepage wordmark */
.cine-head-inner h1 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 6.6vw, 4.4rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  text-shadow: 0 0 110px rgba(0, 0, 0, 0.55);
  animation: rise-in 0.8s ease both;
}

.cine-head-inner h1 span {
  color: var(--gold);
  font-weight: 300;
  font-style: normal;
}

.cine-head-inner p {
  font-family: var(--sans);
  font-size: clamp(0.86rem, 1.4vw, 1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
  max-width: 620px;
  margin: 26px auto 0;
  animation: rise-in 0.8s ease 0.12s both;
}

@media (prefers-reduced-motion: reduce) {
  .cine-head-media,
  .cine-head-streaks { animation: none; }
}

/* ---------- Page header (legacy, profile pages) ---------- */
.page-header {
  padding: 104px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% -40%, var(--gold-glow), transparent 60%),
    var(--black);
}

.page-header h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-header h1 span {
  color: var(--gold);
  font-style: italic;
}

.page-header p {
  color: var(--text-mid);
  max-width: 660px;
  font-size: 1.06rem;
  line-height: 1.7;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
}

/* opening statement under the cinematic hero */
.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--text);
  max-width: 860px;
}

.lede-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.section-alt {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.18;
  margin-bottom: 14px;
}

.section h2 span {
  color: var(--gold);
  font-style: italic;
}

.section-sub {
  color: var(--text-dim);
  margin-bottom: 52px;
  max-width: 620px;
  font-size: 1.02rem;
}

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 34px 30px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--gold-line);
  background: var(--card-hover);
}

/* Headings in white, not gold. Gold on every heading spent the accent colour
   on nothing — held back, it now signals hierarchy instead of decoration. */
.card h3 {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card .num {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  max-width: 820px;
}

.checklist li {
  padding: 14px 0 14px 36px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-family: var(--sans);
}

.checklist li strong {
  color: var(--text);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 38px 26px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--sans);
  transition: transform 0.25s ease;
}

.team-card:hover .avatar {
  transform: scale(1.04);
}

img.avatar {
  object-fit: cover;
}

a.team-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}

a.team-card:hover {
  border-color: var(--gold-line);
  background: var(--card-hover);
}

.view-profile {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--sans);
}

a.team-card:hover .view-profile {
  color: var(--gold);
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--gold);
  font-size: 0.9rem;
  font-family: var(--sans);
  margin-bottom: 6px;
}

.team-card .founder-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px 10px;
  font-family: var(--sans);
}

/* ---------- Profile pages ---------- */
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--gold);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
}

.profile-head h1 {
  font-size: 2.1rem;
  margin-bottom: 6px;
}

.profile-head .role {
  color: var(--gold);
  font-family: var(--sans);
  margin-bottom: 10px;
}

.resume-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
  font-style: italic;
}

.event-photo {
  margin: 40px 0 0;
  max-width: 560px;
}

.event-photo img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.event-photo figcaption,
.photo-band figcaption,
.split-photo figcaption {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 10px;
  font-family: var(--sans);
}

.photo-band {
  margin: 50px 0 0;
}

/* photo + story split section (homepage) */
.split {
  display: flex;
  align-items: center;
  gap: 56px;
}

.split-photo {
  flex: 0 0 44%;
  margin: 0;
}

.split-photo img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.split-copy h2 {
  margin-bottom: 14px;
}

.split-copy p {
  color: var(--text-dim);
  margin-bottom: 16px;
  max-width: 560px;
}

@media (max-width: 860px) {
  .split {
    flex-direction: column;
  }

  .split-photo {
    flex: none;
    width: 100%;
  }
}

.photo-band img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ---------- Curriculum timeline ---------- */
.timeline {
  border-left: 2px solid var(--border);
  margin-left: 12px;
  padding-left: 36px;
}

/* tighter now that each entry is a single title with no bullets under it */
.timeline-item {
  position: relative;
  padding-bottom: 26px;
}

.timeline-item h3:only-child {
  margin-bottom: 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--black);
}

.timeline-item .week {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-item ul {
  list-style: none;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.timeline-item ul li {
  padding: 3px 0 3px 18px;
  position: relative;
}

.timeline-item ul li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.semester-label {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 50px 0 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.semester-label:first-of-type {
  margin-top: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 118px 28px;
  background:
    radial-gradient(ellipse at 50% 120%, var(--gold-glow), transparent 60%),
    var(--dark);
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.14;
  margin-bottom: 18px;
}

.cta-band p {
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* quiet note tying the brand name to the founding name, so the club email
   address doesn't look like it belongs to a different organisation */
.name-note {
  border-left: 2px solid var(--gold-line);
  padding: 4px 0 4px 18px;
  margin: -28px 0 52px;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.7;
}

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

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* gold inline link with a hairline underline that fills in on hover */
.inline-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: border-color 0.18s ease;
}

.inline-link:hover {
  border-bottom-color: var(--gold);
}

/* ---------- Steps (Join page) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-family: var(--sans);
  margin-bottom: 16px;
}

.step h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 76px 0 34px;
  background: var(--black);
}

/* The seal is multicolour — navy, gold and cream — so it is shown as-is
   rather than masked. Masking would flatten it to one solid colour. */
.footer-seal {
  width: 104px;
  height: 104px;
  margin: 0 auto 44px;
  background-image: url("../img/seal transparent.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer h4 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer p,
.footer a {
  color: var(--text-dim);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Scroll reveal (classes applied by js/main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Once revealed, switch to fast transitions so the 3D tilt feels snappy. */
.reveal.settled {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.2s ease, background 0.2s ease;
}

/* respect users who turn off animations in their OS settings */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero .tag,
  .hero h1,
  .hero p,
  .hero-actions {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .chip {
    animation: none;
  }
}

/* ============================================
   CINEMATIC HERO  (AUREN-style)
   Full-bleed media + giant kinetic wordmark that contracts into a
   framed panel as you scroll. --p (0..1) is driven by js/main.js.
   ============================================ */
.cinema {
  position: relative;
  height: 165vh;              /* short runway: one gentle contract, then content */
  background: var(--black);
  --p: 0;
}

.cinema-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transform: scale(calc(1 - 0.2 * var(--p)));
  border-radius: calc(var(--p) * 20px);
  will-change: transform;
}

/* the photograph, pushed dark and drifting slowly */
/* Pushed much darker and flatter than a normal hero photo. The reference
   works because the scene is nearly empty — the type needs void to sit in,
   so the photograph is treated as atmosphere, not as content. */
.cinema-media {
  position: absolute;
  inset: 0;
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  /* Zoom kept deliberately small. Scaling a photo up past ~1.1 magnifies
     every soft pixel — the old 1.06→1.23 push-in was a major cause of the
     images looking low-res. Sharpness beats motion here. */
  transform: scale(calc(1.01 + 0.05 * var(--p)));
  filter: saturate(0.4) contrast(1.04) brightness(0.34);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
}

/* One image, held still. No scene cycling — swapping photos as you scroll
   fought the scroll instead of rewarding it.

   Using the arch shot because it is the largest file available at 1200x675
   and already 16:9. The atrium is a nicer photo but it is 800x800 — square,
   so a full-width hero crops most of it away and stretches what's left. */
.cinema-media.m1 {
  background-image: url("../img/p shot 6.jpg");
  background-position: center 60%;
}

/* soft bloom behind the wordmark, standing in for the reference's
   headlight glow through the windshield */
.cinema-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 58% 34% at 50% 50%,
    rgba(247, 247, 244, 0.20), rgba(247, 247, 244, 0.07) 45%, transparent 72%);
  mix-blend-mode: screen;
}

/* gold light-streak wash — stands in for the reference's headlight trails */
.cinema-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 62%, rgba(247, 247, 244, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 60% at 12% 30%, rgba(247, 247, 244, 0.10), transparent 70%);
  mix-blend-mode: screen;
  opacity: calc(0.75 + 0.25 * var(--p));
}

.cinema-streaks {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    114deg,
    transparent 0 42px,
    rgba(247, 247, 244, 0.055) 42px 43px,
    transparent 43px 96px
  );
  animation: streak-slide 14s linear infinite;
  opacity: 0.85;
}

@keyframes streak-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(96px, -42px, 0); }
}

/* legibility floor + edge vignette */
.cinema-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 29, 52, 0.96) 4%, transparent 46%),
    radial-gradient(ellipse 110% 80% at 50% 45%, transparent 40%, rgba(11, 29, 52, 0.72) 100%);
}

/* Centred, not bottom-left. The reference puts the wordmark in the dead
   centre of the frame with nothing competing with it. */
.cinema-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  transform: translateY(-23vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* The giant wordmark. Thin weight + very wide tracking + slight
   transparency is the whole effect — it reads as projected light on the
   scene rather than text placed on top of a photo. */
.cinema-word {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 11.4vw, 9.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.2em;
  text-indent: 0.2em;          /* balances the trailing letter-space */
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 0 120px rgba(0, 0, 0, 0.55);
  transform: translateY(calc(var(--p) * -34px));
  opacity: calc(1 - 0.3 * var(--p));
}

/* ---------- Brand lockup (homepage hero) ----------
   The wave mark and wordmark are rebuilt as SVG + Lora rather than an image,
   because the only asset available is the composite brand sheet, and its
   logo is navy-on-cream — unusable on a navy background. Drawn this way it
   renders in any colour, stays sharp at any size, and weighs nothing.
   Swap in a proper transparent PNG/SVG export whenever there is one. */
/* The real primary logo — swirl and wordmark together, straight from the
   brand file. Masked so it can be painted off-white on the dark hero; the
   source artwork is navy and would otherwise vanish into the background. */
.brand-lockup {
  display: block;
  width: clamp(260px, 56vw, 780px);
  /* Match the complete source canvas so no part of the wordmark can crop. */
  aspect-ratio: 1700 / 619;
  background-color: var(--text);
  -webkit-mask-image: url("../img/BoilerHedge_logo_transparent_exact_navy.png");
  mask-image: url("../img/BoilerHedge_logo_transparent_exact_navy.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  margin: 0 auto;
}

/* The real wave artwork, transparent PNG used as a CSS mask. The mask takes
   the alpha channel and the element is simply painted brand gold — so the
   colour is exact rather than filtered toward, and nothing blends with the
   photo behind it. */
.brand-wave {
  width: clamp(150px, 32vw, 440px);
  aspect-ratio: 1536 / 700;
  background-color: var(--gold);
  -webkit-mask-image: url("../img/swirl transparent.png");
  mask-image: url("../img/swirl transparent.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* keeps the name available to screen readers and search engines now that the
   visible wordmark is artwork rather than text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.brand-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 8.6vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Nav mark: the circular social/icon lockup ---------- */
.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);   /* stops the browser's default link purple */
}

.nav-mark-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
}

/* Same mask on the gold circle, painted navy so the wave reads as a cut-out. */
.nav-mark-icon::before {
  content: "";
  width: 24px;
  aspect-ratio: 1536 / 700;
  background-color: var(--black);
  -webkit-mask-image: url("../img/swirl transparent.png");
  mask-image: url("../img/swirl transparent.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nav-mark-icon img { display: none; }

.nav-mark-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* one quiet caption, tracked out to match — no serif, no italics, no CTA */
.cinema-tagline {
  font-family: var(--sans);
  font-size: clamp(0.6rem, 1.05vw, 0.78rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-indent: 0.34em;
  /* Pull the caption across the PNG's transparent bottom padding without
     cropping or enlarging the logo itself. */
  margin: clamp(-42px, -3.5vw, -12px) 0 0;
  opacity: calc(1 - 1.5 * var(--p));
}

/* small floating UI labels at the edges, like the reference's chrome */
.cinema-label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(20, 20, 18, 0.5);
  border: 1px solid rgba(247, 247, 244, 0.22);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: calc(1 - 1.8 * var(--p));
  animation: chip-float 7s ease-in-out infinite;
}

.cinema-label .chip-dot { width: 5px; height: 5px; }

.cinema-label.l1 { top: 15vh;  right: 6vw;  animation-delay: 0s; }
.cinema-label.l2 { top: 27vh;  right: 15vw; animation-delay: 1.8s; }
.cinema-label.l3 { top: 39vh;  right: 8vw;  animation-delay: 3.4s; }
.cinema-label.l4 { top: 51vh;  right: 18vw; animation-delay: 5s; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.cinema-scrollhint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: calc(1 - 2.2 * var(--p));
}

.cinema-scrollhint::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  margin: 9px auto 0;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50%      { opacity: 1;    transform: scaleY(1); }
}

@media (max-width: 900px) {
  .cinema { height: 140vh; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema { height: auto; }
  .cinema-stage {
    position: relative;
    height: 88vh;
    transform: none;
  }
  .cinema-streaks,
  .cinema-scrollhint::after {
    animation: none;
  }
  .cinema-media { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3,
  .team-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .grid-3,
  .grid-2,
  .team-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0 60px;
  }
}
