/* =========================================================
   Eugene Tkachenko — Automotive Photography
   Design System
   - Primary:   #1C1C1C  (near-black, 60% surfaces/backgrounds)
   - Secondary: #fcfffc  (near-white, text/icons/details)
   - Headlines: "Bitcount Grid Single"
   - Body:      "Noto Sans Mono"
   ========================================================= */

/* ----------  Self-hosted fonts  ---------- */
@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/oxanium-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-mono-latin-ext.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: 'Noto Sans Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-mono-latin.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;
}

/* ----------  Tokens  ---------- */
:root {
  --color-primary: #ffffff;
  --color-secondary: #0a0a0a;
  --color-accent: #f5e030;

  --font-display: "Oxanium", "Noto Sans Mono", monospace;
  --font-mono: "Noto Sans Mono", ui-monospace, monospace;

  --max-width: 1440px;
  --gutter: clamp(20px, 4vw, 64px);

  --hero-title-offset: 0px;
  --hero-bar-offset: 0px;

  --scroll-progress: 0%;
}

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

@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}


html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ----------  Marquee  ---------- */
/* Edit marquee text here — see index.html */
.marquee {
  display: none;
  width: 100%;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.marquee__track {
  display: inline-flex;
  gap: 0;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  padding-right: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------  Header  ---------- */
.site-header {
  position: relative;
  padding: 15px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.site-header__brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---- Photographer portrait slot in header ---- */
/* Replace the placeholder by dropping an <img> inside #portrait,
   or paste a URL into the tweaks panel if running the design preview */
.site-header__portrait {
  --portrait-size: 44px;
  --portrait-radius: 999px;
  width: var(--portrait-size);
  height: var(--portrait-size);
  border-radius: var(--portrait-radius);
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.08) 0 6px,
    rgba(0, 0, 0, 0) 6px 12px
  );
}

.site-header__portrait-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  text-align: center;
  padding: 0 4px;
  line-height: 1.1;
}

.site-header__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header__brand-name {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header__brand-role {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.site-header__nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header__nav a {
  transition: opacity 0.2s ease;
  position: relative;
}
.site-header__nav a:hover { opacity: 0.6; }

.site-header__nav a.is-current {
  opacity: 1;
  cursor: default;
  pointer-events: none;
}
.site-header__nav a.is-current:hover { opacity: 1; }

.site-header__nav a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header__nav a:hover::before { transform: scaleX(1); }

.site-header__nav a.is-current::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 0;
  background: var(--color-accent);
  animation: nav-line-in 0.55s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- Language toggle ---- */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header__lang a {
  color: var(--color-secondary);
  text-decoration: none;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.site-header__lang a:hover { opacity: 0.7; }

.site-header__lang a.is-active { opacity: 1; }

.site-header__lang-sep {
  opacity: 0.2;
  color: var(--color-secondary);
}

.site-header__lang,
.project__topbar .site-header__lang { display: none; }

@keyframes nav-line-in {
  to { width: 100%; }
}

/* ----------  Hero  ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  padding: clamp(24px, 4vh, 48px) var(--gutter) clamp(28px, 4.5vh, 52px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.05);
  animation: hero-bg-in 2s 0.8s both cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform, opacity;
}

.hero__bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@keyframes hero-bg-in {
  to { opacity: 1; transform: scale(1); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.72) 100%),
    linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

/* ── Top bar ───────────────────────────────────── */
/* ── Main title ────────────────────────────────── */
.hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 22px);
}

.hero__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fade-up 0.7s 1.2s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
  max-width: clamp(280px, 55vw, 680px);
  margin-left: var(--hero-bar-offset);
}

.hero__bar-label,
.hero__bar-date {
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.65vw, 11px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero__bar-rule {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  transform-origin: left;
  transform: scaleX(0);
  animation: rule-in 1s 1.35s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes rule-in {
  to { transform: scaleX(1); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 11.5vw, 192px);
  line-height: 0.88;
  letter-spacing: 0;
  margin: 0;
  margin-left: var(--hero-title-offset);
  font-weight: 400;
  text-align: left;
  width: 100%;
}

.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero__title .word + .word { margin-left: 0; }

.hero__title .letter {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: letter-rise 0.9s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes letter-rise {
  to { transform: translateY(0); opacity: 1; }
}

/* ── Bottom foot ───────────────────────────────── */
.hero__foot {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: clamp(18px, 2.5vh, 32px);
  opacity: 0;
  animation: fade-up 0.9s 1.5s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero__stats {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.45;
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.hero__cta:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #0a0a0a;
}

.hero__cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.hero__cta:hover .hero__cta-arrow {
  transform: translateY(3px);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------  Section: Work  ---------- */
.work {
  padding: 120px var(--gutter) 80px;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.work__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.work__head.is-visible { opacity: 1; transform: none; }

.work__heading {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

.work__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  opacity: 0.6;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

@media (max-width: 760px) {
  .work__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ----------  Project Card  ---------- */
.card {
  display: block;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Subtle striped placeholder when no image is supplied */
.card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.04) 0 14px,
    rgba(0, 0, 0, 0) 14px 28px
  );
}

.card__cover-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.45;
}

.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.card:hover .card__overlay { opacity: 0.92; }

.card__overlay-label {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.2vw, 18px);
  letter-spacing: 0;
  color: #ffffff;
  transform: translateY(8px);
  transition: transform 0.45s ease;
}

.card:hover .card__overlay-label { transform: translateY(0); }

.card__index {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  z-index: 3;
  opacity: 0.85;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}

.card__loc { opacity: 0.7; }

.card--empty { pointer-events: none; }

.card--empty .card__cover { border: 1px dashed rgba(252,255,252,0.15); }

.card__placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(252,255,252,0.04) 6px,
    rgba(252,255,252,0.04) 7px
  );
}

.card--empty .card__title { opacity: 0.3; }
.card--empty .card__loc { opacity: 0.2; }
.card--empty .card__index { opacity: 0.3; }

/* ----------  Scroll Rail (left side tick marks + progress fill)  ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 40px;
  gap: 14px;
  opacity: 0;
  transform: translateX(-4px);
  animation: rail-in 0.7s 1.5s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes rail-in {
  to { opacity: 1; transform: translateX(0); }
}

.rail__line {
  position: absolute;
  top: 80px;
  bottom: 40px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.12);
}

/* Progress fill */
.rail__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--scroll-progress, 0%);
  background: var(--color-accent);
  transition: height 0.08s linear;
}

/* Moving marker dot */
.rail__line::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  top: calc(var(--scroll-progress, 0%) - 2px);
  transition: top 0.08s linear;
  z-index: 1;
  box-shadow: 0 0 6px rgba(245, 224, 48, 0.7);
}

.rail__tick {
  width: 8px;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
  margin-left: -1px;
  transition: background 0.3s ease, width 0.3s ease;
}

.rail__tick.is-active {
  background: var(--color-secondary);
  width: 14px;
}

.rail__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: auto;
  opacity: 0.5;
  transition: opacity 0.7s ease;
}

.rail__label.is-hidden { opacity: 0; }

@media (max-width: 760px) {
  .rail { display: none; }
}

/* ----------  Footer  ---------- */
/* =========================================================
   Services
   ========================================================= */
.services {
  padding: 120px var(--gutter) 100px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.services__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.services__head.is-visible { opacity: 1; transform: none; }

.services__heading {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

.services__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.45;
  max-width: 40ch;
  text-align: right;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .services__grid { grid-template-columns: 1fr; gap: 16px; }
  .services__sub { display: none; }
}

.service-card {
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease,
              border-color 0.3s ease;
}
.service-card.is-visible { opacity: 1; transform: none; }
.service-card:hover { border-color: rgba(0, 0, 0, 0.32); }

.service-card--featured {
  border-color: rgba(0, 0, 0, 0.38);
}
.service-card--featured:hover { border-color: rgba(0, 0, 0, 0.7); }

.service-card__top {
  margin-bottom: 36px;
}

.service-card__tier {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.service-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.4);
  padding: 3px 10px;
  opacity: 0.7;
}

.service-card__price {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.45;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.service-card__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  opacity: 0.75;
}

.service-card__list li::before {
  content: "·";
  opacity: 0.4;
  flex-shrink: 0;
}

.service-card__cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.28);
  padding: 14px 20px;
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.service-card__cta:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.site-footer.is-visible { opacity: 1; transform: none; }

.site-footer h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  margin: 0 0 14px;
  font-weight: 400;
  opacity: 0.6;
}

.site-footer a { transition: opacity 0.2s ease; }
.site-footer a:hover { opacity: 0.6; }

.site-footer__copy {
  grid-column: 1 / -1;
  opacity: 0.5;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 32px;
}

@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; }
}

/* =========================================================
   Project page
   ========================================================= */

/* Entrance: elements hidden until JS adds .is-visible */
.project .project__back,
.project .project__title,
.project .project__model,
.project .project__meta,
.project .project__desc {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project .project__back.is-visible  { opacity: 1;    transform: none; }
.project .project__title.is-visible  { opacity: 1;    transform: none; }
.project .project__model.is-visible  { opacity: 0.7;  transform: none; }
.project .project__meta.is-visible   { opacity: 1;    transform: none; }
.project .project__desc.is-visible   { opacity: 0.85; transform: none; }

.project {
  padding: 40px var(--gutter) 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.project__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 48px;
}

.project__back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.project__back:hover { color: var(--color-secondary); opacity: 1; }

.project__desc-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.project__desc-row .project__desc {
  margin-bottom: 0;
}

.project__cta {
  flex-shrink: 0;
}

.project__cta-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-secondary);
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.35);
  padding: 16px 40px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.project__cta-btn:hover {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
  color: #ffffff;
}

.project__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px var(--gutter);
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 80px;
}

.project__nav-back,
.project__nav-next {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  opacity: 0.4;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.project__nav-back:hover,
.project__nav-next:hover {
  opacity: 1;
}

.project__head {
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 40px;
}

@media (max-width: 760px) {
  .project__head { grid-template-columns: 1fr; gap: 24px; }
  .project__desc-row { flex-direction: column; align-items: flex-start; gap: 24px; }
}

.project__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.88;
  letter-spacing: 0;
  margin: 0;
  font-weight: 400;
}

.project__model {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 18px;
}

.project__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project__meta div { display: flex; justify-content: space-between; gap: 16px; }
.project__meta span:first-child { opacity: 0.5; }

.project__desc {
  max-width: 60ch;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 40px;
  opacity: 0.85;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.gallery__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f0f0f0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

.gallery__photo.is-visible { opacity: 1; transform: translateY(0); }

.gallery__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.04) 0 14px,
    rgba(0, 0, 0, 0) 14px 28px
  );
}

.gallery__photo-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.45;
}

.gallery__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery__photo:hover img { transform: scale(1.025); }

.gallery__index {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  z-index: 2;
  opacity: 0.7;
}

/* ----------  Reduced motion  ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track { animation: none; }
  .rail { opacity: 1; transform: none; animation: none; }
  .hero__bg { opacity: 1; transform: none; animation: none; }
  .card, .gallery__photo { opacity: 1; transform: none; }
  .hero__title .letter { transform: none; opacity: 1; }
  .hero__bar, .hero__foot { opacity: 1; transform: none; }
  .hero__bar-rule { transform: scaleX(1); transform-origin: left; }
  .project .project__back,
  .project .project__title,
  .project .project__model,
  .project .project__meta,
  .project .project__desc { opacity: 1; transform: none; }
  .work__head, .services__head, .service-card { opacity: 1; transform: none; }
  .about-hero__index  { opacity: 0.5;  transform: none; }
  .about-hero__title  { opacity: 1;    transform: none; }
  .about-hero__statement { opacity: 0.85; transform: none; }
  .about-body > div { opacity: 1; transform: none; }
  .about-portrait { opacity: 1; transform: none; }
  .contact-page__index { opacity: 0.5;  transform: none; }
  .contact-page__title { opacity: 1;    transform: none; }
  .contact-page__note  { opacity: 0.55; transform: none; }
  .site-footer { opacity: 1; transform: none; }
}

/* =========================================================
   Custom cursor
   ========================================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--color-secondary);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.75);
}

.cursor-ring {
  width: 21px;
  height: 21px;
  border: 1px solid rgba(10, 10, 10, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition:
    width  0.3s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.cursor-ring.is-hovering {
  width: 44px;
  height: 44px;
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: none;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  background: none;
  border: none;
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  padding: 8px 0;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.45;
  white-space: nowrap;
  pointer-events: none;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s ease;
  padding: 24px 20px;
}
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

@media (max-width: 760px) {
  .lightbox__prev,
  .lightbox__next { padding: 16px 12px; }
}


/* =========================================================
   About transition overlay
   ========================================================= */
.grain-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.page-intro-cover {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9998;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.about-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a0a;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.about-transition.is-entering {
  opacity: 1;
  pointer-events: auto;
}

.about-transition__canvas {
  position: absolute;
  top: 0;
  left: 0;
}

/* =========================================================
   About page
   ========================================================= */
.about-hero {
  padding: clamp(32px, 12vh, 100px) var(--gutter) 80px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about-hero__index,
.about-hero__title,
.about-hero__statement {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.about-hero__index.is-visible     { opacity: 0.5;  transform: none; }
.about-hero__title.is-visible     { opacity: 1;    transform: none; }
.about-hero__statement.is-visible { opacity: 0.85; transform: none; }

.about-hero__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 40px;
  padding-left: 12px;
  border-left: 2px solid var(--color-accent);
}

.about-hero__title {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 180px);
  line-height: 0.88;
  letter-spacing: 0;
  margin: 0 0 40px;
  font-weight: 400;
}

.about-hero__statement {
  max-width: 55ch;
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.75;
  opacity: 0.85;
  margin: 0;
}

.about-body {
  padding: 80px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.about-body > div {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-body > div.is-visible { opacity: 1; transform: none; }

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (max-width: 760px) {
  .about-body { grid-template-columns: 1fr; gap: 48px; }
}

.about-section__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
  display: block;
  margin-bottom: 24px;
}

.about-section__text {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.85;
  margin: 0;
}

.about-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-section__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  opacity: 0.85;
}

.about-section__list li::before {
  content: "·";
  opacity: 0.4;
  flex-shrink: 0;
}

/* ---- FAQ section inside about-body ---- */
.about-faq {
  grid-column: 1 / -1;
}

.about-faq__item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.about-faq__item:first-of-type {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-faq__q {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 600;
  opacity: 0.9;
}

.about-faq__a {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  opacity: 0.7;
  margin: 0;
}

.about-faq__a a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-portrait {
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.about-portrait.is-visible { opacity: 1; transform: none; }


.about-portrait__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.35;
  position: relative;
  z-index: 1;
}

.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}


/* =========================================================
   Contact page
   ========================================================= */
.contact-page {
  padding: clamp(32px, 10vh, 80px) var(--gutter) 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-page__head {
  margin-bottom: 72px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 48px;
}

.contact-page__index,
.contact-page__title,
.contact-page__note {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.contact-page__index.is-visible { opacity: 0.5;  transform: none; }
.contact-page__title.is-visible { opacity: 1;    transform: none; }
.contact-page__note.is-visible  { opacity: 0.55; transform: none; }

.contact-page__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 32px;
  padding-left: 12px;
  border-left: 2px solid var(--color-accent);
}

.contact-page__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 0.88;
  letter-spacing: 0;
  margin: 0 0 32px;
  font-weight: 400;
  white-space: nowrap;
}

.contact-page__note {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  max-width: 52ch;
  margin: 0;
}

/* ----- Form ----- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 680px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.5;
}

.contact-form__input {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-form__input::placeholder {
  opacity: 0.25;
}

.contact-form__input:focus {
  border-color: rgba(0, 0, 0, 0.7);
}

.contact-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fcfffc' stroke-width='1.5' fill='none' stroke-opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form__select option {
  background: #ffffff;
  color: var(--color-secondary);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.contact-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  gap: 20px;
}

.contact-form__required-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.3;
  text-transform: uppercase;
}

.contact-form__submit {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid rgba(0, 0, 0, 0.35);
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-form__submit:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

/* ----- Success state ----- */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 48px 0;
}

.contact-success__icon {
  font-family: var(--font-mono);
  font-size: 32px;
  opacity: 0.6;
}

.contact-success__text {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.85;
  max-width: 48ch;
  margin: 0;
}

/* =========================================================
   Tweaks panel
   ========================================================= */
.tweaks {
  display: none !important;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 8px;
}

.tweaks__toggle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(14, 14, 14, 0.92);
  color: #fcfffc;
  border: 1px solid rgba(252, 255, 252, 0.18);
  padding: 8px 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease;
}
.tweaks__toggle:hover { border-color: rgba(252, 255, 252, 0.5); }

.tweaks__panel {
  background: rgba(14, 14, 14, 0.96);
  border: 1px solid rgba(252, 255, 252, 0.12);
  color: #fcfffc;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 248px;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tweaks__panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.tweaks__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tweaks__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(252, 255, 252, 0.4);
}

.tweaks__fonts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tweaks__font-btn {
  font-size: 14px;
  background: transparent;
  color: #fcfffc;
  border: 1px solid rgba(252, 255, 252, 0.18);
  padding: 5px 11px;
  cursor: pointer;
  opacity: 0.55;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.tweaks__font-btn:hover { opacity: 0.9; border-color: rgba(252, 255, 252, 0.45); }
.tweaks__font-btn.is-active { opacity: 1; border-color: rgba(252, 255, 252, 0.7); }

.tweaks__slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tweaks__slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 1px;
  background: rgba(252, 255, 252, 0.2);
  outline: none;
  cursor: pointer;
}
.tweaks__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  background: #fcfffc;
  border-radius: 50%;
  cursor: pointer;
}
.tweaks__slider::-moz-range-thumb {
  width: 11px; height: 11px;
  background: #fcfffc;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.tweaks__slider-val {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(252, 255, 252, 0.45);
  min-width: 30px;
  text-align: right;
}

@media (max-width: 760px) { .tweaks { display: none; } }

/* =========================================================
   Mobile layout
   ========================================================= */
@media (max-width: 760px) {
  /* Marquee */
  .marquee { padding: 5px 0; }
  .marquee__item { font-size: 5px; }

  /* Header */
  .site-header { padding: 15px var(--gutter); }
  .site-header__nav { gap: 20px; }

  /* Hero */
  .hero__stats { gap: 20px; }
  .hero__stat-value { font-size: 10px; }
  .hero__cta { padding: 10px 16px; font-size: 10px; }

  /* Work section */
  .work { padding: 72px var(--gutter) 60px; }

  /* Gallery */
  .gallery { gap: 40px; }

  /* About hero */
  .about-hero { min-height: unset; padding-top: 40px; padding-bottom: 40px; }

  /* About body — reduce 80px vertical padding */
  .about-body { padding-top: 48px; padding-bottom: 48px; }

  /* Project head — reduce bottom margin */
  .project__head { margin-bottom: 48px; }

  /* Project topbar — reduce bottom margin */
  .project__topbar { margin-bottom: 32px; }

  /* Project nav — reduce vertical padding */
  .project__nav { padding-top: 32px; padding-bottom: 32px; margin-top: 48px; }

  /* Contact page */
  .contact-page__head { margin-bottom: 48px; padding-bottom: 32px; }
  .project__back { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  /* Hero foot — stack stats and CTA button vertically */
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* Contact form footer — allow wrap so button doesn't get cut off */
  .contact-form__footer { flex-wrap: wrap; }

  /* Allow contact title to wrap on very narrow screens */
  .contact-page__title { white-space: normal; }
}

@media (max-width: 460px) {
  /* Stack header vertically before it overflows */
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-header__brand-role { display: none; }
}
