/* Site — v2 design (Plus Jakarta, Jost, dark nav, build animations) */

/* ───────────────────────────────────────────────────────────────
   Palette tokens. Declared in style.css so they're available to
   every stylesheet (style.css loads before style-index.css,
   detail-ws.css, etc.). Any repeated brand color should live here
   and be referenced via var(--…) so a single edit propagates.

   --page-bg        primary navy. Hero wrapper, body, section fills.
   --page-bg-rgb    same navy as bare RGB triples so rgba() can
                    compose it with alpha, e.g.
                      background: rgba(var(--page-bg-rgb), 0.55);
   --page-text      default body copy lavender.
   --accent-teal    hero-name color (overrides in style-index.css).
   --accent-rose    legacy dusty rose kept for fallback rules.
   ─────────────────────────────────────────────────────────────── */
:root {
  --page-bg:       #313852;
  --page-bg-rgb:   49, 56, 82;
  --page-text:     #d1d6ff;
  --accent-teal:   #00cca3;
  --accent-rose:   #e0b8b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--page-bg);
  color: #eeeeee;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
html {
  overflow-x: hidden;
}
body.with-section-nav {
  padding-bottom: 0;
}
/* body.with-section-nav .footer rule moved to footer.css alongside the
   rest of the footer styles so all footer behavior lives in one file. */

/* ═══════════════════════════════════════════════════════
   Index page (body.with-section-nav) — Nav + Sub-Nav overrides
   All nav hover/active states for the index page live HERE.
   ═══════════════════════════════════════════════════════ */

/* Nav + sub-nav: initially hidden — GSAP controls opacity reveal */
body.with-section-nav .nav,
body.with-section-nav .section-nav {
  opacity: 0;
}

/* Nav bar transitions (transparent → solid on scroll) */
body.with-section-nav .nav {
  box-shadow: none;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
}
body.with-section-nav .section-nav {
  background: transparent;
  box-shadow: none;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
}
body.hero-passed .nav,
body.hero-passed .section-nav {
  background: transparent;
}
body.with-section-nav .nav .nav-hamburger-bar {
  transition: background 0.35s ease;
}

/* Nav items: Work Sans, initial caps, white on dark nav */
body.with-section-nav .nav a,
body.with-section-nav .section-nav a {
  font-family: "Work Sans", sans-serif;
  /* V6.x — match index size (≈10.7px); style-index.css also sets this */
  font-size: calc(0.95rem - 4.5px);
  font-weight: 400;
  /* V6.x — body-copy blue; style-index.css also sets this */
  color: var(--page-text);
  letter-spacing: -0.03em;
  transition:
    color 1s ease,
    font-weight 1s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
body.with-section-nav .nav .nav-links a,
body.with-section-nav .section-nav .section-nav-link {
  text-transform: none;
}

/* Active state: red + bold */
body.with-section-nav .nav .nav-links a.active,
body.with-section-nav .section-nav .section-nav-link.active {
  color: #ff0000;
  font-weight: 600;
}

/* Hover state */
@media (hover: hover) {
  body.with-section-nav .nav a:hover,
  body.with-section-nav .section-nav a:hover {
    /* V6.x — body-copy blue */
    color: var(--page-text);
  }
}

/* Logo: Work Sans, uppercase */
body.with-section-nav .nav .nav-logo {
  font-family: "Work Sans", sans-serif;
  text-transform: none;
  /* V6.x — match index nav-logo size (≈13.1px); style-index.css also sets this */
  font-size: calc(1.1rem - 4.5px);
  font-weight: 400;
  /* V6.x — body-copy blue; style-index.css also sets this */
  color: var(--page-text);
  letter-spacing: -0.04em;
  transition: color 1s ease;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
body.with-section-nav .nav .nav-logo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vw;
  width: calc(100% + 100vw);
  background: #fff;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) {
  body.with-section-nav .nav .nav-logo:hover::before {
    opacity: 0;
  }
  body.with-section-nav .nav .nav-logo:hover {
    /* V6.x — body-copy blue */
    color: var(--page-text);
  }
}

/* Flip-clock rollover for nav/logo (from 17-nav-jordangilroy) — letters scroll on hover — applies to all pages */
.nav .nav-flip-wrap,
.section-nav .nav-flip-wrap {
  display: inline;
}
.nav .nav-flip-mask,
.section-nav .nav-flip-mask {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  width: fit-content;
  min-width: 0.12em;
  line-height: 1;
  vertical-align: middle;
}
.nav .nav-flip-mask-space,
.section-nav .nav-flip-mask-space {
  min-width: 0.35em;
}
.nav .nav-flip-slider,
.section-nav .nav-flip-slider {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 2em;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.nav .nav-flip-char,
.section-nav .nav-flip-char {
  height: 1em;
  min-height: 1em;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav .nav-logo .nav-flip-char,
.nav .nav-links a .nav-flip-char,
.section-nav .section-nav-link .nav-flip-char {
  color: inherit;
  text-transform: none;
}

/* Section nav: taller mask for descenders (g, y, p in "Landing Pages") */
.section-nav .nav-flip-mask {
  height: 1.25em;
}
.section-nav .nav-flip-char {
  height: 1.25em;
  min-height: 1.25em;
}
.section-nav .nav-flip-slider {
  min-height: 2.5em;
}

/* Semi-transparent bar spanning full width of hero, JS-positioned to match reel */
.hero-backdrop-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 0;
  background: rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero > .hero-content {
  position: relative;
  z-index: 3;
}
.hero > .hero-reel {
  position: relative;
  z-index: 3;
}
.hero > .hero-backdrop-bar {
  position: absolute;
  z-index: 1;
}

/* Nav bar — layout identical on all pages to prevent shift when navigating */
.nav {
  position: fixed;
  top: 0;
  opacity: 1;
  left: 0;
  right: 0;
  height: 60px;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
  padding: 0 0.75%;
  z-index: 1001;
  display: flex;
  align-items: center;
}
.nav .nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav .nav-logo {
  font-family: "Jost", sans-serif;
  /* V6.x — match index nav-logo size (≈13.1px) */
  font-size: calc(1.1rem - 4.5px);
  font-weight: 400;
  /* V6.x — body-copy blue replaces rose */
  color: var(--page-text);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
  padding: 0 0.75rem;
  height: 60px;
  display: flex;
  align-items: center;
  transition: color 1s ease;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@media (hover: hover) {
  .nav .nav-logo:hover {
    /* V6.x — body-copy blue */
    color: var(--page-text);
  }
}
.nav .nav-links {
  display: flex;
  align-items: center;
  /* V6.x — tighter gap matches index */
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.nav .nav-links li {
  display: flex;
  align-items: center;
}
/* First link (Work/Home): consistent width prevents shift between index and subpages */
.nav .nav-links li:first-child a {
  min-width: 4.2em;
  text-align: center;
}
.nav .nav-links a {
  font-family: "Jost", sans-serif;
  /* V6.x — match index nav-link size (≈10.7px) */
  font-size: calc(0.95rem - 4.5px);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.12em;
  /* V6.x — body-copy blue replaces rose */
  color: var(--page-text);
  text-decoration: none;
  transition:
    color 1s ease,
    font-weight 1s ease;
  padding: 0 0.75rem;
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@media (hover: hover) {
  .nav .nav-links a:hover {
    /* V6.x — body-copy blue */
    color: var(--page-text);
  }
}
.nav .nav-links a.active {
  color: #ff0000;
  font-weight: 600;
  background: none;
}

/* Hamburger + close — hidden on desktop */
.nav .nav-hamburger,
.nav .nav-close {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.nav .nav-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.nav .nav-hamburger.open .nav-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav .nav-hamburger.open .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav .nav-hamburger.open .nav-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-nav {
  position: fixed;
  bottom: 0;
  opacity: 1;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 60px;
  z-index: 1001;
  box-shadow: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 0.75%;
  overflow: visible;
}
.section-nav .section-nav-container {
  display: flex;
  /* V6.x — tighter gap matches index */
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: visible;
}
.section-nav .section-nav-link {
  font-family: "Jost", sans-serif;
  /* V6.x — match index section-nav size (≈10.7px) */
  font-size: calc(0.95rem - 4.5px);
  /* V6.x — body-copy blue replaces rose */
  color: var(--page-text);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.12em;
  font-weight: 400;
  transition:
    color 1s ease,
    font-weight 1s ease;
  padding: 0 0.75rem;
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@media (hover: hover) {
  .section-nav .section-nav-link:hover {
    /* V6.x — body-copy blue */
    color: var(--page-text);
  }
}
.section-nav .section-nav-link.active {
  color: #ff0000;
  font-weight: 600;
  background: none;
}

/* Subpage nav: black bar, white text, flip-clock, initial caps */
body.subpage .nav {
  background: var(--page-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 0.75%;
}
body.subpage .nav .nav-logo,
body.subpage .nav .nav-links a {
  font-family: "Work Sans", sans-serif;
  /* V6.x — match index nav-link size (≈10.7px) */
  font-size: calc(0.95rem - 4.5px);
  font-weight: 400;
  /* V6.x — body-copy blue replaces rose */
  color: var(--page-text);
  letter-spacing: -0.03em;
  transition:
    color 1s ease,
    font-weight 1s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
body.subpage .nav .nav-logo {
  text-transform: none;
  /* V6.x — match index nav-logo size (≈13.1px) */
  font-size: calc(1.1rem - 4.5px);
  font-weight: 400;
  letter-spacing: -0.04em;
  position: relative;
  padding: 0 0.75rem;
}
body.subpage .nav .nav-links a {
  text-transform: none;
}
body.subpage .nav .nav-logo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vw;
  width: calc(100% + 100vw);
  background: #fff;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) {
  body.subpage .nav .nav-logo:hover::before {
    opacity: 0;
  }
  body.subpage .nav .nav-logo:hover,
  body.subpage .nav .nav-links a:hover {
    /* V6.x — body-copy blue */
    color: var(--page-text);
    background: none;
  }
}
body.subpage .nav .nav-links a.active {
  color: #ff0000;
  font-weight: 700;
  background: none;
  animation: nav-active-in 1s ease;
}

/* Animate active state on page load (subpages set .active in HTML, so transition can't fire) */
@keyframes nav-active-in {
  from {
    /* V6.x — start from body-copy blue */
    color: var(--page-text);
    font-weight: 400;
  }
  to {
    color: #ff0000;
    font-weight: 700;
  }
}
body.subpage .nav .nav-links {
  /* V6.x — tighter gap matches index */
  gap: 0.4rem;
}
body.subpage .nav .nav-hamburger-bar {
  background: #fff;
}

/* Hero (index only) */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  position: relative;
  gap: 4rem;
  overflow: hidden;
  background-color: var(--page-bg);
}
.hero > .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--page-bg);
  background-image: none;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}
.hero > * {
  position: relative;
  z-index: 2;
}
.hero-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.hero-name {
  font-weight: 800;
  font-size: clamp(4rem, 7vw, 8rem);
  letter-spacing: -0.02em;
  color: #c99c9c;
  line-height: 1;
  margin-bottom: 2rem;
  transform-origin: center bottom;
  backface-visibility: hidden;
}
.hero-name .first-name {
  color: #000;
}
.hero-name .last-name {
  color: #c99c9c;
}
.hero-accent-line {
  width: 40px;
  height: 2px;
  background: #ff0000;
  margin: 0 0 2rem 0;
  opacity: 0;
}
.hero-role {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c99c9c;
  margin-bottom: 2rem;
  clip-path: inset(0 100% 0 0);
}
.hero-tagline {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #c99c9c;
  max-width: none;
  line-height: 1.9;
  opacity: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
/* .hero-tagline .pillar-text {
  color: #ff0000;
  text-transform: uppercase;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(255, 0, 0, 0.75);
} */
.hero-reel {
  position: relative;
  max-width: 550px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 3.5rem;
}
.hero-reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 10;
}
.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.play-overlay img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
/* CSS fallback play triangle behind img — visible if img fails to load */
.play-overlay::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 36px solid rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  z-index: 0;
}
.play-overlay img {
  position: relative;
  z-index: 1;
}

/* Main content grows so footer stays at bottom */
.subpage main,
body > main {
  flex: 1 0 auto;
}

/* Work sections */
section {
  padding: 6rem 5%;
  position: relative;
}
.section-header {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3rem;
  opacity: 0;
}
.section-divider {
  display: none;
}
.grid-banners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  column-gap: 7rem;
  row-gap: 5rem;
  margin-top: 3rem;
}
.grid-emails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9rem;
  margin-top: 3rem;
}
.grid-emails .card {
  min-width: 0;
}
.grid-emails .card-image-container {
  height: 700px;
  box-shadow: none;
  min-width: 0;
}
.grid-emails .card:nth-child(1) .card-image-container,
.grid-emails .card:nth-child(2) .card-image-container,
.grid-emails .card:nth-child(3) .card-image-container,
.grid-emails .card:nth-child(4) .card-image-container,
.grid-emails .card:nth-child(5) .card-image-container,
.grid-emails .card:nth-child(6) .card-image-container {
  height: 910px;
}
.grid-emails .card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.4);
  transform-origin: top center;
}
.grid-emails .card:nth-child(3) .card-image {
  transform: scale(1.85);
}
.grid-emails .card:nth-child(4) .card-image,
.grid-emails .card:nth-child(5) .card-image,
.grid-emails .card:nth-child(6) .card-image {
  transform: scale(1.82);
}
.grid-lp {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 680px));
  justify-content: start;
  column-gap: 10rem;
  row-gap: 5rem;
  margin-top: 3rem;
}
.grid-lp .card-image-container {
  height: 710px;
  box-shadow: none;
}
.grid-lp .card-image {
  transform-origin: top center;
}
/* Card rollover: override duration and ease */
.grid-banners .card {
  transition-property: transform;
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
.grid-banners .card .card-image,
.grid-banners .card .card-image-container {
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
.grid-emails .card,
.grid-lp .card {
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
}
.grid-emails .card .card-image,
.grid-lp .card .card-image {
  transition-duration: 0.45s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.grid-emails .card .card-image-container,
.grid-lp .card .card-image-container {
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
}
.card {
  position: relative;
  opacity: 0;
  cursor: pointer;
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card.animated {
  pointer-events: auto;
}
.card-banner {
  aspect-ratio: auto;
}
.card-banner .card-image-container {
  aspect-ratio: 6 / 5;
}
.card-image-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  transition: box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.card:hover {
  transform: translateY(-5px) scale(0.97);
}
.card:hover .card-image-container {
  box-shadow: none;
}
.card:hover .card-image {
  transform: scale(1.15);
}
.grid-emails .card:hover .card-image {
  transform: scale(1.46);
  transform-origin: top center;
}
.grid-lp .card:hover .card-image {
  transform: scale(1.06);
  transform-origin: top center;
}
.card-caption {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-top: 1.2rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
.card:hover .card-caption {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Index work grid: captions always visible, larger on desktop */
body.with-section-nav .card-caption {
  font-size: 1.05rem;
  margin-top: 0.35rem;
  text-align: left;
  padding-left: 0;
}

/* Fade siblings on card hover — handled by JS for smooth 2s ease-in-out */

.back-to-top-wrapper {
  text-align: right;
  margin: 4rem 0 2rem;
}
.back-to-top {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.back-to-top:hover {
  color: #c99c9c;
}

/* Footer styles moved to /footer.css — the single source of truth for
   footer rendering. Every page that renders a footer loads footer.css
   and includes /footer.php. */

/* ——— Subpages (about, contact, resume, emails, ads, lps) ——— */
.subpage main {
  padding: 8rem max(4rem, calc((100vw - 1400px) / 2)) 6rem;
}
.projectcontainer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Two-column grid: email/LP style (600px + 360px or 900px + 400px) */
.grid-email {
  display: grid;
  grid-template-columns: 600px 360px;
  gap: 2rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
body.subpage .grid-lp {
  display: grid;
  grid-template-columns: 900px 400px;
  gap: 2rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
/* Ad subpage: banner preview + copy (300px + 360px to match current site proportions) */
.grid-ad {
  display: grid;
  grid-template-columns: 300px 360px;
  gap: 2rem;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}

.preview-wrap {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
}
.preview-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}
.email-preview,
.lp-preview {
  width: 100%;
  height: 2400px;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  position: relative;
  border: 1px solid #e0e0e0;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
}
.lp-preview {
  height: 2800px;
  max-width: 900px;
}
.email-preview iframe,
.lp-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}
.email-preview-overlay,
.lp-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

.bannersection {
  font-family: "Plus Jakarta Sans", sans-serif;
  padding: 2rem 0 0;
}
.bannersection h2 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #111;
  margin-bottom: 1rem;
}
.bannersection .bannerdetails {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}
.view-link {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #111;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.view-link:hover {
  text-decoration: underline;
}
.ad-nav-link-container {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.ad-nav-link {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111;
  text-decoration: none;
}
.ad-nav-link:hover {
  text-decoration: underline;
}
.ad-nav-link .arrow-left,
.ad-nav-link .arrow-right {
  display: inline-block;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  vertical-align: middle;
}
.ad-nav-link .arrow-left {
  border-right: 4px solid #111;
  margin-right: 0.25rem;
}
.ad-nav-link .arrow-right {
  border-left: 4px solid #111;
  margin-left: 0.25rem;
}
.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  text-decoration: none;
}
.back-link:hover {
  color: #111;
}

/* Ad subpage: banner image container (fixed aspect like 300x250) — no border radius */
.banner-preview {
  max-width: 300px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
}
.banner-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ═══════════════════════════════════════════════════════
   Detail pages (email, ad, LP subpages)
   Gray bg, styled info panel, consistent typography
   ═══════════════════════════════════════════════════════ */
.detail-page {
  background: #000000;
}
.detail-page main {
  padding: 140px max(3rem, calc((100vw - 1400px) / 2)) 80px !important;
  background: #000000;
}
/* Kill the generic section padding on detail pages */
.detail-page section {
  padding: 0;
  position: static;
}

/* Info panel card */
.detail-page .bannersection {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #111111;
  padding: 2rem 2.25rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 100px;
  align-self: start;
}
.detail-page .bannersection h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  color: #c99c9c;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.detail-page .bannersection .bannerdetails {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

/* View link (styled like resume PDF button) */
.detail-page .view-link {
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c99c9c;
  background: transparent;
  border: 2px solid #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}
.detail-page .view-link:hover {
  color: #000;
  background: #fff;
  text-decoration: none;
}

/* Prev/Next nav */
.detail-page .ad-nav-link-container {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid #333;
}
.detail-page .ad-nav-link {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c99c9c;
  text-decoration: none;
  transition: color 0.3s ease;
}
.detail-page .ad-nav-link:hover {
  color: #ff0000;
  text-decoration: none;
}
.detail-page .ad-nav-link:hover .arrow-left {
  border-right-color: #ff0000;
}
.detail-page .ad-nav-link:hover .arrow-right {
  border-left-color: #ff0000;
}

/* Back link */
.detail-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}
.detail-page .back-link:hover {
  color: #ff0000;
}

/* Preview containers on gray bg */
.detail-page .email-preview,
.detail-page .lp-preview {
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
}
.detail-page .banner-preview {
  border: 1px solid #e0e0e0;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
}

/* Responsive: stack grids on narrow screens */
@media (max-width: 1200px) {
  .detail-page .grid-email {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .detail-page .grid-lp {
    grid-template-columns: 1fr;
    max-width: 900px;
  }
  .detail-page .grid-ad {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .detail-page .bannersection {
    position: static;
  }
}
@media (max-width: 768px) {
  .detail-page main {
    padding: 100px 2rem 60px !important;
  }
}
@media (max-width: 640px) {
  .detail-page main {
    padding: 80px 1.25rem 40px !important;
  }
  .detail-page .bannersection {
    padding: 1.5rem;
  }
}

/* About/Contact/Resume single-column content */
.content {
  max-width: 720px;
  margin: 0 auto;
}
/* resume-wrap width is now set in the resume section below */
.content h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.1;
  margin-bottom: 2rem;
  clip-path: inset(0 100% 0 0);
}
.content .divider {
  width: 100%;
  height: 1px;
  background: #e8e8e8;
  margin-bottom: 2rem;
}
.content .bannerdetails,
.content .chunk {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}
.content h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  color: #111;
}
.content ul {
  margin: 0 0 1rem 1.5rem;
}
.content li {
  margin-bottom: 0.5rem;
}
.content .about-links a,
.content .boldlink {
  color: #111;
  font-weight: 500;
  margin-right: 1rem;
}
.content .homelink {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 2rem;
}
.content .homelink:hover {
  color: #111;
}

/* Contact form */
.contact-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-form label {
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
}
.contact-form button[type="submit"] {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #c99c9c;
  background: #111;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  width: max-content;
}
.contact-form button[type="submit"]:hover {
  background: #333;
}
.contact-copy-btn {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c99c9c;
  background: #111;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem;
}
.contact-copy-btn:hover {
  background: #333;
}
.contact-copy-btn.copied {
  background: #0a0;
  color: #c99c9c;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-email-section h3,
.contact-form-section h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.5rem;
  color: #111;
}

/* ═══════════════════════════════════════════════════════
   Resume — same layout as root resume.php (grid, bannersection card, Brittany)
   Fonts/colors: Plus Jakarta Sans, Jost; #111, #ff0000 — match index
   ═══════════════════════════════════════════════════════ */

/* Layout: match root exactly — main top/bottom padding only, centered card */
.resume-page .projectcontainer {
  width: 100%;
  margin: 0 auto;
}
.resume-page .grid-container {
  display: flex;
  justify-content: center;
}
.resume-page .grid-item,
.resume-page .grid-item-resume {
  width: 90%;
  max-width: 864px;
}

/* Page background so the card reads as one unit (like root's dark bg + card) */
.resume-page {
  background: #000000;
}
.resume-page main {
  padding: 180px 0 100px 0 !important;
  display: block;
  background: #000000;
}
/* Kill the generic "section" padding (line 64) that crushes inner <section> elements */
.resume-page section {
  padding: 0;
  position: static;
}

/* Section card: same padding/shape as root (3rem 3.5rem), light theme */
.resume-page section.bannersection.resume-section {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #ffffff;
  padding: 3rem 3.5rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

/* Header block — match root size, fonts/colors */
.resume-page section.bannersection h1.resume-heading {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.resume-page .resume-tagline {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.resume-page .resume-contact {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.resume-page .resume-contact a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease;
}
.resume-page .resume-contact a:hover {
  color: #ff29d1; /* V6.2 - red -> rollover pink */
}
.resume-page .resume-contact-divider {
  color: #bbb;
  margin: 0 0.5rem;
}

.resume-page .resume-pdf-cta {
  margin-bottom: 2rem;
}
.resume-page .resume-pdf-link {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111;
  background: transparent;
  border: 2px solid #111;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.resume-page .resume-pdf-link:hover {
  color: #c99c9c;
  background: #111;
  border-color: #111;
}
.resume-page .resume-pdf-cta-bottom {
  margin-top: 2.5rem;
  margin-bottom: 0;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.resume-page .resume-body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #333;
  line-height: 1.65;
  font-size: 1rem;
}
.resume-page .resume-block {
  margin-bottom: 2.25rem;
}
.resume-page .resume-block-title {
  font-family: "Jost", sans-serif;
  color: #111;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 1rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e0e0e0;
}
.resume-page .resume-summary {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Brittany layout — same as root style-resume-cards.css */
.resume-page .resume-list-brittany {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resume-page .resume-item-brittany {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}
.resume-page .resume-item-brittany-static {
  cursor: default;
}
.resume-page .resume-item-brittany-static:hover {
  background: transparent;
  box-shadow: none;
}
.resume-page .resume-item-date {
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap;
}
.resume-page .resume-item-content {
  min-width: 0;
}
.resume-page .resume-item-heading {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 0.2rem 0;
  line-height: 1.35;
}
.resume-page .resume-item-heading .resume-job-title-text {
  color: #111;
}
.resume-page
  .resume-item-brittany:not(.resume-item-brittany-static):hover
  .resume-item-heading {
  color: #ff29d1; /* V6.2 - red -> rollover pink */
}
.resume-page
  .resume-item-brittany:not(.resume-item-brittany-static):hover
  .resume-item-heading
  .resume-job-title-text {
  color: #ff29d1; /* V6.2 - red -> rollover pink */
}
.resume-page .resume-item-location {
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 0.5rem 0;
}
.resume-page .resume-item-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 0.65rem 0;
}
.resume-page .resume-item-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}
.resume-page .resume-item-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: #111;
  border-radius: 50%;
}
.resume-page
  .resume-item-brittany-static
  .resume-item-bullets
  li:has(> a.resume-freelance-bullet-link)::before {
  top: 1.2rem;
}
.resume-page
  .resume-item-brittany-static
  .resume-item-bullets
  li
  a.resume-freelance-bullet-link {
  display: block;
  margin: 0.25rem 0 0.25rem -9rem;
  padding: 0.5rem 0.5rem 0.5rem 9rem;
  border-radius: 6px;
  border-bottom: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.resume-page
  .resume-item-brittany-static
  .resume-item-bullets
  li
  a.resume-freelance-bullet-link:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.resume-page
  .resume-item-brittany-static
  .resume-item-bullets
  li
  a.resume-freelance-bullet-link:hover
  strong {
  color: #ff29d1; /* V6.2 - red -> rollover pink */
}
.resume-page .resume-item-brittany:not(.resume-item-brittany-static):hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.resume-page .resume-item-bullets a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}
.resume-page .resume-item-bullets a:hover {
  border-bottom-color: #ff29d1; /* V6.2 - red -> rollover pink */
  color: #111;
}

.resume-page .resume-item-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.resume-page .resume-item-tags li {
  font-size: 0.75rem;
  color: #666;
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin: 0;
}
.resume-page .resume-item-tags li::before {
  display: none;
}

.resume-page .resume-block-inline .resume-block-title {
  margin-top: 1.5rem;
}
.resume-page .resume-block-inline .chunk {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}
.resume-page .resume-block-inline .chunk:last-child {
  margin-bottom: 0;
}

/* Home link — same as root structure, colors */
.resume-page .homebuttoncontainer {
  font-family: "Jost", sans-serif !important;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}
.resume-page .homelink {
  color: #111;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.resume-page .homelink:hover {
  transform: translateX(-3px);
  color: #ff29d1; /* V6.2 - red -> rollover pink */
  font-weight: 700;
}
.resume-page .homelink:hover .arrow-left {
  border-right-color: #ff29d1; /* V6.2 - red -> rollover pink */
}
.resume-page .homebuttoncontainer .arrow-left {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #111;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .resume-page section.bannersection.resume-section {
    padding: 2rem 1.5rem;
  }
}
@media (max-width: 600px) {
  .resume-page .resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }
  .resume-page .resume-contact-divider {
    display: none;
  }
  .resume-page .resume-contact a::after {
    content: " · ";
    color: #bbb;
    margin-left: 0.25rem;
  }
  .resume-page .resume-contact a:last-of-type::after {
    content: "";
    margin: 0;
  }
  .resume-page .resume-item-brittany {
    grid-template-columns: 1fr;
    gap: 0.35rem 0;
  }
  .resume-page .resume-item-date {
    order: -1;
    margin-bottom: 0.15rem;
  }
  .resume-page
    .resume-item-brittany-static
    .resume-item-bullets
    li
    a.resume-freelance-bullet-link {
    margin-left: -1.25rem;
    padding-left: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════
   About — same card-on-gray layout as resume page
   Fonts/colors: Plus Jakarta Sans, Jost; #111, #ff0000
   ═══════════════════════════════════════════════════════ */

/* Layout: centered card like resume */
.about-page .projectcontainer {
  width: 100%;
  margin: 0 auto;
}
.about-page .grid-container {
  display: flex;
  justify-content: center;
}
.about-page .grid-item {
  width: 90%;
  max-width: 864px;
}

/* Page background */
.about-page {
  background: #000000;
}
.about-page main {
  padding: 180px 0 100px 0 !important;
  display: block;
  background: #000000;
}
/* Kill the generic "section" padding that crushes inner elements */
.about-page section {
  padding: 0;
  position: static;
}

/* Card */
.about-page section.bannersection.about-section {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #ffffff;
  padding: 3rem 3.5rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

/* Heading */
.about-page section.bannersection h1.about-heading {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

/* Body text */
.about-page .bannerdetails {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
}
.about-page .chunk {
  margin-bottom: 1.25rem;
  color: #333;
}
.about-page .chunk.intro {
  color: #111;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.about-page .chunk strong {
  color: #111;
  font-weight: 600;
}

/* Subheadings (Technical Focus, Beyond the Code) */
.about-page .focus-section {
  margin-top: 2rem;
}
.about-page .focus-section h3 {
  font-family: "Jost", sans-serif;
  color: #111;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 1rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Focus list bullets */
.about-page .focus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}
.about-page .focus-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}
.about-page .focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: #111;
  border-radius: 50%;
}
.about-page .focus-list li strong {
  color: #111;
  font-weight: 600;
}

/* About links (View Résumé | LinkedIn) */
.about-page .about-links {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.about-page .boldlink {
  font-family: "Jost", sans-serif;
  color: #111;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.about-page .boldlink:hover {
  color: #ff29d1; /* V6.2 - red -> rollover pink */
}
.about-page .link-divider {
  color: #ccc;
}

/* Home link — same as resume page */
.about-page .homebuttoncontainer {
  font-family: "Jost", sans-serif !important;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}
.about-page .homelink {
  color: #111;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.about-page .homelink:hover {
  transform: translateX(-3px);
  color: #ff29d1; /* V6.2 - red -> rollover pink */
  font-weight: 700;
}
.about-page .homelink:hover .arrow-left {
  border-right-color: #ff29d1; /* V6.2 - red -> rollover pink */
}
.about-page .homebuttoncontainer .arrow-left {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #111;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .about-page section.bannersection.about-section {
    padding: 2rem 1.5rem;
  }
  .about-page .about-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .about-page .link-divider {
    display: none;
  }
}
@media (max-width: 600px) {
  .about-page section.bannersection h1.about-heading {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
}

/* ═══════════════════════════════════════════════════════
   Contact — same card-on-gray layout as resume/about
   ═══════════════════════════════════════════════════════ */

.contact-page .projectcontainer {
  width: 100%;
  margin: 0 auto;
}
.contact-page .grid-container {
  display: flex;
  justify-content: center;
}
.contact-page .grid-item {
  width: 90%;
  max-width: 864px;
}

.contact-page {
  background: #000000;
}
.contact-page main {
  padding: 180px 0 100px 0 !important;
  display: block;
  background: #000000;
}
.contact-page section {
  padding: 0;
  position: static;
}

.contact-page section.bannersection.contact-section {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #ffffff;
  padding: 3rem 3.5rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

.contact-page section.bannersection h1.contact-heading {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.contact-page .bannerdetails {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
}
.contact-page .chunk {
  margin-bottom: 1.25rem;
  color: #333;
}
.contact-page .chunk.intro {
  color: #111;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Email section */
.contact-page .contact-email-section {
  margin-top: 2rem;
}
.contact-page .contact-email-section h3,
.contact-page .contact-form-section h3 {
  font-family: "Jost", sans-serif;
  color: #111;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 1rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e0e0e0;
}
.contact-page .contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}
.contact-page .contact-email-link {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-page .contact-email-link:hover {
  color: #ff29d1; /* V6.2 - red -> rollover pink */
}

/* Form */
.contact-page .contact-form-section {
  margin-top: 2.5rem;
}
.contact-page .contact-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-page .contact-form label {
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}
.contact-page .contact-form input,
.contact-page .contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}
.contact-page .contact-form input:focus,
.contact-page .contact-form textarea:focus {
  outline: none;
  border-color: #111;
}
.contact-page .contact-form button[type="submit"] {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111;
  background: transparent;
  border: 2px solid #111;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  width: max-content;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}
.contact-page .contact-form button[type="submit"]:hover {
  color: #c99c9c;
  background: #111;
}
.contact-page .contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-page .contact-copy-btn {
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111;
  background: transparent;
  border: 2px solid #111;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}
.contact-page .contact-copy-btn:hover {
  color: #c99c9c;
  background: #111;
}
.contact-page .contact-copy-btn.copied {
  background: #111;
  color: #c99c9c;
  border-color: #111;
}

/* Home link */
.contact-page .homebuttoncontainer {
  font-family: "Jost", sans-serif !important;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}
.contact-page .homelink {
  color: #111;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.contact-page .homelink:hover {
  transform: translateX(-3px);
  color: #ff29d1; /* V6.2 - red -> rollover pink */
  font-weight: 700;
}
.contact-page .homelink:hover .arrow-left {
  border-right-color: #ff29d1; /* V6.2 - red -> rollover pink */
}
.contact-page .homebuttoncontainer .arrow-left {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #111;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .contact-page section.bannersection.contact-section {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 1200px) {
  .grid-email {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .grid-lp {
    grid-template-columns: 1fr;
    max-width: 900px;
  }
  .grid-ad {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1400px) {
  .grid-emails {
    grid-template-columns: repeat(2, minmax(300px, 480px));
    justify-content: start;
    gap: 3rem;
  }
  .grid-emails .card-image-container {
    height: 650px;
  }
  .grid-emails .card:nth-child(1) .card-image-container,
  .grid-emails .card:nth-child(2) .card-image-container,
  .grid-emails .card:nth-child(3) .card-image-container,
  .grid-emails .card:nth-child(4) .card-image-container,
  .grid-emails .card:nth-child(5) .card-image-container,
  .grid-emails .card:nth-child(6) .card-image-container {
    height: 850px;
  }
}
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 5%;
    gap: 3.5rem;
  }
  .hero-content {
    text-align: center;
    flex: none;
    width: 100%;
    max-width: min(550px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
  }
  .hero-accent-line {
    margin: 0 auto 2rem;
  }
  .hero-tagline {
    margin: 0 auto;
    max-width: 600px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 0.85rem;
  }
  .hero-tagline .pillar-sep {
    display: none;
  }
  .hero-reel {
    max-width: min(550px, 90vw);
    width: 100%;
    align-self: center;
  }
  .hero-name {
    font-size: clamp(4rem, 10vw, 6.75rem);
    white-space: nowrap;
    text-align: center;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: block;
  }
  .grid-banners {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6vw;
    row-gap: 4rem;
  }
  .grid-emails {
    grid-template-columns: repeat(2, minmax(280px, 480px));
    justify-content: start;
    gap: 5rem;
  }
  .grid-emails .card-image-container {
    height: 600px;
  }
  .grid-emails .card:nth-child(1) .card-image-container,
  .grid-emails .card:nth-child(2) .card-image-container,
  .grid-emails .card:nth-child(3) .card-image-container,
  .grid-emails .card:nth-child(4) .card-image-container,
  .grid-emails .card:nth-child(5) .card-image-container,
  .grid-emails .card:nth-child(6) .card-image-container {
    height: 780px;
  }
  .grid-lp {
    grid-template-columns: repeat(2, minmax(260px, 600px));
    justify-content: start;
    column-gap: 7rem;
    row-gap: 4.5rem;
  }
  .grid-lp .card-image-container {
    height: 590px;
  }
  section {
    padding: 4rem 5%;
  }
}
@media (max-width: 768px) {
  .hero-tagline {
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
  }
  .hero-tagline .pillar-sep {
    display: none;
  }
  .grid-banners {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 2.5rem;
  }
  .grid-emails {
    grid-template-columns: repeat(2, minmax(260px, 420px));
    justify-content: start;
    gap: 3rem;
  }
  .grid-emails .card-image-container {
    height: 500px;
  }
  .grid-emails .card:nth-child(1) .card-image-container,
  .grid-emails .card:nth-child(2) .card-image-container,
  .grid-emails .card:nth-child(3) .card-image-container,
  .grid-emails .card:nth-child(4) .card-image-container,
  .grid-emails .card:nth-child(5) .card-image-container,
  .grid-emails .card:nth-child(6) .card-image-container {
    height: 650px;
  }
  .grid-lp {
    grid-template-columns: repeat(2, minmax(220px, 520px));
    justify-content: start;
    column-gap: 4.5rem;
    row-gap: 3.5rem;
  }
  .grid-lp .card-image-container {
    height: 515px;
  }
  section {
    padding: 3.5rem 5%;
  }
}
@media (max-width: 640px) {
  .nav {
    padding: 0 0.5% 0 0.75%;
    height: 50px;
  }
  .nav .nav-logo {
    height: 50px;
  }
  .nav .nav-hamburger {
    display: flex;
  }
  /* Nav bar + hamburger must stay on top so user can close menu */
  .nav .nav-container {
    position: relative;
    z-index: 10002;
  }
  /* Takeover menu — full viewport, covers everything below nav bar */
  .nav .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    background: #000;
    padding: 4rem 0;
    z-index: 10001;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease;
  }
  .nav .nav-links.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    align-items: center;
  }
  /* Close X — visible when menu is open, fixed top-right */
  .nav .nav-close {
    display: none;
    position: fixed;
    top: 1rem;
    right: 0.5%;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10003;
    color: #c99c9c;
    font-size: 1.75rem;
    line-height: 1;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }
  .nav:has(.nav-links.open) .nav-close {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav .nav-links li {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      color 0.2s ease;
  }
  .nav .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav .nav-links.open li:nth-child(1) {
    transition-delay: 0.05s;
  }
  .nav .nav-links.open li:nth-child(2) {
    transition-delay: 0.1s;
  }
  .nav .nav-links.open li:nth-child(3) {
    transition-delay: 0.15s;
  }
  .nav .nav-links.open li:nth-child(4) {
    transition-delay: 0.2s;
  }
  .nav .nav-links.open li:nth-child(5) {
    transition-delay: 0.25s;
  }
  .nav .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    height: auto;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    position: relative;
    overflow: visible;
  }
  .nav .nav-links.open a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 100vw;
    transform: translateX(-50%);
    background: #fff;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.2s ease;
  }
  .nav .nav-links.open a.active::before {
    opacity: 0;
  }
  .nav .nav-links.open a.active {
    color: #ff0000 !important;
    font-weight: 700;
  }
  @media (hover: hover) {
    .nav .nav-links.open a:hover::before,
    .nav .nav-links.open a:active::before {
      opacity: 0;
    }
  }
  /* Takeover menu: white text on black, active item inverts (black on white) */
  .nav .nav-links.open a,
  .nav .nav-links.open a:hover {
    color: #c99c9c !important;
  }
  .nav .nav-links.open a.active {
    color: #ff0000 !important;
    font-weight: 700;
  }
  /* Subpages: red text on active (clicked), no white bar */
  body.subpage .nav .nav-links.open a:hover::before,
  body.subpage .nav .nav-links.open a:active::before {
    opacity: 0 !important;
  }
  body.subpage .nav .nav-links.open a.active::before {
    opacity: 0 !important;
  }
  body.subpage .nav .nav-links.open a,
  body.subpage .nav .nav-links.open a:hover {
    color: #c99c9c !important;
  }
  body.subpage .nav .nav-links.open a.active {
    color: #ff0000 !important;
    font-weight: 700;
  }
  /* Scroll targets: ~20px gap between nav (50px) and section heading */
  #ads,
  #emails,
  #landing {
    scroll-margin-top: 50px;
    padding-top: 1.25rem;
  }
  /* Sub nav on mobile: first link aligns left with logo, last link aligns right with hamburger */
  .section-nav {
    height: 50px;
    padding: 0 0.5% 0 0.75%;
  }
  .section-nav .section-nav-container {
    width: 100%;
    justify-content: space-between;
  }
  .section-nav .section-nav-link {
    height: 50px;
    font-size: 0.78rem !important;
    letter-spacing: -0.01em;
    padding: 0 0.5rem;
    white-space: nowrap;
  }
  /* Index work grid captions: smaller on mobile, tighter top margin, left-aligned with card */
  body.with-section-nav .card-caption {
    font-size: 0.8rem;
    margin-top: 0.15rem;
  }
  .grid-banners {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 1.25rem;
  }
  .grid-emails {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 2rem;
    max-width: min(300px, 96vw);
    margin-left: auto;
    margin-right: auto;
  }
  .grid-emails .card-image-container {
    height: 400px;
    width: 187px;
    max-width: 61%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
  }
  .grid-emails .card:nth-child(1) .card-image-container,
  .grid-emails .card:nth-child(2) .card-image-container,
  .grid-emails .card:nth-child(3) .card-image-container,
  .grid-emails .card:nth-child(4) .card-image-container,
  .grid-emails .card:nth-child(5) .card-image-container,
  .grid-emails .card:nth-child(6) .card-image-container {
    height: 520px;
  }
  .grid-emails .card-image {
    width: 300px;
    max-width: 100%;
    left: 50%;
  }
  .grid-emails .card-caption {
    width: 187px;
    max-width: 61%;
    margin-left: calc((100% - 187px) / 2);
    margin-right: auto;
    text-align: left;
    box-sizing: border-box;
  }
  .grid-lp {
    grid-template-columns: minmax(280px, 680px);
    justify-content: start;
    gap: 3.5rem;
  }
  .grid-lp .card-image-container {
    height: 435px;
  }
  .hero {
    padding: 3.5rem 5%;
    gap: 7.5rem;
  }
  .hero-reel::before {
    content: "";
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.4) 0,
      rgba(255, 255, 255, 0.4) 3px,
      transparent 3px,
      transparent 10px
    );
  }
  .hero-content {
    max-width: min(420px, 94vw);
    align-self: center;
  }
  .hero-name {
    font-size: clamp(2.6rem, 11vw, 4rem);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: block;
  }
  .hero-role {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hero-tagline {
    font-size: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .hero-tagline .pillar-sep {
    display: none;
  }
  .hero-reel {
    max-width: 100%;
    width: 100%;
  }
  section {
    padding: 3rem 5%;
  }
  .subpage main {
    padding: 6rem 2rem 4rem;
  }
}
@media (max-width: 480px) {
  .grid-banners {
    column-gap: 0.75rem;
    row-gap: 1rem;
  }
  body.with-section-nav .card-caption {
    margin-top: 0.1rem;
  }
  .hero-content {
    max-width: min(380px, 96vw);
    align-self: center;
  }
  .hero {
    padding: 3rem 4%;
    gap: 6rem;
  }
  .hero-name {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: block;
  }
  .hero-tagline {
    font-size: 0.62rem;
  }
  section {
    padding: 2.5rem 4%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — nav sizes scale up on large desktops (subpages).
   Mirrors the body.with-section-nav rules in style-index.css so the nav
   reads consistently at 1440px+ on About, Contact, Resume, and detail
   pages too. Without this, subpages would keep the cramped 10.7/13.1px
   sizes while the index nav grew on big monitors.
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  .nav .nav-links a,
  .section-nav .section-nav-link {
    font-size: calc(0.95rem - 1px); /* ≈ 14.2px */
  }
  .nav .nav-logo {
    font-size: calc(1.1rem + 1.5px); /* ≈ 19.1px */
  }
}
@media (min-width: 1920px) {
  .nav .nav-links a,
  .section-nav .section-nav-link {
    font-size: calc(0.95rem + 1.5px); /* ≈ 16.7px */
  }
  .nav .nav-logo {
    font-size: calc(1.1rem + 4.5px); /* ≈ 22.1px */
  }
}
