/* ============================================================
   James Doran — Portfolio
   Design language modelled on daniela-rivas.com
   Dark by default, light theme via [data-theme="light"] on <html>
   Fonts: Helvetica (display) + Inter (body/UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0e0e0d;
  --bg-raise: #151514;
  --ink: #fdfdf7;
  --muted: #93938f;
  --dim: #7a7975;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --ph-bg: #1d1d1b;
  --ph-bg2: #232321;
  --header-bg: rgba(14, 14, 13, 0.82);
  --avail: #4ade80; /* availability green — light on dark bg */
  --sans: 'Inter', -apple-system, sans-serif;
  --disp: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html[data-theme='light'] {
  --bg: #fdfdf7;
  --bg-raise: #f4f4ee;
  --ink: #151514;
  --muted: #6f6f6a;
  --dim: #8a8a85;
  --hairline: rgba(22, 22, 19, 0.12);
  --hairline-strong: rgba(22, 22, 19, 0.24);
  --ph-bg: #e9e8e2;
  --ph-bg2: #dfded8;
  --header-bg: rgba(253, 253, 247, 0.85);
  --avail: #1a7f37; /* availability green — dark enough for AA on light bg */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
/* Text links underline on hover (no colour change). Buttons and card/row
   links opt out below and get a background-invert or heading underline. */
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  width: 100%;
  padding: 0 40px;
}

::selection { background: var(--ink); color: var(--bg); }

/* Buttons and card/row links never get the text-link underline — they
   invert their background or underline a specific heading instead. */
.brand:hover,
.btn-outline:hover,
.email-copy:hover,
.see-all:hover,
.work-card:hover,
.work-row-link:hover,
.code-card:hover,
.theme-btn:hover,
.menu-btn:hover { text-decoration: none; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  width: 100%;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}
.brand:hover { color: var(--ink); }

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 26px;
}
.main-nav a {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.85;
}
.main-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.main-nav a.current { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.theme-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted);
}
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 16px; height: 16px; }
html[data-theme='light'] .theme-btn .icon-sun { display: none; }
html:not([data-theme='light']) .theme-btn .icon-moon { display: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
/* Invert on hover: fill with ink, flip text to the page background */
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.menu-btn { display: none; font-size: 22px; line-height: 1; padding: 4px; }

/* Mobile menu overlay — kept rendered so opacity/visibility can animate */
.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  padding: 90px 40px 40px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s; /* delay hides it only after the fade-out */
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.mobile-menu a {
  font-family: var(--disp);
  font-size: 34px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-of-type(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-of-type(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-of-type(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-of-type(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-of-type(5) { transition-delay: 0.25s; }
.mobile-menu .close-menu {
  position: absolute;
  top: 18px; right: 36px;
  font-size: 30px;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu a { transition: none; }
  .mobile-menu a { transform: none; }
}

/* ---------------- Section scaffolding ---------------- */

.section { padding: 90px 0; border-top: 1px solid var(--hairline); }
.section:first-of-type { border-top: none; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.sec-label .sq {
  width: 7px; height: 11px;
  background: var(--ink);
  display: inline-block;
}

.row-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  gap: 40px;
  align-items: start;
}

.dim { color: var(--dim); }

/* ---------------- Placeholder boxes ---------------- */

.ph {
  background: var(--ph-bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  padding: 12px;
}
.ph.alt { background: var(--ph-bg2); }

.r-45 { aspect-ratio: 4 / 5; }
.r-43 { aspect-ratio: 4 / 3; }
.r-169 { aspect-ratio: 16 / 9; }
.r-1610 { aspect-ratio: 16 / 10; }
.r-11 { aspect-ratio: 1 / 1; }
.r-32 { aspect-ratio: 3 / 2; }

/* ---------------- Real imagery ---------------- */

.shot {
  width: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--ph-bg);
}

/* Tall full-page screenshots scroll inside a fixed-height frame */
.scrolly {
  max-height: 620px;
  overflow-y: auto;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.scrolly .shot { border: none; border-radius: 0; }

.strip img {
  height: 240px;
  width: auto;
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--ph-bg);
}

.film-track img {
  height: 170px;
  width: auto;
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--ph-bg);
}

/* ---------------- Home: hero ---------------- */

.hero { padding: 110px 0 130px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  gap: 40px;
  align-items: center;
}

.hero-photo { width: 165px; }

/* 3D parallax portrait (pure CSS, Temani Afif technique): the image is a touch
   wider than its frame and pre-rotated in 3D; on hover it rotates back the other
   way and slides, so the centred face appears to turn while the frame stays put.
   Reveal (fade-up) lives on the wrapper so it doesn't fight this transform. */
.portrait-3d {
  --f: .1;    /* parallax factor — smaller is subtler */
  --r: 6px;   /* corner radius */
  --_f: calc(100% * var(--f) / (1 + var(--f)));
  --_a: calc(90deg * var(--f));
  width: 165px;                       /* visible square ≈ 165 / 1.1 = 150px */
  aspect-ratio: calc(1 + var(--f));
  object-fit: cover;
  display: block;
  clip-path: inset(0 var(--_f) 0 0 round var(--r));
  transform: perspective(400px) var(--_t, rotateY(var(--_a)));
  filter: grayscale(1);               /* black & white at rest, colour on hover */
  transition: clip-path .5s ease, transform .5s ease, filter .5s ease;
}
.portrait-3d:hover {
  clip-path: inset(0 0 0 var(--_f) round var(--r));
  --_t: translateX(calc(-1 * var(--_f))) rotateY(calc(-1 * var(--_a)));
  filter: grayscale(0);
}
/* touch devices can't hover — don't leave the portrait stuck in grey */
@media (hover: none) {
  .portrait-3d { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-3d {
    width: 150px; aspect-ratio: 1;
    clip-path: inset(0 round var(--r));
    transform: none; transition: none;
  }
  .portrait-3d:hover { clip-path: inset(0 round var(--r)); --_t: none; }
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 620px;
}

.hero-cred {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.hero-cred a { text-decoration: underline; text-underline-offset: 3px; }
.hero-cred .avail { color: var(--avail); }

/* ---------------- Home: selected work ---------------- */

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.see-all .arr {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.see-all:hover .arr { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateX(3px); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.work-card { display: block; }
.work-card .ph,
.work-card .shot { transition: transform 0.35s ease; }
.work-card:hover .ph,
.work-card:hover .shot { transform: translateY(-4px); }
.work-card h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin: 14px 0 4px;
  color: var(--ink);
}
.work-card p { font-size: 13px; line-height: 1.5; color: var(--muted); }
.work-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Home: what I do ---------------- */

.statement {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 640px;
  margin-bottom: 36px;
}

.what-copy p {
  max-width: 520px;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.what-copy .btn-outline { margin-top: 10px; }

.skills-h {
  font-family: var(--disp);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin: 70px 0 30px;
}

.skill-group { margin-bottom: 30px; }
.skill-group h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
  margin-bottom: 12px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.pill {
  font-size: 12.5px;
  padding: 5px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  color: var(--ink);
}
.learning { font-size: 13px; color: var(--dim); margin-top: 26px; }

/* ---------------- Say hello / contact ---------------- */

.hello-h {
  font-family: var(--disp);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  margin-bottom: 18px;
}
.hello-copy { max-width: 460px; font-size: 14.5px; color: var(--muted); margin-bottom: 34px; }

.copy-label { font-size: 12px; color: var(--dim); margin-bottom: 10px; }

.email-copy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 20px;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.email-copy:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.email-copy .copied { display: none; font-size: 13px; }
.email-copy.done .copied { display: inline; }

/* ---------------- Filmstrip marquee ---------------- */

.filmstrip {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
}
.film-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: film-scroll 48s linear infinite;
}
.film-track .ph { height: 170px; border-radius: 4px; flex: none; }
.fw-s { width: 130px; }
.fw-m { width: 230px; }
.fw-l { width: 300px; }
@keyframes film-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .film-track { animation: none; }
}

/* ---------------- Footer ---------------- */

.footer-bar {
  border-top: 1px solid var(--hairline);
  padding: 16px 0;
  font-size: 12px;
  color: var(--muted);
}
.footer-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- Page hero (Work / About / Contact) ---------------- */

.page-hero { padding: 90px 0 60px; }
.page-hero h1 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ---------------- Work index ---------------- */

.work-row { padding: 50px 0 60px; border-top: 1px solid var(--hairline); }
.work-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.work-row-head h2 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
.work-row-head p { font-size: 13.5px; color: var(--muted); max-width: 480px; }
/* Hovering anywhere on the row inverts the "Learn more" arrow box (the h2 is
   text beside a button, so it gets no underline). */
.work-row-link:hover .arr { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateX(3px); }

.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .ph { height: 240px; flex: none; }
.sw-s { width: 140px; }
.sw-m { width: 260px; }
.sw-l { width: 360px; }

/* Archive / coded projects */
.archive-head {
  font-family: var(--disp);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin-bottom: 8px;
}
.archive-sub { font-size: 14px; color: var(--muted); margin-bottom: 34px; }

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.code-card {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}
.code-card:hover { border-color: var(--hairline-strong); color: var(--ink); }
.code-card .cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.code-card h3 { font-size: 16px; font-weight: 600; }
.code-card h3 span { color: var(--dim); font-weight: 400; font-size: 13px; }
.code-card p { font-size: 13px; color: var(--muted); flex: 1; }
.code-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.code-card .tag {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--muted);
}
.code-card .ext { font-size: 13px; font-weight: 500; color: var(--ink); }
.code-card:hover .ext { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Case study ---------------- */

.case-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 60px;
  padding: 50px 0 90px;
  align-items: start;
}

.case-rail { position: sticky; top: 90px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}

.case-rail h1 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.case-intro p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }

.case-meta { margin-top: 26px; display: grid; gap: 18px; }
.case-meta .label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.case-meta .value { font-size: 13px; color: var(--ink); }

.case-rail .btn-outline { margin-top: 26px; }

.case-body { display: grid; gap: 18px; }

.case-hero.ph { border-radius: 6px; }

.process-label { font-size: 12px; color: var(--dim); margin: 30px 0 4px; }

.case-sec { max-width: 560px; padding: 12px 0 6px; }
.case-sec h2 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.case-sec p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.case-sec ul { margin: 0 0 12px 18px; }
.case-sec li { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.case-sec strong { color: var(--ink); font-weight: 600; }

.case-fig { margin: 8px 0; }
.case-fig figcaption {
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 10px;
  max-width: 560px;
}
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.next-project {
  border-top: 1px solid var(--hairline);
  padding: 60px 0;
}
.next-project .label { font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.next-project a {
  font-family: var(--disp);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
}

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr);
  gap: 60px;
  padding-bottom: 80px;
  align-items: start;
}
.about-photos { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 300px; }

.about-intro {
  font-family: var(--sans);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 40px;
  max-width: 560px;
}
.about-block { margin-bottom: 34px; max-width: 520px; }
.about-block .label { font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.about-block p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }

.cv-section { padding: 60px 0; border-top: 1px solid var(--hairline); }
.cv-section > .container > h2 {
  font-family: var(--disp);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  margin-bottom: 34px;
}
.cv-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.cv-row .role { font-weight: 600; }
.cv-row .org { color: var(--muted); }
.cv-row .dates { color: var(--dim); text-align: right; }

.toolset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.toolset-grid h4 { font-size: 12px; font-weight: 500; color: var(--dim); margin-bottom: 12px; }

/* ---------------- Contact page ---------------- */

.contact-wrap { padding: 40px 0 120px; max-width: 640px; }
.contact-wrap p { font-size: 16px; color: var(--muted); margin-bottom: 36px; }
.contact-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.contact-alt { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- Animations (reveal + split text) ---------------- */
/* Hiding is gated behind html.js (set by the inline head script) so
   content is never invisible if JavaScript doesn't run. */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }

html.js .hero-cred.reveal { transition-delay: 0.5s; }

/* Split-text: letters (.ltr) and words (.w) rise in with per-span delays.
   In letter mode each word's letters sit in a .ltr-word wrapper that keeps
   the word whole (breaks only at real spaces, never mid-word). */
.split .ltr-word { display: inline-block; white-space: nowrap; }
.split .ltr,
.split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.9em);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.split.in .ltr,
.split.in .w { opacity: 1; transform: none; }

/* Header slides down on load */
.site-header {
  animation: header-in 0.6s 0.05s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes header-in {
  from { opacity: 0; transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  .split .ltr,
  .split .w { opacity: 1; transform: none; transition: none; }
  .site-header { animation: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
  .case-layout { grid-template-columns: 1fr; gap: 40px; }
  .case-rail { position: static; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .code-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photos { display: flex; max-width: none; }
  .about-photos .ph,
  .about-photos .shot { width: 200px; }
  .toolset-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .header-inner { padding: 14px 22px; }
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .header-actions .btn-outline { display: none; }

  .hero { padding: 70px 0 80px; }
  .hero-grid, .row-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 0; }

  .work-grid { grid-template-columns: 1fr; }
  .cv-row { grid-template-columns: 1fr; gap: 2px; }
  .cv-row .dates { text-align: left; }
  .fig-pair { grid-template-columns: 1fr; }
  .strip .ph { height: 180px; }
  .strip img { height: 180px; }
  .scrolly { max-height: 460px; }
  .mobile-menu { padding: 80px 22px 22px; }
  .mobile-menu .close-menu { right: 18px; }
}
