/* ============================================================
   Océane Wang — 3D Environment & VFX Artist
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --bg-alt:    #0e0e12;
  --bg-elev:   #141419;
  --text:      #f0efec;
  --muted:     #8b8b96;
  --dim:       #5c5c66;
  --line:      #23232c;
  --accent:    #ff6a2b;
  --accent-dim:#7a3418;

  --wrap:      1180px;
  --gutter:    clamp(20px, 5vw, 48px);
  --radius:    3px;

  --ease:      cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff;
  padding: 12px 20px; z-index: 999;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Eyebrow label ─────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 18px;
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.nav__brand img {
  height: 54px;
  width: auto;
  /* the artwork carries transparent padding, so pull the optical edge back
     towards the gutter */
  margin-left: -10px;
  transition: opacity .25s var(--ease);
}
@media (max-width: 480px) { .nav__brand img { height: 44px; margin-left: -8px; } }
.nav__brand:hover img { opacity: .82; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 32px; height: 32px; padding: 6px;
}
.nav__toggle span {
  display: block; height: 1px; background: var(--text);
  margin: 6px 0; transition: transform .3s var(--ease), opacity .3s;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 15% 45%, transparent 30%, var(--bg) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding-block: 140px 100px; }

.hero__name {
  font-size: clamp(56px, 12vw, 148px);
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 0 0 22px;
}
.hero__role {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--text);
  font-weight: 400;
  margin: 0 0 26px;
  padding-left: 3px;
}
.hero__blurb {
  max-width: 54ch;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 40px;
  padding-left: 3px;
}
.hero__blurb strong { color: var(--text); font-weight: 500; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; padding-left: 3px; }

/* Used on both <a> and <button>, so it has to neutralise the UA button
   styles — without these a <button class="btn"> renders light-grey-on-white. */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-family: inherit;
  font-size: 13px; font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { border-color: var(--muted); background: rgba(255,255,255,.04); }
.btn--primary {
  background: var(--accent); border-color: var(--accent); color: #120702;
  font-weight: 600;
}
.btn--primary:hover { background: #ff7d45; border-color: #ff7d45; color: #120702; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: var(--line); overflow: hidden; z-index: 2;
}
.hero__scroll span {
  display: block; width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { margin-bottom: 52px; }
.section__head h2 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0;
}
.section__lede {
  color: var(--muted);
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 15px;
}

/* inline cross-references between sections */
.section__lede a,
.card__note a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.section__lede a:hover,
.card__note a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Video / reel ──────────────────────────────────────── */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* contain, not fill — the reel matches the 16:9 frame today, but `fill`
   would silently stretch any future clip that doesn't. */
.video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.video--reel { border-color: var(--accent-dim); }
.video__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 12px, transparent 12px 24px);
}
.video__ph-title {
  font-size: 20px; font-weight: 500; margin: 0 0 10px; color: var(--text);
}
.video__ph-sub { font-size: 13px; color: var(--dim); margin: 0; line-height: 1.8; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: rgba(255,255,255,.06);
  padding: 2px 6px; border-radius: 2px;
  color: var(--muted);
}

/* ── Featured piece (embed + caption) ──────────────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin: 0 0 clamp(36px, 5vw, 56px);
}
.feature__cap h3 {
  font-size: clamp(21px, 2.8vw, 28px);
  margin-bottom: 10px;
}
.feature__cap .card__meta { margin-bottom: 14px; }
.feature__cap .card__note { font-size: 14px; }

/* ── Shipped products (official embeds) ────────────────── */
.shipped {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.shipped__item h3 {
  font-size: clamp(18px, 2.3vw, 22px);
  font-weight: 500;
  margin: 20px 0 8px;
}
.shipped__item .card__note { font-size: 13.5px; margin-top: 10px; }

/* ── Work grid ─────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.card { display: flex; flex-direction: column; }
.card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: saturate(.9);
}
.card:hover .card__media { border-color: var(--accent-dim); }
.card:hover .card__media img { transform: scale(1.045); filter: saturate(1.05); }

.card--empty .card__media {
  display: grid; place-items: center;
  border-style: dashed;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 12px, transparent 12px 24px);
}
.card__slot {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
}

/* ── Video cards (real-time VFX) ───────────────────────── */
.grid--vfx { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

.card--video .card__media {
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
/* The poster frame carries the card until the clip is fetched and
   starts looping, so the video element must stay visible throughout. */
.card--video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Square sources: cover would crop the burned-in labels off the bottom, so
   letterbox them instead. */
.card--video video.is-square { object-fit: contain; background: #05050a; }

/* play affordance, fades once the clip is actually running */
.card--video .card__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(10,10,12,.55) 0 34px, transparent 35px);
  opacity: 1;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.card--video .card__media::before {
  content: "";
  position: absolute; z-index: 1;
  top: 50%; left: 50%;
  width: 0; height: 0;
  margin: -9px 0 0 -5px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent rgba(255,255,255,.9);
  opacity: 1;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.card--video:has(video.is-ready) .card__media::after,
.card--video:has(video.is-ready) .card__media::before { opacity: 0; }

.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  padding: 4px 11px;
}

/* ── PDF / document block ──────────────────────────────── */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: clamp(28px, 4vw, 48px);
}
.doc__meta h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.doc__meta > p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.doc__meta .tags { margin-bottom: 28px; }
/* ── Model gallery ─────────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 clamp(32px, 4vw, 48px);
}
.filter {
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.filter span { color: var(--dim); margin-left: 5px; font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter.is-on {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(255,106,43,.07);
}
.filter.is-on span { color: var(--accent); }

.libnote {
  color: var(--muted);
  font-size: 13.5px;
  margin: -24px 0 26px;
  max-width: 62ch;
  min-height: 1.5em;
}

.models__more { margin-top: 28px; }
.models__more[hidden] { display: none; }
.models__more .btn { width: 100%; max-width: 320px; text-align: center; }

.model[hidden] { display: none; }

.models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.model {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
  font: inherit;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.model:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.model img {
  width: 100%;
  /* height:auto is required — the intrinsic height="…" attribute is a
     presentational hint that otherwise beats aspect-ratio and makes every
     tile as tall as the source image. */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #0b0b0e;
}
.model__cap {
  display: block;
  padding: 10px 12px 12px;
  font-size: 11.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6,6,8,.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__cap {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px;
  font: inherit; font-size: 22px; line-height: 1;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.lightbox__close:hover { border-color: var(--muted); }

.doc__index { list-style: none; margin: 0; padding: 0; }
.doc__index li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.doc__index li:last-child { border-bottom: 0; }
.doc__index span {
  font-size: 11px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
}

.card__body { padding-top: 18px; }
.card__body h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.card__body h3 em { color: var(--dim); font-style: normal; }
.card__meta {
  font-size: 12px; color: var(--muted); margin: 7px 0 0;
  letter-spacing: .02em;
}
.card__note {
  font-size: 12.5px; color: var(--dim); margin: 10px 0 0; line-height: 1.6;
}

/* ── Film list ─────────────────────────────────────────── */
.films { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.film {
  display: grid;
  grid-template-columns: 80px 1fr auto 90px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding-inline .25s var(--ease);
}
.film:hover { background: rgba(255,255,255,.02); padding-inline: 14px 4px; }
.film__year  { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.film__title { font-size: clamp(17px, 2.4vw, 23px); font-weight: 500; letter-spacing: -.02em; }
.film__sub {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dim);
  margin-top: 5px;
}
.film__role  { color: var(--muted); font-size: 12.5px; }
.film__link  {
  color: var(--accent); font-size: 13px; text-decoration: none;
  justify-self: end; opacity: .55; transition: opacity .25s var(--ease);
}
.film:hover .film__link { opacity: 1; }
.films__note { font-size: 12.5px; color: var(--dim); margin-top: 20px; }

/* ── Capabilities ──────────────────────────────────────── */
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 44px;
}
.cap h3 {
  font-size: 19px; font-weight: 500; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.cap p { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.tags li {
  font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 4px 11px;
}

/* ── About ─────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}
.about__text p { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; max-width: 62ch; }
.about__text strong { color: var(--text); font-weight: 500; }

.facts { margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.facts dt {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 6px;
}
.facts dd {
  margin: 0 0 22px; font-size: 14px; color: var(--text); line-height: 1.7;
}

/* ── Contact ───────────────────────────────────────────── */
.section--contact {
  padding-block: clamp(90px, 13vw, 160px);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  text-align: center;
}
.section--contact .eyebrow { margin-bottom: 22px; }
.contact__head { font-size: clamp(40px, 8vw, 84px); margin: 0 0 20px; }
.contact__avail {
  font-size: 14.5px;
  color: var(--accent);
  margin: 0 0 32px;
  letter-spacing: .01em;
}
.contact__mail {
  font-size: clamp(16px, 2.6vw, 26px);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 5px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
  word-break: break-word;
}
.contact__mail:hover { border-bottom-color: var(--accent); color: var(--accent); }

.social {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 30px; margin: 46px 0 0; padding: 0;
}
.social a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  letter-spacing: .06em;
  transition: color .25s var(--ease);
}
.social a:hover { color: var(--accent); }
.contact__note { font-size: 12.5px; color: var(--dim); margin-top: 26px; }

/* ── Footer ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 28px; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--dim); gap: 16px; flex-wrap: wrap;
}
.footer a { text-decoration: none; transition: color .25s var(--ease); }
.footer a:hover { color: var(--text); }

/* ── Reveal on scroll ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; align-items: start; }
  .feature { grid-template-columns: 1fr; }
  .grid--vfx { grid-template-columns: 1fr; }
  .shipped { grid-template-columns: 1fr; }
  .film { grid-template-columns: 58px 1fr; row-gap: 6px; }
  .film__role { grid-column: 2; }
  .film__link { grid-column: 2; justify-self: start; opacity: 1; }
}

@media (max-width: 700px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,12,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 20px;
    transform: translateY(-120%);
    transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 14px var(--gutter); font-size: 15px; }
  .nav__links a::after { display: none; }
  .nav.is-open { background: rgba(10,10,12,.97); }
  .hero__cta .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
