/* nikolettepalar.com · clean and cinematic: white space, an elegant serif, a refined sans, near-black ink, one accent.
   Motion is transform-only and smooth (title lines rise from behind a mask, the headshot settles, sections drift up as
   they scroll in); all of it is off for anyone who prefers reduced motion. */
:root {
  --bg: #faf9f6; --ink: #151515; --soft: #5e5b57; --faint: #8b8782; --line: rgba(21, 21, 21, .12);
  --accent: #8b2e36;
  --serif: "Cormorant Garamond", Cormorant, Garamond, Baskerville, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, video, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
::selection { background: rgba(139, 46, 54, .16); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 10; left: 12px; top: 12px; padding: 10px 14px; background: var(--ink); color: var(--bg);
  font-size: 13px; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
:target, section[id] { scroll-margin-top: 24px; }

/* ── top ─────────────────────────────────────────────────────────────── */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.mark { font: 500 21px/1 var(--serif); letter-spacing: .08em; text-decoration: none; padding: 8px 0; }
.top nav { display: flex; gap: clamp(14px, 3vw, 38px); }
.top nav a, .foot a { position: relative; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--soft); padding: 10px 0; transition: color .4s var(--ease); }
.top nav a::after, .foot a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.top nav a:hover, .foot a:hover { color: var(--ink); }
.top nav a:hover::after, .foot a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px;
  font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: transparent; border: 1px solid var(--ink);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 20px; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; }
.m { display: inline-block; overflow: hidden; vertical-align: top; }
.m > span { display: inline-block; }
.name { margin: 0; font: 300 clamp(58px, 10.4vw, 164px)/.95 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.name .m { padding: .06em .03em .14em; margin: -.06em -.03em -.14em; }      /* room for descenders inside the mask */
.rule { display: block; width: 56px; height: 1px; margin: 34px auto 26px; background: var(--accent); transform-origin: left; }
.tagline { font: 500 12px/1.7 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--soft); margin-right: -.32em; }
.tagline i { font-style: normal; color: var(--accent); padding: 0 .42em; }
.cta { margin-top: 46px; }
.cta .m { padding: 2px; margin: -2px; }
.cta .m > span { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; }

.hero.title-card { display: grid; place-items: center; min-height: min(100svh, 980px); padding: 128px var(--gutter) 120px;
  text-align: center; }
.hero.title-card .cta { display: flex; justify-content: center; }
.cue { position: absolute; left: 50%; bottom: 34px; width: 1px; height: 58px; overflow: hidden; background: var(--line); }
.cue::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(-100%); }

.hero.with-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46vw); align-items: center;
  gap: clamp(32px, 6vw, 96px); max-width: 1480px; min-height: min(100svh, 1040px); margin: 0 auto;
  padding: 112px var(--gutter) 72px; }
.hero.with-photo .name { font-size: clamp(58px, 8.4vw, 148px); }
.hero.with-photo .rule { margin-left: 0; }
.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 640px; aspect-ratio: 4 / 5; max-height: calc(100svh - 160px);
  overflow: hidden; background: #ebe8e3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── sections ────────────────────────────────────────────────────────── */
.block { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px);
  width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(84px, 11vw, 150px) 0;
  border-top: 1px solid var(--line); }
.hero + .block { border-top: 0; }
.label { position: sticky; top: 32px; align-self: start; display: flex; align-items: center; gap: 14px; margin: 0;
  padding-top: .55em; font: 500 11px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.label::before { content: ""; flex: none; width: 26px; height: 1px; background: var(--accent); }

.bio p { max-width: 31em; font: 400 clamp(22px, 2.35vw, 30px)/1.48 var(--serif); letter-spacing: -.003em; text-wrap: pretty; }
.bio p + p { margin-top: .8em; }

/* reel: a dark band, the frame at 16:9 */
.band.dark { background: #0e0e0f; color: #f3f1ed; }
.band .block { border-top: 0; }
.band.dark .label { color: rgba(243, 241, 237, .62); }
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.frame video, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px; width: 100%;
  padding: 24px; border: 0; cursor: pointer; color: #f3f1ed; font: inherit;
  background: radial-gradient(120% 90% at 50% 40%, #232325 0%, #111112 55%, #070708 100%); }
.play-name { font: 300 clamp(26px, 4.2vw, 54px)/1 var(--serif); letter-spacing: .01em; }
.disc { position: relative; width: 78px; height: 78px; border-radius: 50%; border: 1px solid rgba(243, 241, 237, .55);
  transition: transform .7s var(--ease), border-color .7s var(--ease); }
.disc::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -9px 0 0 -5px;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #f3f1ed; }
.play:hover .disc, .play:focus-visible .disc { transform: scale(1.1); border-color: #f3f1ed; }
.play-cap { font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(243, 241, 237, .7); }
.play-link { position: absolute; inset: auto 0 18px; text-align: center; color: #f3f1ed; font-size: 14px; }

/* résumé */
.cv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
/* dot-separated lines: every item carries a leading dot; the dot that starts a line sits in a clipped margin */
.cv-line, .skills { overflow: hidden; }
.cv-line > span, .skills ul { display: flex; flex-wrap: wrap; margin: 0 0 0 -1.7em; padding: 0; list-style: none; }
.cv-line > span > span::before, .skills li::before { content: "·"; display: inline-block; width: 1.7em; text-align: center;
  color: var(--accent); }
.cv-line { font-size: 14.5px; line-height: 1.9; }
.cv-line em { font-style: normal; color: var(--faint); }
.cv-group { margin-top: 52px; }
.cv-top + .cv-group { margin-top: 44px; }
.cv-group h3 { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--ink);
  font: 500 11px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.cv-rows { margin: 0; padding: 0; list-style: none; }
.cv-rows li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px;
  align-items: baseline; padding: 14px 0 13px; border-bottom: 1px solid var(--line); font-size: 15px; }
.cv-rows .c1 { font: 500 20px/1.3 var(--serif); letter-spacing: .005em; }
.cv-rows .c2 { color: var(--ink); }
.cv-rows .c3 { color: var(--soft); }
.k-training .cv-rows li { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, .6fr); }
.k-training .c3 { text-align: right; font-variant-numeric: tabular-nums; }
.skills { padding-top: 18px; font-size: 15px; line-height: 2; }
.skills li { white-space: nowrap; }
.cv-text { padding-top: 16px; font-size: 15px; white-space: pre-line; }
.k-note .cv-text { font-style: italic; color: var(--soft); }

/* contact */
.lead-in { font-size: 14.5px; color: var(--soft); }
.email { position: relative; display: inline-block; margin-top: 14px; font: 300 clamp(30px, 5.2vw, 66px)/1.12 var(--serif);
  letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: 1px; background: var(--accent);
  transform-origin: left; transition: transform .7s var(--ease); }
.email:hover::after { transform: scaleX(.4); }
.rep { margin-top: 26px; font-size: 15px; color: var(--soft); }
.profiles { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 52px 0 0; padding: 0; list-style: none; }
.profiles a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 10px; border-bottom: 1px solid var(--line);
  font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: border-color .5s var(--ease); }
.profiles a:hover { border-color: var(--ink); }
.profiles svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round;
  stroke-linejoin: round; transition: transform .5s var(--ease); }
.profiles a:hover svg { transform: translate(2px, -2px); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 30px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; color: var(--faint); }
.foot a { color: var(--faint); }

/* 404 */
.lost { display: grid; place-items: center; align-content: center; gap: 30px; min-height: 100svh; padding: 40px var(--gutter); text-align: center; }
.lost .label { position: static; padding: 0; }
.lost .name { font-size: clamp(40px, 7vw, 88px); }

/* ── phones and small tablets ────────────────────────────────────────── */
@media (max-width: 760px) {
  .top { padding-top: 14px; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 10.5px; letter-spacing: .16em; }
  .hero.title-card { min-height: min(92svh, 720px); padding: 104px var(--gutter) 96px; }
  .name { font-size: clamp(56px, 17.5vw, 96px); line-height: .98; }
  .name .m { display: block; }                            /* one name per line */
  .tagline { font-size: 11px; letter-spacing: .26em; margin-right: -.26em; }
  .rule { margin: 28px auto 22px; }
  .cta { margin-top: 38px; }
  .btn { min-height: 48px; padding: 0 22px; }
  .hero.with-photo { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 64px var(--gutter) 64px; min-height: 0; }
  .hero.with-photo .hero-photo { order: -1; justify-self: stretch; max-width: none; max-height: none;
    width: auto; margin: 0 calc(-1 * var(--gutter)); }
  .hero.with-photo .name { font-size: clamp(54px, 16vw, 90px); }
  .hero.with-photo .hero-text { padding-top: 6px; }
  .block { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 72px 0; }
  .label { position: static; padding-top: 0; }
  .bio p { font-size: 22px; line-height: 1.5; }
  .cv-group { margin-top: 40px; }
  .cv-rows li { display: block; padding: 14px 0 13px; font-size: 14px; }       /* credits: title, then "role · director" */
  .cv-rows .c1 { display: block; margin-bottom: 3px; font-size: 19px; }
  .k-credits .c2:not(:empty) + .c3:not(:empty)::before { content: "·"; padding: 0 .6em; color: var(--accent); }
  .k-training .cv-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a a" "b c"; gap: 0 16px; }
  .k-training .c1 { grid-area: a; } .k-training .c2 { grid-area: b; } .k-training .c3 { grid-area: c; }
  .cv-top .btn { width: 100%; }
  .skills { font-size: 14.5px; line-height: 1.95; }
  .skills li { white-space: normal; }
  .profiles { gap: 6px 28px; margin-top: 40px; }
  .foot { padding-top: 24px; }
}
@media (max-width: 380px) {
  .top nav { gap: 12px; }
  .top nav a { letter-spacing: .12em; }
}

/* ── motion (smooth, transform only) ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero .m > span { animation: rise 1.25s var(--ease) backwards; }
  .name .m:nth-child(2) > span { animation-delay: .1s; }
  .name .m:nth-child(3) > span { animation-delay: .2s; }
  .tagline .m > span { animation-delay: .38s; }
  .cta .m > span { animation-delay: .5s; }
  .rule { animation: draw 1.4s var(--ease) .3s backwards; }
  .hero-photo img { animation: settle 2.4s var(--ease) backwards; }
  .cue::after { animation: cue 2.6s var(--ease) 1.6s infinite; }
  @supports (animation-timeline: view()) {
    .block > * { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .block > .label { animation: none; }
  }
}
@keyframes rise { from { transform: translateY(110%); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes settle { from { transform: scale(1.07); } }
@keyframes drift { from { transform: translateY(44px); } }
@keyframes cue { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }

@media print {
  .top, .cue, .band, .cta, .cv-top .btn, .skip { display: none !important; }
  .hero.title-card, .hero.with-photo { min-height: 0; padding: 0 0 24px; }
  .block { padding: 24px 0; }
  .label { position: static; }
}

/* one line under the video: what it is, who's in it, where it's from */
.block > .reel-cap { grid-column: 2; margin: -10px 0 0; max-width: 46rem; font-size: .82rem; letter-spacing: .08em; opacity: .72; line-height: 1.6; }
@media (max-width: 760px) { .block > .reel-cap { grid-column: 1; margin-top: -14px; } }
