/* ===== Tokens ===== */
:root {
  --bg: #0d0d0d;
  --bg-2: #111111;
  --surface: #f4f4f2;
  --surface-2: #ffffff;
  --ink: #0d0d0d;
  --paper: #f7f7f5;
  --muted: #8a8a8a;
  --muted-dark: #6a6a6a;
  --accent: #f5d311;
  --accent-ink: #0d0d0d;
  --line: rgba(0,0,0,0.1);
  --line-dark: rgba(255,255,255,0.12);
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --pad: clamp(20px, 5vw, 90px);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
img { display: block; max-width: 100%; }
[data-parallax-img] img { will-change: transform; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { position: relative; }

.accent { color: var(--accent); -webkit-text-stroke: 1px var(--ink); }

/* ===== Cursor ===== */
.cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%; pointer-events: none;
  z-index: 9999; will-change: transform;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s;
}
.cursor.is-hover { width: 42px; height: 42px; background: rgba(245,211,17,.25); border: 2px solid var(--accent); }
@media (hover: none) { .cursor { display: none; } body { cursor: auto; } }

/* ===== Loader ===== */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
}
.loader__inner { display: flex; gap: 6px; }
.loader__word {
  font-family: var(--display); font-size: clamp(48px, 12vw, 120px); font-weight: 800;
  color: #fff; opacity: 0; transform: translateY(40px);
}
.loader__word:nth-child(2) { color: var(--accent); }
.loader__bar { width: min(260px, 60vw); height: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px max(var(--pad), calc((100% - var(--container)) / 2));
  transition: padding .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
  color: var(--ink);
}
.header.is-scrolled {
  background: rgba(13,13,13,.9);
  padding-top: 14px; padding-bottom: 14px; color: #fff;
}
.header.is-scrolled .header__logo span { color: var(--accent); }
.header__logo { display: inline-flex; align-items: center; }
.header__logo img { height: 42px; width: auto; filter: invert(1) brightness(.15); transition: filter .4s var(--ease); }
.header.is-scrolled .header__logo img { filter: none; }
.header__nav { display: flex; gap: 30px; }
.header__link { font-size: 15px; font-weight: 600; position: relative; opacity: .85; }
.header__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); transition: width .35s var(--ease);
}
.header__link:hover { opacity: 1; }
.header__link:hover::after { width: 100%; }
.header__burger { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; border-radius: 100px; border: 2px solid var(--accent);
  cursor: none; transition: transform .3s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn:hover { background: #ffe23d; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.header .btn--sm { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ===== Sections common ===== */
.section__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.section__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section__title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: .95;
  font-size: clamp(40px, 8vw, 96px);
}

/* ===== Hero ===== */
.hero { padding: 120px var(--pad) 0; background: var(--paper); position: relative; }
.hero__pattern {
  position: absolute; top: 120px; left: max(var(--pad), calc((100% - var(--container)) / 2)); z-index: 0;
  width: 150px; height: 110px; pointer-events: none;
  background-image: radial-gradient(rgba(13,13,13,.14) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
}
.hero__chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.25);
  animation: floaty 4.5s ease-in-out infinite;
}
.hero__chip-ic {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); font-size: 12px;
}
.hero__chip--1 { top: 170px; left: 47%; animation-delay: 0s; }
.hero__chip--2 { top: 58%; left: 43%; animation-delay: .8s; }
.hero__chip--3 { top: 30%; right: 5%; animation-delay: 1.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@media (max-width: 1000px) { .hero__chip, .hero__pattern { display: none; } }
.hero__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  min-height: auto;
}
.hero__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 18px;
}
.hero__title { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: .92; }
.hero__title .line { display: block; overflow: hidden; font-size: clamp(38px, 6.4vw, 84px); }
.hero__name { color: var(--ink); }
.hero__role {
  margin-top: 20px; margin-bottom: 16px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 700;
  letter-spacing: -.01em; color: var(--ink);
}
.hero__desc {
  max-width: 46ch; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.65; color: var(--muted-dark);
}
.hero__list { margin-top: 22px; margin-bottom: 4px; max-width: 46ch; }
.hero__tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: clamp(14px, 1.5vw, 18px); padding: 10px 18px; border-radius: 100px;
  transform: rotate(-1.5deg);
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero__cta .btn { padding-left: 44px; padding-right: 44px; }
.hero__stats { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.stat__num { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1; }
.stat__plus { font-family: var(--display); font-size: clamp(24px,3vw,34px); font-weight: 800; color: var(--accent); -webkit-text-stroke: 1px var(--ink); }
.stat__label { width: 100%; font-size: 14px; color: var(--muted-dark); font-weight: 600; margin-top: 4px; }

.hero__right { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero__photo {
  position: relative; width: 100%; background: transparent;
  display: flex; justify-content: center; align-items: flex-end;
}
/* decorations hidden — photo sits directly on the block background */
.hero__dots, .hero__ring, .hero__label { display: none; }
.hero__photo img {
  position: relative; z-index: 2; width: auto; max-width: 100%; max-height: 82vh; height: auto;
  object-fit: contain; object-position: bottom center; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
}
.hero__tag {
  bottom: 18px; left: 0; top: auto; z-index: 3;
}

.hero__marquee { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee__track { display: flex; white-space: nowrap; will-change: transform; }
.marquee__track span {
  font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px);
  padding: 16px 0; color: var(--ink); opacity: .9;
}
.marquee__track i { color: var(--accent); font-style: normal; -webkit-text-stroke: .5px var(--ink); }

/* merged About inside hero */
.intro__about {
  max-width: var(--container); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start;
}
.intro__about-body { padding-top: 10px; }
@media (max-width: 860px) { .intro__about { grid-template-columns: 1fr; gap: 20px; } }

/* ===== About ===== */
.about {
  max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(56px,8vw,110px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 100px); align-items: center;
}
.about__media { position: relative; }
.about__frame {
  position: absolute; inset: -34px 30px 34px -26px; background: var(--accent); border-radius: var(--r); z-index: 0;
}
.about__img {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; z-index: 1;
  background: radial-gradient(120% 80% at 60% 15%, #262626 0%, #141414 45%, #0b0b0b 100%);
}
.about__img img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: bottom center; }
/* SMM-style decoration on photo card */
.about__dots {
  position: absolute; top: 22px; left: 22px; width: 100px; height: 76px; z-index: 3;
  background-image: radial-gradient(rgba(245,211,17,.75) 1.6px, transparent 1.6px);
  background-size: 15px 15px;
}
.about__label {
  position: absolute; top: 50%; right: 18px; transform: translateY(-50%) rotate(90deg);
  transform-origin: right center; z-index: 3;
  font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .3em;
  color: rgba(245,211,17,.55);
}
.about__dot { position: absolute; top: -34px; right: -16px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); z-index: 4; }
.about__text { color: var(--muted-dark); font-size: clamp(15px,1.6vw,18px); line-height: 1.7; margin-top: 20px; max-width: 52ch; }
.about__list { margin-top: 26px; display: grid; gap: 12px; }
.about__list li { position: relative; padding-left: 28px; font-weight: 600; font-size: 16px; }
.about__list li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); -webkit-text-stroke: .5px var(--ink); }

/* ===== Skills ===== */
.skills { max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(56px,8vw,110px) auto 0; padding: 0 var(--pad); }
.skills__head { margin-bottom: 50px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.skills__intro { max-width: 42ch; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: var(--muted-dark); padding-bottom: 8px; }
@media (max-width: 760px) { .skills__intro { max-width: 100%; } }
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s;
}
.skill:hover { transform: translateY(-4px); border-color: var(--ink); }
.skill__idx { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--muted); transition: color .3s var(--ease); }
.skill:hover .skill__idx { color: var(--accent); -webkit-text-stroke: .5px var(--ink); }
.skill__title { font-size: 22px; font-weight: 800; margin: 14px 0 10px; letter-spacing: -.01em; }
.skill__desc { color: var(--muted-dark); font-size: 15px; line-height: 1.6; }
.skill__bar { margin-top: 22px; height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; }
.skill__bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 100px; transition: width 1.1s var(--ease); }
.skill.is-in .skill__bar i { width: var(--v); }

/* ===== Services ===== */
.services { max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(56px,8vw,110px) auto 0; padding: 0 var(--pad); }
.services__head { margin-bottom: 50px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.services__intro { max-width: 42ch; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: var(--muted-dark); padding-bottom: 8px; }
@media (max-width: 760px) { .services__intro { max-width: 100%; } }
/* Horizontal expanding cards */
.hacc { display: flex; gap: 14px; height: 430px; }
.hcard {
  position: relative; flex: 1 1 0%; min-width: 0; border-radius: var(--r); overflow: hidden;
  cursor: none; background: var(--bg);
  transition: flex-grow .6s var(--ease);
}
.hcard.is-active { flex-grow: 5.2; }
.hcard__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: grayscale(1) brightness(.55); transition: filter .6s var(--ease), transform .8s var(--ease);
}
.hcard.is-active .hcard__bg { filter: grayscale(0) brightness(.7); }
/* placeholder gradients — replace with real images via .hcard__bg background-image */
.hcard--1 .hcard__bg { background-image: linear-gradient(150deg, #2e2e2e, #0d0d0d); }
.hcard--2 .hcard__bg { background-image: linear-gradient(150deg, #3a3320, #0d0d0d); }
.hcard--3 .hcard__bg { background-image: linear-gradient(150deg, #26302e, #0d0d0d); }
.hcard--4 .hcard__bg { background-image: linear-gradient(150deg, #2b2530, #0d0d0d); }
.hcard::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(13,13,13,.85) 0%, rgba(13,13,13,.1) 55%, transparent 100%);
}
.hcard__idx {
  position: absolute; top: 26px; left: 26px; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--accent);
}
.hcard__content {
  position: absolute; left: 0; bottom: 0; z-index: 2; width: 100%;
  padding: 30px clamp(20px, 2.4vw, 34px); color: #fff;
}
.hcard__title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(20px, 2.2vw, 30px); white-space: nowrap;
}
.hcard__desc, .hcard__cta {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s;
}
.hcard.is-active .hcard__desc, .hcard.is-active .hcard__cta { opacity: 1; transform: translateY(0); }
.hcard:not(.is-active) .hcard__desc,
.hcard:not(.is-active) .hcard__cta { opacity: 0; visibility: hidden; transition: none; pointer-events: none; }
.hcard__desc { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6; max-width: 40ch; margin-top: 12px; }
.hcard__cta {
  display: inline-flex; margin-top: 18px; font-weight: 800; font-size: 14px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent); cursor: none;
}
.hcard:not(.is-active) .hcard__content { padding-left: 0; padding-right: 0; }
/* collapsed: rotate the title vertically */
.hcard:not(.is-active) .hcard__title {
  position: absolute; left: 0; right: 0; bottom: 32px; top: auto; transform-origin: center;
  transform: rotate(180deg); writing-mode: vertical-rl;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: visible;
}
/* yellow featured card (02) */
.hcard--2 .hcard__bg { background-image: linear-gradient(150deg, #ffe23d, #f5d311) !important; filter: none !important; }
.hcard--2::after { background: linear-gradient(to top, rgba(245,211,17,.35) 0%, transparent 60%); }
.hcard--2 .hcard__idx { color: var(--accent-ink); -webkit-text-stroke: 0; }
.hcard--2 .hcard__title { color: var(--accent-ink); }
.hcard--2 .hcard__desc { color: rgba(13,13,13,.72); }
.hcard--2 .hcard__cta { color: var(--accent-ink); }

/* ===== Process ===== */
.process { max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(56px,8vw,110px) auto 0; padding: 0 var(--pad); }
.process__head { margin-bottom: 50px; }
.process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.pcard:hover { transform: translateY(-4px); border-color: var(--ink); }
.pcard__num {
  font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.02em;
  color: var(--muted); transition: color .3s var(--ease); -webkit-text-stroke: 0;
}
.pcard:hover .pcard__num { color: var(--accent); -webkit-text-stroke: .6px var(--ink); }
.pcard__title { font-size: 22px; font-weight: 800; margin: 14px 0 10px; letter-spacing: -.01em; }
.pcard__desc { color: var(--muted-dark); font-size: 15px; line-height: 1.6; }

/* ===== Tools ===== */
.tools { max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(56px,8vw,110px) auto 0; padding: 0 var(--pad); }
.tools__stage { position: relative; height: clamp(460px, 46vw, 620px); }
.tools__eyebrow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 13px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--muted-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.tools__eyebrow::before, .tools__eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.tools__word {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(68px, 13vw, 168px); color: var(--ink); pointer-events: none; white-space: nowrap;
}
/* SMM decorative accents */
.tools__deco { position: absolute; z-index: 1; pointer-events: none; animation: toolFloat 6s ease-in-out infinite; }
.tools__deco--dots {
  top: 34%; left: 30%; width: 90px; height: 66px;
  background-image: radial-gradient(rgba(13,13,13,.16) 1.5px, transparent 1.5px); background-size: 14px 14px;
}
.tools__deco--ring {
  top: 60%; left: 66%; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--accent); opacity: .8;
  transform: translate(-50%, -50%); animation-duration: 7s;
}
.tools__deco--plus { top: 30%; left: 64%; font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--accent); -webkit-text-stroke: 1px var(--ink); animation-duration: 5.4s; }
.tools__deco--spark { top: 66%; left: 33%; font-size: 30px; color: var(--accent); -webkit-text-stroke: .5px var(--ink); animation-duration: 6.4s; }
.tools__deco--heart { top: 44%; left: 50%; font-size: 22px; color: var(--accent); opacity: .0; }
.tool {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(58px, 6vw, 82px); height: clamp(58px, 6vw, 82px);
  border: 1px solid var(--line); border-radius: 22px; background: #fff; cursor: none;
  box-shadow: 0 16px 36px -18px rgba(0,0,0,.3);
  animation: toolFloat 5s ease-in-out infinite;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
@keyframes toolFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 12px)); }
}
.tool__ico { width: clamp(30px, 3.4vw, 42px); height: clamp(30px, 3.4vw, 42px); object-fit: contain; }
.tool:hover { box-shadow: 0 22px 44px -16px rgba(0,0,0,.4); }
.tool:hover.tool { animation-play-state: paused; }
/* tooltip */
.tool[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px); white-space: nowrap;
  background: var(--ink); color: #fff; font-family: var(--font); font-weight: 700; font-size: 13px;
  padding: 7px 12px; border-radius: 8px; pointer-events: none;
  opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 5;
}
.tool[data-tip]::before {
  content: ""; position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(6px); border: 6px solid transparent; border-top-color: var(--ink);
  pointer-events: none; opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 5;
}
@media (hover: hover) and (pointer: fine) {
  .tool:hover::after, .tool:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* touch devices — tooltip is toggled by tap */
.tool.is-tip { z-index: 6; }
.tool.is-tip::after, .tool.is-tip::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.tool:nth-child(2n) { animation-duration: 6.2s; }
.tool:nth-child(3n) { animation-duration: 5.6s; animation-delay: .7s; }
.tool:nth-child(4n) { animation-delay: 1.3s; }
.tool:nth-child(5n) { animation-duration: 6.8s; animation-delay: .4s; }

/* ===== Works ===== */
.works { max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(56px,8vw,110px) auto 0; padding: 0 var(--pad); }
.works__head { margin-bottom: 26px; }
.works__head-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: nowrap; }
.works__head .section__title { font-size: clamp(36px, 5.5vw, 68px); }
@media (max-width: 760px) { .works__head-row { flex-wrap: wrap; align-items: flex-start; } }
.works__filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.works__intro { flex: 1 1 34%; min-width: 220px; max-width: 42ch; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: var(--muted-dark); }
@media (max-width: 760px) { .works__head { flex-wrap: wrap; align-items: flex-start; } .works__intro { flex-basis: 100%; max-width: 100%; } }
.filter {
  padding: 10px 20px; border: 1px solid var(--line); background: transparent; border-radius: 100px;
  font-weight: 700; font-size: 14px; cursor: none; color: var(--muted-dark);
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg);
  cursor: none; aspect-ratio: 4/5; display: block; isolation: isolate;
}
.work.is-hidden { display: none; }
.work__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); transition: transform .7s var(--ease), filter .5s var(--ease);
}
.work:hover .work__img { transform: scale(1.06); filter: grayscale(0); }
.work__overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; color: #fff;
  background: linear-gradient(to top, rgba(13,13,13,.92) 0%, rgba(13,13,13,.55) 45%, rgba(13,13,13,0) 100%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.work:hover .work__overlay { opacity: 1; }
.work__cat {
  font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); transform: translateY(14px); transition: transform .45s var(--ease) .05s;
}
.work__name {
  font-size: 24px; font-weight: 800; margin: 8px 0 8px; letter-spacing: -.01em;
  transform: translateY(14px); transition: transform .45s var(--ease) .1s;
}
.work__res {
  font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; line-height: 1.55; max-width: 34ch;
  transform: translateY(14px); transition: transform .45s var(--ease) .15s;
}
.work__arrow {
  position: absolute; top: 22px; right: 22px; font-size: 22px; font-weight: 700;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  transform: scale(0) rotate(-30deg); transition: transform .45s var(--ease);
}
.work:hover .work__cat,
.work:hover .work__name,
.work:hover .work__res { transform: translateY(0); }
.work:hover .work__arrow { transform: scale(1) rotate(0); }
.works__more { display: flex; justify-content: center; margin-top: 40px; }

@media (hover: none) {
  .work__overlay { opacity: 1; background: linear-gradient(to top, rgba(13,13,13,.92) 0%, rgba(13,13,13,.35) 55%, rgba(13,13,13,0) 100%); }
  .work__cat, .work__name, .work__res { transform: none; }
  .work__arrow { transform: scale(1); }
}

/* ===== Languages ===== */
.languages { max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(56px,8vw,110px) auto 0; padding: 0 var(--pad); }
.languages__head { margin-bottom: 50px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.languages__intro { max-width: 42ch; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: var(--muted-dark); padding-bottom: 8px; }

/* keep intro to the RIGHT of the heading (don't wrap under) */
.skills__head, .services__head, .languages__head { flex-wrap: nowrap; }
.skills__head .section__title,
.services__head .section__title,
.languages__head .section__title { font-size: clamp(36px, 5.5vw, 68px); }
.skills__intro, .services__intro, .languages__intro { flex: 1 1 34%; min-width: 220px; }
@media (max-width: 760px) {
  .skills__head, .services__head, .languages__head { flex-wrap: wrap; }
  .skills__intro, .services__intro, .languages__intro { max-width: 100%; flex-basis: 100%; }
}
.languages__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lang {
  text-align: center; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 36px 20px; transition: transform .4s var(--ease);
}
.lang:hover { transform: translateY(-6px); }
.lang__ring { position: relative; width: 130px; height: 130px; margin: 0 auto 20px; }
.lang__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lang__track { fill: none; stroke: var(--line); stroke-width: 8; }
.lang__prog {
  fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.4s var(--ease);
}
.lang__pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; }
.lang__name { font-size: 20px; font-weight: 800; }
.lang__level { font-size: 14px; color: var(--muted-dark); font-weight: 600; margin-top: 4px; }

/* ===== Contact ===== */
.contact {
  max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(64px,9vw,120px) auto 0; padding: clamp(60px,9vw,110px) var(--pad);
  background: var(--bg); color: #fff; border-radius: clamp(20px,3vw,32px); text-align: center;
}
.contact .section__eyebrow { color: rgba(255,255,255,.6); justify-content: center; }
.contact__title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: .98;
  font-size: clamp(34px, 6.5vw, 84px); margin-bottom: 40px;
}
.contact__mail {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 4vw, 46px); color: var(--accent); position: relative;
}
.contact__mail::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__socials { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 50px; }
.contact__social {
  padding: 13px 26px; border: 1px solid var(--line-dark); border-radius: 100px;
  font-weight: 700; font-size: 15px; transition: all .3s var(--ease);
}
.contact__social:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ===== Footer ===== */
.footer {
  max-width: calc(var(--container) + var(--pad) * 2); margin: clamp(60px,9vw,110px) auto 0;
  padding: clamp(44px,5vw,64px) var(--pad) 30px;
  background: var(--bg); color: #fff; border-radius: clamp(24px,3vw,36px) clamp(24px,3vw,36px) 0 0;
}
.footer__top {
  display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap;
  padding-bottom: clamp(40px,5vw,60px); border-bottom: 1px solid var(--line-dark);
}
.footer__brand { max-width: 420px; }
.footer__logo img { height: 40px; width: auto; margin-bottom: 22px; }
.footer__tag { color: rgba(255,255,255,.6); font-size: clamp(15px,1.6vw,18px); line-height: 1.6; }
.footer__mail {
  display: inline-block; margin-top: 20px; font-family: var(--display); font-weight: 700;
  font-size: clamp(20px,2.6vw,30px); color: var(--accent); position: relative;
}
.footer__mail::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.footer__mail:hover::after { transform: scaleX(1); }
.footer__cols { display: flex; gap: clamp(40px,7vw,90px); }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col-title { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.footer__col a { font-weight: 600; font-size: 16px; color: rgba(255,255,255,.85); width: fit-content; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; color: rgba(255,255,255,.5); font-size: 14px; font-weight: 600;
}
.footer__totop { color: rgba(255,255,255,.8); transition: color .3s var(--ease); }
.footer__totop:hover { color: var(--accent); }
@media (max-width: 620px) { .footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 800; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateY(-100%); transition: transform .6s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__link { font-family: var(--display); font-weight: 800; font-size: clamp(30px,9vw,56px); color: #fff; }
.mobile-menu__link:hover { color: var(--accent); }

/* ===== Reveal states ===== */
[data-reveal] { opacity: 0; transform: translateY(30px); }
.no-js [data-reveal] { opacity: 1; transform: none; }
.no-js .loader { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 20px; }
  .hero__right { max-width: 440px; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .hacc { flex-direction: column; height: auto; gap: 12px; }
  .hcard { flex: none; height: 82px; transition: height .55s var(--ease); }
  .hcard.is-active { height: 300px; }
  .hcard:not(.is-active) .hcard__title {
    position: absolute; bottom: auto; top: 50%; left: 26px;
    transform: translateY(-50%) rotate(0); writing-mode: horizontal-tb; white-space: nowrap;
  }
  .hcard:not(.is-active) .hcard__content { padding: 0; }
  /* Tools: switch orbit to simple centered wrap */
  .tools__stage { height: auto; padding-top: 54px; text-align: center; }
  .tools__eyebrow { position: static; transform: none; justify-content: center; margin-bottom: 8px; }
  .tools__word { position: static; transform: none; font-size: clamp(64px, 22vw, 120px); margin: 0 0 26px; }
  .tool {
    position: relative !important; top: auto !important; left: auto !important;
    transform: none !important; display: inline-flex; margin: 6px; animation: none;
  }
  /* tooltip sits under the tapped icon */
  .tool[data-tip]::after { bottom: auto; top: calc(100% + 10px); }
  .tool[data-tip]::before {
    bottom: auto; top: calc(100% + 4px);
    border-top-color: transparent; border-bottom-color: var(--ink);
  }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .languages__grid { grid-template-columns: repeat(2, 1fr); }
  .header__nav { display: none; }
  .header .btn--sm { display: none; }
  .header__burger {
    display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px;
    color: inherit;
  }
  .header__burger span {
    width: 30px; height: 2px; background: currentColor;
    transition: transform .4s var(--ease), opacity .3s, background-color .4s var(--ease);
  }
  .header__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }
}
@media (max-width: 620px) {
  .hero { padding-top: 120px; }
  .hero__right { order: -1; max-width: 340px; margin: 0 auto; }
  .hero__left { order: 0; }
  .skills__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; }
  .languages__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; justify-content: space-between; }
  .hero__stats .stat { flex: 1; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Case modal ===== */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; cursor: auto; }
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(13,13,13,.72);
  opacity: 0; transition: opacity .4s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; width: min(1040px, 92vw); height: min(90vh, 900px);
  margin: 5vh auto; background: var(--paper); border-radius: clamp(18px, 2.4vw, 28px); overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(30px) scale(.985);
  transition: opacity .45s var(--ease), transform .5s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 15px; display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.modal__close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
.modal__scroll {
  height: 100%; overflow-y: auto; padding: clamp(28px, 5vw, 56px);
  overscroll-behavior: contain;
}
.modal__scroll::-webkit-scrollbar { width: 2px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.modal__scroll::-webkit-scrollbar-thumb { background: rgba(140,140,140,.6); border-radius: 999px; }
.modal__scroll::-webkit-scrollbar-thumb:hover { background: rgba(140,140,140,.9); }
.modal__cat {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark);
}
.modal__cat::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.modal__title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(34px, 6vw, 68px); margin: 14px 0 26px;
}
.modal__text { max-width: none; }
.modal__text p { color: var(--muted-dark); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; margin-bottom: 16px; }
.modal__gallery {
  margin-top: clamp(30px, 4vw, 46px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 18px);
}
.modal__media { border-radius: 14px; overflow: hidden; background: var(--bg); aspect-ratio: 1/1; }
.modal__media img, .modal__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__media--video { grid-column: 1 / -1; aspect-ratio: 16/9; background: #000; }
.modal__media--video video { object-fit: contain; }
@media (max-width: 640px) {
  .modal__dialog { width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
  .modal__gallery { grid-template-columns: 1fr; }
}
