/* ---- Fonts (as served by the original site) ---- */
@font-face {
  font-family: "af";
  src: url("fonts/af.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

@font-face {
  font-family: "ppmondwest";
  src: url("fonts/ppmondwest.woff2") format("woff2");
  font-display: swap;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #fefffc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0;
}

/* ---- Nav ----------------------------------------------------------------
   Its own thing, built out of the same vocabulary as the flower: a pixel mark,
   and link underlines made of discrete 3px squares that fill in one at a time.
   ------------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(254, 255, 252, 0.78);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  /* same horizontal rhythm as .section, so the nav lines up with the content */
  padding-inline: 20px;
  transition: border-color 0.35s cubic-bezier(0.215, 0.61, 0.355, 1),
    background-color 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav.is-scrolled {
  border-bottom-color: rgba(44, 44, 44, 0.08);
}

.nav-inner {
  margin-inline: auto;
  max-width: 1080px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #2c2c2c;
}

.brand-mark {
  /* taller than wide, matching the cup's own proportions (11x13 grid) —
     a square box was flattening the lid/body/sleeve into flat stripes */
  width: 16px;
  height: 19px;
  display: block;
  overflow: visible;
}

.brand-mark rect {
  opacity: 0;
}

.brand-name {
  font-family: "ppmondwest", Arial, sans-serif;
  font-size: 19px;
  letter-spacing: -0.2px;
  line-height: 1;
  color: #2c2c2c;
  /* the wordmark drifts up a hair as the mark blooms */
  transform: translateY(2px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0.25s,
    opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0.25s;
}

.nav.is-ready .brand-name {
  transform: translateY(0);
  opacity: 1;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-block: 4px;
  text-decoration: none;
}

.nav-label {
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  color: #8a8a8a;
  transition: color 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav-link:hover .nav-label,
.nav-link:focus-visible .nav-label {
  color: #2c2c2c;
}

.nav-link.is-active .nav-label {
  color: #2c2c2c;
}

/* The pixel underline. Squares are generated in app.js, one per ~5px of label
   width, each with its own transition-delay so they light up left to right. */
.nav-pixels {
  display: flex;
  gap: 2px;
  height: 3px;
}

.nav-pixels span {
  width: 3px;
  height: 3px;
  background: #2c2c2c;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav-link:hover .nav-pixels span,
.nav-link:focus-visible .nav-pixels span {
  opacity: 0.45;
}

/* Current page keeps the flower's gold, permanently lit. */
.nav-link.is-active .nav-pixels span {
  background: #e0aa2b;
  opacity: 0;
}

.nav.is-ready .nav-link.is-active .nav-pixels span {
  opacity: 1;
}

.nav-link.is-active:hover .nav-pixels span {
  opacity: 1;
}

/* ---- Section shell ----
   The site is a single page now: each top-level view lives in its own
   .section-wrap and only the active one is shown, so switching views never
   reloads the document. */
.section-wrap {
  display: none;
  width: 100%;
  background: #fefffc;
}

.section-wrap.is-active {
  display: block;
}

.section {
  width: 100%;
  margin-inline: auto;
  padding-top: 120px;
  padding-bottom: 120px;
  padding-left: 20px;
  padding-right: 20px;
  opacity: 0;
}

/* Home's hero earns generous top air — a big headline over an illustration.
   Content-dense pages (agency, portfolio, the internship detail) just get a
   giant gap before anything starts, so they get a much shorter one instead. */
.section--tight {
  padding-top: 64px;
}

.grid {
  margin-inline: auto;
  max-width: 1080px;
  width: 100%;
  display: grid;
  gap: 32px;
  align-items: center;
}

/* ---- Illustration column ---- */
.art-col {
  display: flex;
  justify-content: center;
}

.pixel-art {
  width: 200px;
  height: 250px;
}

.pixel-art rect {
  opacity: 0;
}

/* ---- Text column ---- */
.text-col {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: flex-start;
  max-width: 340px;
}

.body-copy {
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.15px;
  line-height: 140%;
  max-width: 360px;
  color: #646464;
}

.display {
  font-family: "ppmondwest", Arial, sans-serif;
  font-weight: 500;
  color: #2c2c2c;
  font-size: 22px;
  letter-spacing: -0.44px;
  line-height: 120%;
  overflow: hidden;
}

.display span {
  display: inline-block;
}

/* Secondary line under a .display headline — same serif family for
   continuity, but smaller and muted so it reads as a subtitle, not a
   second title. */
.subtitle {
  font-family: "ppmondwest", Arial, sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.2px;
  line-height: 130%;
  color: #8a8a8a;
}

/* ---- Jobs page ---- */
.stack {
  margin-inline: auto;
  max-width: 1080px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.eyebrow-pixel {
  width: 5px;
  height: 5px;
  background: #e0aa2b;
  display: inline-block;
  animation: pixel-blink 2.4s steps(1, end) infinite;
}

@keyframes pixel-blink {
  0%,
  62% {
    opacity: 1;
  }
  63%,
  100% {
    opacity: 0.25;
  }
}

.display-wide {
  max-width: 720px;
}

.stack .body-copy {
  max-width: 460px;
}

.roles {
  margin-inline: auto;
  max-width: 1080px;
  width: 100%;
  margin-top: 72px;
  border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 44, 44, 0.1);
  /* revealed on scroll from app.js */
  opacity: 0;
  transform: translateY(10px);
}

.role-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-title {
  font-family: "ppmondwest", Arial, sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.4px;
  line-height: 1.1;
  color: #2c2c2c;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.role:hover .role-title {
  transform: translateX(4px);
}

.role-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1) 0.03s;
}

.role:hover .role-meta {
  transform: translateX(4px);
}

.role-meta .dot {
  width: 3px;
  height: 3px;
  background: #c4c4c4;
  display: inline-block;
}

.role-arrow svg {
  width: 26px;
  height: 16px;
  display: block;
  fill: #c4c4c4;
  transform: translateX(-4px);
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1),
    fill 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.role:hover .role-arrow svg {
  transform: translateX(0);
  fill: #e0aa2b;
}

.note {
  margin-inline: auto;
  max-width: 1080px;
  width: 100%;
  margin-top: 44px;
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.15px;
  line-height: 140%;
  color: #646464;
}

.note-link {
  color: #2c2c2c;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(44, 44, 44, 0.25);
  transition: box-shadow 0.25s cubic-bezier(0.215, 0.61, 0.355, 1),
    color 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.note-link:hover {
  color: #e0aa2b;
  box-shadow: 0 1px 0 #e0aa2b;
}

/* Intro paragraph + photo credit. Stacked on mobile; side by side from
   tablet width up (see the 768px breakpoint below). */
.intro-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.intro-row .body-copy {
  flex: 1;
}

/* Photo byline (e.g. the agency page's "Preston Rack" credit) */
.founder {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
  /* .intro-row is a column on mobile (row from 768px up) — centering the
     cross-axis here keeps the photo+name from hugging the left edge like
     the paragraph above it does. */
  align-self: center;
}

.founder-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.founder-name {
  font-family: "ppmondwest", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: #2c2c2c;
  transition: color 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.founder-role {
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.founder:hover .founder-name {
  color: #e0aa2b;
}

/* The combined credibility line under the hero — follower count and views,
   same numeric-callout pattern as .portfolio-stats. */
.credibility-stats {
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.credibility-stats .stat {
  color: #2c2c2c;
}

.credibility-stats .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px;
  background: #c4c4c4;
  vertical-align: middle;
}

/* "this past year" pushes the line onto an extra wrap on narrow screens —
   drop it there, "1,000,000,000+ views generated" still lands fine. */
.credibility-stats-timeframe {
  display: none;
}

/* A real button for the closing CTA, distinct from the site's usual
   underline-on-hover text links, to give "email us" more weight. */
.cta-button {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 14px 24px;
  background: #2c2c2c;
  color: #fefffc;
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cta-button:hover {
  background: #e0aa2b;
}

/* ---- Role detail page ---- */
.role-detail-inner {
  margin-inline: auto;
  max-width: 1080px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.back-link:hover {
  color: #2c2c2c;
}

.back-arrow svg {
  width: 26px;
  height: 16px;
  display: block;
  fill: #c4c4c4;
  transform: scaleX(-1);
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1),
    fill 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.back-link:hover .back-arrow svg {
  transform: scaleX(-1) translateX(-4px);
  fill: #e0aa2b;
}

.role-detail-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

/* The hero (.stack) reads as designed because it has real structure:
   an eyebrow, a headline, a rule of type. Below it was just a loose stack of
   labels with no rhythm. A divider at the seam, and one between every block
   after that, gives the lower half the same sense of built structure. */
.role-detail-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  padding-top: 40px;
  border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.role-detail-body > * + * {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(44, 44, 44, 0.1);
}

/* .body-copy's global max-width:360px is sized for the narrow Home/Jobs
   columns — here the paragraph should fill this section's own 640px box. */
.role-detail-body .body-copy {
  max-width: 100%;
}

.role-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-label {
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-list li {
  position: relative;
  padding-left: 18px;
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.15px;
  line-height: 140%;
  color: #646464;
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: #e0aa2b;
}

/* Numbered process steps (e.g. the agency page's "How it works") */
.steps {
  display: grid;
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-title {
  font-family: "ppmondwest", Arial, sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #2c2c2c;
}

/* Sits inline with the title, same line and baseline, as a gold prefix. */
.step-index {
  color: #e0aa2b;
  margin-right: 6px;
}

/* Interview clip gallery (agency page) — same card language as the
   portfolio grid, tuned for the taller 9:16 aspect of vertical clips and
   scaled to sit inside the narrower .role-detail-body column. */
.interviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.interview-media {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #ece7da;
}

.interview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Portfolio page ---- */
.portfolio-grid {
  margin-inline: auto;
  max-width: 1080px;
  width: 100%;
  margin-top: 64px;
  display: grid;
  gap: 48px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece7da;
}

.portfolio-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-client {
  font-family: "ppmondwest", Arial, sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #2c2c2c;
}

.portfolio-stats {
  font-family: "af", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.portfolio-stats .stat {
  color: #2c2c2c;
}

.portfolio-stats .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  background: #c4c4c4;
  vertical-align: middle;
}

/* ---- Breakpoints (Tailwind defaults, matching the original) ---- */
@media (min-width: 640px) {
  .display {
    font-size: 28px;
  }

  .role-title {
    font-size: 28px;
  }
}

@media (min-width: 768px) {
  .credibility-stats-timeframe {
    display: inline;
  }

  .interviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .nav {
    padding-inline: 32px;
  }

  .nav-inner {
    height: 72px;
  }

  .nav-links {
    gap: 34px;
  }

  .section {
    padding-top: 160px;
    padding-bottom: 160px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .section--tight {
    padding-top: 96px;
  }

  .intro-row {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .founder-photo {
    width: 120px;
    height: 120px;
  }

  .founder-info {
    align-items: flex-end;
    text-align: right;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

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

  .pixel-art {
    width: 300px;
    height: 450px;
  }

  .text-col {
    max-width: 100%;
  }

  .display {
    font-size: 32px;
    letter-spacing: -0.8px;
    line-height: 110%;
  }
}

@media (min-width: 1024px) {
  .grid {
    gap: 64px;
  }

  .display {
    font-size: 40px;
    letter-spacing: -0.96px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (min-width: 1280px) {
  .nav {
    padding-inline: 48px;
  }

  .section {
    padding-top: 200px;
    padding-bottom: 200px;
    padding-left: 48px;
    padding-right: 48px;
  }

  .section--tight {
    padding-top: 120px;
  }

  .display {
    font-size: 48px;
  }

  .role-title {
    font-size: 32px;
  }
}

@media (min-width: 1536px) {
  .nav {
    padding-inline: 120px;
  }

  .section {
    padding-top: 220px;
    padding-bottom: 220px;
    padding-left: 120px;
    padding-right: 120px;
  }

  .section--tight {
    padding-top: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section,
  .pixel-art rect,
  .brand-mark rect,
  .brand-name,
  .role,
  .nav.is-ready .nav-link.is-active .nav-pixels span {
    opacity: 1 !important;
  }

  .role,
  .brand-name {
    transform: none !important;
  }
}
