/* ==========================================================================
   Co Driven — Homepage
   Rebuilt from the Webflow export with clean, token-driven CSS.
   Breakpoints follow the original design: 991px (tablet), 767px, 479px.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Chaney";
  src: url("../fonts/CHANEY-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chaney Wide";
  src: url("../fonts/CHANEY-Wide-2.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chaney Ultra";
  src: url("../zero-degrees/fonts/CHANEY-UltraExtended.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Escuela";
  src: url("../fonts/Escuela-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Escuela";
  src: url("../fonts/Escuela-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Escuela";
  src: url("../fonts/Escuela-Semibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --color-text: #0e1011;
  --color-text-inverse: #ffffff;
  --color-accent: #770002;        /* dark red — meta text & accents */
  --color-red: #f12727;           /* bright red — slider accents */
  --color-bg: #ffffff;
  --color-bg-muted: #f8f8f8;
  --color-bg-dark: #0e1011;
  --color-border: #e8eded;
  --color-border-inverse: #262829;

  /* Zero Degrees brand accents (zero-degrees/ sub-site identity) */
  --color-zd-midnight: #0b2230;
  --color-zd-ice: #00e0ff;
  --color-zd-red: #a3271e;

  /* Typography */
  --font-heading: "Chaney", Arial, sans-serif;
  --font-meta: "Chaney Wide", Arial, sans-serif;
  --font-body: "Escuela", Arial, sans-serif;

  --size-display: clamp(4rem, 9.8vw, 10rem);     /* hero "we are driven." */
  --size-heading: clamp(3rem, 8vw, 8.5rem);      /* section headings */
  --size-list: clamp(2rem, 5vw, 5rem);           /* hero "what we do" list */
  --size-lead: clamp(1.75rem, 2.8vw, 3rem);      /* large intro paragraphs */
  --size-alt: clamp(1.5rem, 2vw, 2.25rem);       /* sub headings */
  --size-meta: clamp(0.9rem, 1.25vw, 1.25rem);
  --size-medium: 1.25rem;
  --size-small: 0.9375rem;

  /* Layout */
  --gutter: 6vw;
  --border-width: 2px;

  /* Motion */
  --reveal-duration: 0.9s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--size-medium);
  line-height: 1.6;
}

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

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

a {
  color: inherit;
}

/* ---------- Typography helpers ---------- */
.heading-display,
.heading-small {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}

.heading-display { font-size: var(--size-display); }
.heading-small   { font-size: var(--size-heading); }

.heading-list {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--size-list);
  line-height: 0.96;
  color: #c7cacb; /* light grey at rest — lines darken on hover */
}

.heading-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s ease;
}

.heading-list a:hover { color: #4c4f51; }

.heading-lead {
  font-size: var(--size-lead);
  font-weight: 600;
  line-height: 1.2;
}

.heading-alt {
  font-family: var(--font-body);
  font-size: var(--size-alt);
  font-weight: 600;
  line-height: 1.2;
}

.heading-alt.small { font-size: 1.1rem; }

.text-meta {
  font-family: var(--font-meta);
  font-size: var(--size-meta);
  color: var(--color-accent);
  line-height: 1.3;
}

.text-meta.small { font-size: var(--size-small); }

.text-medium { font-size: var(--size-medium); letter-spacing: 0.25px; }
.text-medium.muted { color: var(--color-accent); }
.text-inverse { color: var(--color-text-inverse); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover { background-color: var(--color-accent); }

.button-text {
  position: relative;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
}

.button-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--border-width);
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--reveal-ease);
}

.button-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button-text.inverse { color: var(--color-text-inverse); }

/* ---------- Reveal animations (driven by js/main.js) ---------- */
.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform var(--reveal-duration) var(--reveal-ease);
}

.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.is-revealed .reveal-line > span,
.is-revealed.reveal-line > span { transform: translateY(0); }

.is-revealed .reveal-fade,
.is-revealed.reveal-fade {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-line > span { transform: none; }
  .reveal-fade { opacity: 1; transform: none; }
}

/* ---------- Page loader ---------- */
.pageloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 5vw 5%;
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  transition: transform 0.7s var(--reveal-ease);
}

.pageloader.is-done { transform: translateY(-101%); }

.pageloader-inner { overflow: hidden; text-align: right; }
.pageloader-logo { width: min(40vw, 320px); margin-left: auto; }

.pageloader-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background-color: var(--color-bg);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem var(--gutter) 1.5rem;
}

.navbar-logo img { height: 28px; width: auto; }

.navbar-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
}

.navbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: var(--border-width);
  background-color: var(--color-text);
  transition: width 0.3s var(--reveal-ease);
}

.navbar-link:hover::after { width: 100%; }

/* Zero Degrees nav item — mirrors the ZD logo lockup:
   ultra-wide "0" mark, ZERO in near-black, DEGREES in the ZD signal red */
.navbar-link-zd {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0b0f12;
  white-space: nowrap;
}
.navbar-link-zd::after { background-color: var(--color-zd-red); }
.navbar-link-zd:focus-visible { outline: 2px solid var(--color-zd-red); outline-offset: 4px; }
.navbar-link-zd .zd-deg { color: var(--color-zd-red); }
.zd-zero { font-family: "Chaney Ultra", var(--font-meta); font-weight: 400; }
.navbar-link-zd .zd-zero { font-size: 0.8rem; margin-right: 0.35rem; }
.mobile-menu-link-zd .zd-zero { margin-right: 0.5rem; } /* scales with the big menu type */

/* dark mobile overlay variant: frost + bright red */
.mobile-menu-link.mobile-menu-link-zd { color: var(--color-text-inverse); }
.mobile-menu-link-zd .zd-deg { color: var(--color-red); }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hamburger — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle-line {
  width: 28px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-line:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-nav {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  width: 100%;
}

.mobile-menu-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 7vw, 3rem);
  text-transform: uppercase;
  color: var(--color-text-inverse);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-inverse);
}

/* ---------- Hero ---------- */
.section-hero { background-color: var(--color-bg); }

.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
}

.hero-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: sticky;
  top: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-top { padding: 9rem var(--gutter) 4rem; }

.hero-top .text-meta { margin: 3rem 0 2rem; }

.hero-top .heading-lead { max-width: 50rem; }

.hero-bottom { padding: 2rem var(--gutter) 8vw; }

.hero-bottom > .text-meta { margin-bottom: 2rem; }

.heading-list > .reveal-line { padding-bottom: 0.35rem; }

.hero-intro { margin: 4rem 0 5rem; max-width: 50rem; }
.hero-intro .text-meta { margin-bottom: 3rem; }
.hero-intro .text-medium + .text-medium { margin-top: 1.5rem; }

.hero-logos .text-meta { margin-bottom: 2.5rem; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 5rem;
  align-items: center;
  max-width: 800px;
}

.logo-grid img { height: 35px; width: auto; }

/* ---------- Experiences slider ---------- */
.section-experiences {
  background-color: var(--color-accent); /* burgundy dark red */
  padding: 7rem 0 4rem; /* arrows add 4.5rem below the track — 4rem lands the optical bottom ≈ top */
  position: relative;
}

.experiences-heading { padding: 0 var(--gutter) 4rem; }

.slider { position: relative; }

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 35%;
  min-height: 38rem;
  padding: 0 3% 3rem;
  border-right: var(--border-width) solid var(--color-red);
  scroll-snap-align: start;
  color: var(--color-text-inverse);
  background-position: center;
  background-size: cover;
  transition: background 0.3s ease;
}

/* Hover backgrounds per slide — mirrors the Webflow export */
.slide-1:hover { background-image: linear-gradient(#7a0000bf, #000000bf), url("../images/285405977_1024318678197798_7168947006083616892_n.jpg"); }
.slide-2:hover { background-image: linear-gradient(#7a0000bf, #000000bf), url("../images/0561-1-1665620085.jpg"); }
.slide-3:hover { background-image: linear-gradient(#00000029, #7a0000bf), url("../images/317918692_559114116224535_7174678942162504669_n.jpg"); }
.slide-4:hover { background-image: linear-gradient(#7a0000bf, #000000bf), url("../images/285380059_527009832434471_3534414642683409688_n.jpg"); }
.slide-5:hover { background-image: linear-gradient(#7a0000bf, #000000bf), url("../images/17.png"); }

.slide-number {
  position: relative;
  height: 17rem;
  /* fixed rhythm instead of width-relative % margins */
  margin: 1rem 0 3.5rem;
}

.slide-number::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  height: 100%;
  border-radius: 36%;
  background-color: var(--color-red);
}

.slide-number span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 15rem, 17rem);
  line-height: 1;
  color: var(--color-accent);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.slide-text {
  font-size: var(--size-small);
  margin-bottom: 2rem;
}

.slider-arrow {
  position: absolute;
  bottom: -4.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.slider-arrow[disabled] { opacity: 0.3; cursor: default; }
.slider-arrow-left  { right: 5rem; margin-right: 5%; }
.slider-arrow-right { right: 0; margin-right: 5%; }

/* keep the arrow row clear of the section edge */
.slider { margin-bottom: 4.5rem; }

/* ---------- Zero Degrees intro (homepage) ----------
   Split block: text on midnight blue left, clean snow-track landscape right. */
.section-zerodegrees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--color-zd-midnight);
  color: var(--color-text-inverse);
}

.zd-intro-media {
  position: relative;
  overflow: hidden;
}

.zd-intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zd-intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter);
}

.zd-intro-content .text-meta {
  color: var(--color-zd-ice);
  margin-bottom: 2rem;
}

.zd-intro-content .heading-alt {
  margin: 2.5rem 0 3rem;
  max-width: 42rem;
  font-weight: 300;
}

.button.zd {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background-color: var(--color-zd-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button.zd::after {
  content: "→";
  transition: transform 0.25s var(--reveal-ease);
}

.button.zd:hover { background-color: var(--color-zd-ice); color: var(--color-zd-midnight); }
.button.zd:hover::after { transform: translateX(6px); }

@media screen and (max-width: 991px) {
  .section-zerodegrees { grid-template-columns: 1fr; }
  .zd-intro-content { padding: 5rem 4rem; }
  .zd-intro-media { height: 60vw; }
}

@media screen and (max-width: 767px) {
  .zd-intro-content { padding: 4rem 2.5rem; }
  .zd-intro-media { height: 70vw; }
}

@media screen and (max-width: 479px) {
  .zd-intro-content { padding: 3.5rem 1.5rem; }
}

/* ---------- Section top (shared heading block) ---------- */
.section-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 6rem var(--gutter);
  background-color: var(--color-bg);
}

.section-top.muted { background-color: var(--color-bg-muted); }

.section-top .heading-alt {
  margin-top: 1rem;
  max-width: 70rem;
}

/* ---------- Track record / projects ---------- */
.section-projects { background-color: var(--color-bg-muted); }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card { background-color: var(--color-bg-muted); }

.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--reveal-ease);
}

.project-media:hover img { transform: scale(1.04); }

.view-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.view-button svg {
  width: 54px;
  height: 54px;
  padding: 13px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-radius: 50%;
  /* springy return for the magnetic hover effect (js/main.js) */
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.project-media:hover .view-button { opacity: 1; }

.project-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5vw 2vw;
  text-decoration: none;
}

.project-title {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 600;
}

/* Darker "all projects" tile in the homepage grid */
.project-card-all {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3vw;
  background-color: #17191a;
  color: var(--color-text-inverse);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.project-card-all .text-meta { color: #ffffff99; }

.project-all-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 4rem);
  text-transform: uppercase;
  line-height: 1;
}

.project-all-arrow {
  align-self: flex-end;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
  will-change: transform;
}

.project-card-all:hover { background-color: var(--color-accent); }
.project-card-all:hover .project-all-arrow { background-color: #ffffff1a; }

/* ---------- How we work ---------- */
.section-process { background-color: var(--color-bg); }

.process-images {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 1rem;
}

.image-wrapper { overflow: hidden; }

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-content {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 6rem;
  align-items: start;
  padding: 5vw var(--gutter) 6vw;
}

.process-sticky {
  position: sticky;
  top: 8rem;
}

.process-right .heading-lead { margin-bottom: 5rem; }

.process-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}

.process-step { padding: 3rem 0; }

.process-step:first-child { padding-top: 0; }

.process-step + .process-step { border-top: var(--border-width) solid var(--color-border); }

.process-step .heading-alt { margin-bottom: 1.5rem; }

/* ---------- Upcoming events ---------- */
.section-events { background-color: var(--color-bg); }

.event-item {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  background-color: var(--color-bg-muted);
  overflow: hidden;
}

.event-item.odd {
  grid-template-columns: 1fr 0.8fr;
  background-color: var(--color-bg);
}

.event-media {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.event-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 6vw 4vw;
}

.event-content .heading-small { margin-bottom: 2rem; }
.event-content .heading-small .reveal-line { padding-bottom: 0.25rem; }

.event-content .heading-alt { margin-bottom: 2.5rem; max-width: 42rem; }

.event-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
  color: var(--color-accent);
}

.event-features li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2.25rem;
}

/* red check badge */
.event-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"/></svg>');
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.event-price { margin-bottom: 2rem; }

/* ---------- Event date selector ---------- */
.event-dates { margin-bottom: 2.5rem; }
.event-dates .text-meta { margin-bottom: 1rem; }

.event-dates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.event-date {
  padding: 0.7rem 1.4rem;
  background: transparent;
  color: var(--color-accent);
  border: var(--border-width) solid var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.event-date:hover { background-color: rgba(119, 0, 2, 0.08); }

.event-date.is-selected {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
}

/* selection is marked by the ✓ as well as color */
.event-date-tick {
  display: none;
  margin-right: 0.5rem;
}

.event-date.is-selected .event-date-tick { display: inline; }

.event-date[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.event-date:focus-visible,
.event-apply:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.event-apply.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.event-apply.is-disabled:hover { background-color: var(--color-accent); }

.event-hint {
  margin-top: 1rem;
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--color-accent);
}

/* Apply button — compact and inviting instead of full-width */
.event-content .button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background-color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-content .button::after {
  content: "→";
  transition: transform 0.25s var(--reveal-ease);
}

.event-content .button:hover { background-color: var(--color-bg-dark); }
.event-content .button:hover::after { transform: translateX(6px); }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.footer-container { padding: 5rem var(--gutter) 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand img { width: min(100%, 260px); }

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-title { margin-bottom: 0.75rem; }

.footer-link {
  font-size: var(--size-small);
  color: var(--color-text-inverse);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-link:hover { opacity: 1; }

.footer-form-row {
  display: flex;
  border-bottom: 1px solid var(--color-border-inverse);
}

.footer-form .footer-title { margin-bottom: 1.25rem; }

.footer-form-field {
  flex: 1;
  padding: 0.75rem 0;
  background: transparent;
  border: 0;
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.footer-form-field::placeholder { color: #ffffff80; }

.footer-form-submit {
  background: transparent;
  border: 0;
  color: var(--color-text-inverse);
  font-size: 1.25rem;
  cursor: pointer;
}

.footer-form-message { margin-top: 1rem; font-size: var(--size-small); }

.footer-divider {
  height: 1px;
  margin: 3.5rem 0 2rem;
  background-color: var(--color-border-inverse);
}

.footer-copyright { font-size: var(--size-small); opacity: 0.7; }

/* ==========================================================================
   Responsive — 991px (tablet)
   ========================================================================== */
@media screen and (max-width: 991px) {
  .navbar-menu { display: none; }
  .menu-toggle { display: flex; }

  .hero-grid { display: block; }

  .hero-image {
    height: 75vw;
    position: static;
  }

  .hero-top { padding: 8rem 4rem 3rem; }
  .hero-bottom { padding: 2rem 4rem 4rem; }

  .heading-display { font-size: 16vw; }
  .heading-lead { font-size: 1.75rem; }

  .section-experiences { padding: 5rem 0 3rem; }
  .experiences-heading { padding-bottom: 3rem; }
  .slide { flex-basis: 60%; min-height: 34rem; }
  .slide-number { height: 14rem; margin: 0.5rem 0 3rem; }

  .process-content {
    display: block;
    padding: 4rem;
  }

  .process-sticky {
    position: static;
    margin-bottom: 3rem;
  }

  .event-item,
  .event-item.odd { display: flex; flex-direction: column; }
  .event-item.odd { flex-direction: column-reverse; }

  .event-media { height: 75vw; }

  .event-content {
    min-height: 0;
    gap: 3rem;
    padding: 4rem;
  }

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

/* ==========================================================================
   Responsive — 767px
   ========================================================================== */
@media screen and (max-width: 767px) {
  .hero-top,
  .hero-bottom { padding-left: 2.5rem; padding-right: 2.5rem; }

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

  .section-experiences { padding: 4rem 0 2.5rem; }
  .slide { flex-basis: 100%; min-height: 0; }
  .slide-number { height: 12rem; }
  .slide-number span { font-size: 10rem; }
  .slider { margin-bottom: 4rem; }

  .section-top { padding: 4rem 2.5rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-caption { padding: 1.25rem 2rem; }
  /* the dark tile matches the other blocks' footprint on mobile */
  .project-card-all { aspect-ratio: 4 / 3; padding: 2rem 2rem 2.5rem; }
  .project-all-title { font-size: clamp(2.5rem, 9vw, 4rem); }

  .process-images { grid-template-columns: 1fr; }
  .process-content { padding: 3rem 2.5rem; }

  .event-content { padding: 3rem 2.5rem; }

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

/* ==========================================================================
   Responsive — 479px
   ========================================================================== */
@media screen and (max-width: 479px) {
  .navbar { padding: 1.5rem 1.5rem 1rem; }
  .navbar-right .button-text { display: none; }

  .hero-top,
  .hero-bottom { padding-left: 1.5rem; padding-right: 1.5rem; }

  .heading-lead { font-size: 1.5rem; }
  .heading-alt { font-size: 1.35rem; }

  .section-top { padding: 3.5rem 1.5rem; }
  .process-content,
  .event-content { padding: 2.5rem 1.5rem; }

  .slider-arrow-left { right: 4rem; }
}

/* ==========================================================================
   Inner pages (Phase 2-3)
   ========================================================================== */

/* ---------- Shared page hero (about / work / detail) ---------- */
.page-hero {
  background-color: var(--color-bg);
  padding: 12vw var(--gutter) 6vw;
}

.page-hero .heading-lead,
.page-hero .heading-alt-big {
  margin-top: 2rem;
  max-width: 80rem;
}

.heading-alt-big {
  font-size: clamp(1.75rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
}

.heading-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}

.full-image-wrapper {
  overflow: hidden;
  max-height: 100vh;
}

.full-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- About: team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.team-item { background-color: var(--color-bg-muted); }
.team-item.muted { background-color: #eee; }

.team-photo {
  position: relative;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-socials {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
}

.team-socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  transition: background-color 0.2s ease;
}

.team-socials a:hover { background-color: var(--color-accent); }
.team-socials svg { width: 20px; height: 20px; }

.team-content { padding: 4vw; }
.team-content .text-meta { margin-bottom: 3rem; }

.team-name {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--color-accent);
  font-size: var(--size-small);
  max-width: 36rem;
}

/* ---------- Work: track record listing ---------- */
.work-list {
  display: flex;
  flex-direction: column;
}

.work-card {
  position: relative;
  display: block;
  height: 100vh;
  overflow: hidden;
  color: var(--color-text-inverse);
  text-decoration: none;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--reveal-ease);
}

.work-card:hover img { transform: scale(1.04); }

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55));
}

.work-card-heading {
  position: absolute;
  left: var(--gutter);
  bottom: 6vw;
  z-index: 1;
}

.work-card-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 5rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
}

.work-card-heading .text-meta {
  color: var(--color-text-inverse);
  margin-top: 1rem;
  opacity: 0.85;
}

.work-card .view-button { z-index: 2; }

/* ---------- Project detail ---------- */
.detail-split {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 6rem;
  align-items: start;
  padding: 5vw var(--gutter) 6vw;
  background-color: var(--color-bg);
}

/* CMS headlines can be long words — size them to wrap between words, not inside them */
.detail-split .heading-small {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.richtext {
  font-size: 1.375rem;
  line-height: 1.6;
}

.richtext p + p { margin-top: 1.5rem; }

.detail-split .heading-lead { margin-bottom: 3rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  background-color: var(--color-bg);
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--reveal-ease);
}

.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(14, 16, 17, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background-color: #fff;
  color: var(--color-text);
  border: 0;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev  { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.section-contact {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  background-color: var(--color-bg);
}

.contact-image {
  overflow: hidden;
  min-height: 100vh;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 10vw var(--gutter) 4vw;
}

.heading-huge {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}

.contact-form { margin-top: 4rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem;
  border: var(--border-width) solid var(--color-border);
  background-color: var(--color-bg-muted);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-bg-dark);
}

.form-input::placeholder { color: var(--color-accent); }

.form-input.is-textarea {
  min-height: 8rem;
  margin-bottom: 1rem;
  resize: vertical;
}

.form-message { margin-top: 1.5rem; }

/* ---------- Inner pages responsive ---------- */
@media screen and (max-width: 991px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-content { padding: 2.5rem; }

  .detail-split {
    display: block;
    padding: 4rem;
  }

  .detail-split .process-sticky { margin-bottom: 3rem; }

  .work-card { height: 70vw; }

  .section-contact { display: block; }
  .contact-image { min-height: 0; height: 75vw; }
  .contact-right { min-height: 0; gap: 3rem; padding: 4rem; }
}

@media screen and (max-width: 767px) {
  .page-hero { padding: 8rem 2.5rem 3rem; }
  .detail-split { padding: 3rem 2.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-right { padding: 3rem 2.5rem; }
  .richtext { font-size: 1.125rem; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}

@media screen and (max-width: 479px) {
  .page-hero { padding: 7rem 1.5rem 2.5rem; }
  .detail-split,
  .contact-right,
  .team-content { padding: 2.5rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Event action row (Zero Degree landing link) ---------- */
.event-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}
