/* Kii Vasile portfolio. Quiet, warm white; the artwork does the talking.
   Mauve taken from Kii's title logo. */
:root {
  --ink: #1b1617;
  --muted: #7a6a6d;
  --line: #ebe4e4;
  --bg: #fdfbfa;
  --mauve: #b8939a;      /* logo colour, for fills and accents */
  --mauve-ink: #8a5f67;  /* darker mauve, readable as text */
  --max: 1360px;
  --pad: clamp(16px, 4vw, 48px);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--mauve-ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  max-width: var(--max); margin: 0 auto; padding: 26px var(--pad);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
}
.wordmark {
  text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mauve-ink);
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 2.6vw, 34px); }
.site-header nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--mauve-ink); color: var(--mauve-ink); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 40px; }

/* Placeholders until the real files arrive */
.ph {
  background: repeating-linear-gradient(135deg, #f1e9ea 0 14px, #f7f1f1 14px 28px);
  display: grid; place-items: center; color: var(--muted); width: 100%;
}
.ph span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.ph small { display: block; text-transform: none; letter-spacing: 0; }

/* Home hero: Kii's title logo */
.hero { display: grid; place-items: center; padding: clamp(8px, 3vw, 32px) 0 clamp(32px, 6vw, 72px); }
.logo-stage { width: min(100%, 760px); }
.title-logo { width: 100%; height: auto; }

/* Logo animation (stand-in until Kii's own):
   1. drops in with squash and stretch, 2. floats gently, 3. linework "boils" on twos. */
@media (prefers-reduced-motion: no-preference) {
  .logo-stage {
    transform-origin: 50% 100%;
    animation:
      logo-in .9s cubic-bezier(.3, 1.4, .5, 1) both,
      logo-float 6s ease-in-out .9s infinite;
  }
  .title-logo { animation: boil .5s steps(1) infinite; }
}
@keyframes logo-in {
  0%   { opacity: 0; transform: translateY(-28px) scale(.96, 1.06); }
  55%  { opacity: 1; transform: translateY(0) scale(1.04, .95); }
  75%  { transform: translateY(-4px) scale(.99, 1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1, 1); }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes boil {
  0%   { filter: url(#boil-1); }
  33%  { filter: url(#boil-2); }
  66%  { filter: url(#boil-3); }
}

/* Section headings */
.section-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 20px; flex-wrap: wrap; }
.section-head h1, .section-head h2 {
  margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.series + .series { margin-top: clamp(48px, 7vw, 88px); }

/* Masonry gallery */
.masonry { columns: 3 300px; column-gap: clamp(12px, 1.6vw, 20px); }
.masonry > * { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); }
.tile { display: block; overflow: hidden; }
.tile img { width: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.tile:hover img { transform: scale(1.025); }

/* Film index */
.reel { margin-bottom: 48px; }
.grid {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(20px, 3vw, 36px);
}
.card { display: block; text-decoration: none; }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #f1e9ea; }
.thumb img, .thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .thumb img { transform: scale(1.04); }
.card h3 { margin: 12px 0 0; font-size: 17px; font-weight: 600; }
.card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.num { display: block; color: var(--mauve-ink); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 2px; }

/* Film page */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.ph { background: #2a2223; color: rgba(255,255,255,.7); }
.player.ph.soon, .card.soon .ph { background: var(--mauve); color: #fff; }
.project-head { margin: 8px 0 24px; }
.project-head h1 { margin: 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; }
.project-head dl { display: flex; gap: 32px; margin: 16px 0 0; }
.project-head dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.project-head dd { margin: 0; }
.caption { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.summary { max-width: 62ch; font-size: 18px; margin: 28px 0 0; }
.stills {
  margin-top: 40px; display: grid; gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.next {
  display: inline-block; margin-top: 56px; text-decoration: none; text-transform: uppercase;
  letter-spacing: .12em; font-size: 13px; border-bottom: 1px solid currentColor;
}

/* Visual development: art bible pages, full width, one after another */
.pages { display: grid; gap: clamp(12px, 2vw, 24px); }
.pages .page { width: 100%; }

/* About */
.about { max-width: 720px; padding: 8px 0 40px; }
.about h1 { font-size: clamp(30px, 4.4vw, 52px); margin: 0 0 24px; line-height: 1.05; }
.about h2 { margin-top: 48px; font-size: 13px; text-transform: uppercase; letter-spacing: .16em; }
.about p { font-size: 18px; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.cv li span:last-child { color: var(--muted); text-align: right; }
@media (max-width: 600px) {
  .cv li { grid-template-columns: 1fr; gap: 0; }
  .cv li span:last-child { text-align: left; }
}

/* Footer */
.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 44px var(--pad) 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline;
}
.site-footer .email { font-size: 20px; font-weight: 600; text-decoration: none; margin-right: auto; }
.site-footer .email:hover { color: var(--mauve-ink); }
.socials { display: flex; flex-wrap: wrap; gap: 20px; }
.socials a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.socials a:hover { color: var(--mauve-ink); }
.small { width: 100%; color: var(--muted); font-size: 12px; margin: 8px 0 0; }
