/* Tharin — static site (parity with Next.js portfolio) */
:root {
  --white: #ffffff;
  --black: #000000;
  --accent: #d6ff3f;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --gray: #f4f4f4;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter Tight", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--black); color: var(--white); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 10000;
  background: var(--black); color: var(--white); padding: 0.75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.container-wide { width: 100%; max-width: 1440px; margin: 0 auto; }
.section-padding { padding: 4rem 1.25rem; }
@media (min-width: 768px) { .section-padding { padding: 5rem 2.5rem; } }
@media (min-width: 1024px) { .section-padding { padding: 6rem 4rem; } }

.display-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.01em;
}
.serif-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.editorial-heading {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Cursor */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px;
  border-radius: 50%; background: var(--white); mix-blend-mode: difference;
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
  opacity: 0;
}
.cursor-dot.is-on { opacity: 1; }
.cursor-dot.is-hover { width: 48px; height: 48px; }
@media (hover: none) { .cursor-dot { display: none; } }

/* Nav */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 1rem 1.25rem; pointer-events: none;
  transition: transform 0.4s var(--ease);
}
.site-header.is-hidden { transform: translateY(-120%); }
.site-header.is-menu-open { transform: none; }
.site-nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; max-width: 1440px; margin: 0 auto;
  padding: 0.65rem 1rem; border-radius: 999px;
  background: transparent; color: var(--white);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-solid .site-nav {
  background: var(--black); color: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.nav-logo { font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.5rem; }
.nav-links a { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; width: 18px; }
.nav-toggle-bars span {
  display: block; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.site-header.is-menu-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-menu-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; padding: 6rem 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  display: block; font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.02em; padding: 0.4rem 0;
}
@media (min-width: 768px) {
  .site-header { padding: 1.5rem 2.5rem; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Hero — app layout */
#hero {
  position: relative;
  min-height: 100dvh;
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 6rem 1.25rem 0;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}
#hero.is-ready .hero-media video { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.72) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1440px; margin: 0 auto;
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 1.5rem;
}
.hero-top {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: clamp(2rem, 8vh, 5rem);
}
.hero-stage { width: 100%; }
.hero-name-wrap { margin-bottom: 0.25rem; }
.hero-name {
  font-size: clamp(3.5rem, 16vw, 17rem);
  margin: 0; line-height: 0.82; letter-spacing: -0.02em;
}
.hero-lower {
  display: grid; gap: 1.5rem; margin-top: 1.25rem;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-lower {
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
  }
}
.hero-titles {
  display: flex; flex-direction: column; gap: 0.15rem;
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900;
  letter-spacing: -0.03em;
}
.hero-titles .is-accent { color: var(--accent); }
.hero-cta-block { max-width: 28rem; }
.hero-body {
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,0.82); line-height: 1.65; font-size: 1.05rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.5rem; font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform 0.45s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--accent); color: var(--black); }
.btn-secondary { background: var(--white); color: var(--black); }
.btn-ghost { border: 1px solid currentColor; }
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(5px); }
.hero-marquee {
  position: relative; z-index: 1;
  margin: 0 -1.25rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  overflow: hidden; white-space: nowrap; padding: 1.1rem 0;
  background: rgba(0,0,0,0.25); backdrop-filter: blur(8px);
}
.marquee-track {
  display: inline-flex; gap: 2rem; animation: marquee 28s linear infinite;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.marquee-track.reverse { animation-name: marquee-reverse; animation-duration: 32s; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hero-scroll {
  position: absolute; right: 1.25rem; bottom: 5.5rem; z-index: 2;
  writing-mode: vertical-rl; font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; opacity: 0; transform: translateY(12px);
  transition: opacity 0.8s var(--ease) 1.4s, transform 0.8s var(--ease) 1.4s;
}
.hero-scroll.is-in, .hero-scroll.hero-reveal.is-in { opacity: 0.75; transform: none; }
.hero-scroll span { animation: bounce 2s ease infinite; display: inline-block; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@media (min-width: 768px) {
  #hero { padding: 7rem 2.5rem 0; }
  .hero-marquee { margin: 0 -2.5rem; }
  .hero-scroll { right: 2.5rem; bottom: 6rem; }
}

/* Mask / slide-up reveals (app-style) */
.mask-reveal { display: block; overflow: hidden; }
.mask-reveal-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease);
  will-change: transform;
}
.mask-reveal-inner.is-in,
.hero-reveal.is-in { transform: translateY(0); }

.reveal-up {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-up.is-in { opacity: 1; transform: none; }

.fade-item {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-item.is-in { opacity: 1; transform: none; }

/* Smooth hover lifts site-wide */
a, button, .soft-chip, .gallery-card, .sg-card, .skill-card, .ach-row, .arrow-btn {
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.45s var(--ease), opacity 0.35s var(--ease), box-shadow 0.45s var(--ease);
}
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.gallery-card:hover { transform: translateY(-6px); }
.sg-card:hover { transform: translateY(-8px); }
.soft-chip { cursor: default; }
.arrow-btn svg { transition: transform 0.4s var(--ease); }
.arrow-btn:hover svg { transform: translate(2px, -2px); }

/* Moments gallery */
#gallery {
  position: relative; background: var(--white);
}
.gallery-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.gallery-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 1.25rem 1.5rem; max-width: 1440px; width: 100%; margin: 0 auto;
}
.gallery-head h2 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
.gallery-hint {
  display: none; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
@media (min-width: 768px) {
  .gallery-hint { display: block; }
  .gallery-head { padding: 0 2.5rem 2rem; }
}
.gallery-track {
  display: flex; width: max-content; gap: 1.25rem;
  padding: 0 1.25rem; will-change: transform;
}
@media (min-width: 768px) {
  .gallery-track { gap: 2rem; padding: 0 2.5rem; }
}
.gallery-card { flex-shrink: 0; width: min(68vw, 240px); will-change: transform; }
@media (min-width: 768px) { .gallery-card { width: min(36vw, 320px); } }
@media (min-width: 1024px) { .gallery-card { width: min(26vw, 360px); } }
.gallery-card .frame {
  position: relative; aspect-ratio: 4/5; height: 38vh; overflow: hidden;
}
@media (min-width: 768px) { .gallery-card .frame { height: 52vh; } }
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card figcaption {
  margin-top: 0.75rem; display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--muted);
}
.gallery-card .idx { font-family: var(--font-display); font-style: italic; text-transform: none; letter-spacing: 0; }

/* Statement */
#statement { position: relative; background: var(--white); }
.statement-pin { position: relative; height: 170vh; }
.statement-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.bg-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-lines svg { width: 100%; height: 100%; }
.line-drift { animation: line-drift 18s ease-in-out infinite alternate; opacity: 0.5; }
.line-drift-slow { animation: line-drift 28s ease-in-out infinite alternate; opacity: 0.35; }
@keyframes line-drift {
  from { transform: translateX(-2%) translateY(1%); }
  to { transform: translateX(2%) translateY(-1%); }
}
.statement-copy {
  position: relative; z-index: 1; max-width: 64rem; margin: 0 auto;
  text-align: center; font-size: clamp(1.5rem, 4vw, 3.75rem);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.02em;
  padding: 0 1.25rem;
}
.statement-copy .word {
  display: inline-block; margin-right: 0.28em;
  opacity: 0.18; filter: blur(3px); transform: translateY(20px);
  transition: none;
}

/* Split meet */
#split-meet {
  position: relative; background: var(--gray); height: 140vh;
}
@media (min-width: 768px) { #split-meet { height: 170vh; } }
.split-sticky {
  position: sticky; top: 0; height: 100dvh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.split-img {
  position: absolute; bottom: 0; z-index: 1; pointer-events: none;
  height: 55vh; width: min(36vw, 280px); will-change: transform, filter;
}
.split-img.left { left: 0; }
.split-img.right { right: 0; }
.split-img img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.1));
}
.split-img.left img { object-position: left bottom; }
.split-img.right img { object-position: right bottom; }
@media (min-width: 640px) {
  .split-img { height: 65vh; width: min(40vw, 400px); }
}
@media (min-width: 768px) {
  .split-img { height: 90vh; width: min(38vw, 540px); }
}
.split-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; width: 100%; max-width: 520px; padding: 0 1rem;
}
@media (min-width: 640px) { .split-content { max-width: 560px; gap: 2.5rem; } }
@media (min-width: 768px) { .split-content { max-width: 620px; gap: 3.5rem; } }
.split-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.split-col h2 { margin: 0; line-height: 0.9; position: relative; }
.split-col .big { display: block; font-size: clamp(1.85rem, 8vw, 4.75rem); }
.split-col .sub {
  display: block; margin-top: 0.15rem;
  font-size: clamp(1.25rem, 5.5vw, 3.6rem); font-weight: 900;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.ghost-on {
  position: absolute; top: -8%; left: -6%; rotate: -9deg;
  font-size: clamp(1.7rem, 7.5vw, 4.4rem); color: var(--accent);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  pointer-events: none; user-select: none;
}
.split-col p {
  margin: 0.75rem 0 0; max-width: 160px; font-size: 11px;
  line-height: 1.5; color: rgba(0,0,0,0.55);
}
@media (min-width: 640px) {
  .split-col p { margin-top: 1.25rem; max-width: 220px; font-size: 0.875rem; }
}
@media (min-width: 768px) { .split-col p { font-size: 15px; } }
.arrow-btn {
  margin-top: 1rem; width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--black);
  transition: transform 0.3s var(--ease);
}
.arrow-btn:hover { transform: scale(1.05); }
@media (min-width: 640px) { .arrow-btn { margin-top: 1.75rem; width: 3rem; height: 3rem; } }

/* Statement gallery */
#statement-gallery { position: relative; overflow: hidden; background: var(--white); padding-top: 2rem; }
.sg-grid {
  display: grid; gap: 2rem; position: relative; z-index: 1;
}
@media (min-width: 768px) { .sg-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.sg-card { position: relative; }
.sg-card .frame { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.sg-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.sg-card:hover img { transform: scale(1.05) rotate(1deg); }
.sg-card .view-bar {
  position: absolute; inset: auto 0 0; transform: translateY(100%);
  background: var(--accent); padding: 0.5rem 1rem;
  font-size: 0.65rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase;
  transition: transform 0.5s var(--ease);
}
.sg-card:hover .view-bar { transform: none; }
.sg-card figcaption {
  margin-top: 0.75rem; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
.quote-block {
  max-width: 48rem; margin: 4rem auto 0; text-align: center;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.quote-block.is-in { opacity: 1; transform: none; }
@media (min-width: 768px) { .quote-block { margin-top: 6rem; } }
.quote-block p { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.3; margin: 0; }
.quote-block footer { margin-top: 1.5rem; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* Section heading */
.section-heading { margin-bottom: 3rem; }
.section-heading .chip {
  display: inline-block; color: var(--accent); font-family: var(--font-display);
  font-style: italic; font-size: 1.25rem; margin-bottom: 0.5rem;
}
.section-heading h2 {
  margin: 0; font-size: clamp(2.5rem, 7vw, 5.5rem);
}
.section-heading .sub { margin: 1rem 0 0; max-width: 36rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .text-muted, .section-dark .section-heading .sub { color: rgba(255,255,255,0.55); }
.section-dark .section-heading .chip { color: var(--accent); }

/* About */
.about-grid {
  display: grid; gap: 3rem;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 2rem; align-items: start; }
}
.parallax-frame { overflow: hidden; position: relative; aspect-ratio: 4/5; }
.parallax-frame img {
  width: 100%; height: 120%; object-fit: cover; position: absolute; top: -10%;
  will-change: transform;
}
.about-blocks {
  display: grid; gap: 2.5rem;
}
@media (min-width: 768px) { .about-blocks { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.about-block h3 {
  margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 900;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.about-block .num {
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem;
  color: var(--accent); margin-right: 0.5rem; font-weight: 400; letter-spacing: 0;
  text-transform: none;
}
.about-block p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.about-close {
  margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0.55rem; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.15);
}
@media (min-width: 768px) { .timeline::before { left: 1.1rem; } }
.timeline-item { position: relative; }
.timeline-btn {
  width: 100%; text-align: left; padding: 2rem 0 2rem 3rem;
  position: relative;
}
@media (min-width: 768px) { .timeline-btn { padding-left: 5rem; padding-top: 3rem; padding-bottom: 3rem; } }
.timeline-dot {
  position: absolute; left: 0; top: 2.4rem; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); background: var(--black);
}
@media (min-width: 768px) { .timeline-dot { left: 0.55rem; top: 3.4rem; } }
.timeline-item.is-open .timeline-dot { background: var(--accent); border-color: var(--accent); }
.timeline-period {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.timeline-title { margin: 0; font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 900; text-transform: uppercase; }
.timeline-company { margin: 0.35rem 0 0; color: rgba(255,255,255,0.55); }
.timeline-plus {
  position: absolute; right: 0; top: 2.4rem; font-size: 1.5rem;
  transition: transform 0.35s var(--ease); color: var(--accent);
}
.timeline-item.is-open .timeline-plus { transform: rotate(45deg); }
.timeline-panel {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
  padding-left: 3rem;
}
@media (min-width: 768px) { .timeline-panel { padding-left: 5rem; } }
.timeline-item.is-open .timeline-panel { max-height: 320px; opacity: 1; padding-bottom: 2rem; }
.timeline-panel p { color: rgba(255,255,255,0.65); line-height: 1.7; margin: 0 0 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-tag {
  border: 1px solid rgba(255,255,255,0.2); padding: 0.35rem 0.7rem;
  font-size: 0.7rem; border-radius: 999px;
}

/* Achievements */
.ach-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.ach-row {
  display: grid; gap: 0.5rem; padding: 1.75rem 0.5rem;
  border-top: 1px solid var(--border);
  transition: background 0.4s, color 0.4s;
}
@media (min-width: 768px) {
  .ach-row { grid-template-columns: 2fr 6fr 3fr auto; gap: 1.5rem; align-items: baseline; padding: 2.25rem 1.5rem; }
}
.ach-row:hover { background: var(--black); color: var(--white); }
.ach-row:hover .text-muted { color: rgba(255,255,255,0.6); }
.ach-row:hover .ach-tag { color: var(--accent); }
.ach-tag { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 1.1rem; }
.ach-label { margin: 0; font-size: clamp(1.25rem, 3vw, 2.25rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.ach-arrow { opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.ach-row:hover .ach-arrow { opacity: 1; transform: translateX(4px); }
.marquee-band {
  margin-top: 3rem; overflow: hidden; padding: 1rem 0;
  background: var(--black); color: var(--white);
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.8rem;
}
.marquee-band.accent { background: var(--accent); color: var(--black); margin-top: 0; }

/* Skills */
.skills-grid {
  display: grid; gap: 1px; background: rgba(255,255,255,0.1);
}
@media (min-width: 640px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }
.skill-card {
  background: var(--black); padding: 2rem 1.5rem; min-height: 10rem;
  position: relative; outline: none;
}
.skill-card h3 { margin: 0; font-size: 1.35rem; font-weight: 900; text-transform: uppercase; }
.skill-card .desc {
  margin-top: 0.75rem; color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.5;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.35s;
}
.skill-card:hover .desc, .skill-card:focus .desc { max-height: 6rem; opacity: 1; }
.skill-card::after {
  content: ""; position: absolute; left: 1.5rem; bottom: 1.5rem;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.skill-card:hover::after, .skill-card:focus::after { width: 3rem; }
.skill-filler {
  display: flex; align-items: flex-end; padding: 2rem 1.5rem;
  background: var(--black); font-family: var(--font-display); font-style: italic;
  font-size: 1.5rem; color: var(--accent);
}

/* Software */
.soft-group { margin-bottom: 2.5rem; }
.soft-group h3 {
  margin: 0 0 1rem; font-size: 0.75rem; font-weight: 900;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.soft-group h3 span { color: var(--black); margin-left: 0.5rem; }
.soft-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.soft-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--border); padding: 0.7rem 1rem;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.soft-chip:hover { transform: translateY(-3px); background: var(--black); color: var(--white); border-color: var(--black); }
.soft-mark {
  font-size: 0.7rem; font-weight: 900; min-width: 1.75rem; text-align: center;
  color: var(--muted);
}
.soft-chip:hover .soft-mark { color: var(--accent); }

/* Process */
.process-progress {
  height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 2rem; position: relative;
}
.process-progress span {
  display: block; height: 100%; width: 0; background: var(--accent);
  transition: width 0.1s linear;
}
.process-steps {
  display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem;
}
@media (min-width: 1024px) {
  .process-steps { gap: 3rem; overflow: visible; }
}
.process-step {
  min-width: 280px; flex-shrink: 0;
}
@media (min-width: 1024px) { .process-step { min-width: 0; flex: 1; } }
.process-step .num {
  width: 4rem; height: 4rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; margin-bottom: 1.5rem;
}
.process-step h3 { margin: 0 0 0.75rem; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.process-step p { margin: 0; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* Lifestyle */
.life-grid {
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .life-grid { grid-template-columns: 5fr 7fr; gap: 2rem; } }
.life-block + .life-block { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.life-block h3 { margin: 0 0 0.75rem; }
.life-block .serif-accent { font-size: 1.5rem; color: var(--muted); margin-right: 0.75rem; }
.life-block p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.life-close { margin-top: 3rem; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.gym-fan {
  position: relative; height: 340px; width: 100%; max-width: 720px; margin: 0 auto;
  overflow: hidden;
}
.gym-card {
  position: absolute; left: 50%; top: 50%;
  width: min(42vw, 180px); aspect-ratio: 3/4; overflow: hidden;
  transform-origin: center bottom;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  animation: fan-breathe 4.5s var(--ease) infinite;
}
.gym-card img { width: 100%; height: 100%; object-fit: cover; }
.gym-card:nth-child(1) { --rx: -72px; --rr: -18deg; animation-delay: 0s; }
.gym-card:nth-child(2) { --rx: -36px; --rr: -9deg; animation-delay: 0.15s; }
.gym-card:nth-child(3) { --rx: 0px; --rr: 0deg; animation-delay: 0.3s; z-index: 2; }
.gym-card:nth-child(4) { --rx: 36px; --rr: 9deg; animation-delay: 0.15s; }
.gym-card:nth-child(5) { --rx: 72px; --rr: 18deg; animation-delay: 0s; }
@keyframes fan-breathe {
  0%, 100% { transform: translate(-50%, -50%) translateX(var(--rx)) rotate(var(--rr)); }
  50% { transform: translate(-50%, -50%) translateX(calc(var(--rx) * 1.35)) rotate(calc(var(--rr) * 1.25)) translateY(-8px); }
}

/* Azryno */
#azryno { background: var(--accent); color: var(--black); }
.azryno-inner {
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 768px) {
  .azryno-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.azryno-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; margin: 0 0 0.75rem; }
.azryno-inner h2 {
  margin: 0; font-size: clamp(3rem, 10vw, 6rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.03em;
}
.azryno-inner p { margin: 1.5rem 0 0; max-width: 36rem; font-size: 1.15rem; line-height: 1.6; color: rgba(0,0,0,0.7); }

/* FAQ */
#faq .faq-intro { text-align: center; color: var(--muted); max-width: 36rem; margin: 0 auto 3rem; }
#faq h2 { text-align: center; margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.5rem 0; text-align: left; font-weight: 700; font-size: 1rem;
}
.faq-icon { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--accent); }
.faq-a {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.35s var(--ease);
}
.faq-item.is-open .faq-a { max-height: 240px; opacity: 1; padding-bottom: 1.5rem; }
.faq-a p { margin: 0; color: var(--muted); line-height: 1.7; }

/* Contact — accent stage + curved bottom cutout */
#contact {
  background: var(--accent);
  padding: 0;
}
.contact-stage {
  width: 100%;
  padding: 1.25rem 1.25rem 0;
}
@media (min-width: 768px) {
  .contact-stage { padding: 2rem 2rem 0; }
}
@media (min-width: 1024px) {
  .contact-stage { padding: 2.5rem 2.5rem 0; }
}
.contact-panel {
  position: relative;
  background: #11140e;
  color: var(--white);
  border-radius: 1.75rem 1.75rem 0 0;
  overflow: hidden;
  padding: 3.5rem 1.5rem 7rem;
  min-height: 32rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}
@media (min-width: 768px) {
  .contact-panel {
    border-radius: 2.25rem 2.25rem 0 0;
    padding: 5rem 3.5rem 8.5rem;
  }
}
.contact-lines { z-index: 0; opacity: 0.9; }
.contact-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.4; pointer-events: none; z-index: 0;
}
.contact-inner { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; }
.contact-heading {
  font-size: clamp(2rem, 6vw, 4.25rem);
  max-width: 16ch;
  margin: 0;
}
.contact-grid {
  display: grid; gap: 3rem; margin-top: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-links { list-style: none; margin: 0; padding: 0; }
.contact-links li + li { margin-top: 0.35rem; }
.contact-links a {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 0.95rem 0;
}
.contact-links a:hover {
  color: var(--accent);
  padding-left: 0.35rem;
}
.contact-links .label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.contact-pill-wrap {
  display: flex; justify-content: center;
  margin-top: 3.5rem;
  position: relative; z-index: 3;
}
.contact-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent); color: var(--black);
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.contact-pill:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 44px rgba(0,0,0,0.3);
}
.contact-cutout {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(72px, 12vw, 140px);
  z-index: 4; display: block; pointer-events: none;
}

/* Footer on accent (Lando-style bottom bar) */
.site-footer {
  background: transparent;
  color: var(--black);
  padding: 2.5rem 0.5rem 2rem;
}
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-name {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--black);
}
.footer-meta { margin: 0.5rem 0; color: rgba(0,0,0,0.55); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.8rem; color: rgba(0,0,0,0.5);
}
.footer-bottom a {
  color: var(--black);
  border-bottom: 1.5px solid rgba(0,0,0,0.35);
  font-weight: 700;
}
.footer-bottom a:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gym-card { animation: none; }
  .mask-reveal-inner { transform: none !important; }
}

/* ========== Responsive: mobile / tablet / desktop ========== */
@media (max-width: 767px) {
  .section-padding { padding: 3.25rem 1.15rem; }
  .site-header { padding: 0.85rem 1rem; }
  .site-nav { padding: 0.55rem 0.85rem; }

  #hero { padding: 5.5rem 1.15rem 0; min-height: 100svh; }
  .hero-top {
    margin-bottom: 1.75rem;
    font-size: 0.58rem;
    gap: 0.5rem;
  }
  .hero-name { font-size: clamp(3.25rem, 18vw, 5.5rem); }
  .hero-titles { font-size: clamp(1.35rem, 6.5vw, 1.85rem); gap: 0.1rem; }
  .hero-body { font-size: 0.95rem; margin-bottom: 1rem; }
  .hero-lower { margin-top: 1rem; gap: 1.15rem; }
  .hero-marquee { margin: 0 -1.15rem; padding: 0.85rem 0; }
  .hero-scroll { display: none; }
  .btn { padding: 0.9rem 1.2rem; min-height: 44px; }

  .gallery-card { width: min(72vw, 220px); }
  .gallery-card .frame { height: 36vh; height: 36svh; }
  .gallery-head { padding: 0 1.15rem 1rem; }
  .gallery-head h2 { font-size: 2rem; }
  .gallery-track { gap: 0.85rem; padding: 0 1.15rem; }

  .statement-pin { height: 150vh; }
  .statement-copy {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    padding: 0 1.15rem;
    line-height: 1.35;
  }

  #split-meet { height: 135vh; }
  .split-img {
    height: 48vh; width: min(42vw, 160px); opacity: 0.9;
  }
  .split-content { max-width: 100%; gap: 0.75rem; padding: 0 0.75rem; }
  .split-col p { font-size: 10px; max-width: 140px; }
  .arrow-btn { width: 2.75rem; height: 2.75rem; min-width: 44px; min-height: 44px; }

  .sg-grid { gap: 1.5rem; }
  .quote-block { margin-top: 2.5rem; }
  .quote-block p { font-size: 1.35rem; }

  .about-grid { gap: 2rem; }
  .parallax-frame { max-height: 70vw; aspect-ratio: 4/5; }
  .about-blocks { gap: 1.75rem; }
  .about-close { font-size: 1.75rem; margin-top: 2rem; }

  .timeline-btn { padding: 1.5rem 0 1.5rem 2.5rem; }
  .timeline-title { font-size: 1.15rem; }
  .timeline-panel { padding-left: 2.5rem; }
  .timeline-item.is-open .timeline-panel { max-height: 420px; }

  .ach-row { padding: 1.25rem 0.25rem; gap: 0.35rem; }
  .ach-label { font-size: 1.15rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 7.5rem; padding: 1.5rem 1.25rem; }

  .soft-chips { gap: 0.55rem; }
  .soft-chip { padding: 0.65rem 0.85rem; font-size: 0.9rem; }

  .process-step { min-width: 240px; }
  .process-step h3 { font-size: 1.25rem; }

  .life-grid { gap: 2rem; }
  .gym-fan { height: 280px; max-width: 100%; }
  .gym-card { width: min(38vw, 130px); }
  .gym-card:nth-child(1) { --rx: -48px; --rr: -14deg; }
  .gym-card:nth-child(2) { --rx: -24px; --rr: -7deg; }
  .gym-card:nth-child(4) { --rx: 24px; --rr: 7deg; }
  .gym-card:nth-child(5) { --rx: 48px; --rr: 14deg; }

  .azryno-inner h2 { font-size: clamp(2.5rem, 14vw, 3.5rem); }
  .azryno-inner p { font-size: 1rem; }

  #faq h2 { font-size: 1.65rem; }
  .faq-q { font-size: 0.95rem; min-height: 48px; }

  .contact-stage { padding: 0.85rem 0.85rem 0; }
  .contact-panel {
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 2.5rem 1.15rem 5.5rem;
    min-height: 0;
  }
  .contact-heading { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .contact-grid { gap: 2rem; margin-top: 1.75rem; }
  .contact-pill-wrap { margin-top: 2.25rem; }
  .contact-pill { min-height: 44px; font-size: 0.68rem; padding: 0.8rem 1.2rem; }
  .contact-cutout { height: 64px; }
  .site-footer { padding: 1.75rem 0.25rem 1.5rem; }
  .footer-name { font-size: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }

  .cursor-dot { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .section-padding { padding: 4.5rem 2rem; }
  .hero-name { font-size: clamp(5rem, 14vw, 9rem); }
  .gallery-card { width: min(42vw, 280px); }
  .split-img { height: 70vh; width: min(34vw, 320px); }
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 2rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .contact-panel { padding: 4rem 2.25rem 7rem; }
}

@media (min-width: 1024px) {
  .gallery-card { width: min(26vw, 360px); }
  .contact-panel { padding: 5rem 3.5rem 8.5rem; }
}

/* Safe areas (notched phones) */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .contact-stage {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
  .site-footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

/* Content images always fit containers */
img {
  height: auto;
  max-width: 100%;
}
.gallery-card .frame img,
.sg-card .frame img,
.parallax-frame img,
.gym-card img,
.split-img img {
  max-width: none;
}
