/* ===== VARIABLES ===== */
:root {
  --sky: #BCD8EC;
  --sky-dark: #1d3f5e;
  --sky-mid: #7aadce;
  --sky-deeper: #2a6090;
  --pink: #FFCBE1;
  --pink-deep: #e06fa0;
  --green-soft: #D6E5BD;
  --green-deep: #6a9a40;
  --yellow: #F9E1A8;
  --yellow-deep: #d4a52a;
  --lavender: #DCCCE8;
  --lavender-deep: #8a5faa;
  --peach: #FFDAB4;
  --peach-deep: #d4783a;
  --cream: #f7fbfd;
  --white: #ffffff;
  --text: #1a3448;
  --text-mid: #3a607a;
  --text-light: #4a7896;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); overflow-x: hidden; cursor: auto; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== 4-POINT STAR CURSOR ===== */
.cursor {
  width: 24px; height: 24px;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s;
}
.cursor svg { width: 100%; height: 100%; transition: transform .2s; }
.cursor.hover svg { transform: scale(1.8) rotate(45deg); }

/* ===== SCROLL PROGRESS + SHOOTING STAR LEAD ===== */
.scroll-progress {
  position: fixed; top: 60px; left: 0; height: 3px;
  background: linear-gradient(to right, var(--sky), var(--pink-deep));
  z-index: 99; transition: width .1s linear;
  overflow: visible;
}
.scroll-progress::after {
  content: '✦';
  position: absolute; right: -10px; top: -9px;
  font-size: 14px; color: white;
  filter: drop-shadow(0 0 5px white) drop-shadow(0 0 10px var(--sky));
  line-height: 1;
  animation: starPulse 1s ease-in-out infinite alternate;
}
@keyframes starPulse {
  from { transform: scale(0.9); filter: drop-shadow(0 0 4px white); }
  to   { transform: scale(1.2); filter: drop-shadow(0 0 10px white) drop-shadow(0 0 16px var(--sky)); }
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,251,253,0.92); backdrop-filter: blur(14px);
  padding: 0 48px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(188,216,236,0.5);
}
.nav-logo { font-family: var(--font-display); font-size: 1.1rem; color: var(--sky-dark); font-weight: 700; position: relative; }
.nav-logo .nav-star { display: inline-block; color: var(--sky-deeper); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-mid); font-size: 0.84rem;
  font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--sky-mid); transition: width .2s;
}
.nav-links a:hover { color: var(--sky-deeper); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--sky-dark) !important; color: white !important;
  padding: 6px 20px; border-radius: 100px;
}
.nav-cta:hover { background: var(--sky-deeper) !important; }
.nav-cta::after { display: none !important; }

.nav-star-fly { display: none; }


/* ===== NAV STAR FLYER ===== */
#nav-star-flyer {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  display: flex; align-items: center;
  opacity: 0;
  will-change: left, top, opacity;
}
#nav-star-flyer .flyer-beam {
  height: 2px; width: 0;
  background: linear-gradient(to right, transparent, white 60%);
  border-radius: 100px;
  transition: width 0.1s;
}
#nav-star-flyer .flyer-star {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  filter: drop-shadow(0 0 6px white) drop-shadow(0 0 12px var(--sky));
  line-height: 1;
  flex-shrink: 0;
}

/* Nav star glow state */
.nav-star.glowing {
  animation: navStarSettle 0.8s ease-out forwards;
}
@keyframes navStarSettle {
  0%   { filter: drop-shadow(0 0 24px white) drop-shadow(0 0 40px var(--sky)); transform: scale(1.6); }
  60%  { filter: drop-shadow(0 0 10px white); transform: scale(1.2); }
  100% { filter: none; transform: scale(1); color: var(--sky-deeper); }
}

/* ===== STARS ===== */
.star {
  position: absolute; border-radius: 50%; background: white;
  animation: twinkle 3s infinite;
}
@keyframes twinkle {
  0%,100% { opacity: .1; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.5); }
}

/* ===== SHOOTING STAR ===== */
.shooting-star {
  position: absolute;
  top: 48%; left: -180px;
  width: 160px; height: 2px;
  background: linear-gradient(to right, transparent, white 60%, rgba(255,255,255,.4));
  border-radius: 100px;
  animation: shootOnce 3.5s cubic-bezier(.2,.6,.4,1) 0.05s forwards;
  pointer-events: none;
  opacity: 0;
}
.shooting-star::after {
  content: '✦';
  position: absolute; right: -14px; top: -8px;
  font-size: 13px; color: white;
  filter: drop-shadow(0 0 8px white) drop-shadow(0 0 3px var(--sky));
}
@keyframes shootOnce {
  0%   { left: -180px; opacity: 0; }
  4%   { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: 108vw; opacity: 0; }
}

/* ===== STRING LIGHTS ===== */
.string-lights { display: flex; justify-content: space-around; align-items: flex-start; padding: 0 16px; position: relative; }
.string-lights::before {
  content: ''; position: absolute; top: 7px; left: 0; right: 0;
  height: 1.5px; background: rgba(255,255,255,.2);
}
.bulb {
  width: 11px; height: 15px; border-radius: 50% 50% 40% 40%;
  position: relative; animation: glowBright 1.6s ease-in-out infinite alternate;
}
.bulb:nth-child(5n+1) { background: var(--pink); color: var(--pink); }
.bulb:nth-child(5n+2) { background: var(--yellow); color: var(--yellow); }
.bulb:nth-child(5n+3) { background: var(--sky); color: var(--sky); }
.bulb:nth-child(5n+4) { background: var(--peach); color: var(--peach); }
.bulb:nth-child(5n)   { background: var(--lavender); color: var(--lavender); }
.bulb:nth-child(even) { animation-name: glowDim; }
.bulb::before {
  content: ''; width: 5px; height: 5px;
  background: rgba(255,255,255,.3); position: absolute;
  top: -5px; left: 50%; transform: translateX(-50%); border-radius: 2px;
}
@keyframes glowBright {
  from { box-shadow: 0 0 2px 0 currentColor; opacity: 0.3; }
  to   { box-shadow: 0 0 20px 6px currentColor, 0 0 36px 12px currentColor; opacity: 1; }
}
@keyframes glowDim {
  from { box-shadow: 0 0 20px 6px currentColor, 0 0 36px 12px currentColor; opacity: 1; }
  to   { box-shadow: 0 0 2px 0 currentColor; opacity: 0.3; }
}

/* ===== HERO ===== */
#hero {
  height: auto; min-height: max(72vh, 460px); padding-top: 85px;
  background: var(--sky-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 25% 70%, rgba(188,216,236,.15) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 20%, rgba(255,203,225,.1) 0%, transparent 50%);
}
.hero-lights { position: absolute; top: 60px; left: 0; right: 0; }
.hero-stars  { position: absolute; inset: 0; pointer-events: none; }

.gate {
  position: relative; z-index: 2;
  text-align: center; padding: 0 40px 65px;
  max-width: 820px;
}
/* Flows normally above the heading so it never overlaps at short/odd
   aspect ratios, with the same gap as the subtitle-to-button spacing */
.gate-sign {
  display: inline-block;
  margin: 0 0 12px;
  white-space: nowrap;
  z-index: 3;
  background: rgba(188,216,236,.12); border: 1px solid rgba(188,216,236,.3);
  border-radius: 100px; padding: 5px 18px;
  font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--sky); letter-spacing: .18em; text-transform: uppercase;
}

/* Animated hero text */
.hero-text-wrap { overflow: hidden; }
.gate h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--white); line-height: 1.2; margin-bottom: 18px;
  word-spacing: 0.08em;
}
.gate h1 .word {
  display: inline-block;
  white-space: pre;
  opacity: 0; transform: translateY(40px);
  animation: wordUp 0.45s ease-out forwards;
}
.gate h1 em { font-style: normal; color: var(--sky); }
.gate-subtitle {
  font-size: 1rem; color: rgba(188,216,236,.75);
  line-height: 1.75; max-width: 520px; margin: 0 auto 12px;
  opacity: 0; animation: fadeIn .6s forwards;
  animation-delay: 1.2s;
}
@keyframes wordUp {
  0%   { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.btn-ticket {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sky); color: var(--sky-dark);
  font-weight: 700; font-size: 0.95rem; padding: 12px 30px;
  border-radius: 100px; border: none; cursor: none;
  transition: all .25s;
  opacity: 0; animation: fadeIn .5s forwards; animation-delay: 1.7s;
}
.btn-ticket:hover { background: var(--pink); color: var(--sky-dark); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255,203,225,.45); }

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(188,216,236,.4); font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: .12em;
  animation: bounce 2.2s infinite; animation-delay: 2s;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

/* ===== SCALLOP ===== */
.scallop { width: 100%; overflow: hidden; line-height: 0; }
.scallop svg { display: block; }

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block; background: var(--sky); color: var(--sky-dark);
  font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 100px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1;
}

/* ===== PROJECTS HEADER ===== */
.projects-header {
  background: var(--cream); text-align: center; padding: 18px 48px 0;
}
.projects-label {
  font-size: 1.15rem !important; padding: 10px 28px !important;
  letter-spacing: .1em !important; margin-bottom: 0 !important;
}
.projects-header p { color: var(--text-light); font-size: 0.9rem; margin-top: 6px; }

/* ===== FERRIS SECTION ===== */
#ferris-section { background: var(--cream); min-height: 600vh; position: relative; }

.ferris-sticky {
  position: sticky; top: 60px;
  height: min(calc(100vh - 60px), 700px);
  display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
  padding-top: 0;
}
.ferris-inner {
  display: flex; align-items: center; width: 100%; height: 100%;
  transition: all .9s cubic-bezier(.25,.46,.45,.94);
}

/* wheel side */
.ferris-wheel-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; width: 100%;
  transition: width .9s cubic-bezier(.25,.46,.45,.94);
  padding: 8px 40px;
}
.ferris-inner.split .ferris-wheel-side { width: 40%; }

.ferris-svg-wrap {
  width: 100%; max-width: 640px;
  filter: drop-shadow(0 20px 60px rgba(42,96,144,.15));
  transition: max-width .9s cubic-bezier(.25,.46,.45,.94);
}
.ferris-inner.split .ferris-svg-wrap { max-width: 430px; }

/* preview side */
.ferris-preview-side {
  width: 60%; flex-shrink: 0;
  padding: 24px 48px 24px 16px;
  opacity: 0; transform: translateX(48px);
  transition: opacity .6s ease .25s, transform .6s ease .25s;
  pointer-events: none;
}
.ferris-inner.split .ferris-preview-side {
  opacity: 1; transform: translateX(0); pointer-events: all;
}

/* preview card */
.preview-card {
  background: white; border-radius: 22px;
  box-shadow: 0 20px 70px rgba(29,63,94,.1);
  overflow: hidden; border: 1.5px solid rgba(188,216,236,.4);
  opacity: 0; transform: translateY(20px) scale(.94);
  transform-origin: left center;
  transition: opacity .45s ease, transform .45s cubic-bezier(.25,.46,.45,.94);
}
.preview-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.preview-card-inner {
  display: grid; grid-template-columns: 440px 1fr; min-height: 520px;
}

/* Gondola-to-card morph ghost */
.gondola-morph {
  position: fixed; z-index: 200; pointer-events: none;
  opacity: 0; box-sizing: border-box;
  border: 2px solid rgba(42,96,144,.35);
  box-shadow: 0 20px 70px rgba(29,63,94,.1);
  transition:
    left .6s cubic-bezier(.25,.46,.45,.94),
    top .6s cubic-bezier(.25,.46,.45,.94),
    width .6s cubic-bezier(.25,.46,.45,.94),
    height .6s cubic-bezier(.25,.46,.45,.94),
    border-radius .6s cubic-bezier(.25,.46,.45,.94),
    border-color .6s ease,
    box-shadow .6s ease,
    background-color .55s ease,
    opacity .3s ease .3s;
}
.preview-img {
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; position: relative; overflow: hidden;
}

/* ===== ANIMATED DEVICE MOCKUP PREVIEWS ===== */
.preview-stage {
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 32px 28px; min-height: 460px;
}
.device-browser {
  width: 100%; max-width: 390px;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 22px 48px rgba(29,63,94,.28);
}
.device-browser-bar {
  height: 24px; background: #e9eff5;
  display: flex; align-items: center; gap: 5px; padding: 0 11px;
  border-bottom: 1px solid rgba(29,63,94,.08);
}
.device-browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: #c2d3e1; }
.device-screen { position: relative; height: 250px; overflow: hidden; background: #fff; }
.device-browser .device-screen { height: auto; aspect-ratio: 1512 / 790; }
.device-screen > video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.device-screen > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  animation: panScreen 20s ease-in-out infinite alternate;
}
@keyframes panScreen {
  0%, 6%   { object-position: center top; }
  94%,100% { object-position: center bottom; }
}
/* Multi-image laptop screens (crossfade + scroll pan) */
.device-screen.multi > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0;
  animation: laptopFade 28s infinite, panScreen 28s ease-in-out infinite alternate;
}
.device-screen.multi > img:first-child { opacity: 1; }
.device-screen.multi > img:nth-child(2) {
  animation: laptopFade 28s infinite, tallScreenScroll 28s infinite;
  animation-delay: 14s, 14s;
}
@keyframes laptopFade {
  0%   { opacity: 1; }
  42%  { opacity: 1; }
  50%  { opacity: 0; }
  92%  { opacity: 0; }
  100% { opacity: 1; }
}
/* Slow continuous scroll for tall full-page screenshots, timed to its visible window */
@keyframes tallScreenScroll {
  0%, 2%    { object-position: center top; }
  48%, 52%  { object-position: center bottom; }
  98%, 100% { object-position: center top; }
}
.device-phone {
  width: 160px; border-radius: 28px;
  background: #1d3f5e; padding: 9px;
  box-shadow: 0 22px 48px rgba(29,63,94,.32);
}
.device-phone .device-screen { height: 322px; border-radius: 20px; }
.device-phone .device-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0; animation: phoneScreens 8s infinite;
}
@keyframes phoneScreens {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  19%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}
.preview-cursor {
  position: absolute; width: 15px; height: 15px; z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(29,63,94,.45));
  animation: cursorPath 11s ease-in-out infinite;
}
@keyframes cursorPath {
  0%   { left: 22%; top: 30%; }
  22%  { left: 64%; top: 42%; }
  45%  { left: 38%; top: 68%; }
  70%  { left: 70%; top: 24%; }
  100% { left: 22%; top: 30%; }
}
@keyframes cursorPath2 {
  0%   { left: 72%; top: 26%; }
  28%  { left: 30%; top: 34%; }
  55%  { left: 46%; top: 74%; }
  80%  { left: 20%; top: 60%; }
  100% { left: 72%; top: 26%; }
}
@keyframes cursorPath3 {
  0%   { left: 28%; top: 70%; }
  30%  { left: 66%; top: 64%; }
  60%  { left: 58%; top: 22%; }
  85%  { left: 24%; top: 30%; }
  100% { left: 28%; top: 70%; }
}
.preview-cursor.path-2 { animation-name: cursorPath2; animation-duration: 13.5s; }
.preview-cursor.path-3 { animation-name: cursorPath3; animation-duration: 9.5s; }
@media (prefers-reduced-motion: reduce) {
  .device-screen > img, .device-phone .device-screen img, .preview-cursor { animation: none !important; }
  .device-screen.multi > img:first-child { opacity: 1; }
  .device-phone .device-screen img:first-child { opacity: 1; }
  .gondola-morph { display: none !important; }
  .preview-cursor { display: none; }
}
.preview-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.preview-num {
  font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--sky-deeper); letter-spacing: .18em; margin-bottom: 10px;
}
.preview-title { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 12px; color: var(--text); }
.preview-desc { font-size: 0.93rem; line-height: 1.78; color: var(--text-mid); margin-bottom: 20px; }
.preview-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.preview-tag {
  background: var(--sky); color: var(--sky-dark);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .08em;
  padding: 5px 13px; border-radius: 100px;
}
.btn-view {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky-dark); color: white; font-size: 0.88rem;
  font-weight: 600; padding: 11px 24px; border-radius: 100px;
  transition: all .2s; width: fit-content;
}
.btn-view:hover { background: var(--sky-deeper); transform: translateY(-2px); }

.ferris-hint {
  margin-top: 0;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-light); letter-spacing: .13em; white-space: nowrap;
  opacity: 1; max-height: 30px; overflow: hidden;
  transition: opacity .4s, max-height .4s, margin-top .4s;
}
.ferris-inner.split .ferris-hint { opacity: 0; max-height: 0; margin-top: 0; pointer-events: none; }

/* gondola states */
.gondola-group { cursor: pointer; }
.gondola-group.active .gondola-rect { stroke-width: 3; filter: brightness(1.05); }
.gondola-outer.active-outer { filter: drop-shadow(0 6px 16px rgba(255,203,225,.6)); }

/* gondola counter-rotation outer — CSS transition matches wheel */
.gondola-outer {
  transition: transform 0.85s cubic-bezier(.25,.46,.45,.94);
}

/* gondola sway — pinned to top-center of its own bounding box */
@keyframes gondolaSway {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(3deg); }
  45%  { transform: rotate(-2.5deg); }
  65%  { transform: rotate(1.5deg); }
  82%  { transform: rotate(-0.8deg); }
  92%  { transform: rotate(0.3deg); }
  100% { transform: rotate(0deg); }
}
.gondola-sway {
  animation: gondolaSway 2.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transform-box: fill-box;
  transform-origin: 50% 0%;
}

/* ===== MARKETING DESIGNS ===== */
#marketing { background: var(--white); padding: 88px 48px; }
.marketing-inner { max-width: 1100px; margin: 0 auto; }
.marketing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px;
}
.marketing-card {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(29,63,94,.08);
  border: 1.5px solid rgba(188,216,236,.3);
  transition: transform .3s, box-shadow .3s;
  aspect-ratio: 4/5;
  display: flex; flex-direction: column;
}
.marketing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(29,63,94,.14); }
.marketing-card img { width: 100%; height: 100%; object-fit: cover; }
.marketing-card-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  font-size: 2.5rem;
}
.marketing-card:nth-child(1) .marketing-card-placeholder { background: var(--pink); }
.marketing-card:nth-child(2) .marketing-card-placeholder { background: var(--yellow); }
.marketing-card:nth-child(3) .marketing-card-placeholder { background: var(--peach); }
.marketing-card-caption {
  padding: 16px 20px; background: white;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-mid); letter-spacing: .06em;
}

/* ===== ABOUT ===== */
#about { background: var(--cream); padding: 88px 48px; }
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; max-width: 380px; border-radius: 24px; overflow: hidden;
  border: 3px solid var(--sky); box-shadow: 0 20px 60px rgba(188,216,236,.3);
  position: relative; z-index: 1;
}
.about-photo img { width: 100%; height: 460px; object-fit: cover; object-position: center top; }
.about-photo-placeholder {
  width: 100%; height: 460px;
  background: linear-gradient(135deg, var(--sky), var(--sky-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 5rem; color: white;
}
.about-deco  { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--pink); top: -20px; right: -20px; z-index: 0; opacity: .5; }
.about-deco2 { position: absolute; width: 80px;  height: 80px;  border-radius: 50%; background: var(--yellow); bottom: -12px; left: -12px; z-index: 0; opacity: .45; }

.about-content .section-title { margin-bottom: 18px; }
.about-content p { font-size: 0.97rem; line-height: 1.85; color: var(--text-mid); margin-bottom: 16px; }

/* Skills grouped */
.skills-group { margin-top: 28px; }
.skills-group-label {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .12em;
  color: var(--text-light); text-transform: uppercase; margin-bottom: 10px;
}
.skills-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.skill-pill {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: .05em;
  padding: 7px 16px; border-radius: 100px; transition: all .2s; border: 1.5px solid transparent;
}
.skill-pill.blue   { background: var(--sky);      color: var(--sky-dark);    border-color: var(--sky-mid); }
.skill-pill.pink   { background: var(--pink);     color: var(--sky-dark);    border-color: var(--pink-deep); }
.skill-pill.green  { background: var(--green-soft); color: var(--sky-dark);  border-color: var(--green-deep); }
.skill-pill.yellow { background: var(--yellow);   color: var(--sky-dark);    border-color: var(--yellow-deep); }
.skill-pill.lav    { background: var(--lavender); color: var(--sky-dark);    border-color: var(--lavender-deep); }
.skill-pill.peach  { background: var(--peach);    color: var(--sky-dark);    border-color: var(--peach-deep); }
.skill-pill:hover  { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* ===== PERSONAL / ART ===== */
#personal { background: var(--white); padding: 88px 48px; }
.personal-inner { max-width: 1000px; margin: 0 auto; }
.personal-text {
  font-size: 1.05rem; line-height: 1.9; color: var(--text-mid);
  max-width: 680px; margin: 20px 0 56px;
}
.personal-text strong { color: var(--sky-dark); font-weight: 700; }

/* Art carousel */
.art-carousel-wrap { position: relative; overflow: hidden; }
.art-carousel-track {
  display: flex; gap: 20px;
  animation: scrollCarousel 32s linear infinite;
  width: max-content;
}
.art-carousel-wrap:hover .art-carousel-track { animation-play-state: paused; }
@keyframes scrollCarousel {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.art-card {
  width: 220px; height: 280px; flex-shrink: 0;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(29,63,94,.1);
  transition: transform .3s, box-shadow .3s;
}
.art-card:hover { transform: scale(1.04) rotate(-1deg); box-shadow: 0 16px 48px rgba(29,63,94,.16); }
.art-card img { width: 100%; height: 100%; object-fit: cover; }
.art-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.art-placeholder span { font-size: 2.8rem; }

/* ===== FOOTER / CONTACT ===== */
footer {
  background: var(--sky-dark); padding: 90px 48px 48px; text-align: center;
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(188,216,236,.12);
}
.footer-inner { position: relative; z-index: 1; }
footer .footer-cta-label { margin-bottom: 16px; }
footer h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 14px; }
footer h2 span { color: var(--sky); }
footer .footer-sub { color: rgba(188,216,236,.8); font-size: 0.97rem; line-height: 1.78; margin-bottom: 44px; max-width: 440px; margin-left: auto; margin-right: auto; }

.contact-stubs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.stub {
  display: flex; align-items: center; gap: 12px;
  background: rgba(188,216,236,.07); border: 1px solid rgba(188,216,236,.18);
  color: var(--white); padding: 14px 22px; border-radius: 14px;
  font-size: 0.88rem; transition: all .3s; position: relative; overflow: hidden;
}
.stub::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sky); }
.stub:hover { background: rgba(188,216,236,.14); border-color: var(--sky); transform: translateY(-4px); }
.stub-icon { font-size: 1.15rem; display: flex; align-items: center; }
.stub-icon svg { width: 20px; height: 20px; }
.stub-label { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,.65); display: block; }
.stub-value { font-size: 0.84rem; font-weight: 600; }

.cta-buttons-footer { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--sky);
  font-size: 0.95rem; font-weight: 600; padding: 12px 26px;
  border-radius: 100px; border: 1.5px solid var(--sky); cursor: none; transition: all .2s;
}
.btn-secondary:hover { background: var(--sky); color: var(--sky-dark); }

.footer-tagline {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: rgba(255,255,255,.88);
  letter-spacing: .14em; margin-top: 28px;
}
.footer-wave { font-size: 1.6rem; margin-top: 6px; animation: wave 2s ease-in-out infinite; display: inline-block; }
@keyframes wave { 0%,100%{transform:rotate(0)} 25%{transform:rotate(18deg)} 75%{transform:rotate(-10deg)} }

/* ===== BACK TO TOP — DROP TOWER ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 56px; height: 110px;
  background: none; border: none;
  cursor: none; z-index: 998;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s, transform .35s;
  overflow: visible; padding: 0;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover .btt-svg { filter: drop-shadow(0 0 8px rgba(188,216,236,.6)); }
.back-to-top:focus-visible { outline: 3px solid var(--sky); outline-offset: 6px; border-radius: 8px; }

.btt-svg { width: 56px; height: 96px; overflow: visible; display: block; }

/* The car rect inside SVG animated on launch */
.btt-car-group {
  transition: transform 0s;
}
.back-to-top.launching .btt-car-group {
  animation: dropTowerLaunch 0.8s cubic-bezier(.15,.85,.35,1) forwards;
}
@keyframes dropTowerLaunch {
  0%   { transform: translateY(0); opacity: 1; }
  10%  { transform: translateY(4px); }
  60%  { transform: translateY(-62px); opacity: 1; }
  80%  { transform: translateY(-58px); opacity: 0.5; }
  100% { transform: translateY(-65px); opacity: 0; }
}

/* Label */
.tower-label {
  display: none;
}

/* ===== RESUME PAGE ===== */
.resume-page { min-height: 100vh; background: var(--cream); padding-top: 60px; }
.resume-hero { background: var(--sky-dark); padding: 56px 48px 72px; text-align: center; position: relative; overflow: hidden; }
/* Gate-sign is absolutely positioned in the home hero; on the resume page it
   must flow normally so it never overlaps the name */
.resume-hero .gate-sign {
  position: static; transform: none; display: inline-block;
}
.resume-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem,5vw,3.8rem); color: var(--white); margin-bottom: 10px; }
.resume-hero p { color: rgba(188,216,236,.6); font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: .14em; margin-bottom: 28px; }
.all-access-badge {
  display: inline-flex; align-items: center; gap: 16px;
  background: rgba(188,216,236,.09); border: 1.5px solid rgba(188,216,236,.28);
  border-radius: 16px; padding: 18px 28px; color: var(--white); max-width: 500px;
}
.badge-icon { font-size: 2.8rem; }
.badge-label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: .18em; color: var(--sky); text-transform: uppercase; }
.badge-name { font-family: var(--font-display); font-size: 1.4rem; }
.badge-role { font-size: 0.82rem; color: rgba(255,255,255,.5); }

.resume-content { max-width: 900px; margin: 0 auto; padding: 56px 48px; }
.resume-section { margin-bottom: 48px; }
.resume-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1.5px solid rgba(188,216,236,.35); }
.resume-section-icon { font-size: 1.3rem; }
.resume-section-title { font-family: var(--font-display); font-size: 1.45rem; color: var(--sky-deeper); }

.resume-entry { margin-bottom: 26px; padding-left: 18px; border-left: 2.5px solid var(--sky); }
.resume-entry-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 3px; }
.resume-entry-title { font-weight: 700; font-size: 0.97rem; }
.resume-entry-org { color: var(--sky-deeper); font-size: 0.88rem; font-weight: 600; margin-bottom: 3px; }
.resume-entry-date { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-light); white-space: nowrap; margin-left: 14px; flex-shrink: 0; }
.resume-entry ul { list-style: none; padding: 0; margin-top: 8px; }
.resume-entry ul li { font-size: 0.9rem; line-height: 1.72; color: var(--text-mid); padding-left: 16px; position: relative; margin-bottom: 5px; }
.resume-entry ul li::before { content: '◆'; position: absolute; left: 0; font-size: 0.42rem; top: 7px; color: var(--sky-mid); }
.resume-entry-desc { font-size: 0.9rem; line-height: 1.72; color: var(--text-mid); margin-top: 7px; }
.resume-link { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--sky-deeper); border-bottom: 1px dashed var(--sky-mid); }

.ribbon-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.ribbon {
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  padding: 8px 17px; border-radius: 8px; transition: all .2s;
}
.ribbon.blue   { background: var(--sky);        color: var(--sky-dark); }
.ribbon.pink   { background: var(--pink);       color: var(--sky-dark); }
.ribbon.green  { background: var(--green-soft); color: var(--sky-dark); }
.ribbon.yellow { background: var(--yellow);     color: var(--sky-dark); }
.ribbon.lav    { background: var(--lavender);   color: var(--sky-dark); }
.ribbon.peach  { background: var(--peach);      color: var(--sky-dark); }
.ribbon:hover  { transform: translateY(-2px); filter: brightness(1.05); }

/* ===== CASE STUDY PAGES ===== */
.cs-page { min-height: 100vh; background: var(--cream); padding-top: 60px; }

.cs-hero {
  padding: 72px 48px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.cs-hero .hero-stars { position: absolute; inset: 0; pointer-events: none; }
.cs-hero-inner { position: relative; z-index: 1; }
.cs-hero-emoji { font-size: 5rem; margin-bottom: 20px; display: block; }
.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white); line-height: 1.15; margin-bottom: 16px;
}
.cs-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  max-width: 580px; margin: 0 auto 32px; line-height: 1.75;
}
.cs-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(188,216,236,.15); border: 1px solid rgba(188,216,236,.35);
  color: var(--sky); font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: .1em; padding: 8px 18px; border-radius: 100px;
  transition: all .2s;
}
.cs-back:hover { background: rgba(188,216,236,.25); }

.cs-meta {
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  background: white; border-bottom: 1px solid rgba(188,216,236,.3);
}
.cs-meta-item {
  padding: 24px 36px; text-align: center;
  border-right: 1px solid rgba(188,216,236,.3);
}
.cs-meta-item:last-child { border-right: none; }
.cs-meta-label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .14em;
  color: var(--text-light); text-transform: uppercase; margin-bottom: 6px;
}
.cs-meta-value { font-size: 0.95rem; font-weight: 700; color: var(--text); }

.cs-body { max-width: 860px; margin: 0 auto; padding: 64px 48px; }
.cs-section { margin-bottom: 72px; }
.cs-section:last-child { margin-bottom: 0; }
.cs-section h2 {
  font-family: var(--font-display); font-size: 1.85rem;
  color: var(--sky-dark); margin-bottom: 20px;
  line-height: 1.25;
}
.cs-eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: #235273; background: var(--sky);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 14px;
}

/* Hero action buttons (back + live site) */
.cs-hero-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; align-items: center;
}
.cs-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky); color: var(--sky-dark);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: .1em; padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--sky); transition: all .2s;
}
.cs-live:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-2px); }

/* Sticky section nav (table of contents) */
.cs-toc {
  position: fixed; left: 28px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cs-toc.visible { opacity: 1; pointer-events: auto; }
.cs-toc a {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mid); padding: 5px 12px;
  border-left: 2px solid rgba(188,216,236,.45);
  transition: all .2s;
}
.cs-toc a:hover { color: var(--sky-deeper); }
.cs-toc a.active { color: var(--sky-deeper); border-left-color: var(--sky-deeper); font-weight: 600; }
@media (max-width: 1240px) { .cs-toc { display: none; } }

/* Phone screens grid (GooseConnect) */
.cs-phone-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px;
}
.cs-phone-grid figure {
  margin: 0; border-radius: 18px; overflow: hidden;
  background: var(--sky-dark); padding: 6px;
  box-shadow: 0 10px 30px rgba(29,63,94,.14);
}
.cs-phone-grid img { width: 100%; border-radius: 13px; display: block; }
.cs-section p { font-size: 0.97rem; line-height: 1.85; color: var(--text-mid); margin-bottom: 16px; }
.cs-section ul { list-style: none; padding: 0; }
.cs-section ul li {
  font-size: 0.95rem; line-height: 1.78; color: var(--text-mid);
  padding-left: 20px; position: relative; margin-bottom: 10px;
}
.cs-section ul li::before { content: '✦'; position: absolute; left: 0; color: var(--sky-mid); font-size: 0.6rem; top: 6px; }

.cs-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px;
}
.cs-card {
  background: white; border-radius: 18px; padding: 28px;
  border: 1.5px solid rgba(188,216,236,.35);
  box-shadow: 0 8px 28px rgba(29,63,94,.06);
}
.cs-card h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--sky-dark); margin-bottom: 12px;
}
.cs-card p { font-size: 0.91rem; color: var(--text-mid); line-height: 1.75; margin: 0; }

.cs-goals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px;
}
.cs-goal {
  background: white; border-radius: 16px; padding: 24px;
  border: 1.5px solid rgba(188,216,236,.35);
  text-align: center;
}
.cs-goal-num {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .16em;
  color: var(--sky-deeper); text-transform: uppercase; margin-bottom: 10px;
}
.cs-goal p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; margin: 0; }

.cs-highlight {
  background: var(--sky-dark); color: white;
  border-radius: 20px; padding: 36px 40px; margin: 32px 0;
}
.cs-highlight h3 {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--sky); margin-bottom: 14px;
}
.cs-highlight p { font-size: 0.95rem; line-height: 1.8; color: rgba(188,216,236,.85); margin: 0; }

.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cs-tag {
  background: var(--sky); color: var(--sky-dark);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 100px;
}

.cs-other-studies {
  background: var(--cream); padding: 64px 48px;
  border-top: 1px solid rgba(188,216,236,.3);
}
.cs-other-studies h2 {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--sky-dark); text-align: center; margin-bottom: 32px;
}
.cs-other-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 860px; margin: 0 auto;
}
.cs-other-card {
  background: white; border-radius: 16px; padding: 24px;
  border: 1.5px solid rgba(188,216,236,.3);
  transition: transform .3s, box-shadow .3s;
  display: block;
}
.cs-other-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(29,63,94,.1); }
.cs-other-emoji { font-size: 2.4rem; margin-bottom: 10px; }
.cs-other-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.cs-other-desc { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; }


/* ===== WCAG ACCESSIBILITY ===== */
/* Skip to main content */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--sky-dark); color: var(--sky);
  padding: 8px 18px; border-radius: 0 0 8px 8px;
  font-family: var(--font-mono); font-size: 0.84rem;
  transition: top .2s;
  border: 2px solid var(--sky);
}
.skip-link:focus { top: 0; }

/* Visible focus rings for keyboard nav */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Suppress outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* Ensure cursor:none doesn't break keyboard nav — 
   Only hide cursor when mouse is in use (JS toggles .using-mouse on body) */
body.using-mouse { cursor: none; }
body:not(.using-mouse) { cursor: auto; }
body.using-mouse .cursor { display: block; }
body:not(.using-mouse) .cursor { display: none; }

/* Gondola keyboard focus */
.gondola-outer:focus-visible .gondola-rect {
  stroke: var(--sky) !important; stroke-width: 3;
}



/* Preview card thumbnail */
.preview-img-wrap {
  position: relative; overflow: hidden;
  background: var(--cream);
}
.preview-thumb {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  position: absolute; inset: 0;
}
/* Square/portrait images — show full without any vertical crop */
.preview-thumb.preview-thumb--contain {
  object-fit: contain;
  padding: 12px;
}
.preview-img-wrap .preview-emoji-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}

/* ===== CASE STUDY THUMBNAILS ===== */
.cs-thumbs-section { }
.cs-thumb-grid { margin-top: 20px; }
.cs-thumb-fig {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1.5px solid rgba(188,216,236,.35);
  box-shadow: 0 8px 32px rgba(29,63,94,.1);
  background: var(--cream);
}
/* Horizontal crop only — max height prevents huge full-page images,
   object-position:top keeps the important top content visible */
.cs-thumb-img {
  width: 100%; display: block;
  border-radius: 0;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
}
/* For naturally short/landscape images that need no constraint */
.cs-thumb-img--full {
  max-height: none;
  object-fit: unset;
}
.cs-thumb-cap {
  display: block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--text-light); letter-spacing: .08em; text-align: center;
  font-style: italic;
}

/* ===== FADE UP ===== */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE NAV (hamburger, injected by JS) ===== */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; padding: 9px; border-radius: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: var(--sky-dark); transition: transform .25s, opacity .25s;
}
nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile project list (replaces the scroll-jacked ferris wheel) */
.projects-mobile { display: none; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  nav { padding: 0 18px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(247,251,253,0.98); backdrop-filter: blur(14px);
    flex-direction: column; gap: 0; padding: 8px 0 16px;
    border-bottom: 1px solid rgba(188,216,236,.5);
    box-shadow: 0 16px 40px rgba(29,63,94,.12);
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { text-align: center; }
  .nav-links a { display: inline-block; padding: 13px 20px; font-size: 0.92rem; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin-top: 8px; }

  #hero { height: auto; min-height: 78vh; padding-bottom: 56px; }
  .gate { padding: 0 24px 64px; }
  .gate-sign { font-size: 0.68rem; padding: 5px 14px; }
  .gate h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .gate-subtitle { font-size: 0.92rem; }
  .scroll-hint { bottom: 14px; }

  .projects-header { padding: 40px 20px 0; }
  .projects-label { font-size: 0.95rem !important; padding: 8px 20px !important; }

  /* Hide the scroll-jacked wheel; show stacked project cards instead */
  #ferris-section { display: none; }
  .projects-mobile { display: block; padding: 28px 18px 56px; background: var(--cream); }
  .projects-mobile .preview-card {
    opacity: 1; transform: none; margin-bottom: 24px;
  }
  .projects-mobile .preview-card:last-child { margin-bottom: 0; }

  .preview-card-inner { grid-template-columns: 1fr; min-height: 0; }
  .preview-stage { min-height: 0; padding: 26px 22px; }
  .device-browser { max-width: 320px; }
  .device-screen { height: 200px; }
  .device-phone .device-screen { height: 300px; }
  .preview-body { padding: 26px 22px 30px; }
  .preview-title { font-size: 1.55rem; }

  #marketing, #about, #personal { padding: 64px 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 100%; }
  .marketing-grid { grid-template-columns: 1fr; }

  footer { padding: 72px 20px 40px; }
  .contact-stubs { flex-direction: column; align-items: stretch; }
  .stub { justify-content: flex-start; }

  .resume-hero { padding: 44px 20px 56px; }
  .all-access-badge { padding: 14px 18px; gap: 12px; max-width: 100%; }
  .badge-icon { font-size: 2.1rem; }
  .badge-name { font-size: 1.15rem; }
  .badge-role { font-size: 0.74rem; }
  .resume-content { padding: 40px 20px; }
  .resume-entry-header { flex-direction: column; }
  .resume-entry-date { margin-left: 0; margin-top: 2px; }

  .cs-hero { padding: 52px 20px 60px; }
  .cs-hero-emoji { font-size: 3.6rem; margin-bottom: 14px; }
  .cs-hero p { font-size: 0.95rem; }
  .cs-body { padding: 44px 20px; }
  .cs-section { margin-bottom: 56px; }
  .cs-section h2 { font-size: 1.5rem; }
  .cs-two-col { grid-template-columns: 1fr; gap: 18px; }
  .cs-goals { grid-template-columns: 1fr !important; }
  .cs-other-studies { padding: 48px 20px; }
  .cs-other-grid { grid-template-columns: 1fr; }
  .cs-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .cs-meta-item { padding: 16px 12px; border-right: none; border-bottom: 1px solid rgba(188,216,236,.3); }
  .cs-highlight { padding: 26px 22px; }
  .cs-phone-grid { grid-template-columns: 1fr 1fr; }
  .cs-thumb-img { max-height: 360px; }

  .back-to-top { bottom: 18px; right: 14px; transform: scale(.85); transform-origin: bottom right; }
  .back-to-top.visible { transform: scale(.85); }
}

@media (max-width: 480px) {
  .gate h1 { word-spacing: 0.04em; }
  .cs-hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.7rem; }
}
