/* =========================================================
   Victor Boriceanu, portfolio
   Palette: Raven Black (main) · Powder Blue (secondary) · Coral Orange (discreet accent)
   ========================================================= */
/* Self-hosted fonts (SIL OFL 1.1, see fonts/OFL-geist.txt). Nothing is loaded from third parties. */
@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #090400;         /* Raven Black, main */
  --black-2: #120d0a;        /* raised surface */
  --blue: #B6DFF5;           /* Powder Blue, secondary */
  --blue-ink: #DCEFFA;       /* light text tint */
  --coral: #FF6E71;          /* Coral Orange, discreet accent */
  --muted: rgba(220, 239, 250, .58);
  --line: rgba(182, 223, 245, .16);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --gutter: 16px;
  --radius: 24px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--blue-ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--coral); color: var(--black); }

.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); margin-right: 10px; vertical-align: middle;
  transform: translateY(-1px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
}
.nav::before { /* keeps the nav readable over scrolling content */
  content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9, 4, 0, .92), rgba(9, 4, 0, .6) 60%, transparent);
}
.brand { font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.nav-actions { display: flex; gap: 8px; }

/* ---------- Pills (Lusion-style, rolling text on hover) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform .4s var(--ease-out), background-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.pill:active { transform: scale(.96); }
.pill--solid { background: var(--blue); color: var(--black); }
.pill--ghost { background: rgba(182, 223, 245, .08); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill--light { background: var(--blue-ink); color: var(--black); height: 48px; padding: 0 24px; }
.pill--light::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--black); }

.roll span { position: relative; display: inline-block; overflow: hidden; line-height: 1.2; }
.roll span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
}
.roll span, .roll span::after { transition: transform .5s var(--ease-out); }
@media (hover: hover) {
  .roll:hover span { transform: translateY(-100%); }
}

.burger { width: 14px; height: 6px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.play { width: 0; height: 0; border-left: 7px solid var(--coral); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 92px var(--gutter) 28px;
  overflow: hidden; isolation: isolate;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}
.hero::after { /* soft fade into the next section */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

.ruler {
  position: absolute; top: 64px; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.ruler span { width: 1px; height: 9px; background: var(--muted); }
.ruler span:nth-child(2), .ruler span:nth-child(4) { display: none; }

.hero-copy { margin-top: 24px; }
.eyebrow {
  margin: 0 0 18px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero-title {
  margin: 0; font-weight: 400; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(34px, 9.6vw, 92px);
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .line:nth-child(2) { color: var(--blue); }

.hero-foot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.hero-note { margin: 0; max-width: 30ch; font-size: 15px; color: var(--muted); }

/* ---------- Intro ---------- */
.intro { padding: 72px var(--gutter) 96px; }
.intro-title {
  margin: 0 0 48px; font-weight: 400; letter-spacing: -.04em; line-height: 1.02;
  font-size: clamp(42px, 11vw, 132px);
}
.intro-title .line { display: block; }
.intro-title .indent { padding-left: 14vw; }
.intro-title em { font-style: normal; color: var(--coral); }

.intro-grid { display: grid; gap: 32px; }
.media-card {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--black-2); aspect-ratio: 4 / 3;
  box-shadow: 0 0 0 1px var(--line);
}
.media-card video { width: 100%; height: 100%; object-fit: cover; }
button.media-card {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit; -webkit-tap-highlight-color: transparent;
}
.media-card video { transition: transform 1.1s var(--ease-out), filter .6s ease; }
.watch-pill {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; background: rgba(9, 4, 0, .55); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink);
  transition: transform .5s var(--ease-out), background-color .3s;
}
@media (hover: hover) {
  button.media-card:hover video { transform: scale(1.04); filter: brightness(.8); }
  button.media-card:hover .watch-pill { transform: translate(-50%, -50%) scale(1.06); background: rgba(9, 4, 0, .75); }
}
button.media-card:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.media-card .media-caption {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between;
  padding: 14px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-ink); background: linear-gradient(to top, rgba(9, 4, 0, .7), transparent);
}
.intro-text p { margin: 0 0 28px; font-size: 17px; line-height: 1.55; max-width: 44ch; }

/* ---------- Featured work ---------- */
.work { padding: 24px var(--gutter) 120px; }
.work-head { margin-bottom: 40px; }
.work-title {
  margin: 0 0 14px; font-weight: 400; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(40px, 10vw, 112px);
}
.work-sub {
  margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.work-grid { display: grid; gap: 44px; }
.project { display: block; }
.project-media {
  border-radius: var(--radius); overflow: hidden; background: var(--black-2);
  aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px var(--line);
}
.project-media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); transition: transform 1.1s var(--ease-out);
}
.project-tags {
  margin: 16px 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.project-name {
  margin: 0; display: flex; align-items: center; gap: 0;
  font-weight: 400; font-size: clamp(24px, 6vw, 34px); letter-spacing: -.02em;
}
.project-name .arrow {
  display: inline-block; width: 0; overflow: hidden; opacity: 0; color: var(--coral);
  transition: width .5s var(--ease-out), opacity .4s ease, margin .5s var(--ease-out);
}
@media (hover: hover) {
  .project:hover .project-media video { transform: scale(1.05); }
  .project:hover .project-name .arrow { width: 1.1em; opacity: 1; margin-right: .3em; }
}
.work-bento { display: grid; gap: 44px; margin-top: 56px; }
.work-stack { display: grid; gap: 44px; }
.project--tall .project-media { aspect-ratio: 9 / 16; }
.work-note { align-self: center; }
.work-note-title {
  margin: 0 0 18px; font-weight: 400; letter-spacing: -.035em; line-height: 1.05;
  font-size: clamp(32px, 7vw, 64px);
}
.work-note-title em { font-style: normal; color: var(--coral); }
.work-note-text { margin: 0 0 28px; max-width: 40ch; font-size: 17px; line-height: 1.55; color: var(--muted); }
.project--btn {
  width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: inherit; -webkit-tap-highlight-color: transparent;
}
.project--btn .project-media { display: block; position: relative; }
.project--btn .project-tags, .project--btn .project-name { display: flex; }
.project--btn .project-tags { display: block; }
@media (hover: hover) {
  .project--btn:hover .watch-pill { transform: translate(-50%, -50%) scale(1.06); background: rgba(9, 4, 0, .75); }
}
.project--btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 6px; border-radius: var(--radius); }
.project--wide { margin-top: 56px; }
.project--wide .project-media { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .project--wide { margin-top: 72px; } }
@media (max-width: 767px) {
  .project--tall .project-media { aspect-ratio: 4 / 5; }
}
@media (min-width: 768px) {
  .work-bento { grid-template-columns: 5fr 7fr; gap: 32px; margin-top: 72px; align-items: start; }
  .work-stack { gap: 32px; }
  .work-stack .project-media { aspect-ratio: 16 / 9; }
  .work-bento--reverse { grid-template-columns: 7fr 5fr; }
}

/* ---------- What I do ---------- */
.what { padding: 40px var(--gutter) 120px; }
.what-title {
  margin: 0 0 48px; font-weight: 400; letter-spacing: -.04em; line-height: 1.02;
  font-size: clamp(42px, 11vw, 132px);
}
.what-title .line { display: block; }
.what-title .indent { padding-left: 14vw; }
.what-title em { font-style: normal; color: var(--coral); }
.skills { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skill {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px;
  padding: 28px 0; border-bottom: 1px solid var(--line); isolation: isolate;
}
.skill::before { /* hover wash */
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: rgba(182, 223, 245, .05); opacity: 0; transition: opacity .4s ease;
}
.skill-num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--coral); padding-top: 10px; }
.skill-name {
  margin: 0 0 10px; font-weight: 400; letter-spacing: -.025em; line-height: 1.08;
  font-size: clamp(26px, 6.4vw, 52px);
  transition: transform .6s var(--ease-out), color .3s;
}
.skill-text { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.55; color: var(--muted); }
.skill-tools { grid-column: 2; list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tools li {
  height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue-ink);
}
@media (hover: hover) {
  .skill:hover::before { opacity: 1; }
  .skill:hover .skill-name { transform: translateX(10px); color: var(--blue); }
}
@media (min-width: 900px) {
  .what { padding: 80px var(--gutter) 160px; }
  .skill { grid-template-columns: 80px 1.4fr 1fr; align-items: start; padding: 40px 0; gap: 24px; }
  .skill-tools { grid-column: 3; justify-content: flex-end; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .skill-name { transition: none; } }

/* ---------- Experience ---------- */
.exp { padding: 40px var(--gutter) 120px; }
.exp-title {
  margin: 0 0 48px; font-weight: 400; letter-spacing: -.04em; line-height: 1.02;
  font-size: clamp(42px, 11vw, 132px);
}
.exp-title .line { display: block; }
.exp-title .indent { padding-left: 14vw; }
.exp-title em { font-style: normal; color: var(--coral); }
.job { display: grid; gap: 18px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.job + .job { border-top: 0; }
.job-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.job-role { margin: 0 0 6px; font-weight: 400; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(28px, 6.4vw, 52px); }
.job-company { margin: 0 0 24px; font-size: 18px; color: var(--blue); }
.job-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.job-points li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: var(--blue-ink); }
.job-points li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--coral);
}
.quote { margin: 72px 0 0; padding: 0; }
.quote p {
  margin: 0 0 14px; font-weight: 400; letter-spacing: -.035em; line-height: 1.05;
  font-size: clamp(34px, 8vw, 96px);
}
.quote em { font-style: normal; color: var(--blue); }
.quote footer { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .exp { padding: 80px var(--gutter) 160px; }
  .job { grid-template-columns: 1fr 2fr; gap: 24px; padding: 48px 0; }
  .job-meta { flex-direction: column; gap: 8px; padding-top: 14px; }
  .job-points { max-width: 62ch; gap: 14px; }
  .job-points li { font-size: 17px; }
  .quote { margin-top: 120px; padding-left: 14vw; }
}

/* ---------- Strengths, skills, toolkit ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.str { padding: 40px var(--gutter) 120px; overflow: hidden; }
.str-lead {
  position: relative; padding: 36px 24px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 100%, rgba(255, 110, 113, .18), transparent 55%), var(--black-2);
  box-shadow: 0 0 0 1px var(--line);
}
.str-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.str-main {
  margin: 14px 0 12px; font-weight: 400; letter-spacing: -.045em; line-height: .95;
  font-size: clamp(34px, 9.6vw, 168px); color: var(--blue-ink);
}
.str-sub { margin: 0; max-width: 40ch; font-size: 17px; line-height: 1.5; color: var(--muted); }
.str-grid {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line);
}
.str-grid li {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 12px 22px 0;
  border-bottom: 1px solid var(--line); font-size: clamp(20px, 4.6vw, 30px); letter-spacing: -.02em;
}
.str-grid li span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.marquee-block { margin-top: 72px; }
.marquee {
  margin: 0 calc(var(--gutter) * -1); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 12px; animation: marquee 32s linear infinite; }
.marquee-track span {
  flex: none; display: inline-flex; align-items: center; height: 64px; padding: 0 28px; border-radius: 999px;
  border: 1px solid var(--line); font-size: clamp(18px, 4vw, 26px); letter-spacing: -.01em; color: var(--blue-ink);
}
.marquee-track span:nth-child(3n+2) { background: var(--blue); color: var(--black); border-color: transparent; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .marquee-track span:nth-child(n+8) { display: none; }
}
.toolkit { margin-top: 56px; }
.toolkit .skill-tools { margin-top: 0; justify-content: flex-start !important; }
@media (min-width: 900px) {
  .str { padding: 80px var(--gutter) 160px; }
  .str-lead { padding: 56px 48px; }
  .str-main { font-size: clamp(64px, 11vw, 168px); }
  .str-grid { grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
  .str-grid li { padding: 32px 16px 32px 0; }
  .marquee-block { margin-top: 96px; }
}

/* ---------- About ---------- */
.about { padding: 40px var(--gutter) 120px; }
.about-grid { display: grid; gap: 32px; }
.about-photo-wrap {
  width: 100%; max-width: 420px; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); background: var(--black-2);
}
.about-photo {
  width: 100%; height: auto; aspect-ratio: 900 / 1196; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
@media (hover: hover) { .about-photo-wrap:hover .about-photo { transform: scale(1.035); } }
.about-title { margin: 0 0 24px; font-weight: 400; letter-spacing: -.04em; line-height: 1.02; font-size: clamp(40px, 10vw, 104px); }
.about-text { margin: 0 0 40px; max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--blue-ink); }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; }
.facts dd span { color: var(--muted); }
@media (min-width: 900px) {
  .about { padding: 80px var(--gutter) 160px; }
  .about-grid { grid-template-columns: 1fr 2fr; gap: 6vw; align-items: start; }
  .about-grid { align-items: center; }
  .about-photo-wrap { max-width: none; }
  .facts > div { grid-template-columns: 160px 1fr; gap: 24px; }
}

/* ---------- Contact + footer ---------- */
.contact { padding: 40px var(--gutter) 96px; border-top: 1px solid var(--line); }
.contact-title { margin: 0 0 56px; font-weight: 400; }
.contact-big {
  display: inline-flex; align-items: baseline; gap: .25em; flex-wrap: wrap;
  letter-spacing: -.05em; line-height: .95; font-size: clamp(56px, 16vw, 220px);
}
.contact-big .line { display: inline-block; }
.contact-arrow { position: relative; display: inline-block; overflow: hidden; color: var(--coral); line-height: 1; }
.contact-arrow span { display: block; transition: transform .7s var(--ease-out); }
.contact-arrow span + span { position: absolute; inset: 0; transform: translateX(-110%); }
@media (hover: hover) {
  .contact-big:hover .contact-arrow span:first-child { transform: translateX(110%); }
  .contact-big:hover .contact-arrow span + span { transform: none; }
}
.contact-links { border-top: 1px solid var(--line); }
.contact-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.contact-label { width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-row a { font-size: clamp(18px, 4.6vw, 28px); letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (hover: hover) { .contact-row a:hover { color: var(--blue); } }
.contact-row .pill { height: 34px; }
.motto {
  margin: 72px 0 0; font-weight: 400; letter-spacing: -.03em; line-height: 1.1;
  font-size: clamp(24px, 5.6vw, 56px); color: var(--muted);
}
.motto em { font-style: normal; color: var(--coral); }
.footer {
  padding: 24px var(--gutter) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--blue-ink); }
.footer-fine {
  margin: 18px 0 0; max-width: 90ch; font-family: var(--font); font-size: 12px; letter-spacing: 0;
  text-transform: none; line-height: 1.5; color: rgba(220, 239, 250, .62);
}
@media (min-width: 900px) {
  .contact { padding: 96px var(--gutter) 120px; }
  .contact-label { width: 160px; }
  .contact-row { flex-wrap: nowrap; padding: 28px 0; }
}

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(90% 70% at 100% 100%, rgba(255, 110, 113, .12), transparent 60%), var(--black);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out); overflow-y: auto;
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { border-bottom: 1px solid var(--line); overflow: hidden; }
.menu-list a {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  transform: translateY(105%); transition: transform .8s var(--ease-out), color .3s;
}
.menu.is-open .menu-list a { transform: none; }
.menu.is-open .menu-list li:nth-child(1) a { transition-delay: .10s; }
.menu.is-open .menu-list li:nth-child(2) a { transition-delay: .14s; }
.menu.is-open .menu-list li:nth-child(3) a { transition-delay: .18s; }
.menu.is-open .menu-list li:nth-child(4) a { transition-delay: .22s; }
.menu.is-open .menu-list li:nth-child(5) a { transition-delay: .26s; }
.menu.is-open .menu-list li:nth-child(6) a { transition-delay: .30s; }
.menu-num { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--coral); }
.menu-word { font-size: clamp(36px, min(10vw, 9.5vh), 104px); letter-spacing: -.045em; line-height: 1.02; }
@media (hover: hover) { .menu-list a:hover { color: var(--blue); } }
.menu-foot {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.menu-foot a:hover { color: var(--blue-ink); }
.menu-toggle[aria-expanded="true"] .burger { border-bottom-color: transparent; height: 0; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu-list a { transition: none; }
}

/* ---------- Full-length player ---------- */
.player {
  width: min(100vw, 1100px); max-width: 100vw; max-height: 100svh; margin: auto; padding: 0;
  border: 0; background: transparent; color: var(--blue-ink); overflow: visible;
}
.player::backdrop { background: rgba(9, 4, 0, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.player[open] { animation: player-in .5s var(--ease-out); }
@keyframes player-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.player-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter) 12px;
}
.player-title { font-size: 15px; font-weight: 500; }
.player-actions { display: flex; gap: 8px; }
.player-video {
  display: block; width: 100%; max-height: calc(100svh - 80px); background: #000;
  border-radius: var(--radius); object-fit: contain;
}
@media (max-width: 767px) { .player-video { border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .player[open] { animation: none; } }
@media (min-width: 768px) {
  .work { padding: 40px var(--gutter) 160px; }
  .work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Text animation: per-character rise (Lusion split) ---------- */
.split .ch { display: inline-block; transform: translateY(105%); opacity: 0; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split.in .ch {
  transform: none; opacity: 1;
  transition: transform 1s var(--ease-out), opacity .6s ease;
  transition-delay: calc(var(--i) * 18ms);
}
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.from-top:not(.in) { transform: translateY(-24px); }
.split.from-top:not(.in) .ch { transform: translateY(-105%); }
/* Replays (content already seen): 50% shorter travel, 50% faster */
.reveal.seen:not(.in) { transform: translateY(12px); }
.reveal.seen.from-top:not(.in) { transform: translateY(-12px); }
.split.seen:not(.in) .ch { transform: translateY(52%); }
.split.seen.from-top:not(.in) .ch { transform: translateY(-52%); }
.reveal.seen.in { transition: opacity .45s ease, transform .55s var(--ease-out); transition-delay: calc(var(--d, 0ms) / 2); }
.split.seen.in .ch { transition: transform .5s var(--ease-out), opacity .3s ease; transition-delay: calc(var(--i) * 9ms); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .split .ch, .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
  .roll span, .roll span::after { transition: none; }
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .nav { padding-top: 20px; }
  .brand { font-size: 15px; }
  .ruler { top: 78px; }
  .ruler span:nth-child(2), .ruler span:nth-child(4) { display: block; }
  .hero { padding-top: 140px; padding-bottom: 40px; }
  .hero-foot { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .intro { padding: 120px var(--gutter) 140px; }
  .intro-grid { grid-template-columns: 5fr 6fr; gap: 6vw; align-items: start; }
  .intro-text { padding-top: 8px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; }
  .hero-copy { max-width: 62%; }
  .hero-title { font-size: clamp(56px, 5vw, 88px); }
  .hero-title .line { white-space: nowrap; }
  .intro-grid { grid-template-columns: 4fr 5fr; }
  .intro-text p { font-size: 18px; }
}

/* =========================================================
   Polish: focus, hover micro-interactions, cursor, progress
   ========================================================= */

/* Keyboard focus, everywhere */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.pill:focus-visible { border-radius: 999px; }
#main:focus { outline: none; }

/* Skip link */
.skip-link {
  position: fixed; left: var(--gutter); top: 10px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--blue); color: var(--black);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Scroll progress line (scroll-driven, no JS) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30; pointer-events: none;
    background: var(--coral); transform-origin: 0 50%; transform: scaleX(0);
    animation: progress linear both; animation-timeline: scroll(root);
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Brand dot: soft pulse ring on hover */
.brand .dot { position: relative; transition: transform .5s var(--ease-out); }
.brand .dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--coral); opacity: 0; transform: scale(.4);
}
@media (hover: hover) {
  .brand:hover .dot { transform: translateY(-1px) scale(1.25); }
  .brand:hover .dot::after { animation: ring 1.2s var(--ease-out) infinite; }
}
@keyframes ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* Burger: lines spread on hover, turn into a cross when open */
.burger { position: relative; transition: height .4s var(--ease-out), width .4s var(--ease-out), border-color .3s; }
@media (hover: hover) { .menu-toggle:hover .burger { height: 9px; width: 18px; } }
.menu-toggle[aria-expanded="true"] .burger { border: 0; height: 12px; width: 12px; }
.menu-toggle[aria-expanded="true"] .burger::before,
.menu-toggle[aria-expanded="true"] .burger::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .burger::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Play icon: nudges forward on hover */
.play { transition: transform .5s var(--ease-out); }
@media (hover: hover) {
  .pill:hover .play, .media-card:hover .play, .project--btn:hover .play { transform: translateX(3px) scale(1.15); }
}

/* Pills: hover states */
@media (hover: hover) {
  .pill--solid:hover { background: var(--blue-ink); }
  .pill--light:hover { background: #fff; }
  .pill--ghost:hover { background: rgba(182, 223, 245, .14); border-color: rgba(182, 223, 245, .32); }
}
.pill--light::before { transition: transform .5s var(--ease-out), background-color .3s; }
@media (hover: hover) { .pill--light:hover::before { transform: scale(1.6); background: var(--coral); } }

/* Underline link: line grows from the left, leaves to the right */
.ulink {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size .5s var(--ease-out), color .3s;
  padding-bottom: 2px;
}
@media (hover: hover) { .ulink:hover { background-position: 0 100%; background-size: 100% 1px; } }

/* External arrow: exits top-right and comes back in */
.ext { display: inline-block; transition: color .3s; }
@media (hover: hover) {
  a:hover > .ext { animation: ext-swap .6s var(--ease-out); color: var(--coral); }
}
@keyframes ext-swap {
  0% { transform: none; opacity: 1; }
  45% { transform: translate(.45em, -.45em); opacity: 0; }
  46% { transform: translate(-.45em, .45em); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.up { display: inline-block; transition: transform .5s var(--ease-out); }
@media (hover: hover) { .to-top:hover .up { transform: translateY(-3px); } }

/* Project cards: badge, note, hover */
.project-media { position: relative; transition: box-shadow .5s ease, border-radius .6s var(--ease-out); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px;
  background: rgba(9, 4, 0, .62); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink);
}
.project-note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: rgba(220, 239, 250, .62); }
.project-name { transition: color .35s; }
@media (hover: hover) {
  .project:hover .project-media { box-shadow: 0 0 0 1px rgba(182, 223, 245, .34); }
  a.project:hover .project-media, .project--btn:hover .project-media { border-radius: calc(var(--radius) + 8px); }
  a.project:hover .project-name, .project--btn:hover .project-name { color: var(--blue); }
}

/* Small tool pills and strengths */
.skill-tools li { transition: border-color .3s, background-color .3s; }
.skill-num { transition: color .3s; }
.str-grid li { transition: color .3s; }
.str-grid li span { display: block; transition: color .3s, transform .5s var(--ease-out); }
@media (hover: hover) {
  .skill-tools li:hover { border-color: var(--blue); background: rgba(182, 223, 245, .08); }
  .str-grid li:hover { color: var(--blue); }
  .str-grid li:hover span { color: var(--coral); transform: translateX(4px); }
  .skill:hover .skill-num { color: var(--blue); }
}

/* Menu: arrow appears on hover */
.menu-go {
  margin-left: auto; align-self: center; color: var(--coral); font-size: clamp(24px, 4vw, 48px);
  opacity: 0; transform: translateX(-16px); transition: opacity .4s ease, transform .6s var(--ease-out);
}
@media (hover: hover) { .menu-list a:hover .menu-go { opacity: 1; transform: none; } }
.menu-list a:focus-visible .menu-go { opacity: 1; transform: none; }

/* Copy button icon */
.copy-btn { gap: 8px; }
.copy-ico {
  position: relative; width: 9px; height: 10px; margin-top: 3px; border: 1.3px solid currentColor; border-radius: 2px;
  transition: transform .4s var(--ease-out);
}
.copy-ico::before {
  content: ""; position: absolute; left: 1px; top: -4.5px; width: 9px; height: 10px;
  border-top: 1.3px solid currentColor; border-right: 1.3px solid currentColor; border-radius: 2px;
}
@media (hover: hover) { .copy-btn:hover .copy-ico { transform: translateY(-1px) rotate(-6deg); } }
.copy-btn.is-done { background: var(--coral); color: var(--black); border-color: transparent; }

.contact-privacy { margin: 18px 0 0; max-width: 60ch; font-size: 13px; line-height: 1.5; color: rgba(220, 239, 250, .64); }
.contact-privacy a { color: var(--blue-ink); background-size: 100% 1px; background-position: 0 100%; }

/* Cursor label (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; display: none; }
.cursor span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; height: 84px; padding: 0 14px; border-radius: 999px;
  background: var(--blue); color: var(--black); white-space: nowrap;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0); transition: transform .45s var(--ease-out);
}
.cursor.is-on span { transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
  .has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }
  .has-cursor [data-cursor] .watch-pill { transition: opacity .3s, transform .5s var(--ease-out); }
  .has-cursor [data-cursor]:hover .watch-pill { opacity: 0; }
}

/* ---------- Legal page ---------- */
.legal { max-width: 860px; padding: 120px var(--gutter) 96px; }
.legal-title {
  margin: 0 0 32px; font-weight: 400; letter-spacing: -.04em; line-height: 1.02;
  font-size: clamp(40px, 9vw, 88px);
}
.legal-title--sm { font-size: clamp(30px, 6vw, 56px); }
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 18px 0; margin-bottom: 32px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.legal-lead { margin: 0 0 56px; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; color: var(--blue-ink); }
.legal-block { padding: 8px 0 40px; scroll-margin-top: 96px; }
.legal-block h2 {
  margin: 0 0 18px; padding-top: 24px; border-top: 1px solid var(--line);
  font-weight: 400; letter-spacing: -.03em; line-height: 1.1; font-size: clamp(28px, 4.6vw, 44px); color: var(--blue);
}
.legal-block h3 { margin: 32px 0 10px; font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--blue-ink); }
.legal-block p, .legal-ul li, .legal-list dd { font-size: 16px; line-height: 1.65; color: rgba(220, 239, 250, .74); }
.legal-block p { margin: 0 0 14px; max-width: 70ch; }
.legal-block strong { font-weight: 500; color: var(--blue-ink); }
.legal-block em { font-style: normal; color: var(--blue-ink); }
.legal-block a { color: var(--blue-ink); text-decoration: underline; text-decoration-color: rgba(182, 223, 245, .35); text-underline-offset: 3px; }
.legal-block a.ulink { text-decoration: none; background-size: 100% 1px; background-position: 0 100%; background-image: linear-gradient(rgba(182, 223, 245, .4), rgba(182, 223, 245, .4)); }
@media (hover: hover) { .legal-block a.ulink:hover { color: var(--blue); background-image: linear-gradient(currentColor, currentColor); } }
.legal-list { margin: 0; border-top: 1px solid var(--line); }
.legal-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.legal-list dt { margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.legal-list dd { margin: 0; max-width: 70ch; }
.legal-ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.legal-ul li { position: relative; padding-left: 22px; max-width: 70ch; }
.legal-ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--coral); }
.legal-ro { margin-top: 48px; padding-top: 56px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.legal :target { scroll-margin-top: 96px; }
@media (min-width: 900px) { .legal { padding: 160px var(--gutter) 120px; } .legal-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; } .legal-list dt { margin: 4px 0 0; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 120px var(--gutter); }
.notfound h1 { margin: 0; font-weight: 400; letter-spacing: -.05em; line-height: .95; font-size: clamp(56px, 14vw, 200px); }
.notfound h1 em { font-style: normal; color: var(--coral); }
.notfound p { margin: 0; max-width: 40ch; font-size: 18px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .progress, .cursor { display: none !important; }
  .brand:hover .dot::after, a:hover > .ext { animation: none; }
  .project-media, .about-photo, .contact-arrow span, .menu-go, .play, .burger { transition: none; }
}
