:root {
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Google Sans", "Segoe UI", sans-serif;
  --background: #111;
  --surface: #0c0c0c;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --subtle: rgba(255, 255, 255, 0.52);
  --accent: #33a1f4;
  --content-width: 1200px;
}

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

html,
body {
  overflow-x: clip;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
}

strong {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

/* Navigation */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 17, 17, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand img {
  width: auto;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.nav-links a,
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.nav-cta,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--background);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-cta {
  justify-self: end;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.header-cta {
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
}

.nav-cta:hover,
.header-cta:hover {
  transform: translateY(-3px);
  background: #f4f4f4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.nav-cta:active,
.header-cta:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Hero */

.site-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0d0d0d;
}

.site-header::before,
.hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
}

.site-header::before {
  z-index: 1;
  background: rgba(0, 0, 0, 0.18);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  transform: scale(1.02);
}

.hero-overlay {
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
}

.scroll-indicator {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.scroll-indicator.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.scroll-indicator-arrow {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-indicator-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-indicator-bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(0.22rem) rotate(45deg); }
}

/* Shared panels */

.content-shell {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  background: var(--background);
  text-align: center;
}

.team-content-shell,
.vacancies-content-shell {
  margin-top: 0;
}

.panel {
  position: relative;
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.panel.reveal-on-scroll {
  opacity: 0;
  transform: translateX(48px);
}

.panel.reveal-on-scroll:nth-child(odd) {
  transform: translateX(-48px);
}

.panel.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel + .panel {
  margin-top: 1rem;
}

.panel-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
}

.intro-panel,
.stats-panel,
.vacancies-intro-panel,
.vacancies-panel,
.application-panel,
.feature-panel,
.info-panel,
.team-intro-panel,
.team-panel {
  isolation: isolate;
  background-blend-mode: multiply;
  border-top-color: rgba(0, 0, 0, 0.7);
}

.intro-panel::before,
.stats-panel::before,
.vacancies-intro-panel::before,
.vacancies-panel::before,
.application-panel::before,
.feature-panel::before,
.info-panel::before,
.team-intro-panel::before,
.team-panel::before {
  content: "";
  position: absolute;
  inset: -2px 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.26);
  pointer-events: none;
}

.intro-panel > *,
.stats-panel > *,
.vacancies-intro-panel > *,
.vacancies-panel > *,
.application-panel > *,
.feature-panel > *,
.info-panel > *,
.team-intro-panel > *,
.team-panel > * {
  position: relative;
  z-index: 1;
}

.intro-panel {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.48), rgba(10, 10, 10, 0.64)), url('images/Oxfd1.png') center / cover no-repeat;
}

.stats-panel {
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.72), rgba(16, 16, 16, 0.84)), url('images/Oxfd7.png') center / cover no-repeat;
}

.vacancies-intro-panel,
.team-intro-panel {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.48), rgba(10, 10, 10, 0.64)), url('images/Oxfd4.png') center / cover no-repeat;
}

.vacancies-panel {
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.72), rgba(16, 16, 16, 0.84)), url('images/Oxfd5.png') center / cover no-repeat;
}

.application-panel {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.9)), url('images/Oxfd6.png') center / cover no-repeat;
}

.feature-panel {
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.72), rgba(16, 16, 16, 0.84)), url('images/Oxfd2.png') center / cover no-repeat;
}

.info-panel {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.9)), url('images/Oxfd3.png') center / cover no-repeat;
}

.cta-panel {
  background: linear-gradient(180deg, #1b1b1b 0%, #111 100%);
}

/* Intro content */

.intro-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.intro-logo {
  margin: 0 auto 1.5rem;
}

.intro-copy h1 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.subtext {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Team profiles */

.team-panel {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.team-panel--owner-one {
  background-image: linear-gradient(180deg, rgba(16, 16, 16, 0.72), rgba(16, 16, 16, 0.84)), url('images/Oxfd9.png');
}

.team-panel--owner-two {
  background-image: linear-gradient(180deg, rgba(16, 16, 16, 0.72), rgba(16, 16, 16, 0.84)), url('images/Oxfd12.png');
}

.team-panel--manager {
  background-image: linear-gradient(180deg, rgba(16, 16, 16, 0.72), rgba(16, 16, 16, 0.84)), url('images/Oxfd10.png');
}

.team-panel--contributors {
  background-image: linear-gradient(180deg, rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.9)), url('images/Oxfd11.png');
}

.team-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  text-align: left;
}

.team-headshot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)), url('images/OxfordshireFlag.svg') center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-headshot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-headshot::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease;
}

.team-headshot span {
  position: relative;
  z-index: 3;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-headshot:hover::before {
  background: rgba(0, 0, 0, 0.84);
}

.team-headshot:hover span {
  opacity: 1;
  transform: translateY(0);
}

.team-panel--reverse .team-headshot {
  order: 2;
  justify-self: end;
}

.team-panel--reverse .team-copy {
  order: 1;
  text-align: right;
}

.team-copy {
  max-width: 620px;
}

.team-copy h2 {
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.team-role {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.team-copy > p:last-child {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
}

.team-panel--reverse .team-copy > p:last-child {
  margin-left: auto;
}

.team-contributors {
  text-align: center;
}

.team-contributors-copy h2 {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.team-contributors-copy > p:last-child {
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Live stats */

.stats-content {
  text-align: left;
}

.stats-heading,
.vacancies-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.stats-heading h2,
.vacancies-heading h2,
.application-content h2 {
  max-width: 620px;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.05;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-item {
  min-height: 150px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.stat-item span,
.stat-item small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-item strong {
  display: block;
  margin: 1.15rem 0 0.35rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
}

.stat-item small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Features and vacancies */

.feature-grid,
.vacancy-grid {
  display: grid;
  gap: 1.25rem;
}

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

.feature-card,
.vacancy-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  text-align: left;
}

.feature-card {
  min-height: 220px;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.feature-card span {
  display: inline-block;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h2 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.15;
}

.vacancy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: left;
}

.vacancies-note {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  text-align: right;
}

.vacancy-card {
  min-height: 390px;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.vacancy-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.vacancy-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.role-label,
.availability {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.55);
}

.availability--closed {
  color: #e57373;
}

.vacancy-card h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.vacancy-summary {
  max-width: 480px;
  min-height: 4.5rem;
  color: var(--muted);
}

.vacancy-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vacancy-details div {
  display: grid;
  gap: 0.3rem;
}

.vacancy-details span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vacancy-details strong {
  color: var(--text);
  font-size: 0.92rem;
}

.vacancy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.vacancy-link--disabled {
  color: rgba(255, 255, 255, 0.38);
  cursor: not-allowed;
  user-select: none;
}

/* Information and application panels */

.application-content,
.info-block {
  display: grid;
  align-items: center;
  gap: 2rem;
}

.application-content {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  text-align: left;
}

.application-copy {
  color: var(--muted);
  font-size: 1.05rem;
  text-align: right;
}

.info-block {
  grid-template-columns: 1.2fr 1fr;
  justify-items: center;
}

.info-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-stats div {
  padding: 1.25rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.info-stats strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 1.6rem;
}

.info-stats span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
}

.cta-box h2 {
  width: 100%;
  max-width: 1000px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  text-wrap: balance;
}

/* Script-driven tilt and reduced motion */

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  transform: perspective(750px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(var(--tilt-lift));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.14s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .panel.reveal-on-scroll,
  .tilt-card {
    transform: none;
    transition: none;
    will-change: auto;
  }

  .scroll-indicator,
  .nav-cta,
  .header-cta,
  .team-headshot::before,
  .team-headshot span {
    transition: none;
  }

  .scroll-indicator-arrow {
    animation: none;
  }
}

/* Footer */

.site-footer {
  padding: 2.5rem 1.5rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner,
.footer-bottom {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2.5rem;
  padding-bottom: 1.75rem;
}

.footer-brand img {
  width: auto;
  height: 27px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  text-align: right;
}

.footer-links a {
  font-size: 0.8rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--subtle);
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive layout */

@media (max-width: 900px) {
  .feature-grid,
  .info-block,
  .info-stats,
  .vacancy-grid,
  .application-content,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .vacancies-heading,
  .stats-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .team-profile {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-headshot,
  .team-panel--reverse .team-headshot {
    justify-self: stretch;
    max-width: none;
  }

  .team-panel--reverse .team-headshot,
  .team-panel--reverse .team-copy {
    order: initial;
  }

  .team-panel--reverse .team-copy,
  .team-panel--reverse .team-copy > p:last-child {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand,
  .nav-cta {
    flex: 1 1 auto;
  }

  .brand {
    justify-content: center;
  }

  .nav-cta {
    justify-self: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 1rem;
  }

  .content-shell {
    padding-top: 4rem;
  }

  .eyebrow {
    letter-spacing: 0.12em;
  }

  .vacancy-card {
    min-height: auto;
    padding: 1.5rem;
  }

  .vacancy-card-topline {
    margin-bottom: 2rem;
  }

  .vacancy-details {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.25rem;
    text-align: center;
  }

  .footer-brand img {
    margin: 0 auto;
  }

  .footer-links {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
