/* reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

/* theme */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-dim: #767676;
  --accent: #DCB0C3;
  --accent-dark: #b8748f;
  --soft: #faf6f7;
  --card: #f2eef0;
  --gap: 2.5rem;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.loading:not(.is-ready) { overflow: hidden; height: 100vh; }   /* curtain loock */

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-weight: 500; letter-spacing: -0.02em; }
button { font-family: inherit; }
[tabindex="-1"]:focus { outline: none; }          /* keyboard jumps linkls */
::selection { background: var(--accent); color: var(--text); }
a, button, .sidebar-link, .tab-btn, .thumb-hit { cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100003;
  padding: 0.6rem 1rem; border-radius: 6px; background: var(--text); color: #fff; font-size: 0.8rem;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/*intro*/
#loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 6vw, 6rem);
  color: #fff;
  background: var(--accent);
  will-change: transform;
}
/* curve */
#loader::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: calc(100% - 1px);
  height: 12vh;
  background: var(--accent);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.loader-inner { width: min(100%, 1120px); position: relative; }
.loader-kicker {
  margin-bottom: clamp(2rem, 7vh, 5rem);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  opacity: 0;
}
.loader-text-wrap { overflow: hidden; }
.loader-text {
  font-size: clamp(3rem, 11.5vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(115%);
}
.loader-text span { color: rgba(255, 255, 255, 0.68); }
.loader-bottomline {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: clamp(2rem, 7vh, 5rem);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0;
}
.loader-percent { font-variant-numeric: tabular-nums; }
.loader-progress { width: 100%; height: 1px; margin-top: 1rem; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.loader-progress span { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }

/*Amblayer*/
.grain-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

/* restrained wash*/
.color-atmosphere {
  --ambient-rgb: 220, 176, 195;
  --ambient-x: 50%;
  --ambient-y: 28%;
  position: fixed; inset: -12%; z-index: 2; pointer-events: none;
  opacity: 0.52;
  background:
    radial-gradient(ellipse at var(--ambient-x) var(--ambient-y), rgba(var(--ambient-rgb), 0.15), transparent 35%),
    radial-gradient(ellipse at 85% 80%, rgba(var(--ambient-rgb), 0.08), transparent 34%);
  filter: blur(28px);
  transition: background 0.9s ease, opacity 0.7s ease;
  mix-blend-mode: multiply;
}

.particle-trail {
  position: fixed; inset: 0; z-index: 19997; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.particle-trail.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .particle-trail { display: none !important; }
  .color-atmosphere { opacity: 0.24; filter: blur(18px); }
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent-dark); transform: scaleX(0); transform-origin: left center; }

/* round view */
.view-cursor { position: fixed; left: 0; top: 0; z-index: 19998; width: 0; height: 0; pointer-events: none; }
.view-cursor span {
  position: absolute; left: 0; top: 0; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-dark); color: #fff;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.5s var(--ease-spring), background 0.3s ease;
}
.view-cursor.is-on span { transform: scale(1); }
.view-cursor.is-small span { transform: scale(0.22); }
html.vw-lock .view-cursor { opacity: 0 !important; }
html.vc-on .art-thumb:not(.static-thumb) .thumb-hit { cursor: none; }
@media (hover: none), (pointer: coarse) { .view-cursor { display: none; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100002;
  padding: 0.7rem 1.2rem; border-radius: 999px;
  background: var(--text); color: #fff; font-size: 0.8rem; letter-spacing: 0.02em; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/*NAVI*/
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.75rem 3rem; padding-right: 6.5rem;
  z-index: 100;
  opacity: 0;
  color: #fff;  
  pointer-events: none;
}
.navbar a { pointer-events: auto; }
body.is-ready .navbar { opacity: 1; }
.nav-logo { font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; flex-shrink: 0; }
.nav-links { display: flex; gap: 2.5rem; color: #fff; }
.nav-links a {
  font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  opacity: 0.75; transition: opacity 0.3s ease, color 0.3s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-logo, .nav-links a { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }

/* buttons drift */
.magnetic-link, .magnetic-btn { position: relative; display: inline-flex; padding: 0.4rem 0.6rem; }
.magnetic-link span, .magnetic-btn span { display: inline-block; will-change: transform; }

/* underline self */
.nav-links a span, .contact-email span, .social-links a span { position: relative; }
.nav-links a span::after, .social-links a span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform 0.55s var(--ease-out);
}
.nav-links a:hover span::after, .social-links a:hover span::after { transform: scaleX(1); transform-origin: left center; }

/* sidebar toggle */
.sidebar-toggle {
  position: fixed; top: 1.6rem; right: 2.2rem; z-index: 300;
  width: 44px; height: 44px; border-radius: 50%;
  background-color: var(--accent); border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background-color 0.3s ease, box-shadow 0.4s ease;
}
.sidebar-toggle:hover { background-color: #d49fb6; box-shadow: 0 8px 22px -8px rgba(184, 116, 143, 0.7); }
.sidebar-toggle-line { width: 18px; height: 2px; background-color: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease-out), opacity 0.3s ease; }
.sidebar-toggle.open .sidebar-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.open .sidebar-toggle-line:nth-child(2) { opacity: 0; }
.sidebar-toggle.open .sidebar-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* sidebar panel */
.sidebar {
  position: fixed; top: 0; right: 0; height: 100%; width: 320px; max-width: 85vw;
  background-color: var(--bg);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.08);
  z-index: 250;
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.sidebar.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.sidebar-header {
  font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-link { font-size: 1.4rem; letter-spacing: -0.01em; color: var(--text); padding: 0.6rem 0; transition: color 0.3s ease; }
.sidebar-link:hover { color: var(--accent-dark); }
.sidebar-link.active-filter span { color: var(--accent-dark); }
.sidebar-link.active-filter span::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.7rem; border-radius: 50%;
  background: var(--accent-dark); vertical-align: middle; transform: translateY(-1px);
}
.sidebar-footer { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-footer .sidebar-link { font-size: 0.95rem; color: var(--text-dim); }
.sidebar-footer .sidebar-link:hover { color: var(--accent-dark); }
.sidebar.open .sidebar-link, .sidebar.open .sidebar-header {
  animation: slideIn 0.9s var(--ease-out) both;
  animation-delay: calc(140ms + var(--n, 0) * 55ms);
}
.sidebar.open .sidebar-header { animation-delay: 80ms; }
@keyframes slideIn { from { opacity: 0; transform: translateX(34px); } }

.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.25); z-index: 240;
  opacity: 0; pointer-events: none; transition: opacity 0.45s ease;
}
.sidebar-overlay.visible { opacity: 1; pointer-events: auto; }

/*Hero*/
.hero-section { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; isolation: isolate; background: #1b1a1c; }
.hero-art { position: absolute; inset: 0; opacity: 0; }
body.is-ready .hero-art { opacity: 1; }
.hero-slides { position: absolute; inset: 0; will-change: transform; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 0;
  transition: opacity 1.9s ease;
  transform-origin: 40% 55%;
}
.hero-slide:nth-child(2) { transform-origin: 62% 48%; }
.hero-slide:nth-child(3) { transform-origin: 35% 60%; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
.hero-slide.is-active, .hero-slide.is-leaving { animation: heroKb 15s cubic-bezier(0.25, 0.6, 0.3, 1) both; }
@keyframes heroKb { from { transform: scale(1.04); } to { transform: scale(1.15); } }

.hero-section::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 0% 100%, rgba(0, 0, 0, 0.42), transparent 58%),
    linear-gradient(135deg, rgba(var(--ambient-rgb, 220, 176, 195), 0.14), transparent 55%);
}

.hero-caption {
  position: absolute; z-index: 3;
  left: clamp(1.25rem, 4vw, 4rem); bottom: clamp(3.5rem, 9vh, 4.5rem);
  max-width: min(720px, calc(100% - 3rem));
  color: #fff;
  opacity: 0;
}
body.is-ready .hero-caption { opacity: 1; }
.hero-eyebrow { margin-bottom: 0.85rem; font-size: 0.62rem; letter-spacing: 0.2em; font-weight: 600; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero-eyebrow span { padding: 0 0.5rem; opacity: 0.8; }
.hero-name {
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 500;
  color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.3);
}
.ch-word { display: inline-block; white-space: nowrap; }
.ch-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.015em 0.2em; margin-bottom: -0.2em; }
.ch { display: inline-block; will-change: transform; }
.hero-explore {
  margin-top: 1.5rem; display: inline-flex; padding: 0.5rem 0 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 0.78rem; letter-spacing: 0.03em; color: #fff;
  transition: border-color 0.4s ease, letter-spacing 0.6s var(--ease-out);
}
.hero-explore:hover { border-color: #fff; letter-spacing: 0.06em; }
.hero-explore b { display: inline-block; margin-left: 1rem; font-size: 1.1rem; font-weight: 400; transition: transform 0.5s var(--ease-spring); }
.hero-explore:hover b { transform: translate(3px, 3px); }

.hero-index {
  position: absolute; z-index: 3; right: clamp(1.25rem, 3vw, 3rem); bottom: 2.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  color: #fff; font-size: 0.62rem; letter-spacing: 0.14em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero-slide-label { cursor: pointer; font-variant-numeric: tabular-nums; transition: opacity 0.3s ease; }
.hero-slide-label:hover { opacity: 0.7; }
.hero-index i { position: relative; width: 48px; height: 1px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.hero-index i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left center; }
.hero-index i.run::after { animation: heroTick 7s linear forwards; }
@keyframes heroTick { to { transform: scaleX(1); } }

/*MARQUEE*/
.marquee-banner { width: 100%; overflow: hidden; padding: 1.75rem 0; border-top: 1px solid rgba(0, 0, 0, 0.08); border-bottom: 1px solid rgba(0, 0, 0, 0.08); background-color: var(--soft); }
.marquee-track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee-scroll 22s linear infinite; will-change: transform; }
.marquee-track.js-marquee { animation: none; }  
.marquee-track span { font-size: 1.1rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-dim); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/*Reveal*/
.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease-out) var(--rd, 0s), transform 1.2s var(--ease-out) var(--rd, 0s);
}
.js [data-reveal].in-view { opacity: 1; transform: none; }

.split-heading .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.split-heading .sw-i { display: inline-block; }
.js .split-heading .sw-i {
  transform: translateY(112%) rotate(3deg); transform-origin: left bottom;
  transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 70ms);
}
.js .split-heading.in-view .sw-i { transform: none; }

.section-heading { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2.5rem; color: var(--text); }

/*gallery*/
.gallery { padding: 2.5rem 2rem; max-width: 100%; margin: 0 auto; scroll-margin-top: 50px; }

.gallery-tabs { position: relative; display: flex; gap: 0.65rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab-btn {
  position: relative; z-index: 1;
  background: none; border: 1px solid rgba(0, 0, 0, 0.12); color: var(--text-dim);
  font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.tab-btn:hover { color: var(--text); border-color: var(--accent); }
.tab-btn.active { color: #fff; background-color: var(--accent-dark); border-color: var(--accent-dark); }
.gallery-tabs.has-pill .tab-btn.active { background-color: transparent; border-color: transparent; }
.gallery-tabs.has-pill .tab-btn.active:hover { color: #fff; }
.tab-pill {
  position: absolute; left: 0; top: 0; z-index: 0;
  width: var(--w, 0); height: var(--h, 0);
  transform: translate3d(var(--x, 0), var(--y, 0), 0);
  border-radius: 999px; background: var(--accent-dark);
  box-shadow: 0 10px 24px -10px rgba(184, 116, 143, 0.8);
  transition: transform 0.65s var(--ease-out), width 0.65s var(--ease-out), height 0.65s var(--ease-out);
  pointer-events: none;
}
.tab-pill.no-anim { transition: none; }
.gallery-tabs:not(.has-pill) .tab-pill { display: none; }

.noscript-note { padding: 3rem 0; text-align: center; color: var(--text-dim); }

.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.75rem; width: 100%; justify-items: center; align-items: start; }

.art-thumb {
  --r: 1.7778;
  position: relative;
  width: min(100%, 1500px, calc(76vh * var(--r)));
  border-radius: 8px;
  background: var(--ph, var(--card));
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.6s var(--ease-out);
}
.js .art-thumb:not(.is-in), .js #collaborative-films:not(.is-in) { opacity: 0; }

.thumb-media { position: relative; aspect-ratio: var(--r); overflow: hidden; border-radius: inherit; }
.thumb-media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.8s ease;
}
.thumb-media > img.thumb-img:not(.is-loaded) { opacity: 0; }
html.vw-lock .thumb-media > img { transform: none !important; transition: none !important; }

.thumb-hit { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; background: transparent; border-radius: inherit; }
.thumb-hit:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent-dark); }

.thumb-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.26), transparent 46%);
  transition: opacity 0.6s ease;
}

.thumb-caption {
  position: absolute; z-index: 6; bottom: 0; left: 0; width: 100%;
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.15rem;
  padding-top: 3.2rem;
  background: linear-gradient(to top, rgba(24, 16, 20, 0.82), rgba(24, 16, 20, 0.5) 52%, transparent);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
}
.thumb-title { font-size: 0.95rem; color: #fff; }
.thumb-meta { font-size: 0.75rem; color: rgba(255, 255, 255, 0.75); }
.thumb-palette { display: flex; gap: 0.4rem; margin-top: 0.55rem; }
.thumb-palette:empty { display: none; }
.thumb-palette .swatch {
  width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
  pointer-events: auto; cursor: copy;
  transition: transform 0.35s var(--ease-spring);
}
.thumb-palette .swatch:hover { transform: scale(1.45); }

@media (hover: hover) and (pointer: fine) {
  .art-thumb:hover { box-shadow: 0 30px 60px -28px rgba(184, 116, 143, 0.55), 0 2px 6px rgba(0, 0, 0, 0.06); }
  .art-thumb:hover .thumb-media > img.is-on, .art-thumb:hover .thumb-media > img.thumb-img, .art-thumb:hover .thumb-media > img:only-child { transform: scale(1.035); }
  .art-thumb:hover .thumb-sheen { opacity: 1; }
  .art-thumb:hover .thumb-caption, .art-thumb:focus-within .thumb-caption { opacity: 1; transform: translateY(0); }
  .art-thumb:hover .thumb-palette .swatch { animation: swatchPop 0.6s var(--ease-spring) both; animation-delay: calc(90ms + var(--i, 0) * 55ms); }
}
@keyframes swatchPop { from { opacity: 0; transform: scale(0.2) translateY(8px); } }

/* storyboard card */
.is-story .thumb-media, .is-story .thumb-hit { touch-action: pan-y; }   
.sb-frame { opacity: 0; }
.sb-frame.is-on { opacity: 1; }
.thumb-media > img.sb-frame { transition: opacity 0.32s ease, transform 1.2s var(--ease-out); }
.sb-badge {
  position: absolute; z-index: 3; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  pointer-events: none;
}
.sb-badge b { font-weight: 600; }
.sb-badge i { width: 14px; height: 1px; background: currentColor; opacity: 0.4; }
.sb-pos { font-variant-numeric: tabular-nums; opacity: 0.7; }
.sb-segs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; pointer-events: none; }
.sb-segs i { position: relative; flex: 1; height: 4px; background: rgba(255, 255, 255, 0.38); overflow: hidden; }
.sb-segs i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease-out); }
.sb-segs i.is-seen::after { transform: scaleX(1); }
.sb-segs i.is-on::after { transform: scaleX(1); background: var(--accent); }
.sb-nav {
  position: absolute; z-index: 7; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  display: none; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.sb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-nav:disabled { opacity: 0.3; }
.sb-prev { left: 12px; }
.sb-next { right: 12px; }
@media (hover: none) { .sb-nav { display: grid; } }

/* Personal Art: compact collage*/
.gallery-grid.personal-art-mode { display: block; column-count: 4; column-gap: clamp(0.65rem, 1.25vw, 1.2rem); }
.gallery-grid.personal-art-mode > .art-thumb { display: block; width: 100%; max-width: 100%; margin: 0 0 clamp(0.65rem, 1.25vw, 1.2rem); break-inside: avoid; }
.gallery-grid.personal-art-mode .thumb-caption {
  inset: 0; height: 100%; justify-content: flex-end;
  padding: clamp(0.6rem, 1.3vw, 1.1rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08) 58%, transparent);
}

/* placeholder card */
.static-thumb { width: min(calc(100% - 4rem), 1500px); margin: 0 auto clamp(3rem, 6vw, 5rem); }

/*colab films*/
.collaborative-films-section { position: relative; padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 6vw, 6rem); color: var(--text); scroll-margin-top: 0; }
.collaborative-films-inner { width: 100%; max-width: 1440px; margin: 0 auto; }
.films-eyebrow { margin: 0 0 1rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65; }
.collaborative-films-section .section-heading { margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.collaborative-films-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.collaborative-film { min-width: 0; }
.collaborative-film-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; border-radius: 8px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.45); }
.collaborative-film-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-poster-button { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; background: #050505; }
.film-poster-button img { transition: transform 1.4s var(--ease-out), filter 0.6s ease; }
.film-poster-button:hover img { transform: scale(1.05); filter: brightness(0.85); }
.film-play-icon {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.6s var(--ease-spring), background 0.3s ease;
}
.film-play-icon::before {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--accent-dark);
}
.film-play-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.9);
  animation: playPulse 2.6s ease-out infinite;
}
.film-poster-button:hover .film-play-icon { transform: scale(1.12); }
@keyframes playPulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.collaborative-film-player.is-playing .film-poster-button { display: none; }
.collaborative-film-caption { padding-top: 1.15rem; }
.collaborative-film-caption .film-index { display: block; margin-bottom: 0.55rem; font-size: 0.62rem; letter-spacing: 0.18em; opacity: 0.6; }
.collaborative-film-caption h3 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.035em; }
.collaborative-film-caption p { margin: 0.55rem 0 0; font-size: 0.9rem; line-height: 1.5; opacity: 0.7; }

/*about and contact*/
.about-section { padding: 6rem 3rem; max-width: 1100px; margin: 0 auto; }
.about-content { display: grid; grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: center; }
.about-photo { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; }
.about-text h2 { font-size: 1.6rem; margin-bottom: 1.25rem; color: var(--text); }
.about-text p { color: var(--text-dim); font-size: 1rem; max-width: 520px; }

.contact-section { padding: 6rem 3rem 4rem; text-align: center; background-color: var(--soft); }
.contact-section h2 { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--text); }
.contact-email { display: inline-flex; max-width: 100%; font-size: 1.1rem; overflow-wrap: anywhere; border-bottom: 1px solid var(--accent-dark); padding-bottom: 0.2rem; color: var(--text); transition: color 0.3s ease, border-color 0.3s ease; }
@media (max-width: 360px) { .contact-email { font-size: 0.95rem; } }
.contact-email:hover { color: var(--accent-dark); }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; }
.social-links a { font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-dim); transition: color 0.3s ease; }
.social-links a:hover { color: var(--accent-dark); }
.footer-note { margin-top: 3.5rem; padding-bottom: 2.5rem; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-dim); }
.back-to-top { margin-left: 0.5rem; transition: color 0.3s ease; }
.back-to-top:hover { color: var(--accent-dark); }

/*respo*/
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; text-align: center; }
  .navbar { padding: 1.1rem 1.25rem; padding-right: 4.5rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.75rem; }
  .marquee-track span { font-size: 0.9rem; }
  .sidebar-toggle { top: 0.9rem; right: 1rem; width: 40px; height: 40px; }
  .gallery-grid.personal-art-mode { column-count: 3; }
  .hero-caption { left: 2rem; }
}

@media (max-width: 760px) {
  .collaborative-films-grid { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
}

@media (max-width: 650px) {
  .gallery-grid.personal-art-mode { column-count: 2; column-gap: 0.75rem; }
  .gallery-grid.personal-art-mode > .art-thumb { margin-bottom: 0.75rem; }
}

@media (max-width: 600px) {
  .loader-text { font-size: clamp(2.8rem, 13vw, 5rem); }
  .loader-bottomline { align-items: flex-start; font-size: 0.58rem; }
  .loader-subtitle { max-width: 75%; line-height: 1.5; }
  .hero-caption { left: 1.25rem; right: 1.25rem; bottom: 4.5rem; max-width: none; }
  .hero-eyebrow { font-size: 0.55rem; letter-spacing: 0.12em; margin-bottom: 0.7rem; }
  .hero-eyebrow span { padding: 0 0.3rem; }
  .hero-index { left: 1.25rem; right: auto; bottom: 1.5rem; font-size: 0.55rem; }
}

@media (max-width: 560px) {
  .gallery, .about-section, .contact-section { padding: 4rem 1.5rem; }
  .gallery { padding-top: 2.5rem; }
  .gallery-grid { gap: 1.5rem; }
  .gallery-grid:not(.personal-art-mode) > .art-thumb { width: 100%; }
  .static-thumb { width: calc(100% - 3rem); }
  .nav-links { display: none; }
  .navbar { padding: 1rem 1.25rem; padding-right: 4rem; justify-content: flex-start; }
  .nav-logo { font-size: 0.85rem; }
  .sidebar-toggle { top: 0.85rem; right: 0.9rem; width: 38px; height: 38px; }
  .gallery-tabs { gap: 0.75rem; margin-bottom: 2.5rem; }
  .tab-btn { font-size: 0.75rem; padding: 0.45rem 0.9rem; }
  .about-content { gap: 2rem; }
  .about-photo { max-width: 220px; margin: 0 auto; }
  .sidebar { width: 100%; max-width: 100vw; padding: 2rem 1.5rem; }
  .sidebar-link { font-size: 1.2rem; }
  .sb-badge { top: 10px; left: 10px; padding: 0.38rem 0.7rem; }
  .sb-nav { width: 38px; height: 38px; margin-top: -19px; }
  .film-play-icon { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

@media (max-width: 380px) {
  .gallery-grid.personal-art-mode { column-count: 1; }
}

/*Rm*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .js [data-reveal], .js .split-heading .sw-i { opacity: 1; transform: none; }
}
