/* Portfolio site styles.
   Colors, fonts and corner radius come from CSS variables printed in each page's <style id="theme-vars">
   (Admin > Theme), so changing the theme never needs this file to change. Layout options
   (Admin > Layout) are classes on <body>: nav-*, width-*, spacing-*, headings-*, sticky, animate.

   The look: fine hairlines, small mono labels, chrome buttons, and screenshots shown in window
   frames with a soft glow in each project's own color (--tint). */

:root {
  /* Fallbacks; the theme overrides these. */
  --bg: #08090b;
  --surface: #0f1114;
  --text: #f4f5f7;
  --muted: #9ba3af;
  --accent: #e6e9ee;
  --accent-alt: #8d96a3;
  --on-accent: #0b0b0f;
  --font-heading: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;

  /* Everything below is derived from the theme, so every preset keeps working. */
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 18%, transparent);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --raise: color-mix(in srgb, var(--text) 4%, transparent);
  /* Small mono labels (section numbers, fact labels): brighter than --muted, because thin text
     this small reads dimmer than its contrast figure suggests. */
  --label: color-mix(in srgb, var(--text) 76%, var(--bg));
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --sheen: linear-gradient(180deg, color-mix(in srgb, var(--accent) 40%, white), var(--accent) 52%, color-mix(in srgb, var(--accent) 78%, black));
  --r-sm: calc(var(--radius) * 0.7);
  --r-md: calc(var(--radius) * 1.3);
  --r-lg: calc(var(--radius) * 2);
  --shadow: 0 24px 60px -28px rgb(0 0 0 / 0.55);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 72px;
  --sidebar-w: 288px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.width-narrow { --container: 820px; }
.width-wide { --container: 1360px; }
.spacing-compact { --section-y: clamp(44px, 6vw, 72px); }
.spacing-airy { --section-y: clamp(96px, 12vw, 168px); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow > * { max-width: 780px; }
.headings-center .container.narrow > * { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  height: 44px;
  padding: 0 1.3em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font-body);
  /* The body font's space is narrow, and in small bold text it nearly closes up ("Hireme"),
     so buttons get a little extra room between words. */
  letter-spacing: 0;
  word-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s, filter 0.2s;
}
.btn i { font-size: 1.05em; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .bi-arrow-right { transform: translateX(3px); }
.btn:hover .bi-arrow-left { transform: translateX(-3px); }
.btn:hover .bi-arrow-up-right { transform: translate(2px, -2px); }
.btn:hover .bi-download { transform: translateY(2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
/* The main button is a strip of polished metal: light at the top, darker below, with a bright rim. */
.btn-primary {
  background: var(--sheen);
  color: var(--on-accent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    inset 0 -1px 0 rgb(0 0 0 / 0.16),
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 14px 34px -16px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.07); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--raise); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 38%, transparent); background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.btn-light { background: var(--on-accent); color: var(--accent); box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.5); }
.btn-light:hover { color: var(--accent); opacity: 0.92; }
.btn-lg { height: 52px; padding: 0 1.6em; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 1.05em; font-size: 0.875rem; word-spacing: 0.18em; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--raise);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { border-color: color-mix(in srgb, var(--text) 38%, transparent); background: color-mix(in srgb, var(--text) 8%, transparent); }

/* ---------- admin bar (only for the logged-in owner) ---------- */
.admin-bar {
  position: relative;
  z-index: 41;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 20px;
  background: #111;
  color: #eee;
  font: 500 0.8125rem/1.4 system-ui, sans-serif;
}
.admin-bar a { color: #fff; margin-left: 16px; text-decoration: none; }
.admin-bar a:hover { color: #a5b4fc; }

/* ---------- header & navigation ---------- */
.site-header { position: relative; z-index: 40; }
.sticky .site-header { position: sticky; top: 0; }
.header-inner { position: relative; isolation: isolate; display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

/* Top and minimal menus: a pill that floats over the page and turns to frosted glass once you scroll.
   The blur sits on a pseudo-element on purpose: a backdrop-filter on the header itself would
   trap the full-screen phone menu (position: fixed) inside the pill. */
.nav-top .site-header, .nav-minimal .site-header { padding-top: 12px; }
.nav-top .header-inner, .nav-minimal .header-inner {
  min-height: calc(var(--header-h) - 12px);
  padding: 0 10px 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.nav-top .header-inner::before, .nav-minimal .header-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  opacity: 0;
  transition: opacity 0.35s;
}
.nav-top .site-header.is-scrolled .header-inner, .nav-minimal .site-header.is-scrolled .header-inner { border-color: var(--line); box-shadow: 0 14px 40px -20px rgb(0 0 0 / 0.65); }
.site-header.is-scrolled .header-inner::before { opacity: 1; }
/* Behind the pill the top of the page fades out, so text that scrolls up dissolves instead of
   peeking around the pill's rounded corners. */
.nav-top.sticky .site-header::after, .nav-minimal.sticky .site-header::after {
  content: '';
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  background: linear-gradient(var(--bg) 28%, transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.nav-top.sticky .site-header.is-scrolled::after, .nav-minimal.sticky .site-header.is-scrolled::after { opacity: 1; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand:hover { color: inherit; }
.brand-logo { height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: calc(var(--radius) * 0.9);
  background: var(--sheen);
  color: var(--on-accent);
  font: 700 0.78rem/1 var(--font-heading);
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 -1px 0 rgb(0 0 0 / 0.16);
}
.brand-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand-name { font: 600 1rem/1.2 var(--font-heading); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tagline { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tagline::before { content: '/'; margin-right: 10px; color: var(--line-strong); }

.site-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.site-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav > ul a:hover { color: var(--text); }
.site-nav > ul a[aria-current] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-toggle {
  display: none;
  place-items: center;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--raise);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}
.nav-socials { display: none; }
/* On wide screens the profile links (GitHub, LinkedIn...) sit in the menu bar as small icons,
   between the page links and the button. On phones they are in the full-screen menu instead. */
@media (min-width: 1024px) {
  .nav-top .nav-socials, .nav-centered .nav-socials { display: block; padding-left: 12px; border-left: 1px solid var(--line); }
  .nav-top .nav-cta, .nav-centered .nav-cta { order: 2; }
  /* The bar keeps to profile links (GitHub, LinkedIn). With the page links and the button, four
     icons crowd it between 1024 and 1280 px, so email and the résumé stay in the footer, on the
     Contact page and in the phone menu. */
  .nav-top .nav-socials .social-email, .nav-top .nav-socials .social-resume,
  .nav-centered .nav-socials .social-email, .nav-centered .nav-socials .social-resume { display: none; }
  .nav-top .nav-socials .socials, .nav-centered .nav-socials .socials { flex-wrap: nowrap; gap: 2px; }
  .nav-top .nav-socials .socials a, .nav-centered .nav-socials .socials a { width: 34px; height: 34px; border-color: transparent; background: none; font-size: 1rem; }
  .nav-top .nav-socials .socials a:hover, .nav-centered .nav-socials .socials a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); border-color: transparent; color: var(--text); transform: none; }
}
/* Each icon in the menu names itself: a small label under it on hover and on keyboard focus
   (the browser's own tooltip is slow and never shows for the keyboard). */
.nav-socials a[data-tip] { position: relative; }
.nav-socials a[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6);
  color: var(--text);
  font: 500 0.75rem/1 var(--font-body);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s var(--ease);
}
.nav-socials a[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
/* Hover labels only where there is a pointer that hovers: on a touch screen a tap would leave the label stuck. */
@media (hover: hover) {
  .nav-socials a[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }
}
/* In the sidebar and the full-screen menu the icons are at the bottom: the label goes above. */
.nav-sidebar .nav-socials a[data-tip]::after, .menu-open .nav-socials a[data-tip]::after { top: auto; bottom: calc(100% + 10px); }

/* centered */
.nav-centered .header-inner { flex-direction: column; justify-content: center; gap: 10px; padding-block: 18px; }
.nav-centered .brand { flex-direction: column; text-align: center; }
.nav-centered .brand-text { flex-direction: column; align-items: center; gap: 2px; }
.nav-centered .brand-tagline::before { content: none; }
.nav-centered .site-nav { margin: 0; }
.nav-centered.sticky .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav-centered .site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

/* minimal: the menu is always a full-screen overlay */
.nav-minimal .nav-toggle { display: inline-grid; }
.nav-minimal .site-nav { display: none; }

/* sidebar (desktop) */
@media (min-width: 1024px) {
  .nav-sidebar .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    border-right: 1px solid var(--line);
    background: var(--surface);
  }
  .nav-sidebar .header-inner { flex-direction: column; align-items: stretch; height: 100%; width: auto; padding: 36px 28px; gap: 36px; }
  .nav-sidebar .brand { flex-direction: column; align-items: flex-start; }
  .nav-sidebar .brand-text { flex-direction: column; gap: 2px; }
  .nav-sidebar .brand-tagline::before { content: none; }
  .nav-sidebar .brand-mark, .nav-sidebar .brand-logo { width: 52px; height: 52px; font-size: 1.1rem; }
  .nav-sidebar .brand-logo { width: auto; max-width: 180px; }
  .nav-sidebar .brand-name, .nav-sidebar .brand-tagline { white-space: normal; }
  .nav-sidebar .brand-name { font-size: 1.3rem; }
  .nav-sidebar .site-nav { flex-direction: column; align-items: stretch; margin: 0; flex: 1; gap: 24px; }
  .nav-sidebar .site-nav > ul { flex-direction: column; }
  .nav-sidebar .site-nav > ul a { border-radius: var(--radius); font-size: 1rem; }
  .nav-sidebar .nav-cta { align-self: flex-start; }
  .nav-sidebar .nav-socials { display: block; margin-top: auto; }
  .nav-sidebar main, .nav-sidebar .site-footer { margin-left: var(--sidebar-w); }
  .nav-sidebar .admin-bar { margin-left: var(--sidebar-w); }
}

/* phones & small tablets: collapsible menu */
@media (max-width: 767px) {
  .nav-top .nav-toggle, .nav-centered .nav-toggle, .nav-sidebar .nav-toggle { display: inline-grid; }
  .nav-centered .header-inner { flex-direction: row; padding-block: 0; }
  .nav-centered .brand { flex-direction: row; text-align: left; }
  .site-nav { display: none; }
  .brand-tagline { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-sidebar .nav-toggle { display: none; }
  .brand-tagline { display: none; }
}
.menu-open { overflow: hidden; }
.menu-open .site-nav {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 60;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  margin: 0;
  padding: 96px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--bg);
  animation: menu-in 0.4s var(--ease);
}
.menu-open .site-nav > ul { flex-direction: column; gap: 0; counter-reset: nav; border-top: 1px solid var(--line); }
.menu-open .site-nav > ul li { counter-increment: nav; border-bottom: 1px solid var(--line); }
.menu-open .site-nav > ul a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 2px;
  border-radius: 0;
  background: none;
  color: color-mix(in srgb, var(--text) 58%, transparent);
  font: 600 clamp(1.8rem, 8vw, 2.6rem)/1.1 var(--font-heading);
  letter-spacing: -0.04em;
}
.menu-open .site-nav > ul a::before { content: counter(nav, decimal-leading-zero); font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--label); }
.menu-open .site-nav > ul a:hover, .menu-open .site-nav > ul a[aria-current] { background: none; color: var(--text); }
.menu-open .nav-cta { align-self: flex-start; height: 52px; padding: 0 1.6em; font-size: 1rem; }
.menu-open .nav-socials { display: block; }
.menu-open .nav-toggle { position: fixed; top: 22px; right: calc(var(--gutter) + 10px); z-index: 61; }
.menu-open .brand { position: fixed; top: 25px; left: calc(var(--gutter) + 14px); z-index: 61; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-12px); }
}

/* ---------- sections ---------- */
main { counter-reset: sec; }
.section { padding-block: var(--section-y); position: relative; }
.section + .section.bg-default { padding-top: calc(var(--section-y) * 0.45); }
.bg-surface { background: var(--surface); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.bg-accent { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.section.bg-surface + .section.bg-default, .section.bg-accent + .section.bg-default { padding-top: var(--section-y); }

/* The first section of a page sits under the floating menu and carries the backdrop:
   a soft light from above and a fading grid. */
.section.is-first { isolation: isolate; }
.section.is-first::before, .section.is-first::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: min(100%, 640px);
  z-index: -1;
  pointer-events: none;
}
.section.is-first::before {
  background:
    radial-gradient(58% 62% at 50% -12%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 72%),
    radial-gradient(34% 44% at 88% -4%, color-mix(in srgb, var(--accent-alt) 12%, transparent), transparent 70%);
}
.section.is-first::after {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(72% 78% at 50% 0%, #000 12%, transparent 76%);
  mask-image: radial-gradient(72% 78% at 50% 0%, #000 12%, transparent 76%);
  opacity: 0.75;
}
.block-hero.is-first::before, .block-hero.is-first::after { height: min(100%, 880px); }
.nav-top main > .section.is-first:first-child, .nav-minimal main > .section.is-first:first-child {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 84px));
}

/* Section headings are numbered (01, 02, ...) down the page. */
.section-head { counter-increment: sec; display: grid; gap: 14px 64px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head::before {
  content: counter(sec, decimal-leading-zero);
  width: 104px;
  font: 500 0.84rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--label);
  background: linear-gradient(color-mix(in srgb, var(--text) 32%, transparent), color-mix(in srgb, var(--text) 32%, transparent)) no-repeat 2.6em 50% / 44px 1px;
}
.section-title { font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); letter-spacing: -0.04em; }
.section-head .section-title { margin: 0; }
.section-intro { max-width: 46ch; font-size: 1.05rem; }
@media (min-width: 900px) {
  .section-head:has(.section-intro) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
  .section-head:has(.section-intro)::before { grid-column: 1 / -1; }
  .section-head .section-intro { justify-self: end; }
}
.headings-center .section-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.headings-center .section-head::before { background-position: 2.6em 50%; }
.headings-center .section-head .section-intro { justify-self: center; }
.headings-center .section-title { text-align: center; }
.headings-center .filters { justify-content: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--label);
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.display { font-size: clamp(2.6rem, 5.6vw + 0.5rem, 5.25rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.38em; }
/* *Starred* words in a heading are set in chrome: bright on top, a darker horizon below the
   middle, and a glint of light that crosses the word every few seconds. */
.display em, .section-title em, .cta-outline .cta-title em, .cta-plain .cta-title em {
  font-style: normal;
  padding-bottom: 0.08em;
  background:
    linear-gradient(100deg, transparent 43%, rgb(255 255 255 / 0.95) 50%, transparent 57%) 100% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 25%, white) 10%, var(--accent) 38%, var(--accent-alt) 64%, color-mix(in srgb, var(--accent) 70%, var(--accent-alt)) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glint 7s ease-in-out infinite;
}
.cta-gradient .cta-title em { font-style: normal; }
@keyframes glint {
  0%, 58% { background-position: 100% 0, 0 0; }
  100% { background-position: 0% 0, 0 0; }
}
.lead { font-size: clamp(1.08rem, 0.5vw + 1rem, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 38em; }
.lead strong { color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.1rem; }
/* Small labels are set in the mono font. Its spaces are as wide as a letter, which leaves gaps
   between words, so they are pulled in a little. */
.eyebrow, .badge-available, .tag, .window-title, .case-back, .case-facts dt, .facts dt, .skill-group-title, .timeline-period,
.gallery figcaption, .lightbox figcaption, .contact-form label, .footer-heading, .footer-top, .project-year { word-spacing: -0.14em; }

/* prose (Markdown text) */
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 0.4em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 0.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent-alt); }
.prose a { color: var(--text); text-decoration-color: var(--line-strong); }
.prose a:hover { color: var(--accent); text-decoration-color: currentColor; }
.prose blockquote { margin: 0; padding: 0.4em 0 0.4em 1.2em; border-left: 2px solid var(--accent-alt); font-size: 1.15em; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: color-mix(in srgb, var(--text) 8%, transparent); padding: 0.15em 0.4em; border-radius: 6px; }

/* flash */
.flash { margin-top: 24px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.flash-success { border-color: color-mix(in srgb, #22c55e 50%, transparent); }
.nav-top main > .container:first-child .flash, .nav-minimal main > .container:first-child .flash { margin-top: 12px; }

/* ---------- hero ---------- */
.block-hero { padding-bottom: clamp(48px, 6vw, 84px); }
.block-hero:has(.reel) { padding-bottom: clamp(8px, 2vw, 24px); }
.nav-top main > .block-hero.is-first:first-child, .nav-minimal main > .block-hero.is-first:first-child { padding-top: calc(var(--header-h) + clamp(48px, 7.5vw, 104px)); }
.hero { position: relative; display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-split { grid-template-columns: 1.1fr 0.9fr; }
.hero-centered, .hero-showcase { justify-items: center; text-align: center; }
.hero-centered .hero-copy, .hero-showcase .hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-centered .hero-media { order: -1; max-width: 220px; }
.hero-minimal .display { font-size: clamp(2.8rem, 7vw + 0.5rem, 6rem); }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 1.6rem; }
.hero-centered .hero-kicker, .hero-showcase .hero-kicker { justify-content: center; }
.hero-kicker p { margin: 0; }
.hero-copy .socials { margin-top: 1.6rem; }
.hero-media img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.shape-rounded { border-radius: calc(var(--radius) * 2.2); }
.shape-circle { border-radius: 50%; }
.shape-blob { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: blob 14s ease-in-out infinite alternate; }
@keyframes blob {
  to { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; }
}
.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raise);
  font: 500 0.8rem/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--text);
}
.badge-available .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / 0.2); animation: pulse 2s infinite; }
@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgb(34 197 94 / 0.05); }
}

/* The strip of screenshots under a "showcase" hero. It holds two identical halves and slides
   left by exactly one half, so the loop never jumps. Hovering pauses it. */
.reel {
  position: relative;
  margin-top: clamp(48px, 6.5vw, 84px);
  padding-block: 12px 64px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.reel-track { display: flex; width: max-content; animation: reel var(--reel-time, 72s) linear infinite; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
.reel-item { flex: none; width: clamp(280px, 34vw, 500px); margin-right: clamp(16px, 2.2vw, 28px); color: inherit; text-decoration: none; transition: transform 0.5s var(--ease), border-color 0.3s; }
a.reel-item:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--text) 34%, transparent); color: inherit; }
@keyframes reel {
  to { transform: translateX(-50%); }
}

/* ---------- window frame (screenshots) ---------- */
.window {
  position: relative;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--text) 3%, var(--bg));
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.35),
    0 28px 60px -30px rgb(0 0 0 / 0.85),
    0 40px 90px -44px color-mix(in srgb, var(--tint, transparent) 70%, transparent);
}
.window-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 6px; flex: none; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--text) 16%, transparent); }
.window-dots i:first-child { background: var(--tint, color-mix(in srgb, var(--text) 16%, transparent)); }
.window-title { min-width: 0; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-go { margin-left: auto; font-size: 0.8rem; color: var(--muted); opacity: 0; transform: translateX(-5px); transition: opacity 0.3s, transform 0.3s var(--ease), color 0.3s; }
.window-go.bi-arrow-up-right { transform: translate(-4px, 4px); }
a.window:hover .window-go, a.window:focus-visible .window-go { opacity: 1; transform: none; color: var(--text); }
.window-body { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px); background: var(--surface); }
.window-body img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ---------- spotlight: a light that follows the pointer over cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s;
}
.spot::before { z-index: -1; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--text) 7%, transparent), transparent 62%); }
.spot::after {
  padding: 1px;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--text) 50%, transparent), transparent 62%);
  /* Only the 1px ring is kept: the gradient minus its own content box. */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
@media (hover: hover) {
  .spot:hover::before, .spot:hover::after { opacity: 1; }
}

/* ---------- socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--raise);
  color: var(--muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.socials a:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 38%, transparent); transform: translateY(-2px); }

/* ---------- stats ---------- */
/* Numbers right under a hero or a project header belong to it: no gap above. */
.section.block-hero + .section.block-stats, .section.block-projecthead + .section.block-stats { padding-top: 0; padding-bottom: calc(var(--section-y) * 0.5); }
.stats {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: clamp(20px, 2.8vw, 34px); background: var(--bg); }
.bg-surface .stat { background: var(--surface); }
.stat dt { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.stat-value {
  margin: 0;
  padding-bottom: 0.06em;
  font: 600 clamp(2.1rem, 2.6vw + 1.1rem, 3.4rem)/1 var(--font-heading);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text) 35%, var(--accent-alt) 135%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-right .about-media { order: 2; }
.about.no-image { grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.8fr); align-items: start; gap: clamp(32px, 7vw, 104px); }
.about.no-image:not(:has(.about-aside)) { grid-template-columns: 1fr; }
.about.no-image:not(:has(.about-aside)) > * { max-width: 780px; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.about-copy .actions { margin-top: 2.2rem; }
.about-copy .prose { color: color-mix(in srgb, var(--text) 82%, transparent); }
.block-about.is-first .section-title { font-size: clamp(2.5rem, 4.6vw + 0.6rem, 4.6rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.55em; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.block-about.is-first .about-aside { margin-top: clamp(8px, 5vw, 96px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 2rem 0 0; }
.facts div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--raise); }
.facts dt { font: 500 0.75rem/1.4 var(--font-mono); color: var(--label); text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.about-aside .facts { display: block; margin: 0; border-top: 1px solid var(--line); }
.about-aside .facts div { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }

/* ---------- text ---------- */
.text-block > * { max-width: 780px; }
.text-block.align-center { text-align: center; }
.text-block.align-center > * { margin-inline: auto; }
.text-block.align-center .prose ul, .text-block.align-center .prose ol { text-align: left; display: inline-block; }
.block-text.is-first .section-title { font-size: clamp(2.5rem, 4.6vw + 0.6rem, 4.6rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.45em; }
.block-text.is-first .prose { font-size: clamp(1.08rem, 0.5vw + 1rem, 1.28rem); color: var(--muted); }
.block-text.is-first { padding-bottom: calc(var(--section-y) * 0.35); }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: 500 0.88rem/1 var(--font-body);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 38%, transparent); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.project[hidden] { display: none; }

.projects { display: grid; gap: clamp(16px, 2vw, 24px); }
.projects-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.projects-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project { position: relative; display: flex; flex-direction: column; }
.project-media { display: block; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.project-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body p { margin: 0; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-year { flex: none; font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.04em; color: var(--label); }
.project-title { margin: 0; font-size: 1.3rem; letter-spacing: -0.03em; }
.project-title a { text-decoration: none; }
.project-title a:hover { color: inherit; }
.project-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.link-arrow { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.link-arrow i { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.project:hover .link-arrow .bi-arrow-right { transform: translateX(4px); }
.project:hover .link-arrow .bi-arrow-up-right { transform: translate(3px, -3px); }
.projects-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }

/* cards */
.projects-grid-3 .project, .projects-grid-2 .project {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 0.45s var(--ease), border-color 0.3s;
}
.bg-surface .projects-grid-3 .project, .bg-surface .projects-grid-2 .project { background: var(--bg); }
.projects-grid-3 .project.is-link:hover, .projects-grid-2 .project.is-link:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.projects-grid-3 .project-media, .projects-grid-2 .project-media {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-lg) - 10px);
  background: var(--raise);
  box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--tint, transparent) 80%, transparent);
}
.projects-grid-3 .project-media img, .projects-grid-2 .project-media img { transition: transform 0.9s var(--ease); }
.project.is-link:hover .project-media img { transform: scale(1.035); }
.projects-grid-3 .project-body, .projects-grid-2 .project-body { padding: 18px 12px 12px; }
.projects-grid-3 .project-body p, .projects-grid-2 .project-body p { font-size: 0.97rem; }
.projects-grid-2 .project-title { font-size: 1.45rem; }

/* featured: one big card per project. The screenshot is inset from the card's side edges and
   runs off the bottom only, so its window bar (dots and title) is whole in both layouts. */
.projects-featured { gap: clamp(18px, 2.4vw, 28px); }
.projects-featured .project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  min-height: clamp(360px, 33vw, 460px);
  border: 1px solid var(--line);
  border-radius: calc(var(--r-lg) * 1.2);
  background:
    radial-gradient(85% 120% at 100% 100%, color-mix(in srgb, var(--tint, var(--accent-alt)) 17%, transparent), transparent 64%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}
.projects-featured .project:nth-child(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background:
    radial-gradient(85% 120% at 0% 100%, color-mix(in srgb, var(--tint, var(--accent-alt)) 17%, transparent), transparent 64%),
    var(--surface);
}
.projects-featured .project.is-link:hover { border-color: var(--line-strong); }
.projects-featured .project-body { order: 1; gap: 14px; padding: clamp(28px, 4.2vw, 60px); }
.projects-featured .project-meta { justify-content: flex-start; }
.projects-featured .project-year { order: -1; padding-right: 12px; border-right: 1px solid var(--line-strong); }
.projects-featured .project-title { font-size: clamp(1.7rem, 1.9vw + 1rem, 2.5rem); letter-spacing: -0.04em; }
.projects-featured .project-body p { max-width: 44ch; }
.projects-featured .link-arrow {
  align-self: flex-start;
  height: 42px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raise);
  transition: border-color 0.3s, background-color 0.3s;
}
.projects-featured .project:hover .link-arrow { border-color: color-mix(in srgb, var(--text) 38%, transparent); background: color-mix(in srgb, var(--text) 8%, transparent); }
.projects-featured .project-media {
  order: 2;
  align-self: end;
  overflow: visible;
  margin: clamp(28px, 4.2vw, 60px) clamp(28px, 4.2vw, 60px) clamp(-80px, -5vw, -32px) 0;
  transition: transform 0.9s var(--ease);
}
.projects-featured .project:nth-child(even) .project-body { order: 2; }
/* Even cards are the mirror image: text on the right, screenshot on the left, inset the same. */
.projects-featured .project:nth-child(even) .project-media { order: 1; margin: clamp(28px, 4.2vw, 60px) 0 clamp(-80px, -5vw, -32px) clamp(28px, 4.2vw, 60px); }
.projects-featured .project.is-link:hover .project-media { transform: translateY(-8px); }
.projects-featured .window { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.4), 0 0 90px -20px color-mix(in srgb, var(--tint, transparent) 60%, transparent), 0 30px 60px -30px rgb(0 0 0 / 0.8); }

/* list */
.projects-list { gap: 0; counter-reset: row; border-top: 1px solid var(--line); }
.projects-list .project { counter-increment: row; border-bottom: 1px solid var(--line); transition: background-color 0.3s; }
.projects-list .project.spot::before, .projects-list .project.spot::after { content: none; }
.projects-list .project.is-link:hover { background: var(--raise); }
.projects-list .project-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: 'num title meta' 'num summary link';
  gap: 6px 24px;
  padding: 24px 8px;
  align-items: baseline;
}
.projects-list .project-body::before { content: counter(row, decimal-leading-zero); grid-area: num; font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--label); }
.projects-list .project-title { grid-area: title; font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); }
.projects-list .project-meta { grid-area: meta; justify-content: flex-end; }
.projects-list .project-body > p { grid-area: summary; max-width: 68ch; font-size: 0.97rem; }
.projects-list .link-arrow { grid-area: link; justify-self: end; margin: 0; padding: 0; font-size: 0.88rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise);
  color: color-mix(in srgb, var(--text) 80%, transparent);
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tags-md { gap: 8px; }
.tags-md .tag { height: 30px; padding: 0 12px; font-size: 0.78rem; }
.tags-lg { gap: 8px; }
.tags-lg .tag { height: 34px; padding: 0 14px; font-size: 0.82rem; color: var(--text); }

/* ---------- skills ---------- */
.skill-groups { display: flex; flex-wrap: wrap; gap: 16px; }
.skill-group { flex: 1 1 320px; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.bg-surface .skill-group { background: var(--bg); }
.skill-group-title { margin-bottom: 18px; font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
/* "One line" style: a label, a few skills in a row and a link to the full list. Its section is
   a slim band, not a full-height section. */
.section:has(> .container > .skill-line) { padding-block: clamp(26px, 3.6vw, 40px); }
.skill-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.skill-line-label { margin: 0; font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; word-spacing: -0.14em; color: var(--label); }
.skill-line .tags { flex: 1 1 0; min-width: min(100%, 260px); }
.skill-line-more { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.skill-line-more:hover { color: var(--text); }
.skill-line-more i { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.skill-line-more:hover i { transform: translateX(4px); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.bar-label { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 8px; }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-alt), var(--accent)); transform-origin: left; transition: transform 1.2s var(--ease) 0.2s; }
.js-ready.animate .reveal:not(.is-visible) .bar span { transform: scaleX(0); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr); gap: 8px clamp(24px, 5vw, 72px); padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.timeline-period { padding-top: 0.3em; font: 500 0.82rem/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); }
.timeline h3 { margin: 0; font-size: clamp(1.2rem, 0.8vw + 1rem, 1.5rem); }
.timeline-org { margin: 6px 0 0; font-weight: 500; color: color-mix(in srgb, var(--text) 80%, transparent); }
.timeline-body .muted { margin-top: 10px; max-width: 62ch; }

/* ---------- services / cards ---------- */
.cards { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.bg-surface .card { background: var(--bg); }
.service { transition: transform 0.45s var(--ease), border-color 0.3s; }
.service:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.service h3 { margin: 22px 0 8px; font-size: 1.15rem; letter-spacing: -0.025em; }
.service p { font-size: 0.97rem; }
.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 10%, transparent), color-mix(in srgb, var(--text) 2%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 14%, transparent);
  color: var(--accent);
  font-size: 1.25rem;
}

/* ---------- project header (the top of a project page) ---------- */
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  text-decoration: none;
}
.case-back i { transition: transform 0.3s var(--ease); }
.case-back:hover { color: var(--text); }
.case-back:hover i { transform: translateX(-3px); }
.case-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.72fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.case-head.no-facts { grid-template-columns: 1fr; }
.case-title { font-size: clamp(2.5rem, 4.6vw + 0.6rem, 4.6rem); margin-bottom: 0.45em; }
.case-copy .lead { max-width: 62ch; }
.case-copy .tags { margin-top: 1.6rem; }
/* How to see the real thing: a button (code, site or download) and a short note. */
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 2rem; }
.case-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.95rem; color: var(--muted); }
.case-note i { color: var(--label); }
/* The table's top rule sits level with the top of the letters in the intro's first line. */
.case-facts { margin: 0.55rem 0 0; border-top: 1px solid var(--line); }
.case-facts div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-facts dt { padding-top: 0.2em; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.case-facts dd { margin: 0; font-size: 0.97rem; }
.case-cover { margin: clamp(40px, 6vw, 80px) 0 0; }
.case-cover .window { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35), 0 40px 80px -40px rgb(0 0 0 / 0.9), 0 70px 160px -70px color-mix(in srgb, var(--tint, transparent) 90%, transparent); }
.case-cover .window-bar { height: 40px; padding: 0 16px; }
.case-cover .window-body { aspect-ratio: auto; }
.case-cover .window-body img { height: auto; }
.block-projecthead { padding-bottom: clamp(56px, 7vw, 96px); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.gallery figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.gallery-masonry { column-gap: 16px; }
.gallery-masonry.cols-2 { columns: 2; display: block; }
.gallery-masonry.cols-3 { columns: 3; display: block; }
.gallery-masonry.cols-4 { columns: 4; display: block; }
.gallery-masonry figure { margin: 0 0 16px; break-inside: avoid; }
.gallery a { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: zoom-in; transition: border-color 0.3s, transform 0.45s var(--ease); }
.gallery a:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.gallery img { transition: transform 0.9s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.gallery-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  background: rgb(8 9 11 / 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.gallery a:hover .gallery-zoom, .gallery a:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery figcaption { margin-top: 10px; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.03em; color: var(--label); }

.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  padding: 20px 0;
  background: rgb(4 5 7 / 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #f4f5f7;
  animation: fade-in 0.25s;
}
.lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 14px; margin: 0; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--r-md); box-shadow: 0 30px 100px rgb(0 0 0 / 0.6); animation: zoom-in 0.35s var(--ease); }
.lightbox figcaption { display: flex; gap: 16px; align-items: baseline; font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.03em; color: rgb(244 245 247 / 0.7); }
.lightbox-count { color: rgb(244 245 247 / 0.45); }
.lightbox button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  justify-self: center;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  color: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.lightbox button:hover { background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.4); }
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.97); }
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font: 600 1.1rem/1.4 var(--font-heading);
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform 0.3s var(--ease); color: var(--muted); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .prose { padding: 0 0 22px; }

/* ---------- testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.testimonial { position: relative; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.quote-mark { font-size: 2.2rem; line-height: 1; color: var(--accent-alt); }
.testimonial blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial figcaption span { display: grid; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonials-single { max-width: 820px; margin-inline: auto; text-align: center; }
.testimonials-single .testimonial { border: 0; background: none; padding: 0; align-items: center; }
.testimonials-single blockquote { font: 500 clamp(1.3rem, 1.6vw + 0.8rem, 1.9rem)/1.4 var(--font-heading); letter-spacing: -0.02em; }
.testimonials-single figcaption { text-align: left; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- call to action ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
  padding: clamp(32px, 5.6vw, 76px);
  border-radius: calc(var(--r-lg) * 1.4);
  overflow: hidden;
  isolation: isolate;
}
.cta-copy { max-width: 660px; }
.cta-title { font-size: clamp(1.8rem, 2.6vw + 0.9rem, 3rem); letter-spacing: -0.045em; line-height: 1.04; margin-bottom: 0.4em; }
.cta .prose { font-size: 1.08rem; }
/* "Gradient" is a slab of brushed metal: the one bright surface on the page. */
.cta-gradient {
  background: linear-gradient(
    112deg,
    color-mix(in srgb, var(--accent) 35%, white) 0%,
    var(--accent) 28%,
    color-mix(in srgb, var(--accent) 50%, white) 52%,
    var(--accent) 76%,
    color-mix(in srgb, var(--accent) 84%, var(--accent-alt)) 100%
  );
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85), inset 0 0 0 1px rgb(255 255 255 / 0.22), 0 14px 30px -22px color-mix(in srgb, var(--accent) 45%, transparent);
}
.cta-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(112deg, rgb(255 255 255 / 0) 0 3px, rgb(255 255 255 / 0.1) 3px 4px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-gradient .prose { color: color-mix(in srgb, var(--on-accent) 76%, transparent); }
.cta-gradient .prose a { color: inherit; }
.cta-outline { border: 1px solid var(--line-strong); background: radial-gradient(80% 140% at 0% 0%, var(--accent-soft), transparent 62%), var(--surface); }
.cta-outline .prose, .cta-plain .prose { color: var(--muted); }
.cta-plain { padding-inline: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact.no-form { grid-template-columns: 1fr; max-width: 720px; }
.block-contact.is-first .section-title { font-size: clamp(2.5rem, 4.6vw + 0.6rem, 4.6rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.45em; }
.contact-info .prose { font-size: 1.08rem; max-width: 42ch; }
.contact-info .actions { margin-top: 1.8rem; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list i { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--raise); color: var(--text); flex: none; }
.contact-list a, .contact-list li > span { display: grid; gap: 3px; min-width: 0; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-label { font: 500 0.7rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.contact-form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); }
.contact-form label { display: grid; gap: 8px; font: 500 0.75rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bg-surface .contact-form input, .bg-surface .contact-form textarea { background: var(--surface); }
.contact-form input:hover, .contact-form textarea:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: color-mix(in srgb, var(--text) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 9%, transparent); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .btn { justify-self: start; }
.form-status:empty { display: none; }
.form-status { margin: 0; font-weight: 500; }
.form-status.is-error { color: #f87171; }
.form-status.is-success { color: #4ade80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- image / video / spacer ---------- */
.image-block { margin-block: 0; }
.image-block img { width: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); }
.image-full img { border: 0; border-radius: 0; max-height: 80vh; object-fit: cover; }
.image-block figcaption { margin-top: 12px; text-align: center; }
.block-image.bg-default:has(.image-full) { padding-block: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video + p { margin-top: 12px; }
.block-spacer { padding: 0; }
.spacer-sm { height: 32px; }
.spacer-md { height: 72px; }
.spacer-lg { height: 128px; }
.spacer { display: flex; align-items: center; }
.spacer hr { width: 100%; }

/* ---------- 404 ---------- */
.not-found { min-height: 72vh; display: grid; place-items: center; }
.not-found-code {
  margin: 0 0 0.1em;
  font: 700 clamp(6rem, 22vw, 15rem)/0.9 var(--font-heading);
  letter-spacing: -0.07em;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 8%, transparent) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found .lead { margin: 0 auto 2rem; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: calc(var(--section-y) * 0.4); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: clamp(28px, 4vw, 40px); }
.footer-bottom p { margin: 0; font-size: 0.88rem; }
.footer-bottom .socials a { width: 38px; height: 38px; font-size: 1rem; }
.footer-centered .footer-bottom { flex-direction: column-reverse; justify-content: center; text-align: center; }
/* "big" footer: the <footer> and its grid of columns both carry the class footer-big. */
.site-footer.footer-big { padding-top: clamp(48px, 6vw, 88px); }
div.footer-big { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.site-footer.footer-big .footer-bottom { padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); }
.footer-title { margin-bottom: 0.6em; font: 600 1.45rem/1.2 var(--font-heading); letter-spacing: -0.035em; }
.footer-about .muted { max-width: 44ch; font-size: 0.97rem; }
.footer-heading { margin-bottom: 18px; font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: start; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--text) 84%, transparent); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-out { font-size: 0.72em; color: var(--muted); transition: transform 0.3s var(--ease); }
.footer-links a:hover .footer-out { transform: translate(2px, -2px); }
.footer-email { font-weight: 600; text-decoration: none; }
.footer-top { display: inline-flex; align-items: center; gap: 8px; font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); text-decoration: none; }
.footer-top:hover { color: var(--text); }
/* The name once more, as large as the page is wide, sinking into the bottom edge. */
.footer-wordmark {
  margin: clamp(8px, 2vw, 28px) 0 -0.17em;
  font: 700 calc(min(100vw, 1680px) / (var(--chars, 10) * 0.665)) / 0.8 var(--font-heading);
  letter-spacing: -0.045em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 15%, transparent), color-mix(in srgb, var(--text) 3%, transparent) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: var(--shadow);
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease), border-color 0.2s;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 40%, transparent); }

/* ---------- scroll reveal ---------- */
.js-ready.animate .reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-ready.animate .reveal:not(.is-visible) { opacity: 0; transform: translateY(20px); }

/* The top of every page rises into place as the page opens, one piece after another. This is
   plain CSS that runs from the first paint, so nothing flashes while the script loads. */
.animate .section.is-first .reveal { animation: rise 0.9s var(--ease) backwards; }
.animate .section.is-first :is(.hero-copy, .case-copy, .about-copy, .contact-info, .text-block) > :nth-child(2) { animation-delay: 0.07s; }
.animate .section.is-first :is(.hero-copy, .case-copy, .about-copy, .contact-info, .text-block) > :nth-child(3) { animation-delay: 0.14s; }
.animate .section.is-first :is(.hero-copy, .case-copy, .about-copy, .contact-info, .text-block) > :nth-child(4) { animation-delay: 0.21s; }
.animate .section.is-first :is(.hero-copy, .case-copy, .about-copy, .contact-info, .text-block) > :nth-child(n + 5) { animation-delay: 0.28s; }
.animate .section.is-first :is(.hero-media, .reel, .case-facts, .case-cover, .about-aside, .contact-form) { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

/* Where the browser can tie an animation to scrolling, a featured project's screenshot drifts
   up into place as its card comes into view. Other browsers simply show it in place. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 860px) {
    .animate .projects-featured .window {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
  }
}
@keyframes drift {
  from { transform: translateY(64px); }
  to { transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

/* ---------- page changes ---------- */
/* In browsers that support it, moving between pages cross-fades, and a project card grows into
   its page (they share a view-transition-name). The header must not get a name of its own:
   a named element can no longer blur what is behind it, which would break the frosted menu. */
@view-transition {
  navigation: auto;
}
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js-ready.animate .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .animate .section.is-first .reveal { animation: none; }
  /* No sliding strip: it becomes a row you can scroll yourself. */
  .reel { overflow-x: auto; }
  .reel-track { animation: none; }
  .reel-item[aria-hidden='true'] { display: none; }
  .display em, .section-title em, .cta-title em { animation: none; background-position: 100% 0, 0 0; }
  @view-transition {
    navigation: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .projects-grid-3, .cols-4, .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-masonry.cols-4 { columns: 3; }
}
@media (max-width: 899px) {
  .case-head, .about.no-image { grid-template-columns: 1fr; align-items: start; }
  .about-aside { position: static; }
  .block-about.is-first .about-aside { margin-top: 0; }
  div.footer-big { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 859px) {
  body { font-size: 1rem; }
  .hero-split, .about, .contact { grid-template-columns: 1fr; }
  .hero-split .hero-media { order: -1; max-width: 360px; }
  .about-right .about-media { order: 0; }
  .about-media { max-width: 420px; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline-period { padding-top: 0; }
  .projects-featured .project, .projects-featured .project:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
    background:
      radial-gradient(110% 60% at 50% 0%, color-mix(in srgb, var(--tint, var(--accent-alt)) 16%, transparent), transparent 70%),
      var(--surface);
  }
  .projects-featured .project-media, .projects-featured .project:nth-child(even) .project-media { order: 1; margin: 0; padding: 14px 14px 0; }
  .projects-featured .project-body, .projects-featured .project:nth-child(even) .project-body { order: 2; padding: 24px 22px 26px; }
  .projects-featured .project.is-link:hover .project-media { transform: none; }
  .lightbox { grid-template-columns: 12px minmax(0, 1fr) 12px; }
  /* The arrows move under the picture. grid-area is reset because a placed grid item would be
     positioned inside its own (12px wide) column instead of the whole viewer. */
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 16px; grid-area: auto; }
  .lightbox-prev { left: calc(50% - 52px); }
  .lightbox-next { left: calc(50% + 8px); }
  .lightbox img { max-height: calc(100vh - 190px); }
}
@media (max-width: 779px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .projects-grid-3, .projects-grid-2, .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  /* Feature cards become rows on a phone: icon on the left, text beside it. */
  .cards { gap: 12px; }
  .service { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 18px; }
  .service-icon { grid-row: span 2; width: 42px; height: 42px; font-size: 1.1rem; }
  .service h3 { margin: 1px 0 4px; font-size: 1.05rem; }
  .service p { grid-column: 2; }
  .gallery-grid.cols-3, .gallery-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-masonry.cols-3, .gallery-masonry.cols-4 { columns: 2; }
  .field-row { grid-template-columns: 1fr; }
  .projects-list .project-body { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: 'num title' 'num summary' 'num meta' 'num link'; gap: 8px 12px; padding: 22px 2px; }
  .projects-list .project-meta { justify-content: flex-start; }
  .projects-list .link-arrow { justify-self: start; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .case-facts div { grid-template-columns: 76px minmax(0, 1fr); }
  div.footer-big { gap: 32px 24px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .site-footer.footer-big .footer-bottom { flex-direction: row; align-items: center; }
  .footer-centered .footer-bottom { align-items: center; }
  .cta { border-radius: var(--r-lg); }
}
