/* CMS Portfolio — dark cinematic edition (child of Twenty Twenty-Five) */

:root {
  --bg: #0c0c0c;
  --bg-soft: #141414;
  --white: #ffffff;
  --gray: #808080;
  --dim: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #b99256;
  --font-display: "Six Caps", "Arial Narrow", sans-serif;
  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0c0c0c; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }

@media (pointer: fine) {
  body, a, button, .project-card { cursor: none; }
}

.wrap { max-width: 1400px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) { .wrap { padding-left: 48px; padding-right: 48px; } }

.label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gray);
}
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  background: transparent; color: var(--white);
  padding: 15px 36px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s;
}
.pill:hover { background: var(--white); color: #0c0c0c; border-color: var(--white); transform: translateY(-2px); }
.pill svg { width: 14px; height: 14px; }

/* ============ Loader ============ */
#loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .l-mark { font-family: var(--font-display); font-size: 72px; letter-spacing: 0.06em; line-height: 1; }
#loader .l-num { font-size: 13px; letter-spacing: 0.3em; color: var(--gray); font-weight: 400; }

/* ============ Cursor ============ */
.cursor-dot, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: flex; position: fixed; top: 0; left: 0; z-index: 300;
    pointer-events: none; align-items: center; justify-content: center;
    border-radius: 50%; transform: translate(-50%, -50%);
  }
  .cursor-dot { width: 6px; height: 6px; background: var(--white); }
  .cursor-ring {
    width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.7);
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  }
  .cursor-ring .cursor-label {
    font-size: 10px; font-weight: 500; letter-spacing: 0.14em; color: var(--white);
    opacity: 0; transition: opacity 0.25s; text-transform: uppercase; white-space: nowrap;
  }
  .cursor-ring.big {
    width: 92px; height: 92px; background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px);
  }
  .cursor-ring.big .cursor-label { opacity: 1; }
}

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; mix-blend-mode: normal;
  transition: background 0.4s, backdrop-filter 0.4s;
}
@media (min-width: 768px) { .site-header { padding: 26px 48px; } }
.site-header.scrolled { background: rgba(12, 12, 12, 0.72); backdrop-filter: blur(14px); }
.wordmark { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.08em; line-height: 1; }
.wordmark small { font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.3em; color: var(--gray); display: block; margin-top: 2px; font-weight: 400; }
.menu-btn {
  display: flex; align-items: center; gap: 14px; background: none; border: 0; color: var(--white);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
}
.burger { display: flex; flex-direction: column; gap: 6px; width: 30px; }
.burger span { display: block; height: 2px; background: var(--white); transition: transform 0.35s, opacity 0.35s; }
.menu-btn.open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open .burger span:nth-child(2) { opacity: 0; }
.menu-btn.open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Fullscreen menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(12, 12, 12, 0.97);
  display: flex; flex-direction: column; justify-content: center; padding: 0 24px;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
@media (min-width: 768px) { .menu-overlay { padding: 0 48px; } }
.menu-overlay.open { clip-path: inset(0 0 0% 0); }
.menu-overlay nav { max-width: 1400px; margin: 0 auto; width: 100%; }
.menu-overlay a {
  display: flex; align-items: baseline; gap: 20px; padding: 6px 0;
  font-family: var(--font-display); font-size: clamp(56px, 9vw, 130px); line-height: 1.02;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(40px); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}
.menu-overlay.open a { opacity: 1; transform: none; }
.menu-overlay.open a:nth-child(1) { transition-delay: 0.25s; }
.menu-overlay.open a:nth-child(2) { transition-delay: 0.32s; }
.menu-overlay.open a:nth-child(3) { transition-delay: 0.39s; }
.menu-overlay.open a:nth-child(4) { transition-delay: 0.46s; }
.menu-overlay.open a:nth-child(5) { transition-delay: 0.53s; }
.menu-overlay a:hover { color: var(--accent); }
.menu-overlay a .idx { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.3em; color: var(--gray); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh; min-height: 100svh; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 110%, rgba(185, 146, 86, 0.1), transparent 60%),
    var(--bg);
}
.hero-kicker { margin-bottom: 26px; }
.hero-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(88px, 20vw, 330px); line-height: 0.88; letter-spacing: 0.015em;
  margin: 0; padding: 0 12px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(110%); animation: lineUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes lineUp { to { transform: none; } }
.hero-sub {
  margin-top: 30px; max-width: 640px; padding: 0 24px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--dim); line-height: 2;
  opacity: 0; animation: fadeIn 1s ease 0.9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero-corners {
  position: absolute; bottom: 34px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 24px;
  opacity: 0; animation: fadeIn 1s ease 1.2s forwards;
}
@media (min-width: 768px) { .hero-corners { padding: 0 48px; } }
.hero-corners .label { display: flex; align-items: center; gap: 10px; }
.hero-corners .label::before { content: ""; width: 34px; height: 1px; background: var(--faint); display: inline-block; }
.hero-corners .right::before { order: 2; }

/* ============ Work (stacked cards) ============ */
.section { padding: 120px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 170px 0; } }
.sec-head { text-align: center; margin-bottom: 70px; }
.sec-head .giant {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(72px, 12vw, 190px); line-height: 0.9; margin: 18px 0 0;
}
.stack { position: relative; padding-bottom: 6vh; }
.stack-card {
  position: sticky; top: 9vh; height: 82vh; min-height: 480px;
  width: min(1240px, 92vw); margin: 0 auto 10vh;
  border-radius: 20px; overflow: hidden; background: var(--bg-soft);
  will-change: transform; transform-origin: center top;
}
.stack-card:last-child { margin-bottom: 4vh; }
.stack-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.stack-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 46%); pointer-events: none; }
.stack-cat {
  position: absolute; top: 26px; left: 26px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px;
  padding: 9px 20px; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  background: rgba(12,12,12,0.35); backdrop-filter: blur(8px);
}
.stack-year {
  position: absolute; top: 26px; right: 26px;
  font-size: 12px; letter-spacing: 0.24em; color: var(--dim); font-weight: 400;
}
.stack-bottom { position: absolute; left: 26px; right: 26px; bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
@media (min-width: 768px) { .stack-bottom { left: 44px; right: 44px; bottom: 44px; } .stack-cat { top: 34px; left: 44px; } .stack-year { top: 38px; right: 44px; } }
.stack-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(52px, 6.5vw, 110px); line-height: 0.9; margin: 0; }
.stack-view {
  flex-shrink: 0; width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5); background: rgba(12,12,12,0.35); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.35s, color 0.35s, transform 0.35s;
}
.stack-card:hover .stack-view { background: var(--white); color: #0c0c0c; transform: scale(1.08); }
.work-more { text-align: center; margin-top: 30px; }

/* ============ Statement ============ */
.statement-sec { padding: 140px 0; }
@media (min-width: 768px) { .statement-sec { padding: 200px 0; } }
.statement {
  max-width: 1020px; margin: 0 auto; text-align: center;
  font-size: clamp(17px, 2.1vw, 25px); font-weight: 400; line-height: 1.9;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 0 24px;
}
.statement .w { opacity: 0.13; transition: opacity 0.35s; }
.statement .w.lit { opacity: 1; }
.statement .hl { color: var(--accent); }

/* ============ About ============ */
.about-grid { display: grid; gap: 60px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: start; } }
.about-copy p { font-size: 16px; font-weight: 300; line-height: 1.95; color: var(--dim); margin: 0 0 26px; }
.about-copy p strong { color: var(--white); font-weight: 500; }
.values { margin-top: 90px; }
.value-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px 24px;
  padding: 42px 0; border-top: 1px solid var(--line);
}
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-num { font-family: var(--font-display); font-size: 30px; color: var(--gray); line-height: 1.2; }
.value-row h3 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(38px, 4.6vw, 68px); line-height: 0.95; margin: 0 0 14px;
  transition: color 0.35s;
}
.value-row:hover h3 { color: var(--accent); }
.value-row p { grid-column: 2; margin: 0; color: var(--gray); font-size: 15px; font-weight: 300; line-height: 1.8; max-width: 560px; }

/* ============ Expertise (skills rotator) ============ */
.skills { text-align: center; padding: 40px 0 20px; }
.skill-item {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(54px, 8.6vw, 138px); line-height: 1.04; letter-spacing: 0.015em;
  color: #232323; margin: 0; padding: 6px 12px;
  transition: color 0.45s ease;
}
.skill-item.lit { color: var(--white); }
.skill-item .n { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.3em; color: var(--gray); vertical-align: super; margin-right: 14px; }

/* ============ Experience ============ */
.exp-row {
  display: grid; gap: 10px; padding: 44px 0; border-top: 1px solid var(--line);
}
.exp-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .exp-row { grid-template-columns: 220px 1fr auto; gap: 40px; align-items: baseline; }
}
.exp-period { font-size: 12px; letter-spacing: 0.22em; color: var(--gray); text-transform: uppercase; font-weight: 400; }
.exp-company {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(40px, 4.8vw, 72px); line-height: 0.95; margin: 0;
  transition: color 0.3s;
}
.exp-row:hover .exp-company { color: var(--accent); }
.exp-role { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-top: 12px; }
.exp-points { list-style: none; margin: 18px 0 0; padding: 0; }
.exp-points li { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.9; padding-left: 18px; position: relative; }
.exp-points li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.badge-now {
  display: inline-block; margin-left: 16px; vertical-align: middle;
  font-family: var(--font-sans); font-size: 10px; font-weight: 500; letter-spacing: 0.24em;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 7px 16px;
  text-transform: uppercase;
}

/* ============ Showreel ============ */
.reel {
  position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(185,146,86,0.14), transparent 60%), #101010;
}
.reel-inner { aspect-ratio: 16/8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
@media (min-width: 768px) { .reel-inner { aspect-ratio: 16/7; } }
.play-btn {
  width: 92px; height: 92px; border-radius: 50%; background: var(--white); color: #0c0c0c;
  display: flex; align-items: center; justify-content: center; border: 0;
  transition: transform 0.35s;
}
.play-btn:hover { transform: scale(1.1); }
.play-btn svg { width: 30px; height: 30px; fill: currentColor; margin-left: 3px; }
.reel-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(44px, 5.4vw, 84px); line-height: 1; margin: 30px 0 0; }
.reel-desc { color: var(--gray); font-size: 14px; font-weight: 300; letter-spacing: 0.06em; margin: 14px 0 30px; max-width: 480px; line-height: 1.9; }

/* ============ Goal ============ */
.goal { text-align: center; max-width: 900px; margin: 0 auto; }
.goal .display { font-size: clamp(44px, 5.6vw, 88px); line-height: 1.02; margin: 26px 0 0; }
.goal .display em { font-style: normal; color: var(--accent); }

/* ============ Contact ============ */
.contact-grid { display: grid; gap: 48px; text-align: center; margin-bottom: 120px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid .icon { width: 44px; height: 44px; margin: 0 auto 22px; color: var(--white); }
.contact-grid .icon svg { width: 100%; height: 100%; }
.contact-grid .val { font-size: 17px; font-weight: 500; letter-spacing: 0.04em; margin: 0; }
.contact-grid .val a:hover { color: var(--accent); }
.contact-grid .lbl { margin-top: 12px; }
.giant-cta { display: block; text-align: center; padding: 60px 0 40px; }
.giant-cta .label { display: block; margin-bottom: 30px; }
.giant-word {
  font-family: var(--font-display); text-transform: uppercase; display: block;
  font-size: clamp(96px, 21vw, 340px); line-height: 0.85; letter-spacing: 0.01em;
  color: transparent;
  background: linear-gradient(to top, var(--white) var(--fill, 8%), #2b2b2b var(--fill, 8%));
  -webkit-background-clip: text; background-clip: text;
  transition: letter-spacing 0.5s;
}
.giant-cta:hover .giant-word { letter-spacing: 0.045em; }

/* ============ Footer ============ */
.footer-bar {
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px 24px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray);
}
@media (min-width: 768px) { .footer-bar { padding: 26px 48px; } }
.footer-bar a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; font-weight: 400; }
.footer-bar a:hover { color: var(--white); }
.footer-bar .socials { display: flex; gap: 20px; }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(5, 5, 5, 0.82); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 32px; } }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative; width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto;
  background: #131313; border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  transform: translateY(60px); opacity: 0; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
@media (min-width: 640px) { .modal { border-radius: 20px; } }
.modal-overlay.open .modal { transform: none; opacity: 1; }
.modal-media { position: relative; aspect-ratio: 16/8; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.75), transparent 60%); }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(12,12,12,0.5); color: #fff; backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; transition: transform 0.3s, background 0.3s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--white); color: #0c0c0c; }
.modal-close svg { width: 18px; height: 18px; }
.modal-head { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; }
.modal-cat { font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.modal-title { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(44px, 5vw, 68px); line-height: 0.95; margin: 10px 0 0; }
.modal-grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .modal-grid { grid-template-columns: 1fr 1fr; } }
.modal-box { background: #131313; padding: 30px 28px; }
.modal-box h4 { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.modal-box h4 svg { width: 15px; height: 15px; }
.modal-box p { margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.9; color: var(--dim); }

/* ============ Scroll reveal ============ */
.rv { opacity: 0; transform: translateY(46px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.in { opacity: 1; transform: none; }
