/* ===== Fonts ===== */
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-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; }
@font-face { font-family: 'Outfit'; font-weight: 300 600; font-display: swap;
  src: url("../fonts/outfit-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-weight: 300 600; font-display: swap;
  src: url("../fonts/outfit-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; }

/* ===== Design tokens ===== */
:root {
  /* colour: dark only, built from the MD logo lavender #C9ABFF */
  --bg: #120E1A;
  --surface: #1C1628;
  --fg: #F4F0FA;
  --muted: #A79BBB;
  --accent: #C9ABFF;
  --on-accent: #120E1A;
  --line: #2C2340;

  /* type */
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* spacing (8px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 56px; --s-7: 80px; --s-8: 120px; --s-9: 160px;
  --gutter: 48px;
  --pad: max(var(--gutter), calc((100vw - 1280px) / 2));

  /* radius + motion */
  --r-img: 4px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-theme: .5s ease;
  --nav-h: 73px; /* measured in main.js */
}
/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); color-scheme: dark; }

/* scrollbars in the site palette (page, case study, dropdown, phone menu) */
* { scrollbar-width: thin; scrollbar-color: #3A2E52 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3A2E52; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.pmenu__panel::-webkit-scrollbar-track { background: var(--surface); }
.pmenu__panel::-webkit-scrollbar-thumb { border-color: var(--surface); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-h);
  transition: background var(--t-theme), color var(--t-theme);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: var(--s-4); margin-bottom: var(--s-6);
}
.section-head .count { font-size: 14px; color: var(--muted); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: background var(--t-theme);
}
.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 12px; }
.nav__left { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }

/* Projects dropdown */
.pmenu { position: relative; }
.pmenu__btn {
  font: inherit; font-size: 15px; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.pmenu__btn:hover, .pmenu__btn[aria-expanded="true"] { color: var(--accent); }
.pmenu__caret { font-size: 11px; transition: transform .25s var(--ease); }
.pmenu__btn[aria-expanded="true"] .pmenu__caret { transform: rotate(180deg); }
body.in-case .pmenu__btn { color: var(--fg); line-height: 1.2; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px; }
.pmenu__panel {
  position: absolute; right: 0; top: calc(100% + 22px); width: 360px;
  max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); padding: 8px;
  animation: pmenu-in .25s var(--ease);
}
@keyframes pmenu-in { from { opacity: 0; transform: translateY(-8px); } }
.pmenu__head { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 10px; }
.pmenu__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pmenu__item {
  width: 100%; display: grid; grid-template-columns: 22px 48px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg);
  font: inherit; text-align: left; cursor: pointer; transition: background .15s;
}
.pmenu__item:hover, .pmenu__item:focus-visible { background: rgba(201, 171, 255, .08); }
.pmenu__item[aria-current="true"] { background: rgba(201, 171, 255, .14); }
.pmenu__item[aria-current="true"] .pmenu__num { color: var(--accent); }
.pmenu__num { font-size: 12px; color: var(--muted); }
.pmenu__thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--bg); }
.pmenu__text { display: grid; min-width: 0; }
.pmenu__title { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmenu__tag { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav__logo { height: 32px; width: auto; transition: transform .5s var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-6deg) scale(1.06); }
.nav__links { display: flex; gap: 36px; align-items: center; font-size: 15px; color: var(--muted); }

/* ===== Hero ===== */
.hero { padding: var(--s-7) var(--pad) var(--s-6); display: grid; gap: var(--s-4); }
.hero__eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__title {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(40px, 6.5vw, 96px); line-height: .92; letter-spacing: -.045em;
}
.contact__title span { color: var(--accent); transition: color .6s ease; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }
.hero__tagline { max-width: 520px; display: grid; gap: 8px; }
.hero__punch { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -.015em; }
.hero__sub { font-size: 16px; line-height: 1.5; color: var(--muted); }
.hero__cta { font-size: 15px; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }

/* ===== Scroll-driven motion =====
   main.js writes two numbers on each [data-scroll] element:
   --in  0→1 while it rises into view
   --out 0→1 while it leaves past the top
   Everything below is just CSS math on those. */
[data-scroll] { --in: 1; --out: 0; }

/* hero letters arrive on load, the hero drifts away on scroll */
.hero__title .ch {
  display: inline-block;
  animation: ch-in .9s var(--ease) both;
  animation-delay: calc(var(--i) * 35ms + 100ms);
}
@keyframes ch-in { from { opacity: 0; transform: translateY(.45em) rotate(6deg); } }
.hero {
  opacity: calc(1 - var(--out) * .9);
  transform: translateY(calc(var(--out) * -60px)) scale(calc(1 - var(--out) * .05));
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

/* ribbon: two lines of disciplines sliding opposite ways with scroll */
.ribbon {
  overflow: hidden; padding: var(--s-4) 0;
  border-block: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(28px, 5vw, 64px); line-height: 1.1; letter-spacing: -.03em;
  white-space: nowrap;
}
.ribbon__track { will-change: transform; }
.ribbon__track--alt { color: transparent; -webkit-text-stroke: 1px var(--muted); }
.ribbon__track { display: flex; align-items: center; width: max-content; }
.ribbon__mark { height: .8em; width: auto; margin: 0 .45em; flex: none; }
.ribbon__track--alt .ribbon__mark { opacity: .55; }

/* featured showcase: pieces placed left / right */
.showcase { padding: var(--s-8) var(--pad) var(--s-7); overflow-x: hidden; overflow-x: clip; } /* pieces slide in from the sides without widening the page */
.showcase__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-6); }
.showcase__lead {
  font-family: var(--font-display); font-weight: 500; color: var(--muted);
  font-size: clamp(18px, 2vw, 26px); letter-spacing: -.01em;
}
.feature {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-4);
  align-items: center; margin: 0 0 12vh;
  --dir: -1;
  opacity: calc(1 - var(--out));
  transform: translateY(calc(var(--out) * -80px)) scale(calc(1 - var(--out) * .08));
  will-change: transform, opacity;
}
.feature:last-child { margin-bottom: var(--s-6); }
.feature.is-right { --dir: 1; }
.feature__media {
  position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--surface);
  grid-row: 1; display: block; cursor: zoom-in; padding: 0; border: 0;
  /* wipe open from the side it sits on */
  clip-path: inset(0 calc((1 - var(--in)) * 100%) 0 0 round var(--r-img));
  transform: translateX(calc((1 - var(--in)) * 60px * var(--dir)));
}
.feature.is-right .feature__media { clip-path: inset(0 0 0 calc((1 - var(--in)) * 100%) round var(--r-img)); }
.feature__media img {
  width: 100%; height: auto; max-height: 78vh; object-fit: cover;
  transform: scale(calc(1.18 - var(--in) * .18));
  transition: filter .4s;
}
.feature__media:hover img { filter: brightness(1.06); }
.feature__cap {
  grid-row: 1; align-self: end; padding-bottom: var(--s-3);
  opacity: var(--in);
  transform: translateY(calc((1 - var(--in)) * 40px));
}
.feature__n {
  display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(48px, 7vw, 104px); line-height: .9; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--accent); transition: -webkit-text-stroke-color .6s ease;
}
.feature__title {
  margin: var(--s-2) 0 4px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -.03em;
}
.feature__tag { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.feature__link { display: inline-block; margin-top: var(--s-3); font-size: 14px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* placements: size l / m / s, left or right */
.feature.size-l .feature__media { grid-column: 1 / span 8; }
.feature.size-m .feature__media { grid-column: 2 / span 6; }
.feature.size-s .feature__media { grid-column: 2 / span 4; }
.feature .feature__cap { grid-column: 10 / span 3; }
.feature.size-m .feature__cap, .feature.size-s .feature__cap { grid-column: 9 / span 4; }
.feature.is-right.size-l .feature__media { grid-column: 5 / span 8; }
.feature.is-right.size-m .feature__media { grid-column: 6 / span 6; }
.feature.is-right.size-s .feature__media { grid-column: 8 / span 4; }
.feature.is-right .feature__cap { grid-column: 1 / span 3; text-align: right; }
.feature.is-right.size-m .feature__cap, .feature.is-right.size-s .feature__cap { grid-column: 1 / span 4; }

/* grid rows get a softer version of the same in / out */
.project[data-scroll] {
  opacity: calc(var(--in) * (1 - var(--out) * .85));
  transform: translateY(calc((1 - var(--in)) * 40px + var(--out) * -24px));
}

/* ===== Work: every project on one page ===== */
.work { padding: var(--s-5) var(--pad) var(--s-7); }
.work .section-head { margin-bottom: var(--s-4); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.chip {
  font: inherit; font-size: 13px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 14px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.project {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-5);
  padding: var(--s-4) 0; border-top: 1px solid var(--line);
}
.project[hidden] { display: none; }
.project__info { font-size: 14px; line-height: 1.5; }
.project__n { font-size: 12px; color: var(--accent); letter-spacing: .1em; transition: color .6s ease; }
.project__title {
  margin: 2px 0 2px; font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.15; letter-spacing: -.02em;
}
.project__tag { color: var(--muted); font-size: 13px; }
.project__blurb { margin-top: var(--s-2); color: var(--muted); }
.project__meta { margin-top: var(--s-2); font-size: 12px; color: var(--muted); opacity: .8; }

/* justified thumbnail rows (sized in main.js) */
.thumbs { display: grid; gap: 8px; min-width: 0; }
.thumbs__row { display: flex; gap: 8px; }
.thumb {
  flex: none; height: 150px; width: 210px;
  padding: 0; border: 0; background: var(--surface); border-radius: var(--r-img);
  overflow: hidden; cursor: zoom-in;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumb:hover img { transform: scale(1.04); }
.thumb:focus-visible { outline-offset: 2px; }

/* ===== Phone menu ===== */
.nav__menu-btn {
  display: none; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; line-height: 1.2; color: var(--fg); cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px;
}
.nav__menu-icon { position: relative; width: 16px; height: 10px; }
.nav__menu-icon i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__menu-icon i:first-child { top: 1px; }
.nav__menu-icon i:last-child { top: 7.5px; }
.nav__menu-btn[aria-expanded="true"] .nav__menu-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] .nav__menu-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }
.nav__menu-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

.mnav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-6) var(--pad) var(--s-5); background: var(--bg); overflow-y: auto;
}
.mnav[hidden] { display: none; }
.mnav__links { display: grid; }
.mnav__links a {
  display: flex; align-items: baseline; gap: var(--s-3);
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(36px, 11vw, 56px); line-height: 1; letter-spacing: -.04em;
  opacity: 0; transform: translateY(24px);
  animation: mnav-in .6s var(--ease) forwards;
}
.mnav__links a:nth-child(2) { animation-delay: .06s; }
.mnav__links a:nth-child(3) { animation-delay: .12s; }
.mnav__links a:nth-child(4) { animation-delay: .18s; }
.mnav__links a span { font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: .08em; color: var(--accent); }
@keyframes mnav-in { to { opacity: 1; transform: none; } }
.mnav__foot { display: grid; justify-items: start; gap: var(--s-3); padding-top: var(--s-5); }
.mnav__mail { font-size: 16px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; word-break: break-all; }

/* ===== Case study (full-screen project view) ===== */
.project__open {
  display: inline-block; margin-top: var(--s-3); padding: 0; border: 0; background: none;
  font: inherit; font-size: 13px; color: var(--accent); cursor: pointer;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.project__title { cursor: pointer; }
.project__title:hover { color: var(--accent); }

.case {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(40px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.case.is-open { opacity: 1; transform: none; }
.case:focus { outline: none; }
.case[hidden] { display: none; }
.case__body { padding: var(--s-6) var(--pad) var(--s-6); }
.case__head { margin-bottom: var(--s-5); }
.case__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.case__count { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.case__tag { font-size: 13px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.case__title {
  margin: var(--s-2) 0 var(--s-4);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(34px, 3.6vw, 56px); line-height: .98; letter-spacing: -.04em;
}
.case__intro { display: grid; gap: var(--s-4); }
.case__blurb { font-size: 16px; line-height: 1.6; color: var(--fg); }
.case__facts { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--s-4); margin: 0; font-size: 14px; border-top: 1px solid var(--line); padding-top: var(--s-3); }
.case__facts dt { color: var(--muted); }
.case__facts dd { margin: 0; }

/* images: rows sized in main.js so the whole set fits the screen */
.case__images { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; min-height: 0; }
.case__row { display: flex; justify-content: center; gap: 12px; }
.case__img {
  flex: none; padding: 0; border: 0; border-radius: var(--r-img); overflow: hidden;
  background: var(--surface); cursor: zoom-in;
  opacity: 0; transform: translateY(16px) scale(.98);
  animation: case-img-in .7s var(--ease) forwards; animation-delay: calc(var(--d) * 70ms + 120ms);
}
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case__img:hover img { transform: scale(1.03); }
@keyframes case-img-in { to { opacity: 1; transform: none; } }
.case__hint { margin-top: var(--s-3); font-size: 12px; color: var(--muted); }

/* desktop: description left, images right, all inside one screen */
@media (min-width: 1001px) {
  .case { overflow: hidden; }
  .case__body {
    height: 100%; display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: var(--s-6); padding: var(--s-5) var(--pad);
  }
  .case__head { margin: 0; overflow-y: auto; align-self: center; max-height: 100%; padding-right: var(--s-2); }
  .case__images { height: 100%; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
  background: rgba(12, 9, 18, .94); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 48px 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--r-img); }
.lightbox figcaption { font-size: 14px; color: #CFC4D3; }
.lightbox button {
  font: inherit; font-size: 22px; color: #F5EEE8; background: none; border: 0;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; justify-self: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .1); }
.lb-close { position: absolute; top: 12px; right: 12px; }

/* ===== About ===== */
.about { padding: var(--s-8) var(--pad); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); }
.about__body { display: grid; gap: 64px; }
.about__statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.02em;
}
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.about__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.skill {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.skill__bar { width: 120px; height: 3px; background: var(--line); position: relative; }
.skill__bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; transition: width 1.1s var(--ease), background .6s ease; }
.skill.is-in .skill__bar i { width: var(--pct); }
.about__langs { margin-top: 20px; font-size: 15px; color: var(--muted); }
.exp { display: grid; gap: var(--s-4); font-size: 16px; }
.exp strong { font-weight: 500; display: block; }
.exp small { color: var(--muted); font-size: 14px; }

/* ===== Services ===== */
.services { padding: var(--s-6) var(--pad) var(--s-8); }
.services .section-head { margin-bottom: var(--s-4); }
.service {
  display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-5);
  align-items: baseline; padding: 36px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s ease;
}
.service:hover { padding-left: var(--s-3); }
.service__n { font-size: 14px; color: var(--accent); }
.service__title {
  font-family: var(--font-display); font-stretch: 108%; font-weight: 700;
  font-size: clamp(24px, 2.7vw, 40px); letter-spacing: -.03em; line-height: 1.05;
}
.service__text { color: var(--muted); font-size: 16px; max-width: 460px; }

/* ===== Contact ===== */
.contact { padding: var(--s-8) var(--pad) var(--s-6); background: var(--surface); transition: background var(--t-theme); }
.contact .label { display: block; margin-bottom: 40px; font-weight: 400; }
.contact__title {
  margin-bottom: var(--s-6);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(40px, 7vw, 104px); line-height: .95; letter-spacing: -.04em;
}
.contact__mail { display: inline-block; font-size: clamp(18px, 2vw, 26px); border-bottom: 2px solid var(--accent); padding-bottom: 6px; word-break: break-all; }
.contact__links { display: grid; justify-items: start; gap: var(--s-3); }
.contact__phone { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; font-size: clamp(16px, 1.6vw, 20px); }
.contact__wa {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--accent);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px 6px 10px;
  transition: border-color .2s, background .2s, color .2s;
}
.contact__wa-icon { width: 18px; height: 18px; flex: none; }
.contact__wa:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.contact__foot {
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.contact__foot a { margin-left: var(--s-3); }

/* ===== Scroll reveal ===== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  :root { --gutter: 32px; }
  .project { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .project__blurb { max-width: 640px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .showcase { padding-top: var(--s-7); }
  .showcase__head { margin-bottom: var(--s-6); }
  .feature { margin-bottom: 9vh; row-gap: var(--s-3); }
  .feature .feature__media, .feature.size-l .feature__media { grid-column: 1 / span 11; }
  .feature.size-m .feature__media, .feature.size-s .feature__media { grid-column: 1 / span 9; }
  .feature.is-right .feature__media, .feature.is-right.size-l .feature__media { grid-column: 2 / span 11; }
  .feature.is-right.size-m .feature__media, .feature.is-right.size-s .feature__media { grid-column: 4 / span 9; }
  .feature .feature__cap, .feature.size-m .feature__cap, .feature.size-s .feature__cap { grid-row: 2; grid-column: 1 / -1; padding: 0; }
  .feature.is-right .feature__cap, .feature.is-right.size-m .feature__cap, .feature.is-right.size-s .feature__cap { grid-column: 1 / -1; }
  .feature__n { font-size: 44px; }
  .nav { padding: 14px var(--pad); }
  .nav__links { gap: var(--s-2); }
  .nav__menu-btn { display: inline-flex; }
  .nav__links > a { display: none; }
  .nav__brand span { display: none; }
  .nav__left { gap: var(--s-3); }
  .pmenu__btn, body.in-case .pmenu__btn { font-size: 14px; line-height: 1.2; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); }
  .nav__menu-btn { padding: 6px 12px; }
  .pmenu { position: static; }
  .pmenu__panel { position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 8px); width: auto; }
  .thumbs, .thumbs__row { gap: 6px; }
  .about__cols { grid-template-columns: 1fr; }
  .service { grid-template-columns: 40px 1fr; }
  .service__text { grid-column: 2; }
  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  [data-scroll], .feature, .project[data-scroll], .hero { --in: 1 !important; --out: 0 !important; }
  .hero__title .ch { animation: none; }
  .mnav__links a { animation: none; opacity: 1; transform: none; }
  .case { transform: none; }
  .case__img { animation: none; opacity: 1; transform: none; }
  .skill__bar i { width: var(--pct); }
}
