/* =========================================================
   Leleko Yuri — Portfolio
   Fonts: Inter Tight / Cormorant Garamond / Hedvig Letters Serif
   are free stand-ins. Swap the variables below for the Figma
   fonts (e.g. Neue Montreal / IvyPresto) once the files are in /assets/fonts.
   ========================================================= */

:root {
  --sans: "Inter Tight", "Neue Montreal", system-ui, sans-serif;
  --display: "Cormorant Garamond", "IvyPresto Display", Georgia, serif;
  --serif: "Hedvig Letters Serif", Georgia, serif;

  --ink: #111214;
  --ink-2: #4a4d55;
  --ink-3: #8b8f98;
  --line: rgba(17, 18, 20, 0.1);

  --bg: #000;             /* page + frame + notch */
  --dark: #0d0f14;        /* hero */
  --surface: #121417;     /* dark sections inside the frame (greymac rgb 18,20,23) */
  --sheet-a: #f4f5f8;
  --sheet-b: #e4e7ee;

  --frame: 15px;
  --radius: 30px;
  --sheet-radius: 50px;   /* light blocks sliding over dark ones */
  --notch-h: 34px;
  --notch-mid: 20px;        /* closed */
  --notch-mid-open: 450px;  /* open: 5 cells x 100px - curve overlap */
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::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; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }

.serif-caps {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Fixed viewport frame ---------- */
.frame {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.frame::before {
  content: "";
  position: absolute;
  inset: var(--frame);
  border-radius: var(--radius);
  box-shadow: 0 0 0 calc(var(--frame) * 4) var(--bg);
}

/* ---------- Header notch (1:1 with greymac geometry) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: var(--frame) 0 12px;   /* hover zone includes the frame band */
}
.nav__notch {
  position: relative;
  display: flex;
  height: var(--notch-h);
}
.nav__curve {
  flex: 0 0 90px;
  display: flex;
  height: 100%;
  pointer-events: none;
}
.nav__curve--l { justify-content: flex-end; }
.nav__curve svg { display: block; width: 87px; height: 100%; fill: var(--bg); }
.nav__mid {
  flex: 0 0 auto;
  width: var(--notch-mid);
  margin: 0 -0.5px;                  /* no hairline seams */
  background: var(--bg);
  transition: width 0.8s var(--ease);
}

.nav__items {
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--frame));
  height: calc(var(--notch-h) + var(--frame));
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
}
.nav__logo,
.nav__link {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__logo { color: #f2f4f8; }
.nav__logo svg { display: block; width: 32px; height: auto; transition: opacity 0.3s ease; }
.nav__logo:hover svg { opacity: 0.7; }

.nav__link {
  overflow: hidden;
  pointer-events: none;
  font-family: "Inter", var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.nav__link span {
  display: block;
  opacity: 0;
  transform: translateY(-37px);       /* drops in from above, like greymac */
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav__link:hover span { opacity: 0.6 !important; }

@media (hover: hover) and (min-width: 768px) {
  .nav:hover .nav__mid,
  .nav:focus-within .nav__mid { width: var(--notch-mid-open); }

  .nav:hover .nav__link,
  .nav:focus-within .nav__link { pointer-events: auto; }

  .nav:hover .nav__link span,
  .nav:focus-within .nav__link span {
    opacity: 1;
    transform: none;
    transition: transform 0.7s var(--ease-out) 0.25s, opacity 0.5s ease 0.25s;
  }
  .nav:hover .nav__link--late span,
  .nav:focus-within .nav__link--late span { transition-delay: 0.4s, 0.4s; }
}

.nav__burger { display: none; }

/* mobile menu */
.mmenu {
  position: fixed;
  top: calc(var(--frame) + 6px);
  left: 50%;
  z-index: 99;
  width: min(320px, calc(100% - 48px));
  padding: calc(var(--notch-h) + 12px) 24px 24px;
  background: var(--bg);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translate(-50%, -12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out), visibility 0.35s;
}
.mmenu a {
  color: #fff;
  font-size: 28px;
  letter-spacing: -0.02em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mmenu.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Hero ---------- */
.hero {
  position: sticky;   /* stays put while the next block slides over it */
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #d8dee9;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__fibers,
.hero__fibers.ghost-fibers-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ghost-fibers-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero.has-webgl .hero__glow { display: none; }
.hero__glow {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 120vmax;
  height: 120vmax;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(40, 92, 150, 0.55), rgba(22, 48, 84, 0.25) 45%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
  animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  100% { transform: translate(-48%, -54%) scale(1.08); opacity: 1; }
}
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
  will-change: transform, filter;
}
.hero__row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: calc(100% - 64px);
  font-family: var(--serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero__line {
  flex: 0 1 200px;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 222, 233, 0.45), transparent);
  transform-origin: center;
}
.hero__lead {
  position: absolute;
  bottom: 48px;
  left: 24px;
  right: 24px;
  z-index: 2;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 18px;
  text-transform: uppercase;
  color: #e6ebf3;
}

/* ---------- Light sheets ---------- */
.sheet {
  position: relative;
  z-index: 2;
  margin: 0 var(--frame);
  border-radius: var(--sheet-radius);
  background: linear-gradient(160deg, var(--sheet-a) 0%, #eef0f4 40%, var(--sheet-b) 100%);
}

/* Intro word reveal */
.intro { height: auto; }
.intro__pin {
  min-height: 100vh;
  padding-top: 18vh !important;
  padding-bottom: 18vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}
.intro__text {
  max-width: 940px;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.intro__text .w {
  color: var(--ink);
  opacity: 0.14;
  transition: none;
}

/* ---------- Works ---------- */
.works {
  position: relative;
  z-index: 1;
  background: var(--surface);
  /* tuck under the intro sheet so its rounded bottom corners sit on dark */
  margin-top: calc(-1 * var(--sheet-radius));
  padding: var(--sheet-radius) 0 0;
  color: #fff;
}
.works__grid {
  width: min(1320px, calc(100% - 128px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5vw;
}

/* left column */
.works__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.works__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}
.works__cur-wrap { display: inline-block; overflow: hidden; height: 1.2em; }
.works__cur { display: inline-block; color: #fff; }
.works__texts {
  position: relative;
  margin-top: 28px;
  min-height: 300px;
}
.wtext {
  position: absolute;
  inset: 0 0 auto 0;
  visibility: hidden;
}
.wtext.is-active { visibility: visible; }
.wtext__title {
  font-weight: 400;
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.wtext__title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; }
.wtext__title .ln > span { display: inline-block; }
.wtext__title em {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.82);
}
.wtext__meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.wtext__meta b { color: #fff; font-weight: 500; }
.wtext__desc {
  margin-top: 14px;
  max-width: 360px;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.wtext__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.wtext__tags span { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.wtext__link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.wtext__link:hover { background: #fff; color: var(--ink); border-color: #fff; }
.wtext__link i { font-style: normal; transition: transform 0.5s var(--ease-out); }
.wtext__link:hover i { transform: translate(2px, -2px) rotate(45deg); }

.works__progress {
  margin-top: 48px;
  width: 160px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.works__progress span {
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}

/* right column */
.works__cards {
  padding: 30vh 0;
  display: flex;
  flex-direction: column;
  gap: 14vh;
}
.case {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;   /* matches the 1700×1275 mockup shots */
}
.case__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  will-change: transform, opacity;
  background: #15161a;
}
.case__media {
  position: absolute;
  inset: -8% 0;
  background-image: var(--img), var(--fallback);
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-out);
}
.case__inner:hover .case__media { transform: scale(1.04); }

/* animated card background */
.case__bg {
  background: radial-gradient(120% 100% at 50% 110%, var(--c3) 0%, #0b0b0d 72%);
  overflow: hidden;
}
.blob {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  will-change: transform;
}
.b1 { background: var(--c1); left: -18%; top: -22%; opacity: 0.75; animation: drift1 16s ease-in-out infinite alternate; }
.b2 { background: var(--c2); right: -22%; top: 18%; opacity: 0.55; animation: drift2 21s ease-in-out infinite alternate; }
.b3 { background: var(--c1); left: 22%; bottom: -42%; opacity: 0.4; animation: drift3 25s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(28%, 22%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-30%, -12%) scale(0.85); } }
@keyframes drift3 { to { transform: translate(-18%, -28%) scale(1.25); } }
.case__inner.is-off .blob { animation-play-state: paused; }
.case__fibers,
.case__fibers.galaxy-container,
.case__fibers.ghost-fibers-container { position: absolute; inset: 0; overflow: hidden; }
.case__bg.has-fibers { background: #0c0d11; }           /* clean, no coloured fog */
.case__bg.has-fibers .blob { display: none; }

.case__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.case__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 65%);
}
.case__inner:hover .case__spot { opacity: 1; }

.case__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12%;
  pointer-events: none;
  transition: transform 1s var(--ease-out);
}
.case__inner:hover .case__logo { transform: scale(1.04); }
.case__logo img { width: 52%; max-width: 420px; max-height: 30%; object-fit: contain; filter: drop-shadow(0 10px 40px rgba(0,0,0,.35)); }
.case__duo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  width: 100%;
}
.case__duo img { max-width: none; max-height: none; width: auto; filter: drop-shadow(0 10px 40px rgba(0,0,0,.35)); }
.case__duo .duo-0 { width: min(46%, 360px); }        /* wide wordmark */
.case__duo .duo-1 { height: clamp(48px, 5.4vw, 78px); }  /* compact badge */
.case__x {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
}
.case__wordmark {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  text-align: center;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.case__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;     /* card stays clickable, page keeps scrolling */
  opacity: 0;
  transition: opacity 1s ease;
  background: #0d0e11;
}
.case__embed.is-loaded { opacity: 1; }
.case__photo-wrap { background: #0c0d11; }
.case__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  backface-visibility: hidden;
}
.case__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case__caption { display: none; }

/* "View project" cursor */
.view-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}
.view-cursor span {
  position: absolute;
  left: -39px;
  top: -39px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Geist", var(--sans);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(22, 22, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}
.view-cursor.is-on span { transform: scale(1); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .case__inner { cursor: none; }
}

/* ---------- Info sheet ---------- */
.info { padding: 120px 0 140px; }
.block {
  width: min(1180px, calc(100% - 128px));
  margin: 0 auto 140px;
  display: grid;
  grid-template-columns: minmax(220px, 3fr) 7fr;
  gap: 48px;
}
.block__title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.block__lead {
  margin-top: 10px;
  max-width: 260px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

.skills { list-style: none; }
.skills li {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.skills li:first-child { border-top: 1px solid var(--line); }
.skills .k { font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.skills .v { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }

.cta-bar {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 26px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(17, 18, 20, 0.35);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out);
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #2a3b55;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn .arrow { font-style: normal; display: inline-block; transition: transform 0.5s var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -2px) rotate(45deg); }
.btn--lg { padding: 14px 24px; }

/* experience accordion */
.exp { list-style: none; }
.exp li { border-bottom: 1px solid var(--line); }
.exp li:first-child { border-top: 1px solid var(--line); }
.exp__head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.3fr 20px;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  text-align: left;
  font-size: 10px;
}
.exp__co { font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.exp__date { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-size: 9px; }
.exp__chev {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink);
  justify-self: end;
  transition: transform 0.5s var(--ease-out);
}
.exp li.is-open .exp__chev { transform: rotate(180deg); }
.exp__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.exp li.is-open .exp__body { grid-template-rows: 1fr; }
.exp__body > div { overflow: hidden; }
.exp__body p {
  padding: 0 0 22px;
  max-width: 640px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* contact */
.contact {
  text-align: center;
  padding: 40px 24px 20px;
}
.contact__title {
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.contact__title em {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.split-chars { display: inline-block; }
.split-chars .ch { display: inline-block; will-change: transform; }
.contact__text {
  margin: 22px auto 30px;
  max-width: 400px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- Footer ---------- */
.footer {
  color: #d8dce4;
  padding: 80px calc(var(--frame) + 40px) calc(var(--frame) + 24px);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer__logo { font-family: var(--serif); font-size: 22px; color: #fff; }
.footer__logo { display: inline-block; color: #f2f4f8; }
.footer__logo svg { display: block; width: 38px; height: auto; }
.footer__about p {
  margin-top: 16px;
  max-width: 340px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: #7c818c;
}
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #1c1d22;
  transition: background 0.3s ease;
}
.footer__social a:hover { background: #2a3b55; }
.footer__social svg {
  width: 13px; height: 13px;
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.footer__cases { display: flex; flex-direction: column; gap: 12px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer__label { font-family: var(--serif); color: #6b707a; margin-bottom: 4px; }
.footer__cases a { color: #d8dce4; transition: color 0.3s; }
.footer__cases a:hover { color: #fff; }
.footer__bar {
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 16px 24px;
  border-radius: 14px;
  background: #16171b;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa0ab;
}
.footer__bar > :last-child { justify-self: end; color: #fff; font-weight: 500; }

/* ---------- Reveal helpers (JS sets initial state) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .works__grid { width: calc(100% - 80px); grid-template-columns: 5fr 7fr; gap: 40px; }
  .block { width: calc(100% - 80px); grid-template-columns: 1fr; gap: 28px; margin-bottom: 100px; }
  .block__lead { max-width: 420px; }
}

@media (max-width: 767px) {
  :root { --frame: 10px; --radius: 20px; --sheet-radius: 28px; --notch-mid: 56px; }

  .nav__link { display: none; }
  .nav__logo { flex-basis: auto; padding: 0 8px 0 4px; }
  .nav__burger {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 0 4px 0 8px;
  }
  .nav__burger span {
    display: block; width: 16px; height: 1px; background: #fff;
    transition: transform 0.4s var(--ease-out);
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

  .hero__row { flex-direction: row; gap: 14px; font-size: 10px; width: calc(100% - 40px); }
  .br-desk { display: none; }

  .intro__pin { padding: 0 24px; }

  .works { padding: var(--sheet-radius) 0 10vh; }
  .works__grid { width: calc(100% - 24px); grid-template-columns: 1fr; gap: 0; }
  .works__info { display: none; }
  .works__cards { padding: 10vh 0 0; gap: 56px; }
  .case { aspect-ratio: auto; }
  .case__inner { height: auto; aspect-ratio: 4 / 4.4; }
  .case__caption { display: block; padding: 22px 8px 0; }
  .case__caption .wtext__title { font-size: 36px; }

  .info { padding: 72px 0 90px; }
  .block { width: calc(100% - 40px); }
  .skills li, .exp__head { grid-template-columns: 1fr; gap: 6px; }
  .exp__head { grid-template-columns: 1fr 20px; }
  .exp__date { grid-column: 1; grid-row: 2; }
  .exp__chev { grid-row: 1 / span 2; grid-column: 2; }
  .cta-bar { flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; }
  .cta-bar .btn { width: 100%; justify-content: center; }
  .contact .btn--lg { width: 100%; justify-content: center; }

  .footer { padding: 60px 24px 20px; }
  .footer__top { flex-direction: column; }
  .footer__bar { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .footer__bar > :last-child { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal-up { opacity: 1; transform: none; }
  .intro__text .w { opacity: 1; }
}
