/* ================================================================
   RAMEEN RAZI — PREMIUM FASHION PORTFOLIO
   Modern Luxury · GSAP Ready · Full Animation System
   Palette: Soft Sage · Dusty Rose · Warm Cream · Deep Forest
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Inter:wght@200;300;400;500&family=EB+Garamond:ital,wght@1,400;1,500&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  /* Palette */
  --cream:      #F8F3EE;
  --cream-dark: #F0E9E1;
  --white:      #FDFBF8;
  --forest:     #1C2B25;
  --forest-lt:  #243830;
  --rose:       #C17B7B;
  --rose-lt:    #D4A0A0;
  --rose-pale:  #F5E8E8;
  --sage:       #7A9B8A;
  --sage-lt:    #A0BCAE;
  --sage-pale:  #EAF0EC;
  --warm:       #8B7355;
  --text:       #2A2118;
  --text-lt:    #6B5C52;
  --rule:       rgba(139,115,85,.14);
  --rule-dk:    rgba(255,255,255,.08);

  /* Type */
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
  --italic:  'EB Garamond', Georgia, serif;

  /* Easing */
  --ease:    cubic-bezier(.16,1,.3,1);
  --ease-in: cubic-bezier(.7,0,.84,0);
}

/* ─── RESET ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (max-width: 768px) {
  html { scroll-behavior: auto; }
}
.work-section, .chapter, .pad, .pad-md {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
::selection { background: var(--rose); color: var(--white); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 2px; }

/* ─── LOADER ─── */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--forest);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 40px;
}
.ld-name {
  font-family: var(--serif);
  font-size: clamp(40px,6vw,80px);
  font-weight: 300; letter-spacing: .1em;
  color: var(--cream); overflow: hidden;
  display: flex; gap: 4px;
}
.ld-char {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.ld-line {
  width: 220px; height: 1px;
  background: rgba(255,255,255,.1);
  position: relative; overflow: hidden;
}
.ld-progress {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--rose), var(--rose-lt));
  transition: width .05s linear;
}
.ld-pct {
  font-family: var(--sans); font-size: 11px;
  font-weight: 300; letter-spacing: .5em;
  color: rgba(255,255,255,.35); text-transform: uppercase;
}
.ld-curtain {
  position: absolute; inset: 0;
  background: var(--forest);
  transform-origin: top; z-index: 1;
}

/* ─── CURTAIN PAGE TRANSITION ─── */
.curtain {
  position: fixed; inset: 0;
  background: var(--forest);
  z-index: 9000;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 72px;
  transition: padding .6s var(--ease), background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 18px 72px;
  background: rgba(248,243,238,.97);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--rule);
}
.nav.dark { }
.nav.dark .nav-logo { color: var(--cream); }
.nav.dark .nav-link { color: rgba(248,243,238,.5); }
.nav.dark .nav-link:hover { color: var(--cream); }
.nav.dark .nav-cta { border-color: rgba(248,243,238,.25); color: var(--cream); }
.nav.dark .hamburger span { background: var(--cream); }
.nav.dark.scrolled { background: rgba(28,43,37,.97); border-bottom-color: var(--rule-dk); }

.nav-logo {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: .05em; color: var(--text);
  transition: color .3s; line-height: 1;
}
.nav-logo em { font-weight: 300; font-style: italic; }

.nav-links { display: flex; gap: 44px; list-style: none; align-items: center; }
.nav-link {
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-lt); position: relative; padding: 4px 0;
  transition: color .25s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--rose);
  transition: width .4s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav.dark .nav-link.active { color: var(--cream); }

.nav-cta {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid rgba(42,33,24,.28); color: var(--text);
  padding: 10px 26px; transition: background .35s, color .35s, border-color .35s;
}
.nav-cta:hover { background: var(--text); color: var(--cream); border-color: var(--text); }

.hamburger { display: none; flex-direction: column; gap: 6px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--text); transition: transform .35s, opacity .35s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; background: var(--forest);
  z-index: 700; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .75s var(--ease);
}
.drawer.open { clip-path: inset(0 0 0% 0); }
.drawer-links { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 28px; }
.drawer-link {
  font-family: var(--serif); font-size: clamp(34px,6vw,56px);
  font-weight: 300; color: rgba(248,243,238,.75);
  overflow: hidden; display: block;
}
.drawer-link span {
  display: block; transform: translateY(100%);
  transition: transform .6s var(--ease);
}
.drawer.open .drawer-link:nth-child(1) span { transform: translateY(0); transition-delay: .1s; }
.drawer.open .drawer-link:nth-child(2) span { transform: translateY(0); transition-delay: .15s; }
.drawer.open .drawer-link:nth-child(3) span { transform: translateY(0); transition-delay: .2s; }
.drawer.open .drawer-link:nth-child(4) span { transform: translateY(0); transition-delay: .25s; }
.drawer.open .drawer-link:nth-child(5) span { transform: translateY(0); transition-delay: .3s; }
.drawer.open .drawer-link:nth-child(6) span { transform: translateY(0); transition-delay: .35s; }
.drawer-link:hover { color: var(--rose-lt); font-style: italic; }

/* ─── LAYOUT ─── */
.wrap { max-width: 1440px; margin: 0 auto; }
.pad { padding: 140px 80px; }
.pad-md { padding: 100px 80px; }
.pad-sm { padding: 72px 80px; }

/* ─── EYEBROW ─── */
.ew {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .45em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 24px;
}
.ew::before { content: ''; width: 36px; height: 1px; background: currentColor; flex-shrink: 0; }
.ew.sage { color: var(--sage); }
.ew.lt { color: var(--rose-lt); }
.ew.cream { color: rgba(248,243,238,.6); }

/* ─── DISPLAY HEADINGS ─── */
.dh {
  font-family: var(--serif); font-weight: 400;
  line-height: 1.02; letter-spacing: -.02em; color: var(--text);
}
.dh.white { color: var(--cream); }
.dh em { font-style: italic; color: var(--rose); }
.dh.white em { color: var(--rose-lt); }
.dh.sage-em em { color: var(--sage); }
.sz-hero { font-size: clamp(64px,8.5vw,128px); }
.sz-xl   { font-size: clamp(48px,5.5vw,84px); }
.sz-lg   { font-size: clamp(36px,4vw,60px); }
.sz-md   { font-size: clamp(26px,3vw,42px); }
.sz-sm   { font-size: clamp(20px,2vw,30px); }

/* ─── BODY TEXT ─── */
.body { font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.9; color: var(--text-lt); }
.body.lt { color: rgba(248,243,238,.55); }
.body.sm { font-size: 13px; }
.body.md { font-size: 16px; }

/* ─── RULE ─── */
.rule { display: block; width: 56px; height: 1px; background: var(--rose); margin: 32px 0; }
.rule.sage { background: var(--sage); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 18px 40px; position: relative; overflow: hidden;
  transition: color .4s; cursor: pointer;
}
.btn-dark { border: 1px solid var(--text); color: var(--text); }
.btn-dark::before { content: ''; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 0; }
.btn-dark:hover { color: var(--cream); }
.btn-dark:hover::before { transform: scaleX(1); }
.btn-wh { border: 1px solid rgba(248,243,238,.3); color: var(--cream); }
.btn-wh::before { content: ''; position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 0; }
.btn-wh:hover { color: var(--text); }
.btn-wh:hover::before { transform: scaleX(1); }
.btn-rose { border: 1px solid var(--rose); color: var(--rose); }
.btn-rose::before { content: ''; position: absolute; inset: 0; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 0; }
.btn-rose:hover { color: var(--cream); }
.btn-rose:hover::before { transform: scaleX(1); }
.btn-sage { border: 1px solid var(--sage); color: var(--sage); }
.btn-sage::before { content: ''; position: absolute; inset: 0; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 0; }
.btn-sage:hover { color: var(--cream); }
.btn-sage:hover::before { transform: scaleX(1); }
.btn > * { position: relative; z-index: 1; }
.btn-sm { padding: 12px 28px; font-size: 9.5px; }
.btn-arrow { width: 18px; height: 10px; transition: transform .3s; }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ─── IMAGE FRAME ─── */
.img-frame {
  position: relative; overflow: hidden;
  background: var(--cream-dark);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-frame .ph-inner {
  width: 100%; height: 100%; min-height: 240px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: var(--cream-dark);
}
.img-frame.dk .ph-inner { background: #1E2B24; }
.img-frame.rose-bg .ph-inner { background: var(--rose-pale); }
.img-frame.sage-bg .ph-inner { background: var(--sage-pale); }
.ph-label {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: .32em; text-transform: uppercase;
  color: rgba(107,92,82,.35);
}
.img-frame.dk .ph-label { color: rgba(248,243,238,.2); }
.ph-note {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans); font-size: 8.5px;
  letter-spacing: .25em; text-transform: uppercase;
  background: rgba(193,123,123,.12);
  border: 1px solid rgba(193,123,123,.25);
  color: rgba(193,123,123,.7); padding: 4px 12px;
  white-space: nowrap; z-index: 2;
}
.img-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ─── HOVER ZOOM ─── */
.zoom-wrap { overflow: hidden; }
.zoom-wrap img, .zoom-wrap .ph-inner {
  transition: transform .7s var(--ease);
}
.zoom-wrap:hover img, .zoom-wrap:hover .ph-inner {
  transform: scale(1.06);
}

/* ─── OVERLAY ─── */
.overlay-dark {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(28,43,37,.85) 0%, transparent 55%);
  opacity: 0; transition: opacity .4s;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.zoom-wrap:hover .overlay-dark { opacity: 1; }
.ov-title { font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--cream); }
.ov-tag { font-family: var(--sans); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-lt); margin-top: 3px; }

/* ─── MARQUEE ─── */
.marquee { overflow: hidden; white-space: nowrap; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.marquee.dk { background: var(--forest); border-color: var(--rule-dk); }
.marquee.sage-bg { background: var(--sage-pale); }
.marquee-track { display: inline-flex; animation: mqScroll 35s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mqScroll { to { transform: translateX(-50%); } }
.mq-item { font-family: var(--italic); font-size: 14px; font-style: italic; letter-spacing: .1em; color: var(--text-lt); padding: 0 32px; }
.marquee.dk .mq-item { color: rgba(248,243,238,.3); }
.marquee.sage-bg .mq-item { color: var(--sage); }
.mq-sep { color: var(--rose); }
.marquee.dk .mq-sep { color: var(--rose-lt); }

/* ─── SCROLL REVEAL ─── */
[data-reveal] {
  opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal="up"]    { transform: translateY(60px); }
[data-reveal="right"] { transform: translateX(-50px); }
[data-reveal="left"]  { transform: translateX(50px); }
[data-reveal="fade"]  { }
[data-reveal="scale"] { transform: scale(.93); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ─── PAGE HERO ─── */
.page-hero {
  height: 70vh; min-height: 520px;
  background: var(--forest);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 80px 80px; position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; right: 60px; bottom: -40px;
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(100px,18vw,250px);
  color: rgba(255,255,255,.025); line-height: 1;
  pointer-events: none; user-select: none;
}
.page-hero-line { position: absolute; bottom: 0; left: 80px; right: 80px; height: 1px; background: var(--rule-dk); }
.breadcrumb { font-family: var(--sans); font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: rgba(248,243,238,.3); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.breadcrumb a:hover { color: var(--rose-lt); }
.breadcrumb-sep { color: rgba(248,243,238,.15); }
.page-hero-title { font-family: var(--serif); font-size: clamp(48px,7.5vw,100px); font-weight: 400; color: var(--cream); line-height: .95; letter-spacing: -.02em; }
.page-hero-title em { font-style: italic; color: var(--rose-lt); }

/* ─── SECTION LABELS ─── */
.section-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans); font-size: 9px;
  font-weight: 500; letter-spacing: .4em;
  text-transform: uppercase; color: var(--rose);
  position: absolute; left: 24px; top: 50%;
  transform: rotate(180deg) translateY(50%);
  opacity: .5;
}

/* ─── FOOTER ─── */
.footer { background: var(--forest); padding: 100px 80px 48px; position: relative; overflow: hidden; }
.footer::before {
  content: 'RR'; position: absolute; right: 60px; bottom: -20px;
  font-family: var(--serif); font-size: 260px; font-weight: 700;
  color: rgba(255,255,255,.015); line-height: 1;
  pointer-events: none; user-select: none;
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--rule-dk); margin-bottom: 44px; }
.footer-logo { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--cream); margin-bottom: 16px; line-height: 1; }
.footer-logo em { font-weight: 300; font-style: italic; }
.footer-tagline { font-family: var(--italic); font-size: 15px; font-style: italic; color: rgba(248,243,238,.35); line-height: 1.65; max-width: 300px; margin-bottom: 32px; }
.footer-col-h { font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--rose-lt); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-family: var(--sans); font-size: 13px; font-weight: 300; color: rgba(248,243,238,.4); transition: color .25s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-family: var(--sans); font-size: 11px; font-weight: 300; letter-spacing: .15em; color: rgba(248,243,238,.2); }
.footer-social { display: flex; gap: 28px; }
.footer-social a { font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: rgba(248,243,238,.35); transition: color .25s; }
.footer-social a:hover { color: var(--rose-lt); }

/* ════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════ */

/* Hero */
.hero {
  height: 100svh; min-height: 660px;
  background: var(--forest);
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
/* ─── GRAIN / NOISE — disabled on mobile for performance ─── */
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E");
  background-size: 300px; mix-blend-mode: overlay;
}
.hero-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--serif); font-size: clamp(100px,20vw,300px);
  font-weight: 600; color: rgba(255,255,255,.02);
  white-space: nowrap; pointer-events: none; user-select: none;
  z-index: 1; letter-spacing: -.02em; line-height: 1;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 80px 100px; position: relative; z-index: 3;
}
.hero-tag {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .45em; text-transform: uppercase;
  color: var(--rose-lt); margin-bottom: 28px;
  display: flex; align-items: center; gap: 18px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease) .4s;
}
.hero-tag.revealed { clip-path: inset(0 0% 0 0); }
.hero-tag::before { content: ''; width: 36px; height: 1px; background: var(--rose-lt); flex-shrink: 0; }
.hero-name {
  font-family: var(--serif); font-size: clamp(62px,8.5vw,122px);
  font-weight: 400; color: var(--cream);
  line-height: .9; letter-spacing: -.025em; margin-bottom: 32px;
}
.hero-name .line { overflow: hidden; display: block; }
.hero-name .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s var(--ease);
}
.hero-name .word.italic { font-style: italic; color: rgba(248,243,238,.42); }
.hero-name .word.up { transform: translateY(0); }
.hero-desc {
  font-family: var(--sans); font-size: 12px; font-weight: 300;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(248,243,238,.28); margin-bottom: 56px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-right { position: relative; z-index: 3; overflow: hidden; }
.hero-right-img { position: absolute; inset: 0; }
.hero-right-img .img-frame { height: 100%; }
.hero-right-img .ph-inner { background: linear-gradient(150deg, #2E3D36, #18261F); }

.hero-sidebar {
  position: absolute; right: 0; top: 0; bottom: 0; width: 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  background: rgba(28,43,37,.5); backdrop-filter: blur(14px);
  border-left: 1px solid var(--rule-dk); z-index: 4;
}
.hs-stat { text-align: center; }
.hs-num {
  font-family: var(--serif); font-size: 23px; font-weight: 300;
  font-style: italic; color: var(--rose-lt); display: block; margin-bottom: 8px;
}
.hs-label {
  font-family: var(--sans); font-size: 7.5px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(248,243,238,.25); writing-mode: vertical-rl;
  transform: rotate(180deg); display: block;
}
.hs-divider { width: 1px; height: 28px; background: var(--rule-dk); }

.scroll-indicator {
  position: absolute; bottom: 44px; left: 80px;
  display: flex; align-items: center; gap: 12px; z-index: 4;
}
.si-line { width: 1px; height: 52px; background: rgba(248,243,238,.14); position: relative; overflow: hidden; }
.si-line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: var(--rose-lt);
  animation: siDrop 2.2s ease-in-out infinite;
}
@keyframes siDrop { to { top: 100%; } }
.si-text {
  font-family: var(--sans); font-size: 9px; letter-spacing: .32em;
  text-transform: uppercase; color: rgba(248,243,238,.25);
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* ─── INTRO SPLIT ─── */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; }
.intro-left { padding: 120px 80px; border-right: 1px solid var(--rule); }
.intro-right {
  padding: 120px 80px; background: var(--rose-pale);
  display: flex; flex-direction: column; justify-content: space-between; gap: 60px;
}
.intro-quote {
  font-family: var(--italic); font-size: clamp(22px,2.8vw,34px);
  font-style: italic; color: var(--text); line-height: 1.52;
}
.intro-credit { font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-lt); margin-top: 16px; }
.intro-photo { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.intro-photo-cap { font-family: var(--sans); font-size: 9.5px; letter-spacing: .25em; text-transform: uppercase; color: var(--text-lt); margin-top: 12px; }

/* ─── SECTION TILES (skill nav) ─── */
.skill-tiles { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); }
.skill-tile {
  padding: 52px 40px; border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
  transition: background .4s var(--ease);
  display: block;
}
.skill-tile:last-child { border-right: none; }
.skill-tile::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 3px;
  background: var(--rose);
  transition: width .6s var(--ease);
}
.skill-tile:hover { background: var(--rose-pale); }
.skill-tile:hover::after { width: 100%; }
.skill-tile.sage-tile:hover { background: var(--sage-pale); }
.skill-tile.sage-tile::after { background: var(--sage); }
.st-icon { font-size: 30px; margin-bottom: 24px; display: block; }
.st-count {
  font-family: var(--sans); font-size: 9px; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase; color: var(--rose);
  margin-bottom: 8px;
}
.skill-tile.sage-tile .st-count { color: var(--sage); }
.st-name { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.st-desc { font-family: var(--sans); font-size: 12.5px; font-weight: 300; color: var(--text-lt); line-height: 1.7; margin-bottom: 24px; }
.st-arrow {
  font-family: var(--sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--rose);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .3s;
}
.skill-tile:hover .st-arrow { gap: 16px; }
.skill-tile.sage-tile .st-arrow { color: var(--sage); }

/* ─── FEATURED GRID (home) ─── */
.featured-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 60px; gap: 32px; flex-wrap: wrap; }
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.feat-item { position: relative; overflow: hidden; }
.feat-item:nth-child(1) { grid-row: 1 / 3; }
.feat-img { width: 100%; overflow: hidden; position: relative; }
.feat-item:nth-child(1) .feat-img { aspect-ratio: 3/4; }
.feat-item:nth-child(n+2) .feat-img { aspect-ratio: 4/3; }
.feat-img .img-frame .ph-inner { transition: transform .7s var(--ease); }
.feat-item:hover .feat-img .img-frame .ph-inner { transform: scale(1.05); }
.feat-meta { padding: 14px 0 0; }
.feat-num { font-family: var(--sans); font-size: 9.5px; letter-spacing: .28em; color: var(--rose); margin-bottom: 4px; }
.feat-title { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--text); }

/* ─── PHILOSOPHY DARK ─── */
.philosophy-section {
  background: var(--forest); padding: 128px 80px;
  position: relative; overflow: hidden;
}
.philosophy-watermark {
  position: absolute; top: 50%; right: -20px; transform: translateY(-50%);
  font-family: var(--serif); font-size: clamp(80px,16vw,220px);
  font-weight: 600; font-style: italic;
  color: rgba(255,255,255,.022); white-space: nowrap;
  pointer-events: none; user-select: none; line-height: 1;
}
.phil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; position: relative; z-index: 2; }
.phil-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 36px; }
.pillar { border-top: 1px solid rgba(193,123,123,.3); padding-top: 20px; }
.pillar-name { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--cream); margin-bottom: 10px; }
.pillar-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; color: rgba(248,243,238,.4); line-height: 1.7; }

/* ─── SKILLS STRIP ─── */
.skills-strip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--rule); }
.strip-item { padding: 56px 44px; border-right: 1px solid var(--rule); transition: background .35s; }
.strip-item:last-child { border-right: none; }
.strip-item:hover { background: var(--sage-pale); }
.strip-icon { font-size: 28px; margin-bottom: 20px; display: block; }
.strip-title { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.strip-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.strip-tag { font-family: var(--sans); font-size: 9.5px; letter-spacing: .1em; color: var(--text-lt); border: 1px solid var(--rule); padding: 4px 12px; }

/* ─── CTA ─── */
.cta-section { padding: 160px 80px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(193,123,123,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-heading { font-family: var(--serif); font-size: clamp(44px,5.5vw,78px); font-weight: 400; color: var(--text); line-height: 1.05; margin-bottom: 24px; }
.cta-heading em { font-style: italic; color: var(--rose); }
.cta-sub { font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--text-lt); max-width: 460px; margin: 0 auto 48px; line-height: 1.85; }
.cta-email {
  font-family: var(--serif); font-size: clamp(19px,2.5vw,30px);
  font-weight: 400; color: var(--text);
  border-bottom: 1px solid var(--rose); padding-bottom: 4px;
  transition: color .25s; display: inline-block; margin-bottom: 44px;
}
.cta-email:hover { color: var(--rose); }

/* ════════════════════════════════════════
   PORTFOLIO PAGE — Work Sections
   ════════════════════════════════════════ */

/* Sticky portfolio nav */
.pf-sticky-nav {
  background: rgba(248,243,238,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 500;
  overflow-x: auto;
}
.pf-nav-inner { display: flex; min-width: max-content; padding: 0 80px; }
.pf-nav-tab {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-lt); padding: 18px 28px;
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .25s, border-color .25s;
  white-space: nowrap;
}
.pf-nav-tab:hover, .pf-nav-tab.active { color: var(--text); border-bottom-color: var(--rose); }
.pf-nav-tab.thesis-tab { color: var(--sage); }
.pf-nav-tab.thesis-tab:hover, .pf-nav-tab.thesis-tab.active { border-bottom-color: var(--sage); }

/* Work section layout */
.work-section { padding: 120px 80px; }
.work-section.bg-rose { background: var(--rose-pale); }
.work-section.bg-sage { background: var(--sage-pale); }
.work-section.bg-forest { background: var(--forest); }
.work-section.bg-dark { background: #1A2822; }
.work-section.bg-cream { background: var(--cream-dark); }
.work-section.bg-warm { background: #F5EDE3; }

.work-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end;
  margin-bottom: 80px; padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.work-section.bg-forest .work-header,
.work-section.bg-dark .work-header { border-bottom-color: var(--rule-dk); }

.section-num {
  font-family: var(--serif); font-size: 96px; font-weight: 300;
  font-style: italic; color: rgba(193,123,123,.14);
  line-height: 1; margin-bottom: -8px;
}
.work-section.bg-forest .section-num,
.work-section.bg-dark .section-num { color: rgba(193,123,123,.1); }

.work-intro { font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--text-lt); line-height: 1.9; }
.work-section.bg-forest .work-intro,
.work-section.bg-dark .work-intro { color: rgba(248,243,238,.52); }

/* Grid systems for work items */
.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4   { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-5   { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.grid-big-left { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; }
.grid-big-right { display: grid; grid-template-columns: 1fr 1.65fr; gap: 24px; }
.grid-triple-spread {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.grid-triple-spread .main-item { grid-row: 1 / 3; }
.grid-masonry {
  columns: 3; column-gap: 20px;
}
.grid-masonry .masonry-item { break-inside: avoid; margin-bottom: 20px; }

/* Work item */
.wi { position: relative; display: flex; flex-direction: column; min-width: 0; }
.wi-img { overflow: hidden; position: relative; width: 100%; background: var(--cream-dark); }
.wi-img img, .wi-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
a.wi { color: inherit; }

/* Grid items stretch to equal height by default so rows align cleanly */
.grid-2, .grid-3, .grid-4, .grid-5 { align-items: stretch; }
.grid-2 > .wi, .grid-3 > .wi, .grid-4 > .wi, .grid-5 > .wi { height: 100%; }

/* big-left/right: force both sides to match height, stack fills remaining space evenly */
.grid-big-left, .grid-big-right { align-items: stretch; }
.grid-big-left > .wi, .grid-big-right > .wi,
.grid-big-left > .col-stack, .grid-big-right > .col-stack { height: 100%; }
.col-stack { display: flex; flex-direction: column; gap: 24px; height: 100%; }
.col-stack > .wi { flex: 1; display: flex; flex-direction: column; }
.col-stack > .wi .wi-img { flex: 1; }
.wi-meta { padding: 14px 0 0; }
.wi-tag { font-family: var(--sans); font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--rose); margin-bottom: 4px; }
.work-section.bg-forest .wi-tag,
.work-section.bg-dark .wi-tag { color: var(--rose-lt); }
.wi-title { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--text); }
.work-section.bg-forest .wi-title,
.work-section.bg-dark .wi-title { color: var(--cream); }
.wi-desc { font-family: var(--sans); font-size: 12.5px; font-weight: 300; color: var(--text-lt); line-height: 1.68; margin-top: 5px; }
.work-section.bg-forest .wi-desc,
.work-section.bg-dark .wi-desc { color: rgba(248,243,238,.42); }

/* Aspect ratios */
.ar-1x1  { aspect-ratio: 1; }
.ar-4x3  { aspect-ratio: 4/3; }
.ar-3x4  { aspect-ratio: 3/4; }
.ar-16x9 { aspect-ratio: 16/9; }
.ar-3x2  { aspect-ratio: 3/2; }
.ar-2x3  { aspect-ratio: 2/3; }
.ar-7x5  { aspect-ratio: 7/5; }
.ar-5x7  { aspect-ratio: 5/7; }

/* PDF badge */
.pdf-badge {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: var(--rose); color: var(--cream);
  font-family: var(--sans); font-size: 8.5px; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase;
  padding: 5px 12px;
}
.pdf-badge.sage { background: var(--sage); }

/* Video badge */
.video-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 3; width: 56px; height: 56px;
  background: rgba(248,243,238,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, background .3s;
}
.video-badge::after {
  content: '';
  border-left: 18px solid var(--forest);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.wi:hover .video-badge { transform: translate(-50%,-50%) scale(1.1); background: var(--cream); }

/* Count badge */
.count-badge {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  background: rgba(28,43,37,.72); backdrop-filter: blur(8px);
  color: var(--cream);
  font-family: var(--sans); font-size: 9px; font-weight: 400;
  letter-spacing: .2em; padding: 5px 12px;
}

/* Callout quote */
.callout-quote { background: var(--rose-pale); padding: 72px 80px; margin: 80px 0; display: flex; align-items: center; gap: 48px; }
.callout-quote.sage { background: var(--sage-pale); }
.callout-quote.dark { background: rgba(255,255,255,.04); }
.callout-bar { width: 2px; height: 88px; background: var(--rose); flex-shrink: 0; }
.callout-quote.sage .callout-bar { background: var(--sage); }
.callout-text {
  font-family: var(--italic); font-size: clamp(20px,2.3vw,28px);
  font-style: italic; color: var(--text); line-height: 1.55;
}
.callout-quote.dark .callout-text { color: rgba(248,243,238,.72); }

/* ════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════ */
.about-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 100px; align-items: start; }
.about-sticky { position: sticky; top: 100px; }
.about-portrait { width: 100%; aspect-ratio: 2/3; overflow: hidden; position: relative; }
.portrait-accent { position: absolute; bottom: -20px; right: -20px; width: 110px; height: 110px; border: 1px solid var(--rose); z-index: -1; }
.about-cap { font-family: var(--sans); font-size: 9.5px; letter-spacing: .25em; text-transform: uppercase; color: var(--text-lt); margin-top: 14px; }
.about-p { font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.92; color: var(--text-lt); margin-bottom: 22px; }
.pull-quote { font-family: var(--italic); font-size: clamp(18px,2.2vw,26px); font-style: italic; color: var(--text); line-height: 1.55; border-left: 2px solid var(--rose); padding-left: 26px; margin: 40px 0; }
.edu-card { background: var(--rose-pale); padding: 28px 36px; margin-top: 40px; display: flex; gap: 20px; align-items: flex-start; }
.edu-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.edu-label { font-family: var(--sans); font-size: 9px; letter-spacing: .35em; text-transform: uppercase; color: var(--rose); margin-bottom: 6px; }
.edu-name { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.edu-school { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--text-lt); }

/* Achievements */
.ach-section { background: var(--forest); padding: 120px 80px; position: relative; overflow: hidden; }
.ach-section::before { content: '★'; position: absolute; right: 60px; top: 40px; font-size: 280px; color: rgba(255,255,255,.012); pointer-events: none; font-family: serif; }
.ach-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 60px; }
.ach-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.055); padding: 44px 36px; position: relative; overflow: hidden; transition: background .3s, border-color .3s; }
.ach-card::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 0; background: var(--rose); transition: height .55s var(--ease); }
.ach-card:hover { background: rgba(193,123,123,.06); border-color: rgba(193,123,123,.22); }
.ach-card:hover::before { height: 100%; }
.ach-icon { font-size: 30px; margin-bottom: 20px; display: block; }
.ach-text { font-family: var(--sans); font-size: 14px; font-weight: 300; color: rgba(248,243,238,.6); line-height: 1.75; }

/* Philosophy */
.phil-section { padding: 120px 80px; }
.phil-header { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; padding-bottom: 72px; border-bottom: 1px solid var(--rule); margin-bottom: 72px; }
.phil-quote-big { font-family: var(--italic); font-size: clamp(20px,2.5vw,32px); font-style: italic; color: var(--text-lt); line-height: 1.52; }
.phil-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-bottom: 72px; }
.phil-body { font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--text-lt); line-height: 1.9; }
.values-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; }
.value-num { font-family: var(--serif); font-size: 48px; font-weight: 300; font-style: italic; color: rgba(193,123,123,.2); line-height: 1; margin-bottom: 12px; }
.value-name { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.value-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--text-lt); line-height: 1.68; }

/* Timeline */
.timeline-section { background: var(--sage-pale); padding: 120px 80px; }
.timeline { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 72px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 26px; left: 4%; width: 92%; height: 1px; background: linear-gradient(to right, transparent, var(--rose), var(--sage), transparent); }
.tl-item { padding: 54px 28px 0; position: relative; }
.tl-dot { position: absolute; top: 18px; left: 28px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rose); background: var(--sage-pale); z-index: 2; transition: background .3s, transform .35s var(--ease); }
.tl-item:hover .tl-dot { background: var(--rose); transform: scale(1.35); }
.tl-year { font-family: var(--serif); font-size: 38px; font-weight: 300; font-style: italic; color: rgba(193,123,123,.4); margin-bottom: 8px; display: block; }
.tl-milestone { font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--rose); margin-bottom: 10px; }
.tl-title { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.tl-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--text-lt); line-height: 1.72; }

/* ════════════════════════════════════════
   THESIS PAGE
   ════════════════════════════════════════ */
.thesis-hero {
  height: 100svh; min-height: 660px;
  background: var(--forest);
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.thesis-left {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 80px 180px; position: relative; z-index: 3;
}
.thesis-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(193,123,123,.12); border: 1px solid rgba(193,123,123,.28);
  padding: 9px 18px; margin-bottom: 32px; width: fit-content;
}
.thesis-badge span { font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--rose-lt); }
.thesis-title { font-family: var(--serif); font-size: clamp(54px,8vw,116px); font-weight: 400; color: var(--cream); line-height: .92; letter-spacing: -.025em; margin-bottom: 28px; }
.thesis-title em { display: block; font-style: italic; color: rgba(248,243,238,.42); }
.thesis-subtitle { font-family: var(--italic); font-size: 17px; font-style: italic; color: rgba(248,243,238,.42); line-height: 1.6; margin-bottom: 52px; max-width: 420px; }
.thesis-right { position: relative; z-index: 3; overflow: hidden; }
.thesis-right-img { position: absolute; inset: 0; }
.thesis-right-img .img-frame { height: 100%; }
.thesis-right-img .ph-inner { background: linear-gradient(155deg, #2E3D36, #18261F); }

.thesis-chapters {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(28,43,37,.75); backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule-dk); z-index: 4;
  display: grid; grid-template-columns: repeat(7,1fr);
}
.tc-item { padding: 16px 14px; border-right: 1px solid var(--rule-dk); cursor: pointer; transition: background .3s; }
.tc-item:last-child { border-right: none; }
.tc-item:hover { background: rgba(193,123,123,.1); }
.tc-num { font-family: var(--sans); font-size: 8px; letter-spacing: .25em; text-transform: uppercase; color: var(--rose-lt); margin-bottom: 4px; }
.tc-name { font-family: var(--serif); font-size: 11.5px; font-weight: 400; color: rgba(248,243,238,.6); }

/* Chapter sections */
.chapter { padding: 120px 80px; }
.chapter.alt { background: var(--cream-dark); }
.chapter.rose { background: var(--rose-pale); }
.chapter.sage { background: var(--sage-pale); }
.chapter.dk { background: var(--forest); }
.chapter.dark { background: #172018; }
.chapter-head { display: flex; gap: 52px; align-items: flex-start; margin-bottom: 72px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.chapter.dk .chapter-head, .chapter.dark .chapter-head { border-bottom-color: var(--rule-dk); }
.ch-num { font-family: var(--serif); font-size: 100px; font-weight: 300; font-style: italic; color: rgba(193,123,123,.14); line-height: .9; flex-shrink: 0; }
.chapter.dk .ch-num, .chapter.dark .ch-num { color: rgba(193,123,123,.1); }
.ch-inner { flex: 1; }
.ch-intro { font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--text-lt); line-height: 1.9; max-width: 680px; }
.chapter.dk .ch-intro, .chapter.dark .ch-intro { color: rgba(248,243,238,.52); }

/* Exhibition grid */
.ex-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.ex-right { display: flex; flex-direction: column; gap: 24px; }

/* ════════════════════════════════════════
   PROCESS PAGE
   ════════════════════════════════════════ */
.process-intro { display: grid; grid-template-columns: 1fr 1fr; }
.proc-left { padding: 120px 80px; border-right: 1px solid var(--rule); }
.proc-right { padding: 120px 80px; background: var(--rose-pale); display: flex; flex-direction: column; gap: 32px; justify-content: center; }
.proc-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.proc-steps { display: flex; flex-direction: column; }
.proc-step { display: flex; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.proc-step:last-child { border-bottom: none; }
.proc-step-num { font-family: var(--serif); font-size: 38px; font-weight: 300; font-style: italic; color: rgba(193,123,123,.3); line-height: 1; flex-shrink: 0; width: 56px; }
.proc-step-name { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.proc-step-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--text-lt); line-height: 1.72; }

/* Skill bars */
.skill-bars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.sg-title { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--text); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.bar-item { margin-bottom: 20px; }
.bar-label-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.bar-name { font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--text); }
.bar-level { font-family: var(--sans); font-size: 10px; font-weight: 300; color: var(--text-lt); letter-spacing: .1em; }
.bar-track { height: 1px; background: var(--rule); position: relative; }
.bar-fill { height: 1px; background: linear-gradient(90deg, var(--rose), var(--rose-lt)); position: absolute; top: 0; left: 0; transition: width 1.5s var(--ease); }
.bar-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); position: absolute; top: -2px; right: -1px; }
.bar-item.sage-bar .bar-fill { background: linear-gradient(90deg, var(--sage), var(--sage-lt)); }
.bar-item.sage-bar .bar-dot { background: var(--sage); }

/* Software grid */
.software-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 2px; }
.sw-item { background: var(--rose-pale); padding: 40px 24px; text-align: center; transition: background .35s; }
.sw-item:hover { background: var(--sage-pale); }
.sw-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.sw-name { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.sw-type { font-family: var(--sans); font-size: 10px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: var(--text-lt); }

/* Strengths */
.str-section { background: var(--forest); padding: 120px 80px; position: relative; overflow: hidden; }
.str-watermark { position: absolute; right: 44px; bottom: -28px; font-family: var(--serif); font-size: 260px; font-weight: 700; font-style: italic; color: rgba(255,255,255,.015); pointer-events: none; user-select: none; line-height: 1; }
.str-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 60px; }
.str-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.055); padding: 44px 36px; position: relative; overflow: hidden; transition: background .35s, border-color .35s; }
.str-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--rose); transition: width .55s var(--ease); }
.str-card:hover { background: rgba(193,123,123,.06); border-color: rgba(193,123,123,.22); }
.str-card:hover::after { width: 100%; }
.str-icon { font-size: 28px; margin-bottom: 20px; display: block; }
.str-title { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--cream); margin-bottom: 10px; }
.str-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; color: rgba(248,243,238,.48); line-height: 1.72; }

/* Offer grid */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 72px; }
.offer-item { padding: 44px 52px; border: 1px solid var(--rule); margin: -1px 0 0 -1px; transition: background .35s; }
.offer-item:hover { background: var(--rose-pale); z-index: 1; }
.offer-num { font-family: var(--serif); font-size: 48px; font-weight: 300; font-style: italic; color: rgba(193,123,123,.2); line-height: 1; margin-bottom: 16px; }
.offer-title { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.offer-desc { font-family: var(--sans); font-size: 13.5px; font-weight: 300; color: var(--text-lt); line-height: 1.78; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.offer-tag { font-family: var(--sans); font-size: 9.5px; letter-spacing: .1em; color: var(--text-lt); border: 1px solid var(--rule); padding: 4px 12px; }

/* Edu cards */
.edu-section { background: var(--sage-pale); padding: 120px 80px; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; }
.edu-card2 { background: var(--white); padding: 36px 40px; display: flex; gap: 20px; align-items: flex-start; transition: box-shadow .35s, transform .35s var(--ease); }
.edu-card2:hover { box-shadow: 0 20px 48px rgba(42,33,24,.08); transform: translateY(-3px); }
.edu-card2-icon { font-size: 28px; flex-shrink: 0; }
.edu-card2-tag { font-family: var(--sans); font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--rose); margin-bottom: 5px; }
.edu-card2-title { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.edu-card2-sub { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--text-lt); }

/* ════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════ */
.contact-body { display: grid; grid-template-columns: 1fr 1.4fr; min-height: 72vh; }
.contact-info {
  background: var(--forest); padding: 110px 80px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.contact-ghost { position: absolute; right: -16px; bottom: -40px; font-family: var(--serif); font-size: 260px; font-weight: 700; font-style: italic; color: rgba(255,255,255,.015); pointer-events: none; user-select: none; line-height: 1; }
.ct-detail-list { display: flex; flex-direction: column; gap: 40px; margin-top: 56px; }
.ct-detail { }
.ct-label { font-family: var(--sans); font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: var(--rose-lt); margin-bottom: 8px; }
.ct-value { font-family: var(--serif); font-size: 21px; font-weight: 400; color: var(--cream); transition: color .25s; }
.ct-value:hover { color: var(--rose-lt); }
.ct-sub { font-family: var(--sans); font-size: 12px; font-weight: 300; color: rgba(248,243,238,.35); margin-top: 4px; }
.avail-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: #7BBF9A; box-shadow: 0 0 0 3px rgba(123,191,154,.2); animation: avPulse 2s ease-in-out infinite; }
@keyframes avPulse { 0%,100%{box-shadow:0 0 0 3px rgba(123,191,154,.2)} 50%{box-shadow:0 0 0 8px rgba(123,191,154,.06)} }
.avail-text { font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(248,243,238,.45); }
.avail-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; color: rgba(248,243,238,.35); line-height: 1.68; }
.ct-social { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.ct-social-link { font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: rgba(248,243,238,.38); display: flex; align-items: center; gap: 12px; transition: color .25s; }
.ct-social-link::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.ct-social-link:hover { color: var(--rose-lt); }
.contact-form-wrap { padding: 110px 80px; background: var(--white); }
.contact-form { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.form-field { display: flex; flex-direction: column; padding: 28px 0; border-bottom: 1px solid var(--rule); position: relative; }
.form-field:focus-within { z-index: 1; }
.form-label { font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--rose); margin-bottom: 12px; transition: color .25s; }
.form-field:focus-within .form-label { color: var(--text); }
.form-input, .form-textarea, .form-select { font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--text); background: transparent; border: none; outline: none; width: 100%; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(107,92,82,.3); }
.form-textarea { resize: none; min-height: 120px; line-height: 1.75; }
.form-select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.form-underline { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--rose); transition: width .5s var(--ease); }
.form-field:focus-within .form-underline { width: 100%; }
.form-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 40px; flex-wrap: wrap; gap: 24px; }
.form-note { font-family: var(--sans); font-size: 12px; font-weight: 300; color: var(--text-lt); max-width: 260px; line-height: 1.68; }
.form-submit { font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: 18px 48px; border: 1px solid var(--text); color: var(--text); background: transparent; cursor: pointer; position: relative; overflow: hidden; transition: color .4s; }
.form-submit::before { content: ''; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 0; }
.form-submit:hover { color: var(--cream); }
.form-submit:hover::before { transform: scaleX(1); }
.form-submit span { position: relative; z-index: 1; }
.form-success { display: none; text-align: center; padding: 80px 44px; }
.form-success.show { display: block; }
.form-success-icon { font-size: 48px; margin-bottom: 22px; }
.form-success-title { font-family: var(--serif); font-size: 32px; font-weight: 400; color: var(--text); margin-bottom: 12px; }
.form-success-msg { font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--text-lt); line-height: 1.8; }

/* FAQ */
.faq-section { background: var(--rose-pale); padding: 110px 80px; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 60px; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.faq-a { font-family: var(--sans); font-size: 13.5px; font-weight: 300; color: var(--text-lt); line-height: 1.78; }

/* ════════════════════════════════════════
   FASHION-THEMED DECORATIVE ANIMATIONS
   ════════════════════════════════════════ */

/* Falling rose petals — desktop only, performance-safe */
.petal-field {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 2;
}
.petal {
  position: absolute; top: -40px;
  width: 14px; height: 14px;
  background: var(--rose-lt);
  border-radius: 0 60% 0 60%;
  opacity: 0;
  animation: petalFall linear infinite;
  will-change: transform, opacity;
}
.petal:nth-child(odd) { background: var(--rose); border-radius: 60% 0 60% 0; }
.petal:nth-child(3n) { background: var(--sage-lt); width: 10px; height: 10px; }
@keyframes petalFall {
  0%   { transform: translate3d(0,-40px,0) rotate(0deg); opacity: 0; }
  8%   { opacity: .55; }
  90%  { opacity: .4; }
  100% { transform: translate3d(var(--drift,40px), 620px, 0) rotate(340deg); opacity: 0; }
}

/* Fabric drape reveal — used on hero/section image frames */
.drape-reveal { position: relative; overflow: hidden; }
.drape-reveal::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-lt) 100%);
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 1.1s cubic-bezier(.76,0,.24,1);
  z-index: 5;
}
.drape-reveal.draped::before { transform: scaleY(0); }

/* Thread stitch underline — draws in like a needle pulling thread */
.stitch-line {
  position: relative; display: inline-block;
}
.stitch-line::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--rose) 0 6px, transparent 6px 11px);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.stitch-line.revealed::after { transform: scaleX(1); }

/* Silk shimmer sweep — subtle light pass across image frames on reveal */
.shimmer-sweep { position: relative; overflow: hidden; }
.shimmer-sweep::after {
  content: '';
  position: absolute; top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16) 45%, transparent 70%);
  z-index: 4; pointer-events: none;
  transition: left 1s cubic-bezier(.16,1,.3,1);
}
.shimmer-sweep.revealed::after { left: 150%; }

/* Floating thread/needle accent for section dividers */
.thread-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 0 auto; width: fit-content;
}
.thread-divider .td-line {
  width: 60px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--rose) 0 5px, transparent 5px 9px);
}
.thread-divider .td-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--rose);
}

/* Hanger swing icon used on loaders/empty states */
@keyframes hangerSwing {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.hanger-swing { display: inline-block; animation: hangerSwing 2.4s ease-in-out infinite; transform-origin: top center; }

/* Mobile: disable petals + shimmer entirely, keep drape (cheap) */
@media (max-width: 768px) {
  .petal-field { display: none; }
  .shimmer-sweep::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .petal-field, .shimmer-sweep::after { display: none; }
  .hanger-swing { animation: none; }
}
/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1200px) {
  .pad { padding: 100px 56px; }
  .pad-md { padding: 72px 56px; }
  .nav { padding: 24px 56px; }
  .nav.scrolled { padding: 16px 56px; }
  .hero-left { padding: 0 56px 80px; }
  .scroll-indicator { left: 56px; }
  .page-hero { padding: 0 56px 72px; }
  .page-hero-line { left: 56px; right: 56px; }
  .footer { padding: 80px 56px 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 52px; }
  .footer-grid > :first-child { grid-column: 1/-1; }
  .intro-split { grid-template-columns: 1fr; }
  .intro-left { border-right: none; border-bottom: 1px solid var(--rule); }
  .skill-tiles { grid-template-columns: repeat(3,1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .feat-item:nth-child(1) { grid-row: auto; grid-column: 1/-1; }
  .feat-item:nth-child(1) .feat-img { aspect-ratio: 16/7; }
  .phil-grid { grid-template-columns: 1fr; gap: 56px; }
  .skills-strip { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 56px; }
  .about-sticky { position: static; max-width: 400px; }
  .ach-grid { grid-template-columns: 1fr 1fr; }
  .phil-section, .phil-header { }
  .phil-header { grid-template-columns: 1fr; gap: 32px; }
  .phil-body-grid { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .work-header { grid-template-columns: 1fr; gap: 28px; }
  .grid-big-left, .grid-big-right { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(3,1fr); }
  .grid-masonry { columns: 2; }
  .callout-quote { padding: 56px; }
  .process-intro { grid-template-columns: 1fr; }
  .proc-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 80px 56px; }
  .proc-right { padding: 80px 56px; flex-direction: row; flex-wrap: wrap; }
  .skill-bars-grid { grid-template-columns: 1fr; gap: 56px; }
  .software-grid { grid-template-columns: repeat(3,1fr); }
  .str-grid { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .thesis-hero { grid-template-columns: 1fr; }
  .thesis-right { display: none; }
  .thesis-left { padding: 0 56px 200px; }
  .thesis-chapters { grid-template-columns: repeat(4,1fr); }
  .chapter { padding: 88px 56px; }
  .chapter-head { flex-direction: column; gap: 24px; }
  .ex-grid { grid-template-columns: 1fr; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-info { padding: 80px 56px; }
  .contact-form-wrap { padding: 80px 56px; }
  .faq-cols { grid-template-columns: 1fr; gap: 0; }
  .pf-nav-inner { padding: 0 56px; }
  .work-section { padding: 88px 56px; }
}

@media (max-width: 768px) {
  .pad { padding: 72px 24px; }
  .pad-md { padding: 56px 24px; }
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-left { padding: 0 24px 72px; }
  .scroll-indicator { left: 24px; }
  .page-hero { padding: 0 24px 56px; min-height: 400px; }
  .page-hero-line { left: 24px; right: 24px; }
  .footer { padding: 60px 24px 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .intro-left, .intro-right { padding: 64px 24px; }
  .skill-tiles { grid-template-columns: 1fr 1fr; }
  .skill-tile:nth-child(2n) { border-right: none; }
  .featured-grid, .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .feat-item:nth-child(1) .feat-img { aspect-ratio: 4/3; }
  .skills-strip { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .values-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .pillar-grid, .phil-pillars { grid-template-columns: 1fr; }
  .grid-masonry { columns: 1; }
  .callout-quote { flex-direction: column; gap: 20px; padding: 36px 24px; }
  .callout-bar { width: 48px; height: 2px; }
  .proc-left, .proc-right { padding: 64px 24px; }
  .proc-right { flex-direction: column; }
  .software-grid { grid-template-columns: 1fr 1fr; }
  .str-grid { grid-template-columns: 1fr; }
  .thesis-left { padding: 0 24px 220px; }
  .thesis-chapters { grid-template-columns: repeat(2,1fr); }
  .chapter { padding: 64px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .contact-info, .contact-form-wrap { padding: 64px 24px; }
  .pf-nav-inner { padding: 0 24px; }
  .work-section { padding: 64px 24px; }
  .ach-section, .phil-section, .timeline-section, .str-section, .edu-section, .faq-section { padding: 64px 24px; }

  /* ── PERFORMANCE: disable heavy effects on mobile ── */
  .hero-grain,
  .hero-bg-text,
  .page-hero-bg,
  .philosophy-watermark,
  .str-watermark,
  .contact-ghost,
  .footer::before,
  .grain::after,
  [data-parallax] {
    display: none !important;
  }

  /* Lighter, faster reveal animations on mobile */
  [data-reveal] {
    transition: opacity .5s ease, transform .5s ease;
  }
  [data-reveal="up"]    { transform: translateY(24px); }
  [data-reveal="right"] { transform: translateX(-20px); }
  [data-reveal="left"]  { transform: translateX(20px); }
  [data-reveal="scale"] { transform: scale(.97); }

  /* Marquees: slower + lighter, pause when off-screen handled via JS */
  .marquee-track { animation-duration: 50s; }

  /* Videos: ensure proper sizing + tap affordance on mobile */
  .wi-img video {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .video-badge {
    width: 48px; height: 48px;
  }

  /* Reduce image decode cost: smaller radius/shadow calcs */
  .edu-card2:hover { box-shadow: none; transform: none; }
  .skill-tile:hover, .ach-card:hover, .str-card:hover, .offer-item:hover, .sw-item:hover {
    background: initial;
  }

  /* Avoid layout shift: simplify grid gaps */
  .grid-masonry { column-gap: 12px; }
  .grid-masonry .masonry-item { margin-bottom: 12px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-big-left, .grid-big-right, .col-stack { gap: 12px; }

  /* Reduce expensive backdrop blurs on mobile */
  .nav.scrolled,
  .pf-sticky-nav,
  .thesis-chapters,
  .count-badge,
  .hero-sidebar {
    backdrop-filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #loader { display: none; }
}
