/* ============================================================
   DARRIUSRANKIN.COM — Global Stylesheet
   ============================================================
   Fonts:    Space Grotesk (H1, nav, labels)
             Roboto (body)
             Lora (accent italic)
   Colors:   #000000 (dark)
             #f3f3f3 (light)
   Breakpoints: 1440px desktop / 768px tablet / 375px mobile
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Roboto:wght@400;500&family=Lora:ital@1&family=Press+Start+2P&display=swap');

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--dark);
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#loader.is-active {
  display: flex;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loader-animation {
  width: 300px;
  height: 300px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f3f3f3;
  color: #000000;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --dark:  #000000;
  --light: #f3f3f3;
  --nav-h: 72px;
  --max-w: 1200px;
  --gutter: 48px;
  --gap: 24px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background-color: transparent;
  color: #f3f3f3;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrolled state */
.site-nav.is-scrolled {
  background-color: var(--light);
  color: var(--dark);
}

/* Dark variant — project pages etc. (same behavior, kept for compatibility) */
.site-nav.nav--dark {
  color: var(--light);
}

/* Light variant — pages with white backgrounds (Resume, Contact) */
.site-nav.nav--light {
  color: var(--dark);
}
.site-nav.nav--light.is-scrolled {
  background-color: var(--light);
  color: var(--dark);
}

.site-nav.nav--dark.is-scrolled {
  background-color: var(--light);
  color: var(--dark);
}

/* Menu open — top bar always white background, black text/logo */
.site-nav.is-menu-open {
  background-color: var(--light);
  color: var(--dark);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.nav__logo img,
.nav__logo svg {
  height: 40px;
  width: auto;
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav__links a:hover { opacity: 1; }

.nav__links a.nav--strikethrough,
.nav__drawer a.nav--strikethrough {
  text-decoration: line-through;
  opacity: 0.4;
}

/* Mobile menu toggle */
.nav__menu-toggle {
  display: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* Mobile drawer — always black background, white text */
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background-color: var(--dark);
  color: var(--light);
  padding: 32px var(--gutter);
  z-index: 99;
  flex-direction: column;
  gap: 24px;
}

.nav__drawer a { color: var(--light); }

.nav__drawer a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__drawer.is-open { display: flex; }


/* ============================================================
   PAGE WRAPPER — no top padding, nav overlaps hero
   ============================================================ */
.page-wrapper {
  padding-top: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 40px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-footer a,
.site-footer span {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.site-footer a:hover { opacity: 1; }

/* Dark footer variant */
.site-footer.footer--dark {
  background-color: var(--dark);
  color: var(--light);
}


/* ============================================================
   INDEX PAGE
   ============================================================ */

/* ── Hero Headline ── */
.hero {
  text-align: center;
  height: calc(var(--nav-h) + 500px);
  padding: 0 var(--gutter);
  background-color: #06060f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: #f3f3f3;
  margin: 0 auto;
  display: table;
  position: relative;
  z-index: 1;
}

.hero__headline span {
  display: block;
}

.hero__headline em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
}

.hero__play {
  display: none;
}

@media (min-width: 1024px) {
  .hero__play {
    display: inline-block;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #000000;
    background-color: #ffffff;
    border: none;
    padding: 16px 48px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.2s;
    image-rendering: pixelated;
    z-index: 1;
  }

  .hero__play:hover { opacity: 0.8; }
}

.hero__cta-note {
  display: none;
}

@media (min-width: 1024px) {
  .hero__cta-note {
    display: block;
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: rgba(243,243,243,0.5);
    z-index: 1;
  }
}

.hero__mobile-note {
  display: block;
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #f3f3f3;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero__mobile-note {
    display: none;
  }
}

.hero__footnote {
  margin-top: 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: var(--dark);
  opacity: 0.55;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Work Grid ── */
.work-grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.work-grid__item {
  position: relative;
  background-color: var(--dark);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.25s;
}

.work-grid__item:hover { opacity: 0.85; }

.work-grid__item img,
.work-grid__item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-grid__item.has-image img,
.work-grid__item.has-image video { opacity: 1; }

.work-grid__label {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  text-align: center;
}

.work-grid__item.has-image .work-grid__label {
  display: none;
}

/* Coming soon state */
.work-grid__item.is-coming-soon {
  opacity: 0.45;
  pointer-events: none;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
  background-color: var(--dark);
  color: var(--light);
  min-height: 100vh;
}

.about-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 56px) var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── About: Text column ── */
.about__text {}

.about__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: var(--light);
}

.about__copy p {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--light);
  opacity: 0.85;
  margin-bottom: 20px;
}

.about__copy p:last-child { margin-bottom: 0; }

/* ── About: Image column ── */
.about__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image img {
  width: 100%;
  height: auto;
  display: block;
}

.about__image-placeholder {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.3;
}


/* ============================================================
   PROJECT PAGE
   ============================================================ */

/* ── Prev/Next project nav arrows — fixed to viewport sides,
     stay in place as the user scrolls ── */
.project-nav-arrow {
  position: fixed;
  top: calc(624px + 32px);
  width: 40px;
  height: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-nav-arrow:hover {
  opacity: 1;
}

.project-nav-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-nav-arrow--prev {
  left: 20px;
}

.project-nav-arrow--prev img {
  transform: rotate(-90deg);
}

.project-nav-arrow--prev:hover {
  transform: translateX(-6px);
}

.project-nav-arrow--next {
  right: 20px;
}

.project-nav-arrow--next img {
  transform: rotate(90deg);
}

.project-nav-arrow--next:hover {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .project-nav-arrow { display: none; }
}

/* ── Project Header (dark band) ── */
.project-header {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--nav-h) var(--gutter) 0;
  min-height: 624px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
}

.project-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.project-header__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--light);
  display: none;
}

/* ── Project header with video background ── */
.project-header--video {
  position: relative;
  overflow: hidden;
}

.project-header__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-header--video .project-header__inner {
  position: relative;
  z-index: 1;
}

/* ── Project header with image background ── */
.project-header--image {
  position: relative;
  overflow: hidden;
}

.project-header__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-header--image .project-header__inner {
  position: relative;
  z-index: 1;
}

/* ── Mixed hero: image on desktop, video on mobile (or vice versa) ── */
.project-header__media--desktop-only { display: block; }
.project-header__media--mobile-only  { display: none; }

@media (max-width: 768px) {
  .project-header__media--desktop-only { display: none; }
  .project-header__media--mobile-only  { display: block; }
}

/* ── Project Content Area (light) ── */
.project-content {
  background-color: var(--light);
  padding-bottom: 80px;
}

/* ── Project Block ──────────────────────────────────────────
   One full self-contained project unit. Copy/paste the entire
   .project-block to add another project to the same page.
   Comment out or remove any inner section you don't need.
   ──────────────────────────────────────────────────────────── */
.project-block {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--gutter) 0;
}

/* ── SECTION: Metrics ── */
.project-metrics {
  display: flex;
  gap: 0;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.metric {
  flex: 1;
  min-width: 120px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 0;
  align-items: end;
}

.metric__spacer {
  display: block;
}

.metric__symbol {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.metric__arrow {
  height: clamp(25px, 3.5vw, 45px);
  width: auto;
  display: block;
  align-self: center;
}

.metric__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--dark);
}

.metric__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.55;
  text-align: left;
}

/* ── SECTION: Description + Roles ── */
.project-info {
  margin-bottom: 48px;
}

.project-info__description {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dark);
  width: 100%;
}

.project-info__description a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.project-info__description a:hover {
  opacity: 0.6;
}

.project-info__roles {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark);
  width: 100%;
  margin-top: 24px;
}

.project-info__roles-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.5;
}

/* ── SECTION: Image Grid ── */
.project-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: 56px;
}

/* Full-width image override — add class .image--full to span both columns */
.project-images .image--full {
  grid-column: 1 / -1;
}

.project-images__item {
  background-color: var(--dark);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-images__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section-specific layouts */
.project-images--culture,
.project-images--headers,
.project-images--giveaways,
.project-images--emails { grid-template-columns: 1fr; }

/* ── Auto-scrolling website preview frame ──────────────────
     Full-width block: description above, fixed-aspect window
     below that slowly pans a tall screenshot up and down on
     a continuous loop. Set --scroll-to on the <img> to the
     percentage needed to reveal its bottom
     (e.g. style="--scroll-to: -65%"). ──────────────────── */
.scroll-frame-block {
  width: 100%;
  margin-bottom: 40px;
}

.scroll-frame-block__desc {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 16px;
}

.scroll-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1980 / 1100;
  overflow: hidden;
  background-color: var(--dark);
  border: 1px solid rgba(0,0,0,0.08);
}

.scroll-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  animation: scrollFramePan var(--scroll-duration, 14s) ease-in-out infinite alternate;
  animation-delay: var(--scroll-delay, 0s);
}

@keyframes scrollFramePan {
  0%, 1.5%   { transform: translateY(0); }
  98.5%, 100% { transform: translateY(var(--scroll-to, -60%)); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-frame img { animation: none; }
}

/* Only animate while the parent accordion section is open */
.project-accordion:not([open]) .scroll-frame img {
  animation: none;
}

/* Natural proportions — images size to their own dimensions */
.project-images--natural .project-images__item {
  aspect-ratio: unset;
  overflow: visible;
  background-color: transparent;
}

.project-images--natural .project-images__item img,
.project-images--natural .project-images__item video {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}

/* Placeholder label shown when no image is set */
.project-images__placeholder {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.35;
}

/* ── Collapsible project accordion sections ── */
.project-accordion {
  border-bottom: 1px solid rgba(35, 35, 35, 0.15);
}

.project-accordion__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  list-style: none;
  color: var(--dark);
  user-select: none;
}

/* Plain (non-collapsible) section header — same weight as accordion titles */
.project-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 24px 0;
  color: var(--dark);
  border-bottom: 1px solid rgba(35, 35, 35, 0.15);
  margin-bottom: 24px;
}

.project-accordion__title::-webkit-details-marker { display: none; }

.project-accordion__title::after {
  content: '';
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-style: solid;
  border-width: 5px 8px 5px 0;
  border-color: transparent var(--dark) transparent transparent;
  transition: transform 0.2s ease;
}

.project-accordion[open] > .project-accordion__title::after {
  transform: rotate(-90deg);
}

/* Coming-soon sections — greyed out, not clickable/openable */
.project-accordion--disabled > .project-accordion__title {
  color: rgba(35, 35, 35, 0.35);
  cursor: default;
  pointer-events: none;
}

.project-accordion--disabled > .project-accordion__title::after {
  border-color: transparent rgba(35, 35, 35, 0.35) transparent transparent;
}

.project-accordion__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark);
  opacity: 0.7;
  margin: 0 0 28px;
}

.project-accordion__subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.55;
  margin: 0 0 14px;
}

.project-accordion__gallery {
  column-count: 2;
  column-gap: 20px;
  margin-bottom: 32px;
}

.project-accordion__gallery--full {
  column-count: 1;
}

.project-accordion__gallery--cols3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
}

/* Masonry — 3 columns, items pack at natural heights */
.project-accordion__gallery--masonry3 {
  column-count: 3;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background-color: transparent;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Logo mosaic (Logofolio) — masonry grid, each item carries
     its own title + description above the logo image. ── */
.logo-masonry {
  column-count: 2;
  column-gap: 30px;
  margin-bottom: 32px;
}

.logo-masonry .gallery-item {
  background-color: transparent;
  break-inside: avoid;
  margin-bottom: 30px;
}

.logo-masonry .gallery-item p {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dark);
  margin: 0 0 10px;
}

.logo-masonry .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.project-accordion__media {
  margin-bottom: 32px;
}

.project-accordion__media video,
.project-accordion__media img {
  width: 100%;
  height: auto;
  display: block;
}

.project-accordion__media--video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.project-accordion__media--game {
  position: relative;
  aspect-ratio: 900 / 450;
  max-width: 900px;
  margin: 0 auto 32px;
  border: 1px solid rgba(0,0,0,0.12);
  background-color: var(--dark);
  overflow: hidden;
}

.project-accordion__media--game iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.project-accordion__media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Project block divider (between multiple projects on one page) ── */
.project-divider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.project-divider hr {
  border: none;
  border-top: 1px solid rgba(35,35,35,0.15);
  margin: 0;
}


/* ============================================================
   RESUME PAGE
   ============================================================ */
.resume-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 56px) var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.resume-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resume-page h1 a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.resume-page h1 a:hover {
  opacity: 0.6;
}

.resume-contact {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.resume-content {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  width: 100%;
}

.resume-section {
  margin-bottom: 40px;
}

.resume-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.resume-item {
  margin-bottom: 30px;
}

.resume-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 5px;
}

.resume-item h3 strong {
  font-weight: 700;
}

.resume-meta {
  font-size: 15px;
  opacity: 0.6;
  margin-bottom: 10px;
}

.resume-item ul {
  padding-left: 20px;
}

.resume-item li {
  list-style: disc;
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background-color: var(--dark);
  color: var(--light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.8; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
}

.contact-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  opacity: 0.7;
  max-width: 600px;
}

.contact-content {
  width: 100%;
  max-width: 600px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  background-color: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
  padding: 15px 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  outline: none;
  transition: opacity 0.2s;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--dark);
  opacity: 0.45;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background-color: var(--dark);
  color: var(--light);
  border: none;
  padding: 15px 40px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.contact-form button:hover { opacity: 0.75; }

.contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-success {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  padding: 40px 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet: 768px ── */
@media (max-width: 768px) {

  :root {
    --gutter: 24px;
    --gap: 16px;
  }

  /* Nav */
  .nav__links { display: none; }
  .nav__menu-toggle { display: block; }

  /* Hero */
  .hero {
    height: auto;
    min-height: calc(var(--nav-h) + 300px);
    padding: calc(var(--nav-h) + 32px) var(--gutter) 48px;
  }


  /* Work grid — single column on mobile */
  .work-grid { grid-template-columns: 1fr; }

  /* About — stack: image top, text bottom */
  .about-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: calc(var(--nav-h) + 32px) var(--gutter) 48px;
  }

  .about__image { order: -1; }

  .about__title { font-size: 28px; }

  /* Project */
  .project-header { min-height: 480px; padding: var(--nav-h) var(--gutter) 0; }

  .project-metrics { gap: 24px; }

  .project-images { grid-template-columns: 1fr; }
  .project-images .image--full { grid-column: 1; }

  .project-accordion__gallery { column-count: 1; }
  .project-accordion__gallery--cols3 { grid-template-columns: 1fr; }
  .project-accordion__gallery--masonry3 { column-count: 1; }
  .logo-masonry { column-count: 1; }

  /* Resume / Contact */
  .resume-page,
  .contact-page { padding: calc(var(--nav-h) + 32px) var(--gutter) 48px; justify-content: flex-start; }

  .resume-contact { flex-direction: column; gap: 5px; }
}

/* ── Desktop: 769px+ ── */
@media (min-width: 769px) {
  .metric__label { font-size: 15px; }
}

/* ── Mobile: 375px ── */
@media (max-width: 375px) {
  .hero__headline { font-size: 22px; }
  .project-header__title { font-size: 40px; }
  .metric__number { font-size: 32px; }
}
