/* =========================================================
   Letizia Di Cicco — portfolio
   Paper & ink, day & night. Poppins (her portfolio type) +
   Instrument Serif for the "story" accents.
   ========================================================= */

:root {
  --paper: #EFECE6;
  --paper-2: #E5E1D9;
  --ink: #161514;
  --muted: #77716a;
  --line: rgba(22, 21, 20, .14);
  --accent: #D2361F;
  --dot: rgba(22, 21, 20, .16);
  --grain-opacity: .09;
  --grain-blend: multiply;

  --sans: 'Poppins', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1b1a18;
  --ink: #ECE8E0;
  --muted: #8f897f;
  --line: rgba(236, 232, 224, .14);
  --accent: #FF5B3D;
  --dot: rgba(236, 232, 224, .13);
  --grain-opacity: .07;
  --grain-blend: screen;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* Paper texture — fixed grain over everything */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Cursor follower ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor__label {
  font-size: 11px; font-weight: 500; letter-spacing: .02em;
  color: #000; white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.cursor.is-big { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.cursor.is-big .cursor__label { opacity: 1; transition-delay: .12s; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: #fff; mix-blend-mode: difference;
  font-size: 14px;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-weight: 800; letter-spacing: -.03em; font-size: 18px; }
.nav__logo span { font-weight: 300; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }

.lang-toggle { display: inline-flex; gap: 6px; font-size: 13px; font-weight: 500; }
.lang-toggle span { opacity: .45; transition: opacity .3s; }
.lang-toggle span.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang-toggle span:hover { opacity: 1; }
.theme-toggle { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; overflow: hidden; }
.theme-toggle__disc {
  position: absolute; inset: 0; background: currentColor;
  clip-path: inset(0 0 0 50%);
  transition: clip-path .6s var(--ease);
}
[data-theme="dark"] .theme-toggle__disc { clip-path: inset(0 50% 0 0); }

/* ---------- Shared ---------- */
section { position: relative; padding: 0 var(--gutter); }
.section-tag {
  display: inline-flex; gap: 10px; align-items: baseline;
  font-weight: 800; letter-spacing: -.02em; font-size: 15px;
}
.section-tag span { font-weight: 400; color: var(--accent); font-size: 12px; }
.big-title {
  font-weight: 800; letter-spacing: -.05em; line-height: .92;
  font-size: clamp(48px, 9vw, 150px);
}
.big-title em { font-size: 1.08em; letter-spacing: -.02em; }

/* B/W → colour */
.bw img { filter: grayscale(1) contrast(1.05); transition: filter .9s var(--ease), transform 1.2s var(--ease); }
.bw:hover img, .bw.is-color img { filter: grayscale(0) contrast(1); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 84px; padding-bottom: 28px;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px);
  background-size: 22px 22px;
  overflow: hidden;
}
.hero__name {
  position: relative;
  font-weight: 800; letter-spacing: -.065em; line-height: .8;
  font-size: clamp(84px, 19.5vw, 400px);
  margin: 4vh 0 2vh -0.04em;
  user-select: none;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--2 { padding-left: 14vw; }
.char {
  display: inline-block; will-change: transform;
  transition: color .4s;
}
.char.is-serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -.02em; color: var(--accent);
}
.char--space { width: .22em; }
.hero__reel {
  position: absolute; right: 0; top: .06em;
  width: clamp(120px, 22vw, 420px); aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 4px;
  clip-path: inset(0 0 0 0 round 4px);
}
.hero__reel img { width: 100%; height: 100%; object-fit: cover; }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__intro {
  max-width: 21ch;
  font-size: clamp(26px, 3.6vw, 56px);
  font-weight: 500; letter-spacing: -.035em; line-height: 1.04;
}
.hero__intro em { color: var(--accent); font-size: 1.12em; }
.hero__scroll { font-size: 13px; color: var(--muted); animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- About ---------- */
.about { padding-top: 18vh; padding-bottom: 14vh; }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 110px); margin-top: 48px; align-items: start;
}
.about__photo { position: sticky; top: 100px; }
.about__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 22% 40%; border-radius: 3px; }
.about__photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.about__hello {
  font-weight: 800; letter-spacing: -.055em; line-height: .9;
  font-size: clamp(54px, 8.4vw, 150px);
}
.about__hello em { color: var(--accent); font-size: 1.1em; }
.about__rotator {
  display: flex; gap: .35em; align-items: baseline;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 2.8vw, 44px); line-height: 1.15;
  margin-top: 8px; min-height: 1.2em;
}
.rotator { position: relative; display: inline-grid; overflow: hidden; height: 1.2em; }
.rotator span {
  grid-area: 1 / 1; white-space: nowrap;
  transform: translateY(110%); opacity: 0;
  transition: transform .9s var(--ease), opacity .6s var(--ease), filter .6s;
  filter: blur(4px);
}
.rotator span.is-in { transform: translateY(0); opacity: 1; filter: blur(0); }
.rotator span.is-out { transform: translateY(-110%); opacity: 0; filter: blur(4px); }

.about__body { margin-top: 48px; max-width: 58ch; display: grid; gap: 18px; font-size: 17px; }
.about__body .lead { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.32; letter-spacing: -.02em; font-weight: 500; }
.about__body strong { font-weight: 600; }

.cv {
  display: grid; grid-template-columns: 1.25fr 1.25fr .9fr; gap: clamp(24px, 4vw, 64px);
  margin-top: 14vh; border-top: 1px solid var(--line); padding-top: 28px;
}
.cv h3 { font-weight: 800; letter-spacing: -.03em; font-size: 20px; margin-bottom: 18px; }
.cv__col ul > li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.cv__col li b { font-weight: 600; }
.cv__col li span { grid-column: 1; color: var(--muted); }
.cv__col li time { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cv__plain li { display: flex !important; justify-content: space-between; }
.cv__col--small h3:not(:first-child) { margin-top: 36px; }
.cv__tags { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- Work: one moodboard per project ---------- */
.work { padding: 0; }
.work__pin { position: relative; height: 100svh; overflow: hidden; overflow: clip; display: flex; align-items: center; }
.work__track {
  display: flex; align-items: center; gap: 5vw;
  width: max-content; padding: 0 var(--gutter);
  will-change: transform;
}
.work__intro { flex: none; width: min(34vw, 520px); display: grid; gap: 24px; }
.work__hint { font-size: 14px; color: var(--muted); }
.work__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px;
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted);
}
.work__rail { position: relative; flex: 1; height: 1px; background: var(--line); cursor: grab; touch-action: none; }
.work__rail::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; } /* bigger hit area */
.work__rail.is-dragging { cursor: grabbing; }
.work__rail b { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.work__knob {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%);
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 4px var(--paper);
  transition: transform .3s var(--ease);
}
.work__rail:hover .work__knob, .work__rail.is-dragging .work__knob { transform: scale(1.35); }
.work__rail:focus-visible { outline: none; }
.work__rail:focus-visible .work__knob { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--accent); }
.work__arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 15px; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.work__arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.board {
  position: relative; flex: none;
  height: calc(100svh - 170px); aspect-ratio: 1.5;
  container-type: size;
  background-color: var(--paper-2);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  border-radius: 4px; cursor: pointer;
  box-shadow: 0 40px 70px -50px rgba(0, 0, 0, .45);
}
.board > * {
  position: absolute; left: var(--x); top: var(--y); width: var(--w, auto);
}
.b-title { z-index: 5; }
.b-num { font-size: 1.9cqh; color: var(--accent); }
.b-title h3 {
  font-weight: 800; letter-spacing: -.055em; line-height: .95;
  font-size: 9cqh; padding-bottom: .1em;
}
.b-type { font-family: var(--serif); font-style: italic; font-size: 3.6cqh; color: var(--muted); line-height: 1.1; }

.b-img {
  height: var(--h);
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 1.4cqh 3cqh -1.6cqh rgba(0, 0, 0, .45);
  transition: transform .6s var(--ease);
}
.b-img img { width: 100%; height: 100%; object-fit: cover; }
.b-img:hover { transform: rotate(0deg) scale(1.04); z-index: 8; }
.b-img1 { z-index: 1; } .b-img2 { z-index: 2; } .b-img3 { z-index: 3; } .b-img4 { z-index: 4; }
.tape {
  position: absolute; z-index: 2; left: 50%; top: -1.6cqh;
  width: 10cqh; height: 3cqh;
  background: rgba(240, 232, 205, .7);
  transform: translateX(-50%) rotate(-5deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.b-palette { z-index: 6; display: flex; flex-direction: column; gap: 1.2cqh; }
.b-palette li {
  width: 6.4cqh; height: 6.4cqh; border-radius: 50%;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.b-palette--row { flex-direction: row; }

.b-note {
  z-index: 6;
  background: var(--paper); border: 1px solid var(--line);
  padding: 2cqh 2.2cqh;
  font-size: 1.75cqh; line-height: 1.45;
  box-shadow: 0 1cqh 2.4cqh -1.6cqh rgba(0, 0, 0, .3);
}
.b-note p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.b-chips { display: flex; flex-wrap: wrap; gap: .6cqh; margin-top: 1.3cqh; }
.b-chips li { font-size: 1.35cqh; padding: .35cqh 1cqh; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }

.b-sticker {
  z-index: 7; width: 12.5cqh; height: 12.5cqh; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-content: center; text-align: center;
  transform: rotate(-12deg);
  font-weight: 800; font-size: 2.3cqh; line-height: 1.05;
  transition: transform .8s var(--ease);
}
.b-sticker span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.6cqh; padding: 0 1cqh; }
.board:hover .b-sticker { transform: rotate(8deg); }

.b-hand {
  z-index: 6; white-space: nowrap;
  font-family: 'Caveat', cursive; font-weight: 600; font-size: 4.8cqh;
  transform: rotate(-4deg);
  text-decoration: underline wavy var(--accent);
  text-decoration-thickness: 1.5px; text-underline-offset: .3em;
}

/* Layout A */
.tA .b-title   { --x: 4%;  --y: 7%;  --w: 36%; }
.tA .b-img1    { --x: 42%; --y: 5%;  --w: 25%; --h: 60%; --r: -2deg; }
.tA .b-img2    { --x: 63%; --y: 13%; --w: 31%; --h: 36%; --r: 3deg; }
.tA .b-img3    { --x: 6%;  --y: 46%; --w: 22%; --h: 46%; --r: 2deg; }
.tA .b-img4    { --x: 70%; --y: 56%; --w: 21%; --h: 38%; --r: -3deg; }
.tA .b-palette { --x: 31%; --y: 48%; }
.tA .b-note    { --x: 40%; --y: 69%; --w: 27%; }
.tA .b-sticker { --x: 87%; --y: 3%; }
.tA .b-hand    { --x: 5%;  --y: 35%; }
/* Layout B */
.tB .b-title   { --x: 54%; --y: 63%; --w: 42%; }
.tB .b-img1    { --x: 4%;  --y: 6%;  --w: 32%; --h: 46%; --r: 2deg; }
.tB .b-img2    { --x: 31%; --y: 18%; --w: 20%; --h: 56%; --r: -3deg; }
.tB .b-img3    { --x: 55%; --y: 6%;  --w: 27%; --h: 44%; --r: 1deg; }
.tB .b-img4    { --x: 8%;  --y: 58%; --w: 22%; --h: 36%; --r: -2deg; }
.tB .b-palette { --x: 88%; --y: 8%; }
.tB .b-note    { --x: 31%; --y: 77%; --w: 21%; }
.tB .b-sticker { --x: 47%; --y: 2%; }
.tB .b-hand    { --x: 56%; --y: 52%; }
/* Layout C */
.tC .b-title   { --x: 4%;  --y: 61%; --w: 38%; }
.tC .b-img1    { --x: 5%;  --y: 6%;  --w: 26%; --h: 46%; --r: -2deg; }
.tC .b-img2    { --x: 33%; --y: 10%; --w: 34%; --h: 42%; --r: 1.5deg; }
.tC .b-img3    { --x: 71%; --y: 4%;  --w: 24%; --h: 56%; --r: 3deg; }
.tC .b-img4    { --x: 44%; --y: 58%; --w: 24%; --h: 36%; --r: -2deg; }
.tC .b-palette { --x: 73%; --y: 66%; }
.tC .b-note    { --x: 73%; --y: 77%; --w: 23%; }
.tC .b-sticker { --x: 29%; --y: 45%; }
.tC .b-hand    { --x: 5%;  --y: 53%; }

/* ---------- Wheel ---------- */
.wheel { height: 380vh; padding: 0; }
.wheel__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; overflow: clip; }
.wheel__caption {
  position: absolute; z-index: 2; left: var(--gutter); top: 84px;
  display: grid; gap: 6px;
}
.wheel__caption p { font-size: 13px; color: var(--muted); }
.wheel__stage { position: absolute; inset: 0; touch-action: pan-y; }
.wheel__ring { position: absolute; left: 50%; width: 0; height: 0; will-change: transform; }
.wheel__item {
  position: absolute; left: 0; top: 0;
  width: var(--w); aspect-ratio: 3 / 4;
  margin: calc(var(--w) * -2 / 3) 0 0 calc(var(--w) / -2);
  border-radius: 4px; overflow: hidden; cursor: pointer;
}
.wheel__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wheel__center {
  position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%);
  display: grid; justify-items: center; text-align: center; pointer-events: none; width: 90%;
}
.wheel__center { z-index: 2; }
/* soft fade from the bottom so the title reads over the photos */
.wheel__sticky::after {
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to top, color-mix(in srgb, var(--paper) 85%, transparent) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 45%, transparent 100%);
  pointer-events: none;
}
.wheel__num { font-size: 13px; color: var(--accent); }
.wheel__title {
  font-weight: 800; letter-spacing: -.055em; line-height: 1;
  font-size: clamp(44px, 7.5vw, 130px);
  padding-bottom: .14em;
}
.wheel__type { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 30px); color: var(--muted); }

/* ---------- Capabilities ---------- */
.caps { padding-top: 16vh; padding-bottom: 12vh; }
.caps__intro {
  margin: 32px 0 12vh; max-width: 24ch;
  font-size: clamp(30px, 4.4vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04;
}
.word { display: inline-block; opacity: .14; }
.caps__list { border-top: 1px solid var(--line); }
.cap {
  position: relative;
  display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 32px;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.cap__num { font-size: 13px; color: var(--accent); padding-top: .6em; }
.cap__title {
  font-weight: 800; letter-spacing: -.05em; line-height: .95;
  font-size: clamp(36px, 5.4vw, 92px);
  transition: transform .7s var(--ease), color .4s;
}
.cap:hover .cap__title { transform: translateX(14px); }
.cap__text { font-size: 17px; line-height: 1.45; max-width: 46ch; align-self: center; }
.cap__skills { grid-column: 3; display: flex; flex-wrap: wrap; gap: 6px; }
.cap__skills li { font-size: 12px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.cap-preview {
  position: fixed; z-index: 50; top: 0; left: 0; pointer-events: none;
  width: 220px; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden;
  opacity: 0; transform: scale(.85) rotate(-4deg);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.cap-preview.is-on { opacity: 1; transform: scale(1) rotate(-4deg); }
.cap-preview img { width: 100%; height: 100%; object-fit: cover; }

.tools { display: flex; gap: 24px; align-items: baseline; margin-top: 56px; flex-wrap: wrap; }
.tools__label { font-family: var(--serif); font-style: italic; font-size: 26px; }
.tools ul { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--muted); }
.tools li::before { content: '✳ '; color: var(--accent); }

/* ---------- Collaborations ---------- */
.collab { padding-top: 10vh; padding-bottom: 14vh; }
.collab__list {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 0 .35em;
  font-weight: 800; letter-spacing: -.05em; line-height: 1.04;
  font-size: clamp(34px, 6vw, 104px);
}
.collab__list li { color: var(--muted); opacity: .45; transition: opacity .35s, color .35s; }
.collab__list li:not(:last-child)::after { content: ','; }
.collab__list li[data-img] { cursor: pointer; }
.collab__list li:hover, .collab__list li.is-lit { opacity: 1; color: var(--ink); }
.collab__list li:hover::after { color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { padding: 6vh 0; overflow: hidden; }
.marquee__row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.marquee__row img {
  height: clamp(150px, 22vw, 300px); width: auto; border-radius: 3px; object-fit: cover;
  aspect-ratio: auto;
}
.marquee__text { overflow: hidden; margin: 14px 0; }
.marquee__text-inner {
  display: flex; width: max-content; white-space: nowrap; will-change: transform;
  font-weight: 800; letter-spacing: -.055em; line-height: 1;
  font-size: clamp(60px, 11vw, 190px);
}
.marquee__text-inner span { padding-right: .3em; }
.marquee__text-inner em { color: var(--accent); }

/* ---------- Contact ---------- */
.contact {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 14vh; padding-bottom: 24px; overflow: hidden;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px);
  background-size: 22px 22px;
}
.contact__inner { position: relative; z-index: 1; pointer-events: none; user-select: none; }
.contact__inner a, .contact__inner button { pointer-events: auto; }
.contact__title {
  margin-top: 28px;
  font-weight: 800; letter-spacing: -.06em; line-height: 1.02;
  font-size: clamp(50px, 9.4vw, 170px);
}
.contact__title em { color: var(--accent); font-size: 1.08em; letter-spacing: -.02em; }
.contact__links { margin-top: 7vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact__mail {
  position: relative;
  font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.02em;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 4px;
  overflow-wrap: anywhere; text-align: left;
}
.contact__copied {
  position: absolute; left: 0; top: -1.6em; font-size: 13px; letter-spacing: 0;
  color: var(--accent); opacity: 0; transform: translateY(6px); transition: .4s var(--ease);
}
.contact__copied.is-on { opacity: 1; transform: none; }
.contact__links ul { display: flex; gap: 24px; font-size: 15px; }
.contact__links ul a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contact__links ul a:hover { border-color: var(--ink); }

.footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 10vh; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer__thanks { color: var(--ink); }
.footer__thanks em { font-size: 1.15em; }

/* ---------- Project overlay ---------- */
.project {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper);
  clip-path: inset(100% 0 0 0);
  visibility: hidden;
}
.project.is-open { visibility: visible; }
.project__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 0; }
.project__close {
  position: fixed; top: 18px; right: var(--gutter); z-index: 3;
  font-size: 14px; padding: 8px 16px; border-radius: 99px;
  background: var(--ink); color: var(--paper);
}
.project__head { padding-top: 90px; }
.project__meta-top { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.project__meta-top span:first-child { color: var(--accent); }
.project__title {
  font-weight: 800; letter-spacing: -.065em; line-height: .88;
  font-size: clamp(56px, 12vw, 230px); margin-top: 12px;
  padding-bottom: .12em;
}
.project__type { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 44px); color: var(--muted); margin-top: 4px; }
.project__cover { margin-top: 40px; overflow: hidden; border-radius: 3px; }
.project__cover img { width: 100%; max-height: 82vh; object-fit: cover; }
.project__info {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px);
  padding: 9vh 0;
}
.project__concept h3, .project__details h3 { font-weight: 800; letter-spacing: -.03em; font-size: 15px; margin-bottom: 14px; }
.project__concept p { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.38; letter-spacing: -.015em; }
.project__facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.project__facts dt { color: var(--muted); }
.project__gallery { display: grid; gap: 14px; }
.g-row { display: flex; gap: 14px; }
.g-row figure { min-width: 0; min-height: 0; overflow: hidden; border-radius: 3px; }
.g-row img { width: 100%; height: 100%; object-fit: cover; }
.g-stack { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.project__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px clamp(24px, 4vw, 64px); padding: 9vh 0; }
.project__details p { font-size: 16px; line-height: 1.55; color: var(--ink); }
.project__details .quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; }
.project__next {
  display: grid; justify-items: start; width: 100%; text-align: left;
  border-top: 1px solid var(--line); padding: 7vh 0 12vh;
}
.project__next span { font-size: 13px; color: var(--muted); }
.project__next strong {
  font-weight: 800; letter-spacing: -.06em; line-height: .95;
  font-size: clamp(48px, 9vw, 160px); transition: transform .7s var(--ease), color .3s;
}
.project__next:hover strong { transform: translateX(18px); color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .hero__name { font-size: 25vw; margin-top: 6vh; }
  .hero__line--2 { padding-left: 0; }
  .hero__reel { position: relative; right: auto; top: auto; width: 52vw; margin: 1vh 0 1.5vh auto; display: block; }
  .contact__title br { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: 0; max-width: 360px; }
  .cv { grid-template-columns: 1fr; }
  .work__pin { height: auto; overflow: visible; display: block; padding: 12vh 0 10vh; }
  .work__track {
    width: auto; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    gap: 16px; padding: 10px var(--gutter) 24px; align-items: stretch;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .work__intro { width: 78vw; scroll-snap-align: start; align-content: center; }
  .board { height: auto; width: 84vw; aspect-ratio: .72; scroll-snap-align: center; }
  .work__progress { position: static; margin: 8px var(--gutter) 0; }
  .work .board .b-title   { --x: 6%;  --y: 4%;  --w: 66%; }
  .work .board .b-sticker { --x: 72%; --y: 3%; width: 15cqw; height: 15cqw; font-size: 2.6cqw; }
  .work .board .b-sticker span { font-size: 3cqw; }
  .work .board .b-img1    { --x: 6%;  --y: 27%; --w: 52%; --h: 34%; --r: -2deg; }
  .work .board .b-img2    { --x: 48%; --y: 31%; --w: 46%; --h: 22%; --r: 3deg; }
  .work .board .b-img3    { --x: 10%; --y: 63%; --w: 40%; --h: 28%; --r: 2deg; }
  .work .board .b-img4    { --x: 54%; --y: 57%; --w: 38%; --h: 22%; --r: -3deg; }
  .work .board .b-palette { --x: 56%; --y: 84%; flex-direction: row; }
  .work .board .b-palette li { width: 5cqh; height: 5cqh; }
  .work .board .b-note, .work .board .b-hand { display: none; }
  .work .board .b-title h3 { font-size: 6.4cqh; }
  .work .board .b-type { font-size: 2.8cqh; }
  .cap { grid-template-columns: 1fr; padding: 28px 0; }
  .cap__num { padding-top: 0; }
  .cap__skills { grid-column: 1; }
  .project__info { grid-template-columns: 1fr; }
  .about__rotator { font-size: 28px; }
  .rotator { flex: 1; min-width: 0; height: 2.4em; }
  .rotator span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .word { opacity: 1; }
}
