/* ================================================
   ILIAN ROCCHI — Portfolio 2026
   Graphic & Motion Designer
   Brand Manual: #161616 / #fffafa · Montserrat
   ================================================ */

/* --- Variables (Dark Mode — default) --- */
:root {
  --bg:    #161616;
  --fg:    #fffafa;
  --fg-60: rgba(255,250,250,0.60);
  --fg-30: rgba(255,250,250,0.30);
  --fg-10: rgba(255,250,250,0.10);
  --fg-05: rgba(255,250,250,0.05);
  --nav-bg: rgba(22,22,22,0.92);

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 72px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 10vw, 140px);
}

/* --- Light Mode --- */
body.light-mode {
  --bg:    #fffafa;
  --fg:    #161616;
  --fg-60: rgba(22,22,22,0.60);
  --fg-30: rgba(22,22,22,0.30);
  --fg-10: rgba(22,22,22,0.10);
  --fg-05: rgba(22,22,22,0.05);
  --nav-bg: rgba(255,250,250,0.92);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto;
  cursor: none;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; }
button { background: none; border: none; cursor: none; font-family: inherit; color: inherit; }
select, input, textarea { font-family: inherit; color: inherit; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-30); }

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--fg);
  z-index: 1000;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  width: 38px; height: 38px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  mix-blend-mode: difference;
  will-change: left, top;
}
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: left, top;
}
.cursor.hovered { width: 64px; height: 64px; background: var(--fg); }
.cursor.clicked { width: 28px; height: 28px; }

/* --- Logo mark (text fallback) --- */
.logo-i { color: var(--fg); }
.logo-r { -webkit-text-stroke: 1.5px var(--fg); color: var(--bg); paint-order: stroke fill; }

/* --- Logo image --- */
.nav__logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: invert(1);
  transition: filter 0.5s var(--ease);
  will-change: transform;
  transform-origin: center;
}
body.light-mode .nav__logo-img {
  filter: invert(0);
}
.nav__logo-sep {
  display: block;
  width: 1px;
  height: 18px;
  background: var(--fg-30);
  margin: 0 11px;
  flex-shrink: 0;
}
.nav__logo-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-transform: none;
  white-space: nowrap;
  transition: color 0.5s var(--ease);
}
.footer__logo-img {
  height: 20px;
  width: auto;
  display: block;
  filter: invert(1);
  opacity: 0.55;
  transition: filter 0.5s var(--ease), opacity 0.3s;
}
body.light-mode .footer__logo-img {
  filter: invert(0);
}
.footer__logo:hover .footer__logo-img { opacity: 1; }

/* --- Preloader --- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.5s var(--ease);
}
.preloader__inner { text-align: center; }
.preloader__logo {
  margin-bottom: 40px;
  display: flex; align-items: center; justify-content: center;
}
.preloader__logo-img {
  height: clamp(60px, 10vw, 100px);
  width: auto;
  filter: invert(1);
}
.preloader__progress-wrap {
  width: 200px; height: 1px;
  background: var(--fg-10);
  margin: 0 auto 14px;
  overflow: hidden;
}
.preloader__bar { height: 100%; background: var(--fg); width: 0; transition: width .1s linear; }
.preloader__count { font-size: 11px; letter-spacing: .2em; color: var(--fg-30); font-weight: 600; }

/* --- Floating Preview --- */
.preview-global {
  position: fixed;
  width: 260px; height: 160px;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transform: scale(.85) rotate(-3deg);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  border-radius: 4px;
  overflow: hidden;
  top: 0; left: 0;
  will-change: left, top, opacity, transform;
}
.preview-global.visible {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.preview-global__inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
}
.preview-global__inner .prev-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.preview-global__inner .prev-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background .4s var(--ease), border-color .4s;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--fg-10);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -2px;
  display: flex; align-items: center;
  text-transform: uppercase;
  z-index: 1;
}
.nav__center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 44px; align-items: center;
}
.nav__link {
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-60);
  transition: color .3s var(--ease);
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--fg);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__lang { display: flex; align-items: center; gap: 6px; }
.lang-btn { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--fg-30); transition: color .3s; }
.lang-btn.active { color: var(--fg); }
.lang-sep { font-size: 11px; color: var(--fg-10); }
.btn-outline {
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  border: 1px solid var(--fg-30); padding: 10px 22px;
  transition: background .3s var(--ease), color .3s, border-color .3s;
}
.btn-outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Mode Toggle */
.mode-toggle {
  width: 40px; height: 22px;
  border: 1px solid var(--fg-30);
  border-radius: 11px;
  position: relative;
  transition: border-color 0.3s var(--ease);
  flex-shrink: 0;
}
.mode-toggle:hover { border-color: var(--fg); }
.mode-toggle__pill {
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: var(--fg);
  border-radius: 50%;
  transition: transform 0.4s var(--ease-spring), background 0.5s var(--ease);
  pointer-events: none;
}
body.light-mode .mode-toggle__pill {
  transform: translateX(18px);
}

.nav__menu-btn {
  display: none; flex-direction: column; gap: 6px;
  width: 28px; padding: 4px 0;
}
.nav__menu-btn span { display: block; height: 1px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s; }
.nav__menu-btn.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu-btn.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 490;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease), background-color 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 80px);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color .3s;
}
.mobile-menu__link:hover { color: var(--fg-60); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh; min-height: 680px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.hero__bg-text {
  position: absolute; bottom: -3vw; left: -1vw;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 26vw, 380px);
  line-height: 1; letter-spacing: -2px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg-05);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero__content { position: relative; z-index: 1; }
.hero__label {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--fg-60);
  margin-bottom: 20px;
  opacity: 0;
}
.hero__label-line { display: inline-block; width: 36px; height: 1px; background: var(--fg-60); }
.hero__logo-mark {
  height: 22px;
  width: auto;
  display: block;
  filter: invert(1);
  opacity: 0.75;
  transition: filter 0.5s var(--ease);
}
body.light-mode .hero__logo-mark { filter: invert(0); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 15vw, 210px);
  line-height: .92; letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.hero__title-row { overflow: hidden; }
.hero__word { display: inline-block; transform: translateY(105%); opacity: 0; }
.hero__word.filled { color: var(--fg); }
.hero__word.outlined { color: var(--bg); -webkit-text-stroke: 2px var(--fg); paint-order: stroke fill; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 40px;
  border-top: 1px solid var(--fg-10); padding-top: 28px;
  max-width: 680px;
  opacity: 0;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-30); }
.meta-val { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,.4);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hero__scroll {
  position: absolute; bottom: 40px; left: var(--pad-x);
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-30);
  transition: color .3s;
  z-index: 1;
}
.hero__scroll:hover { color: var(--fg); }
.hero__scroll-circle {
  width: 34px; height: 34px; border: 1px solid var(--fg-30);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: border-color .3s;
}
.hero__scroll:hover .hero__scroll-circle { border-color: var(--fg); }
.hero__scroll-arrow {
  width: 7px; height: 7px;
  border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg);
  transform: rotate(45deg) translateY(-2px);
  animation: bounce-arrow 1.6s infinite;
}
@keyframes bounce-arrow {
  0%,100% { transform: rotate(45deg) translateY(-2px); }
  50%      { transform: rotate(45deg) translateY(2px); }
}
.hero__year {
  position: absolute; bottom: 40px; right: var(--pad-x);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--fg-30);
}

/* ===================== SECTIONS COMMON ===================== */
.container { padding: 0 var(--pad-x); }
.section-header { margin-bottom: 60px; }
.section-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  color: var(--fg-30); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--fg-30); }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 96px);
  line-height: .92; letter-spacing: -1px;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 0;
}
.outlined { color: var(--bg); -webkit-text-stroke: 2px var(--fg); paint-order: stroke fill; }

/* ===================== WORK ===================== */
.work {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--fg-10);
}
.work .section-header { padding: 0 var(--pad-x); }
.work .section-title { flex-direction: row; gap: 16px; flex-wrap: wrap; }

.project-list { display: flex; flex-direction: column; }

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto 48px;
  align-items: center; gap: 24px;
  padding: 28px var(--pad-x);
  border-bottom: 1px solid var(--fg-10);
  transition: border-color .3s;
  overflow: hidden;
  cursor: none;
}
.project-row::before {
  content: ''; position: absolute; inset: 0;
  background: var(--fg); transform: translateX(-101%);
  transition: transform .55s var(--ease);
  z-index: 0;
}
.project-row:hover::before { transform: translateX(0); }
.project-row > * { position: relative; z-index: 1; transition: color .3s; }
.project-row:hover .pr-num,
.project-row:hover .pr-title,
.project-row:hover .pr-desc,
.project-row:hover .pr-cat,
.project-row:hover .pr-year,
.project-row:hover .pr-arrow { color: var(--bg); }

.pr-num { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .05em; color: var(--fg-30); text-transform: uppercase; }
.pr-info { display: flex; flex-direction: column; gap: 6px; }
.pr-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3.2vw, 48px); letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.pr-desc { font-size: 12px; color: var(--fg-60); max-width: 440px; line-height: 1.5; }
.pr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.pr-cat { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--fg-30); }
.pr-year { font-size: 11px; color: var(--fg-30); }
.pr-arrow {
  font-size: 18px; color: var(--fg-30);
  opacity: 0; transform: translateX(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s;
}
.project-row:hover .pr-arrow { opacity: 1; transform: translateX(0); }

/* ===================== ABOUT ===================== */
.about {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--fg-10);
}
.about__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px; align-items: start;
}

/* Photo wrapper — provides perspective for 3D tilt */
.about__photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  perspective: 700px;
  perspective-origin: center center;
}

/* Photo frame — the element that tilts */
.about__photo-frame {
  position: relative;
  overflow: hidden;
  cursor: none;
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  transform-style: preserve-3d;
  will-change: transform;
  margin-bottom: 12px;
}

/* Inset border overlay (elevates on hover) */
.about__photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--fg-10);
  transition: box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.about__photo-frame:hover::after {
  box-shadow: inset 0 0 0 1px var(--fg-30);
}

/* Shine sweep pseudo-element */
.about__photo-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,250,250,0.09) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.about__photo-frame.is-hovered::before {
  animation: photoShine 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes photoShine {
  0%   { left: -80%; opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* In light mode, shine should be darker */
body.light-mode .about__photo-frame::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(22,22,22,0.06) 50%,
    transparent 100%
  );
}

/* The actual photo */
.about__photo-img {
  width: 100%;
  display: block;
  min-height: 280px;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05);
  transition: filter 0.5s ease;
  background: var(--fg-05);
  aspect-ratio: 3/4;
}
.about__photo-frame:hover .about__photo-img {
  filter: contrast(1.08) brightness(1.02);
}

.photo-caption { font-size: 11px; color: var(--fg-30); text-align: center; letter-spacing: .05em; }

.about__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 8vw, 100px);
  line-height: .9; letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.about__bio p { font-size: 15px; line-height: 1.8; color: var(--fg-60); margin-bottom: 16px; max-width: 560px; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--fg-10); }
.block-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-30); margin-bottom: 16px; }
.skill-list li { font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--fg-10); transition: padding-left .25s var(--ease); }
.skill-list li:hover { padding-left: 10px; }
.about__exp { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--fg-10); }
.exp-list { margin-top: 16px; }
.exp-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--fg-10); align-items: center; }
.exp-year { font-size: 11px; color: var(--fg-30); letter-spacing: .05em; }
.exp-detail { display: flex; flex-direction: column; gap: 3px; }
.exp-detail strong { font-size: 14px; font-weight: 700; }
.exp-detail span { font-size: 12px; color: var(--fg-60); }

/* ===================== PROCESS ===================== */
.process {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--fg-10);
}
.process .section-title { flex-direction: row; gap: 16px; }
.process__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--fg-10);
}
.process__step {
  padding: 40px 32px;
  border-right: 1px solid var(--fg-10);
  border-top: 1px solid var(--fg-10);
  border-bottom: 1px solid var(--fg-10);
  transition: background .3s;
}
.process__step:hover { background: var(--fg-05); }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  color: var(--fg-10);
  display: block; line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.step-body h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.step-body p { font-size: 13px; line-height: 1.75; color: var(--fg-60); }

/* ===================== CONTACT ===================== */
.contact {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--fg-10);
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 9vw, 128px);
  line-height: .9; letter-spacing: -2px;
  text-transform: uppercase;
  margin-top: 12px;
}
.contact__grid { display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start; }
.contact__tagline { font-size: 15px; line-height: 1.8; color: var(--fg-60); margin-bottom: 48px; max-width: 280px; }
.contact__links { display: flex; flex-direction: column; }
.contact__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--fg-10); transition: border-color .3s; }
.contact__link:hover { border-color: var(--fg); }
.cl-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-30); }
.cl-val { font-size: 14px; transition: transform .3s var(--ease); }
.contact__link:hover .cl-val { transform: translateX(8px); }
.contact__location { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--fg-10); }
.contact__location-cities { font-size: 13px; line-height: 1.7; color: var(--fg); }
.contact__location-remote { font-size: 11px; color: var(--fg-30); }

/* --- Form --- */
.contact__form { display: flex; flex-direction: column; gap: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-30); }
.form-input {
  background: none; border: none; border-bottom: 1px solid var(--fg-10);
  color: var(--fg); font-size: 14px; font-weight: 400;
  padding: 12px 0; outline: none; width: 100%;
  transition: border-color .3s; cursor: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--fg-30); }
.form-input:focus { border-color: var(--fg-60); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--fg); color: var(--bg);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 18px 36px; border: 1px solid var(--fg);
  transition: background .3s var(--ease), color .3s, border-color .3s;
  width: fit-content; cursor: none;
}
.form-submit:hover { background: transparent; color: var(--fg); }
.submit-arrow { transition: transform .3s var(--ease); }
.form-submit:hover .submit-arrow { transform: translateX(6px); }
.form-submit.success { background: #4ade80; color: #000; border-color: #4ade80; }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--fg-10);
  padding: 28px var(--pad-x);
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; }
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -1px;
  display: flex; align-items: center;
  text-transform: uppercase;
}
.footer__copy { font-size: 11px; color: var(--fg-30); letter-spacing: .04em; }
.footer__social { display: flex; gap: 20px; }
.footer__slink { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--fg-30); transition: color .3s; }
.footer__slink:hover { color: var(--fg); }
.footer__legal {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--fg-05);
}
.footer__legal-link {
  font-size: 10px; color: var(--fg-30); letter-spacing: .12em;
  text-transform: uppercase; transition: color .3s;
}
.footer__legal-link:hover { color: var(--fg); }
.footer__legal-sep { font-size: 10px; color: var(--fg-10); }

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================== PROJECT CASE STUDY ===================== */
.cs-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--fg-30); transition: color .3s;
  margin-bottom: 0;
}
.cs-back:hover { color: var(--fg); }
.cs-back::before { content: '←'; font-size: 14px; transition: transform .3s var(--ease); }
.cs-back:hover::before { transform: translateX(-4px); }

/* Project Hero — always dark regardless of mode */
.cs-hero {
  --bg:    #161616;
  --fg:    #fffafa;
  --fg-60: rgba(255,250,250,0.60);
  --fg-30: rgba(255,250,250,0.30);
  --fg-10: rgba(255,250,250,0.10);
  --fg-05: rgba(255,250,250,0.05);
  color: var(--fg);
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad-x) 80px;
  position: relative; overflow: hidden;
}
/* Project image panel — right side of hero */
.cs-hero__img-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 44%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 18%, black 40%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 18%, black 40%);
}
.cs-hero__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.68;
  display: block;
}
@media (max-width: 900px) {
  .cs-hero__img-wrap { width: 35%; }
}
@media (max-width: 768px) {
  .cs-hero__img-wrap { display: none; }
}

.cs-hero__back-link {
  position: absolute; top: calc(var(--nav-h) + 24px); left: var(--pad-x);
}
.cs-hero__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(100px, 22vw, 300px);
  color: transparent; -webkit-text-stroke: 1px var(--fg-05);
  line-height: 1; letter-spacing: -4px;
  text-transform: uppercase;
  position: absolute; right: var(--pad-x); bottom: 60px;
  pointer-events: none; user-select: none;
}
.cs-hero__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-30); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.cs-hero__tag::before { content: ''; width: 20px; height: 1px; background: var(--fg-30); display: inline-block; }
.cs-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(60px, 12vw, 180px);
  line-height: .9; letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.cs-hero__meta { display: flex; gap: 48px; flex-wrap: wrap; }
.cs-hero__meta-item { display: flex; flex-direction: column; gap: 5px; }

/* Case Study Sections */
.cs-section {
  padding: 80px var(--pad-x);
  border-top: 1px solid var(--fg-10);
}
.cs-section.bg-subtle { background: var(--fg-05); }

.cs-label {
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-30); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.cs-label::before { content: ''; width: 16px; height: 1px; background: var(--fg-30); display: inline-block; }

.cs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.cs-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.cs-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.cs-body-text { font-size: 15px; line-height: 1.85; color: var(--fg-60); max-width: 600px; }
.cs-body-text + .cs-body-text { margin-top: 20px; }

.cs-big-quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1; letter-spacing: -.5px;
  text-transform: uppercase;
  color: var(--fg-60); max-width: 800px;
}

/* Color Palette in case studies */
.palette { display: flex; gap: 0; flex-wrap: wrap; }
.swatch { flex: 1 1 100px; min-height: 80px; display: flex; align-items: flex-end; padding: 12px; }
.swatch__info { display: flex; flex-direction: column; gap: 2px; }
.swatch__name { font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .7; }
.swatch__hex { font-size: 10px; font-family: monospace; opacity: .8; }

/* Typography showcase */
.typo-showcase { padding: 32px; border: 1px solid var(--fg-10); background: var(--fg-05); }
.typo-showcase__sample { font-size: clamp(32px, 5vw, 64px); line-height: 1; margin-bottom: 12px; }
.typo-showcase__name { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--fg-30); }

/* Image mockups placeholder */
.img-ph {
  width: 100%; aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--fg-05); border: 1px solid var(--fg-10);
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-30); text-align: center;
  transition: background .3s;
}
.img-ph:hover { background: var(--fg-10); }
.img-ph.ratio-43 { aspect-ratio: 4/3; }
.img-ph.ratio-11 { aspect-ratio: 1; }
.img-ph.ratio-34 { aspect-ratio: 3/4; }
.img-ph.ratio-cover { aspect-ratio: 21/9; }
.img-ph .ph-icon { font-size: 24px; margin-bottom: 4px; color: var(--fg-10); }
.img-ph img { width: 100%; height: 100%; object-fit: cover; }


/* Next Project */
.next-project {
  display: block; padding: 80px var(--pad-x);
  border-top: 1px solid var(--fg-10);
  position: relative; overflow: hidden;
  transition: background .4s;
}
.next-project::before { content: ''; position: absolute; inset: 0; background: var(--fg); transform: translateX(-101%); transition: transform .55s var(--ease); z-index: 0; }
.next-project:hover::before { transform: translateX(0); }
.next-project > * { position: relative; z-index: 1; transition: color .3s; }
.next-project:hover .np-label,
.next-project:hover .np-title,
.next-project:hover .np-arrow { color: var(--bg); }
.np-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-30); margin-bottom: 12px; }
.np-row { display: flex; align-items: center; justify-content: space-between; }
.np-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -1px; line-height: 1;
  text-transform: uppercase;
}
.np-arrow { font-size: clamp(32px, 5vw, 64px); color: var(--fg-30); transition: transform .3s var(--ease), color .3s; }
.next-project:hover .np-arrow { transform: translateX(16px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .process__grid { grid-template-columns: repeat(2,1fr); }
  .about__grid { grid-template-columns: 260px 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 300px 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo-wrap { position: static; max-width: 240px; }
  .contact__grid { grid-template-columns: 1fr; }
  .cs-grid-2 { grid-template-columns: 1fr; }
  .cs-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  html { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  .nav__center, .btn-outline { display: none; }
  .nav__menu-btn { display: flex; }
  .preview-global { display: none; }
  .project-row { grid-template-columns: 44px 1fr; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .pr-meta, .pr-arrow { display: none; }
  .pr-desc { font-size: 11px; }
  .about__cols { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 14px; text-align: center; }
  .cs-grid-3 { grid-template-columns: 1fr; }
  .cs-grid-2x2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__meta { gap: 24px; }
  .hero__meta-item:nth-child(3) { display: none; }
  .hero__word.outlined { -webkit-text-stroke: 1.5px var(--fg); paint-order: stroke fill; }
}

/* ===================== UTILITY ===================== */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.fw-700 { font-weight: 700; }
.fs-12  { font-size: 12px; }
.text-muted { color: var(--fg-60); }
