/* ============================================================
   Apogee Stores / Shared site stylesheet
   v3.3 / single-page
   ============================================================ */

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

:root {
  --white: #fff;
  --ink: #000;
  --graphite: #1a1a1a;
  --ember: #6366f1;
  --leaf: #4ade80;
  --sky: #38bdf8;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000000;
  color-scheme: dark;
}

body {
  background: #000000;
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 4vw, 64px);
  height: 110px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 110;
}

.nav-logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--ember);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover { opacity: 0.7; }
.nav-link:hover::after { width: 100%; }

/* Active page indicator */
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--ember); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: #000000;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(32px, 8vw, 64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.mobile-menu-link {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: #ffffff;
  padding: 24px 0;
  border-bottom: 1px solid #1a1a1a;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), color 0.3s ease;
}

.mobile-menu.open .mobile-menu-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu-link:active { color: var(--ember); }

.mobile-menu-footer {
  position: absolute;
  bottom: 40px;
  left: clamp(32px, 8vw, 64px);
  right: clamp(32px, 8vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1a1a1a;
  padding-top: 20px;
}

.mobile-menu-copy,
.mobile-menu-site {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: #555;
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 4vw, 64px);
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; background: #000000; }

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  max-width: 1400px;
}

.hero-content { max-width: 650px; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-container {
  width: clamp(380px, 38vw, 620px);
  height: clamp(380px, 38vw, 620px);
  position: relative;
  animation: wheelSpin 25s linear infinite;
}

@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wheel-container svg { width: 100%; height: 100%; }

.hero-eyebrow {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.eyebrow-top {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #777;
}

.eyebrow-rank {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--ember);
  letter-spacing: -0.015em;
  margin-top: 2px;
}

.eyebrow-numero {
  font-style: normal;
  font-size: 0.72em;
  margin-right: 0.08em;
  vertical-align: 0.08em;
  letter-spacing: 0;
}

.eyebrow-sub {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.02em;
  margin-top: 4px;
  line-height: 1.3;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 36px;
}

.hero-headline em { font-style: italic; color: var(--ember); }

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: #fff;
  max-width: 580px;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--graphite);
  transition: border-color 0.4s ease, gap 0.4s var(--ease-out-expo);
  cursor: pointer;
}

.hero-cta:hover { border-color: var(--ember); gap: 22px; }

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-out-expo);
}

.hero-cta:hover svg { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: clamp(24px, 4vw, 64px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll-text {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ember);
  animation: scrollPulse 2.4s var(--ease-out-expo) infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ===================== PAGE HEADER (sub-page hero) ===================== */
.page-header {
  padding: 200px clamp(24px, 4vw, 64px) 80px;
  border-bottom: 1px solid var(--graphite);
  position: relative;
}

.page-header-inner { max-width: 1400px; margin: 0 auto; }

.page-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 28px;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 900px;
}

.page-title em { font-style: italic; color: var(--ember); }

.page-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: #ccc;
  max-width: 700px;
  margin-top: 32px;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: clamp(80px, 12vh, 160px) clamp(24px, 4vw, 64px);
  position: relative;
}

.thesis { border-top: 1px solid var(--graphite); }

.thesis-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 120px);
  max-width: 1400px;
  margin: 0 auto;
}

.thesis-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
  padding-top: 8px;
}

.thesis-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 36px;
  max-width: 700px;
}

.thesis-heading em { font-style: italic; color: var(--ember); }

.thesis-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: #ddd;
  max-width: 600px;
  margin-bottom: 56px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
  max-width: 700px;
}

.stat { background: #000; padding: clamp(24px, 3vw, 40px); }

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .stat-accent { color: var(--ember); }

.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777;
  line-height: 1.5;
}

/* ===================== PORTFOLIO ===================== */
.portfolio { border-top: 1px solid var(--graphite); }
.portfolio.standalone { border-top: 0; }

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1400px;
  margin: 0 auto clamp(48px, 6vh, 80px);
}

.portfolio-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
}

.portfolio-title em { font-style: italic; color: var(--ember); }

.portfolio-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
}

.portfolio-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
}

.portfolio-card {
  background: #000;
  padding: clamp(36px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(440px, 52vh, 620px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.5s ease;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.portfolio-card:nth-child(1)::before { background: radial-gradient(ellipse at 30% 70%, rgba(99, 102, 241, 0.07) 0%, transparent 70%); }
.portfolio-card:nth-child(2)::before { background: radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 70%); }
.portfolio-card:nth-child(3)::before { background: radial-gradient(ellipse at 40% 40%, rgba(74, 222, 128, 0.07) 0%, transparent 70%); }
.portfolio-card:nth-child(4)::before { background: radial-gradient(ellipse at 60% 60%, rgba(56, 189, 248, 0.07) 0%, transparent 70%); }
.portfolio-card:nth-child(5)::before { background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 70%); }

.portfolio-card:hover::before { opacity: 1; }
.portfolio-card:hover { background: #050505; }

.card-top { position: relative; z-index: 1; }

.card-logo {
  height: clamp(200px, 24vw, 320px);
  width: auto;
  max-width: 90%;
  display: block;
  margin: 0 auto 32px auto;
  opacity: 0.9;
  filter: grayscale(100%) brightness(1.3);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.portfolio-card:hover .card-logo {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

.card-category {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-category::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0.7;
}

/* Category color variants */
.card-category.brand { color: var(--leaf); }
.card-category.brand::before { background: var(--leaf); }
.card-category.marketplace { color: var(--sky); }
.card-category.marketplace::before { background: var(--sky); }

.card-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.card-desc {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: #bbb;
  max-width: 440px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  padding-top: 32px;
}

.card-url {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #777;
  border-bottom: 1px solid #222;
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover .card-url { color: #ccc; border-color: #555; }

.card-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.card-arrow svg { width: 18px; height: 18px; color: #666; transition: color 0.3s ease; }
.portfolio-card:hover .card-arrow { border-color: var(--ember); transform: translate(2px, -2px); }
.portfolio-card:hover .card-arrow svg { color: var(--ember); }

/* Featured full-width card (5th company) */
.portfolio-card.featured { grid-column: 1 / -1; min-height: clamp(300px, 32vh, 400px); }

.portfolio-card.featured .card-top {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 1.2fr;
  column-gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.portfolio-card.featured .card-logo {
  grid-row: 1 / span 3;
  grid-column: 1;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0;
}

.portfolio-card.featured .card-desc { max-width: 560px; }

/* ===================== ABOUT ===================== */
.about { border-top: 1px solid var(--graphite); }
.about.standalone { border-top: 0; }

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 160px);
  align-items: start;
}

.about-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 32px;
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 40px;
}

.about-heading em { font-style: italic; color: var(--ember); }

.about-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: #ddd;
}

.about-body p + p { margin-top: 24px; }

.about-body a {
  color: var(--ember);
  border-bottom: 1px solid rgba(99,102,241,0.3);
  transition: border-color 0.3s ease;
}

.about-body a:hover { border-bottom-color: var(--ember); }

.about-right { position: relative; padding-top: 40px; }

.about-accolade {
  padding: 36px 40px;
  border: 1px solid var(--graphite);
  background: #000;
}

.about-accolade-number {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 8px;
}

.about-accolade-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  line-height: 1.6;
}

/* ===================== CONTACT ===================== */
.contact { border-top: 1px solid var(--graphite); text-align: center; }
.contact.standalone { border-top: 0; }

.contact-inner { max-width: 700px; margin: 0 auto; }

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}

.contact-heading em { font-style: italic; color: var(--ember); }

.contact-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: #ccc;
  margin-bottom: 56px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  padding: 20px 40px;
  border: 1px solid #222;
  transition: border-color 0.4s ease, background 0.4s ease, gap 0.4s var(--ease-out-expo);
}

.contact-link:hover { border-color: var(--ember); background: rgba(99, 102, 241, 0.06); gap: 22px; }
.contact-link svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out-expo); }
.contact-link:hover svg { transform: translateX(3px); }

/* ===================== FOOTER ===================== */
.footer {
  padding: 40px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--graphite);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #555;
}

.footer-right { display: flex; gap: 32px; }

.footer-link {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  transition: color 0.3s ease;
}

.footer-link:hover { color: #fff; }

/* ===================== ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

.hero .hero-content .hero-eyebrow,
.hero .hero-content .hero-headline,
.hero .hero-content .hero-sub,
.hero .hero-content .hero-cta {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEnter 1s var(--ease-out-expo) forwards;
}

.hero .hero-content .hero-eyebrow { animation-delay: 0.3s; }
.hero .hero-content .hero-headline { animation-delay: 0.5s; }
.hero .hero-content .hero-sub { animation-delay: 0.7s; }
.hero .hero-content .hero-cta { animation-delay: 0.9s; }

@keyframes heroEnter { to { opacity: 1; transform: translateY(0); } }

.hero-scroll { opacity: 0; animation: heroEnter 0.8s var(--ease-out-expo) 1.3s forwards; }

.portfolio-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), background 0.5s ease;
}

.portfolio-card.visible { opacity: 1; transform: translateY(0); }
.portfolio-card:nth-child(2).visible { transition-delay: 0.12s; }
.portfolio-card:nth-child(3).visible { transition-delay: 0.24s; }
.portfolio-card:nth-child(4).visible { transition-delay: 0.36s; }
.portfolio-card:nth-child(5).visible { transition-delay: 0.48s; }

.section-line {
  position: absolute;
  top: 0;
  left: clamp(24px, 4vw, 64px);
  width: 1px;
  height: 0;
  background: var(--graphite);
  transition: height 1.2s var(--ease-out-expo);
}

.section-line.drawn { height: 80px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav { height: 80px; padding-top: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .hero {
    min-height: 100vh;
    padding-bottom: 48px;
    padding-top: 90px;
    justify-content: flex-start;
  }

  .hero-split { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; padding-bottom: 0; padding-top: 10px; justify-content: center; }
  .wheel-container { width: 55vw; height: 55vw; max-width: 280px; max-height: 280px; }

  .hero-headline { font-size: 2.8rem; line-height: 1.1; }
  .hero-eyebrow { margin-bottom: 24px; gap: 4px; }
  .eyebrow-top { font-size: 0.62rem; letter-spacing: 0.24em; }
  .eyebrow-rank { font-size: 1.85rem; }
  .eyebrow-sub { font-size: 0.72rem; }
  .hero-sub { font-size: 0.95rem; }

  .page-header { padding: 130px 20px 56px; }
  .page-title { font-size: 2.6rem; }
  .page-lede { font-size: 1rem; }

  .thesis-inner { grid-template-columns: 1fr; gap: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: auto; padding: 36px 24px; }
  .portfolio-card.featured .card-top { display: block; }
  .portfolio-card.featured .card-logo { width: 100%; max-width: 420px; height: auto; margin: 0 auto 28px auto; }
  .card-logo { height: 220px; max-width: 90%; margin: 0 auto 28px auto; }
  .card-name { font-size: 1.6rem; }
  .card-category { font-size: 0.75rem; }
  .card-desc { font-size: 0.95rem; }
  .card-url { font-size: 0.75rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about-right { padding-top: 0; }
  .about-heading { font-size: 1.8rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .contact-heading { font-size: 2.2rem; }
  .footer { flex-direction: column; gap: 20px; text-align: center; }
  .hero-scroll { display: none; }
  .section { padding: 60px 20px; }
}

@media (max-width: 480px) {
  .nav { padding: 0 16px; }
  .nav-logo-img { height: 40px; }
  .hero { padding: 0 16px; padding-bottom: 40px; padding-top: 80px; }
  .hero-headline { font-size: 2.2rem; }
  .hero-eyebrow { margin-bottom: 20px; gap: 3px; }
  .eyebrow-top { font-size: 0.56rem; letter-spacing: 0.2em; }
  .eyebrow-rank { font-size: 1.65rem; }
  .eyebrow-sub { font-size: 0.68rem; }
  .hero-sub { font-size: 0.9rem; }
  .wheel-container { width: 60vw; height: 60vw; max-width: 250px; max-height: 250px; }
  .section { padding: 48px 16px; }
  .page-header { padding: 110px 16px 48px; }
  .page-title { font-size: 2.1rem; }
  .card-logo { height: 180px; }
  .portfolio-card.featured .card-logo { max-width: 360px; }
  .card-name { font-size: 1.4rem; }
  .stats { grid-template-columns: 1fr; }
  .portfolio-title { font-size: 1.8rem; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mobile-menu-link { font-size: 1.8rem; padding: 20px 0; }
}

body.menu-open { overflow: hidden; }
