/* ---------- Tokens ---------- */
:root {
  --navy-900: #0F1B2D;
  --navy-800: #16273F;
  --navy-700: #1E3A5F;
  --navy-600: #2C5282;
  --orange-500: #F5893B;
  --orange-400: #F7A15F;
  --orange-050: #FFF3E8;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --ink: #0F172A;
  --ink-muted: #475569;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 27, 45, 0.16);
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; color: var(--ink-muted); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy-700); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; border-radius: 6px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
  z-index: 200; will-change: transform;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy-700); background: var(--bg-alt); }
/* sheen sweep */
.btn::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 600ms var(--ease); pointer-events: none;
}
.btn:hover::before { left: 130%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease), background 250ms var(--ease), transform 350ms var(--ease);
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.92); }
.site-header.hidden-up { transform: translateY(-100%); }
.header-inner { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; margin-right: auto; cursor: pointer; }
.brand-logo { height: 38px; width: auto; transition: transform 300ms var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); position: relative; padding: 6px 2px; transition: color 200ms var(--ease); }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange-500); transition: width 200ms var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--navy-700); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-700); border-radius: 2px; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 40px) 24px 100px;
  background: linear-gradient(180deg, #FBFCFE 0%, #F5F8FC 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 55%; height: 70%;
  background: radial-gradient(circle, rgba(245, 137, 59, 0.18), transparent 70%);
  filter: blur(20px); pointer-events: none; will-change: transform;
}
.hero-glow-2 {
  top: auto; bottom: -25%; right: auto; left: -12%; width: 50%; height: 65%;
  background: radial-gradient(circle, rgba(44, 82, 130, 0.14), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 800px; text-align: center; margin: 0 auto; }

.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--orange-050); color: var(--orange-500);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.2rem, 5.4vw, 3.75rem); color: var(--ink); margin-bottom: 22px; }
.text-accent { color: var(--orange-500); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tags span {
  font-size: 0.78rem; font-weight: 700; color: var(--navy-700);
  border: 1px solid var(--border); background: rgba(255,255,255,0.7);
  padding: 6px 14px; border-radius: 999px;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.hero-tags span:hover { transform: translateY(-3px); border-color: var(--orange-500); }

/* word-split reveal */
.js .word { display: inline-block; opacity: 0; transform: translateY(0.7em) rotate(2deg); }
.js .hero-title.in-view .word { animation: wordUp 760ms var(--ease) forwards; }
@keyframes wordUp { to { opacity: 1; transform: translateY(0) rotate(0); } }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span { display: block; width: 22px; height: 36px; border: 2px solid var(--border); border-radius: 999px; position: relative; }
.scroll-cue span::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--orange-500); border-radius: 999px;
  animation: scrollcue 1.8s infinite ease-in-out;
}
@keyframes scrollcue { 0%, 100% { opacity: 1; top: 6px; } 50% { opacity: 0.3; top: 16px; } }

/* ---------- Marquee ---------- */
.marquee-strip { background: var(--navy-700); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee-track {
  display: flex; gap: 14px; white-space: nowrap; width: max-content;
  animation: marquee 26s linear infinite;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em;
}
.marquee-track span:nth-child(even) { color: var(--orange-400); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark p { color: #A9B8CC; }
.section-tag { color: var(--orange-500); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 16px; max-width: 660px; }
.section-dark .section-title { color: #fff; }
.section-sub { font-size: 1.05rem; max-width: 620px; margin-bottom: 40px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-lg { grid-column: span 2; }
.bento-wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 20px; }
.bento-wide h3, .bento-wide p { grid-column: 2; }
.bento-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden;
  transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.bento-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(245,137,59,0.09), transparent 62%);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.bento-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.bento-card:hover::after { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--orange-050);
  color: var(--orange-500); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0; transition: transform 300ms var(--ease), background 300ms var(--ease);
}
.bento-card:hover .card-icon { transform: rotate(-6deg) scale(1.06); background: var(--orange-500); color: #fff; }
.card-icon svg { width: 24px; height: 24px; }
.bento-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--ink); }
.bento-card p { font-size: 0.95rem; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag-list li { font-size: 0.78rem; font-weight: 700; color: var(--navy-700); background: var(--bg-alt); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.inline-link { color: var(--orange-500); font-weight: 700; white-space: nowrap; }

/* ---------- Tilt ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform 400ms var(--ease); }
.tilt > * { transform: translateZ(0.01px); }

/* ---------- Image slots ---------- */
.shot {
  position: relative; overflow: hidden; border-radius: 14px;
  background: var(--bg-alt); border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
/* The image must stay in layout (not display:none) or lazy loading never fires:
   a display:none image has no viewport position, so the browser never fetches
   it, so .is-filled is never set — a deadlock that leaves the slot empty.
   Fade it in instead; .shot-empty sits on top until the file actually loads. */
.shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 400ms var(--ease), transform 600ms var(--ease);
}
.shot.is-filled img { opacity: 1; }
.shot.is-filled .shot-empty { display: none; }
.shot-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center;
  border-radius: 14px; color: var(--ink-muted);
  background-image: repeating-linear-gradient(45deg, rgba(245,137,59,0.05) 0 10px, transparent 10px 20px);
}
.shot-empty::before {
  content: ''; position: absolute; inset: 10px; border: 2px dashed var(--border); border-radius: 10px; pointer-events: none;
}
.shot-empty svg { width: 30px; height: 30px; color: var(--orange-500); opacity: 0.8; }
.shot-empty p { font-size: 0.85rem; font-weight: 700; color: var(--ink); margin: 0; }
.shot-empty code {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace; font-size: 0.72rem;
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; color: var(--ink-muted);
}
.shot-portrait { aspect-ratio: 4 / 5; }
.shot-dark { background: var(--navy-800); border-color: rgba(255,255,255,0.1); }
.shot-dark .shot-empty { color: #A9B8CC; }
.shot-dark .shot-empty::before { border-color: rgba(255,255,255,0.16); }
.shot-dark .shot-empty p { color: #fff; }
.shot-dark .shot-empty code { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #A9B8CC; }

/* ---------- Work / Projects ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.work-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.work-card .shot { border: none; border-radius: 0; border-bottom: 1px solid var(--border); }
.work-card:hover .shot.is-filled img { transform: scale(1.05); }
.work-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.work-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.work-type { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-500); }
.work-status {
  font-size: 0.7rem; font-weight: 700; color: var(--ink-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.work-status.is-live { color: #15803D; border-color: #BBF7D0; background: #F0FDF4; }
.work-status.is-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22C55E;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }
.work-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.work-card p { font-size: 0.94rem; }
.work-card .tag-list { margin-top: auto; padding-top: 18px; }
.work-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 0.9rem; font-weight: 700; color: var(--navy-700); align-self: flex-start;
  transition: color 200ms var(--ease), gap 200ms var(--ease);
}
.work-link svg { width: 15px; height: 15px; transition: transform 200ms var(--ease); }
.work-link:hover { color: var(--orange-500); gap: 10px; }
.work-link:hover svg { transform: translate(1px, -1px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.about-copy > p { font-size: 1.02rem; margin-bottom: 32px; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.value-item { position: relative; padding-left: 16px; border-left: 2px solid var(--border); transition: border-color 300ms var(--ease); }
.value-item:hover { border-left-color: var(--orange-500); }
.value-item h4 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.value-item p { font-size: 0.9rem; }

.about-visual { position: relative; }
.about-badge {
  position: absolute; right: -18px; bottom: -18px; width: 92px; height: 92px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  box-shadow: var(--shadow-lg); animation: float-badge 5s ease-in-out infinite;
}
.about-badge img { width: 100%; height: auto; }
@keyframes float-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Process ---------- */
.process-wrap { position: relative; max-width: 720px; }
.process-line { position: absolute; left: 25px; top: 12px; bottom: 12px; width: 2px; background: var(--border); border-radius: 2px; }
.process-line i { display: block; width: 100%; height: 0%; background: linear-gradient(180deg, var(--orange-500), var(--orange-400)); border-radius: 2px; transition: height 120ms linear; }
.process-list { display: flex; flex-direction: column; gap: 34px; }
.process-item { display: flex; gap: 24px; align-items: flex-start; }
.process-marker {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: #fff; border: 2px solid var(--border); position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease), background 300ms var(--ease);
}
.process-marker span { font-size: 0.95rem; font-weight: 800; color: var(--ink-muted); transition: color 300ms var(--ease); }
.process-item.in-view .process-marker { border-color: var(--orange-500); transform: scale(1.06); }
.process-item.in-view .process-marker span { color: var(--orange-500); }
.process-body { padding-top: 6px; }
.process-body h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.process-body p { font-size: 0.95rem; }

/* ---------- Internships ---------- */
.internship-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 34px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: #DCE5F2; }
.check-list li::before { content: ''; flex-shrink: 0; margin-top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); }
.internship-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.28);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn-outline-light svg { width: 18px; height: 18px; }
.internship-note { font-size: 0.85rem; margin-top: 16px; max-width: 420px; }

.internship-visual { display: flex; flex-direction: column; gap: 20px; }
.code-window { background: var(--navy-800); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-lg); }
.code-window-bar { display: flex; gap: 8px; padding: 14px 16px; background: rgba(255,255,255,0.04); }
.code-window-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.code-window-bar span:nth-child(1) { background: #F5893B; }
.code-window-body { margin: 0; padding: 22px 24px; font-family: 'SFMono-Regular', Consolas, Menlo, monospace; font-size: 0.86rem; line-height: 1.7; color: #DCE5F2; overflow-x: auto; }
.c-kw { color: #F7A15F; } .c-fn { color: #7FC8F8; } .c-cm { color: #6B7C93; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--navy-700), var(--navy-900)); padding: 90px 0; position: relative; overflow: hidden; }
.cta-banner::after {
  content: ''; position: absolute; top: -50%; left: -10%; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(245,137,59,0.16), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateX(60%); } }
.cta-banner-inner { text-align: center; position: relative; z-index: 1; }
.cta-banner-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-banner-inner p { color: #A9B8CC; margin-bottom: 30px; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font-size: 1.12rem; font-weight: 700; color: var(--navy-700);
  border-bottom: 2px solid var(--orange-500); padding-bottom: 4px;
  transition: color 200ms var(--ease), gap 200ms var(--ease);
  overflow-wrap: anywhere;
}
.contact-email svg { width: 20px; height: 20px; color: var(--orange-500); flex-shrink: 0; }
.contact-email:hover { color: var(--orange-500); gap: 14px; }

.contact-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); resize: vertical;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 4px rgba(245,137,59,0.14); }
.form-submit { width: 100%; margin-top: 4px; }
.form-submit:disabled { opacity: 0.75; cursor: default; }
.form-note { font-size: 0.8rem; margin-top: 10px; text-align: center; }
.form-note.is-ok { color: #15803D; font-weight: 700; }
.form-note.is-error { color: #B91C1C; font-weight: 700; }
/* Honeypot — off-screen rather than display:none, which some bots detect */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #A9B8CC; padding: 56px 0 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-footer .brand { margin-right: 0; }
.site-footer .brand-logo { height: 42px; }
.footer-nav { display: flex; gap: 22px; margin-right: auto; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; font-weight: 600; color: #A9B8CC; transition: color 200ms var(--ease); }
.footer-nav a:hover { color: var(--orange-400); }
.footer-email { font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.footer-email:hover { color: var(--orange-400); }
.footer-bottom { padding: 22px 24px; text-align: center; font-size: 0.82rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal,
.js .reveal-left,
.js .reveal-right { opacity: 0; transition: opacity 750ms var(--ease), transform 750ms var(--ease); }
.js .reveal { transform: translateY(28px); }
.js .reveal-left { transform: translateX(-38px); }
.js .reveal-right { transform: translateX(38px); }
.js .reveal.in-view,
.js .reveal-left.in-view,
.js .reveal-right.in-view { opacity: 1; transform: none; }

.js [data-delay="1"] { transition-delay: 80ms; }
.js [data-delay="2"] { transition-delay: 160ms; }
.js [data-delay="3"] { transition-delay: 240ms; }
.js [data-delay="4"] { transition-delay: 320ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal-left, .js .reveal-right { opacity: 1; transform: none; }
  .js .word { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .scroll-progress { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg, .bento-wide { grid-column: span 2; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid, .internship-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; max-width: 420px; }
  /* The portrait slot stays portrait at every width — forcing it to 16:10 here
     centre-cropped a full-body team photo down to a band of torsos. */
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 20px 24px; transform: translateX(100%); transition: transform 280ms var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .brand-logo { height: 32px; }
  /* Phones: match the team photo's own 9:16 proportions so a standing
     full-body group shot isn't cropped at the heads or the feet. */
  .shot-portrait { aspect-ratio: 9 / 16; }
  .bento { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: span 1; }
  .bento-wide { grid-template-columns: 1fr; }
  .bento-wide h3, .bento-wide p { grid-column: 1; }
  .value-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .work-body { padding: 22px 22px 26px; }
  .about-badge { width: 70px; height: 70px; right: -8px; bottom: -8px; padding: 12px; }
  .process-line { left: 21px; }
  .process-marker { width: 44px; height: 44px; }
  .process-item { gap: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-nav { margin-right: 0; }
}
