/* Design tokens and foundations */
:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0d1118;
  --surface: rgba(17, 22, 31, .78);
  --surface-solid: #111721;
  --surface-raised: #171e2a;
  --surface-bright: #202a39;
  --text: #f6f7f2;
  --text-soft: #aab3c3;
  --text-muted: #7f899c;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .2);
  --accent: #c9ee63;
  --accent-strong: #a9dc31;
  --accent-ink: #101607;
  --blue: #8da8ff;
  --warm: #e8c682;
  --danger: #ff8f8f;
  --success: #bce76d;
  --header-h: 5.5rem;
  --container: 82rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius-sm: .85rem;
  --radius-md: 1.35rem;
  --radius-lg: 2rem;
  --radius-xl: 2.75rem;
  --shadow-soft: 0 1.5rem 5rem rgba(0, 0, 0, .24);
  --shadow-deep: 0 2.5rem 8rem rgba(0, 0, 0, .52);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.65, 0, .35, 1);
  --duration-fast: 180ms;
  --duration-ui: 360ms;
  --duration-section: 720ms;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: rgba(255, 255, 255, .76);
  --surface-solid: #fbfcf8;
  --surface-raised: #ffffff;
  --surface-bright: #eef1e8;
  --text: #141923;
  --text-soft: #4d596b;
  --text-muted: #687486;
  --line: rgba(20, 25, 35, .12);
  --line-strong: rgba(20, 25, 35, .2);
  --accent: #4c6805;
  --accent-strong: #3b5200;
  --accent-ink: #ffffff;
  --blue: #4965bd;
  --warm: #855e14;
  --danger: #a4252c;
  --success: #3c6300;
  --shadow-soft: 0 1.5rem 5rem rgba(34, 42, 51, .12);
  --shadow-deep: 0 2.5rem 7rem rgba(34, 42, 51, .22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  background: var(--bg);
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, rgba(141, 168, 255, .08), transparent 25rem),
    radial-gradient(circle at 88% 20%, rgba(201, 238, 99, .06), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] body { background: #fff; }

main {
  display: block;
  padding: 0;
  background: #e8e8ed;
}

.section-spacer {
  width: 100%;
  height: .75rem;
  background: #e8e8ed;
}

.section-spacer--hero {
  height: .75rem;
  background: #e8e8ed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.38), transparent 75%);
  pointer-events: none;
  content: "";
}

img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

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

:focus-visible {
  outline: .18rem solid var(--accent);
  outline-offset: .25rem;
}

[hidden] { display: none; }

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .72rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 750;
  transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast);
}

.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.button--quiet { background: rgba(255,255,255,.045); backdrop-filter: blur(1rem); }
.button--quiet:hover { border-color: var(--line-strong); background: rgba(255,255,255,.08); }

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 1.35rem 0;
  pointer-events: none;
}

.header-shell {
  width: min(calc(100% - clamp(2rem, 4vw, 5rem)), 120rem);
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  text-decoration: none;
  transition: transform var(--duration-ui) var(--ease-out), filter var(--duration-ui);
}

.brand:hover { filter: drop-shadow(0 .8rem 1.1rem rgba(0,0,0,.3)); transform: translateY(-.18rem) scale(1.08) rotate(-2deg); }
.brand:active { transform: translateY(0) scale(.96); }

.brand-mark, .sleep-logo-mark, .hero-close-logo, .transition-logo, .workspace-boot-logo {
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  background: #07090d;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 .8rem 2rem rgba(0,0,0,.24);
}

.brand-mark { width: 4rem; height: 4rem; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.transition-logo { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.site-logo-image { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: none; line-height: 1.15; }
.brand-copy strong { font-size: .82rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: .12rem; color: var(--text-muted); font-size: .58rem; }

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: .12rem;
  min-height: 3.85rem;
  padding: .42rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(35,33,35,.76) 0%,
      rgba(54,54,57,.68) 28%,
      rgba(120,157,163,.5) 62%,
      rgba(46,45,48,.74) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.56),
    inset 0 -1px 1px rgba(255,255,255,.16),
    inset 0 0 1.2rem rgba(255,255,255,.08),
    0 .2rem .45rem rgba(0,0,0,.36),
    0 1rem 2.5rem rgba(0,0,0,.24);
  backdrop-filter: blur(1.25rem) saturate(1.35) contrast(1.04);
  -webkit-backdrop-filter: blur(1.25rem) saturate(1.35) contrast(1.04);
}
.nav-menu::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 42%),
    radial-gradient(circle at 64% 50%, rgba(190,231,236,.2), transparent 36%);
  content: "";
  pointer-events: none;
}
.nav-menu a {
  position: relative;
  z-index: 2;
  min-height: 3rem;
  padding: .78rem 1.15rem;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  transition: color var(--duration-fast), transform var(--duration-fast) var(--ease-out);
}

.nav-active-pill {
  position: absolute;
  top: .42rem;
  bottom: .42rem;
  left: 0;
  z-index: 1;
  width: 0;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.3), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.2), rgba(160,196,201,.16) 55%, rgba(15,18,20,.22));
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.62),
    inset 0 -1px 1px rgba(255,255,255,.16),
    0 .18rem .45rem rgba(0,0,0,.3),
    0 .55rem 1.25rem rgba(0,0,0,.18);
  backdrop-filter: blur(1.2rem) saturate(1.35) brightness(1.08);
  -webkit-backdrop-filter: blur(1.2rem) saturate(1.35) brightness(1.08);
  opacity: 0;
  pointer-events: none;
  transition: width .42s var(--ease-out), transform .42s var(--ease-out), opacity var(--duration-fast);
}
.nav-active-pill.is-visible { opacity: 1; }

.nav-menu a::after {
  position: absolute;
  right: .85rem;
  bottom: .38rem;
  left: .85rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-ui) var(--ease-out);
}

.nav-menu a:hover { color: #fff; transform: translateY(-1px); }
.nav-menu a.is-active { color: #fff; background: transparent; text-shadow: 0 1px .35rem rgba(0,0,0,.42); }
.nav-menu a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface-bright);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: .27rem 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--duration-ui) var(--ease-out), opacity var(--duration-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(.34rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.34rem) rotate(-45deg); }

/* Persistent display controls: theme and optional background motion. */
.floating-tools {
  position: fixed;
  right: clamp(.75rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.5rem);
  z-index: 90;
  display: flex;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(1.2rem);
}

.tool-btn {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast) var(--ease-out);
}

.tool-btn:hover { color: var(--accent); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.tool-btn[aria-pressed="true"] { color: var(--accent); background: rgba(201,238,99,.12); }
.tool-btn[hidden] { display: none; }

/* Cinematic hero */
.hero-section {
  position: relative;
  min-height: 195vh;
  scroll-margin-top: 0;
  border-bottom: 0;
  background: #111815;
  color: #fff;
  isolation: isolate;
}

.hero-bg, .hero-shade, .hero-pointer-glow { position: absolute; inset: 0; }
.hero-bg {
  z-index: -3;
  overflow: hidden;
  background: #061221;
  opacity: 1;
}
.hero-bg-video { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.08) contrast(1.08); transform: scale(1.015); }

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,9,8,.82) 0%, rgba(5,9,8,.48) 30%, rgba(5,9,8,.05) 62%),
    linear-gradient(180deg, rgba(5,9,8,.2) 0%, transparent 35%, rgba(5,9,8,.88) 100%);
}
.hero-pointer-glow { z-index: -1; background: radial-gradient(circle 22rem at var(--hero-pointer-x, 50%) var(--hero-pointer-y, 45%), rgba(80,174,255,.2), rgba(34,102,212,.08) 35%, transparent 72%); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
@media (hover: hover) and (pointer: fine) { .hero-section.is-pointer-active .hero-pointer-glow { opacity: 1; } }

.hero-sticky {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
}

.hero-shell {
  width: min(calc(100% - clamp(2rem, 5vw, 6.5rem)), 120rem);
  display: grid;
  grid-template-columns: minmax(21rem, 30rem) minmax(40rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 3vw, 4rem);
}

.hero-copy { position: relative; z-index: 5; max-width: 30rem; text-shadow: 0 2px 1.5rem rgba(0,0,0,.34); }
.js-enabled:not(.hero-intro-complete) .hero-copy .eyebrow,
.js-enabled:not(.hero-intro-complete) .hero-copy h1 span,
.js-enabled:not(.hero-intro-complete) .hero-subtitle,
.js-enabled:not(.hero-intro-complete) .hero-role-list,
.js-enabled:not(.hero-intro-complete) .hero-actions,
.js-enabled:not(.hero-intro-complete) .hero-socials,
.js-enabled:not(.hero-intro-complete) .hero-device-wrap { opacity: 0; }
.js-enabled:not(.hero-intro-complete) .hero-copy .eyebrow,
.js-enabled:not(.hero-intro-complete) .hero-copy h1 span,
.js-enabled:not(.hero-intro-complete) .hero-subtitle { transform: translateX(-2rem); }
.js-enabled:not(.hero-intro-complete) .hero-role-list,
.js-enabled:not(.hero-intro-complete) .hero-actions,
.js-enabled:not(.hero-intro-complete) .hero-socials { transform: translateY(1.25rem); }
.hero-copy h1 {
  margin: 1.2rem 0 1.35rem;
  font-size: clamp(3.8rem, 5.8vw, 6.8rem);
  font-weight: 750;
  letter-spacing: -.085em;
  line-height: .82;
}
.hero-copy h1 span { display: block; }
.hero-copy h1 span:last-child { color: #c9ee63; }
.hero-copy .eyebrow { color: #c9ee63; }
.hero-subtitle { max-width: 29rem; color: rgba(255,255,255,.82); font-size: clamp(.95rem, 1.1vw, 1.15rem); line-height: 1.55; }

.hero-role-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.hero-role-list span {
  padding: .5rem .7rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(10,15,13,.32);
  color: rgba(255,255,255,.78);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.hero-socials { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.hero-socials a {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.07));
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.34), 0 .55rem 1.4rem rgba(0,0,0,.18);
  backdrop-filter: blur(1rem) saturate(1.35);
  -webkit-backdrop-filter: blur(1rem) saturate(1.35);
  transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast) var(--ease-out);
}
.hero-socials a:hover,
.hero-socials a:focus-visible { border-color: rgba(201,238,99,.8); background: rgba(201,238,99,.18); transform: translateY(-.2rem) scale(1.05); }
.hero-socials img { width: 1.25rem; height: 1.25rem; object-fit: contain; filter: brightness(0) invert(1); }
.hero-socials i { font-size: 1.22rem; }
.hero-section .button--primary { border-color: transparent; background: #fff; color: #11151b; }
.hero-section .button--quiet { border-color: rgba(255,255,255,.2); background: rgba(13,18,16,.5); color: #fff; }
.hero-section .button--quiet:hover { border-color: rgba(255,255,255,.4); background: rgba(13,18,16,.75); }

.hero-device-wrap { position: relative; z-index: 3; align-self: center; perspective: 125rem; transform-style: preserve-3d; }
.hero-device {
  position: relative;
  z-index: 3;
  width: min(100%, 76rem);
  margin-inline: auto;
  padding: .78rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2.4rem;
  background: linear-gradient(145deg, #283244, #0b0f16 72%);
  box-shadow: 0 3.5rem 9rem rgba(0,0,0,.54), inset 0 1px rgba(255,255,255,.25), 0 0 0 .35rem rgba(0,0,0,.22);
  transform-style: preserve-3d;
  transition: box-shadow var(--duration-section) var(--ease-out);
}

.hero-device::after {
  position: absolute;
  right: 8%;
  bottom: -1.4rem;
  left: 8%;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  filter: blur(1.2rem);
  content: "";
  transform: translateZ(-2rem);
}

.device-camera, .laptop-camera {
  position: absolute;
  top: .36rem;
  left: 50%;
  z-index: 8;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #030509;
  box-shadow: inset 0 0 0 1px #34435a, 0 0 .6rem rgba(72,103,156,.35);
  transform: translateX(-50%);
}

.hero-device-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.75rem;
  background: #05070b;
  isolation: isolate;
  contain: paint;
}

.screen-noise {
  position: absolute;
  inset: 0;
  z-index: 8;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: .35;
  pointer-events: none;
}

.hero-boot-state, .hero-logo-state, .hero-gallery, .hero-close-cover {
  position: absolute;
  inset: 0;
}

.hero-boot-state, .hero-logo-state {
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 2rem;
  color: #f6f7f2;
  text-align: center;
}

.boot-kicker { color: #c9ee63; font-size: .64rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.boot-ring {
  width: 3.4rem;
  height: 3.4rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(201,238,99,.34);
  border-radius: 50%;
  box-shadow: 0 0 0 .65rem rgba(201,238,99,.03), inset 0 0 1.5rem rgba(201,238,99,.05);
}
.hero-boot-state p { color: #f6f7f2; font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.hero-boot-state small { max-width: 24rem; margin-top: 1rem; color: #9da8bb; font-size: .78rem; }
.boot-arrow { display: grid; width: 2.7rem; height: 2.7rem; margin-top: 1.4rem; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #f6f7f2; animation: arrow-float 1.8s var(--ease-smooth) infinite; }
@keyframes arrow-float { 50% { transform: translateY(.3rem); } }

.hero-logo-state { visibility: hidden; opacity: 0; }
.sleep-logo-mark { width: 5.5rem; height: 5.5rem; border-radius: 1.45rem; }
.sleep-logo-copy { display: grid; margin-top: 1.1rem; }
.sleep-logo-copy strong { color: #f6f7f2; font-size: 1.35rem; }
.sleep-logo-copy small { margin-top: .35rem; color: #9da8bb; font-size: .72rem; }

.hero-gallery { z-index: 2; visibility: hidden; overflow: hidden; opacity: 0; background: #070a0f; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity .7s var(--ease-smooth), transform 1.1s var(--ease-out); }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3,5,8,.92)); content: ""; }
.hero-slide-poster { width: 100%; height: 100%; padding: 1rem 1rem 5.2rem; object-fit: contain; }
.hero-slide-label { position: absolute; z-index: 2; right: 1.5rem; bottom: 1.2rem; left: 1.5rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.hero-slide-label small { color: #a9b3c5; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-slide-label strong { color: #f6f7f2; font-size: clamp(1.05rem, 2vw, 1.6rem); letter-spacing: -.04em; }

.hero-gallery-ui { position: absolute; top: 1.2rem; right: 1.2rem; left: 1.2rem; z-index: 7; display: flex; visibility: hidden; align-items: center; justify-content: space-between; opacity: 0; }
.hero-gallery-ui .hero-gallery-dots { margin-left: auto; }
.hero-gallery-badge { padding: .45rem .65rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(4,7,11,.7); color: #dbe2ee; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(.8rem); }
.hero-gallery-dots { display: flex; gap: .35rem; }
.hero-dot { width: .35rem; height: .35rem; border-radius: 99px; background: rgba(255,255,255,.35); transition: width var(--duration-ui) var(--ease-out), background var(--duration-ui); }
.hero-dot.is-active { width: 1.6rem; background: #c9ee63; }

.hero-close-cover { z-index: 9; display: grid; place-items: center; background: linear-gradient(145deg, #1b2330, #090d14); opacity: 0; transform-origin: bottom; }
.hero-close-cover-inner { display: grid; justify-items: center; text-align: center; }
.hero-close-logo { width: 4.7rem; height: 4.7rem; border-radius: 1.3rem; }

.hero-depth-caption { display: flex; width: min(72%, 28rem); align-items: center; gap: .75rem; margin: 1.4rem auto 0; color: var(--text-muted); font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-depth-caption i { position: relative; flex: 1; height: 1px; overflow: hidden; background: var(--line); }
.hero-depth-caption i::after { position: absolute; inset: 0; background: var(--accent); content: ""; transform: scaleX(var(--hero-progress, 0)); transform-origin: left; }

/* Transitional narrative */
.transition-section { position: relative; padding: clamp(7rem, 14vw, 12rem) 0; overflow: hidden; border-bottom: .75rem solid #fff; background: #f5f5f7; color: #1d1d1f; }
.transition-section::before { position: absolute; inset: 15% 20%; border-radius: 50%; background: rgba(120,188,232,.12); filter: blur(6rem); content: ""; }
.transition-shell { position: relative; display: grid; place-items: center; }
.transition-lockup { display: grid; max-width: 50rem; justify-items: center; text-align: center; }
.transition-logo { width: clamp(4rem, 7vw, 6rem); height: clamp(4rem, 7vw, 6rem); border-radius: 1.4rem; }
.transition-lockup p { margin-top: 1.5rem; font-size: clamp(2rem, 5vw, 5rem); font-weight: 720; letter-spacing: -.065em; line-height: .98; }

.marquee-section { position: relative; z-index: 3; width: 100%; max-width: 100%; padding: .75rem 0; overflow: clip; background: #fff; color: #1d1d1f; contain: layout paint inline-size; }
.marquee-shell { position: relative; display: flex; width: 100%; max-width: 100%; min-width: 0; overflow: clip; border-block: 1px solid rgba(20,25,35,.1); background: #fff; contain: layout paint inline-size; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; will-change: transform; }
.marquee-track.is-paused { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; align-items: center; }
.marquee-group span { display: inline-flex; align-items: center; gap: 1.8rem; padding: 1.25rem 1.8rem 1.25rem 0; color: #515154; font-size: clamp(.78rem, 1.1vw, .95rem); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.marquee-group span::before { width: .38rem; height: .38rem; border-radius: 50%; background: #0071e3; content: ""; }
.marquee-toggle { position: sticky; left: .7rem; z-index: 3; align-self: center; flex: 0 0 auto; width: 2.7rem; height: 2.7rem; margin: .5rem .8rem .5rem .6rem; border: 1px solid rgba(20,25,35,.12); border-radius: 50%; background: #f5f5f7; color: #1d1d1f; cursor: pointer; }
@keyframes marquee { to { transform: translateX(-25%); } }

/* Real work and guided case studies */
.showcase-section { position: relative; padding: clamp(5rem, 7vw, 6.5rem) 0; overflow: clip; scroll-margin-top: calc(var(--header-h) + 1.5rem); background: linear-gradient(180deg, #dff3ff 0%, #edf8ff 52%, #f6fbff 100%); color: #1d1d1f; }
.showcase-section::before { position: absolute; top: -16rem; left: 50%; width: min(92vw, 82rem); height: 32rem; border-radius: 50%; background: linear-gradient(90deg, rgba(0,113,227,.14), rgba(92,200,255,.24) 52%, rgba(255,255,255,.5)); filter: blur(7rem); content: ""; pointer-events: none; transform: translateX(-50%); }
.showcase-copy { position: relative; display: grid; max-width: 70rem; justify-items: center; gap: 1.1rem; margin: 0 auto clamp(2rem, 3.5vw, 3rem); text-align: center; }
.showcase-copy .eyebrow { color: #006edb; }
.showcase-copy h2, .workspace-copy h2, .section-head h2, .contact-head h2 {
  font-size: clamp(2.8rem, 6.5vw, 6.8rem);
  font-weight: 720;
  letter-spacing: -.075em;
  line-height: .92;
}
.showcase-copy h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
.showcase-copy > p:last-child { max-width: 47rem; color: #515154; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.workspace-copy > p:last-of-type, .section-head > p:last-child, .contact-head > p { max-width: 43rem; color: var(--text-soft); font-size: clamp(1rem, 1.4vw, 1.2rem); }

.showcase-carousel-bar { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.showcase-carousel-bar > p { display: grid; gap: .18rem; color: #6e6e73; font-size: .72rem; }
.showcase-carousel-bar > p strong { color: #1d1d1f; font-size: .82rem; letter-spacing: .08em; }
.showcase-carousel-controls { display: flex; gap: .55rem; }
.showcase-carousel-button { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border: 1px solid rgba(0,113,227,.08); border-radius: 50%; background: rgba(255,255,255,.72); color: #1d1d1f; box-shadow: 0 .6rem 1.8rem rgba(52,118,160,.08); cursor: pointer; transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast); }
.showcase-carousel-button:hover:not(:disabled) { background: #1d1d1f; color: #fff; transform: scale(1.05); }
.showcase-carousel-button:disabled { opacity: .35; cursor: default; }
.showcase-carousel-button--autoplay { margin-left: .2rem; }
.showcase-carousel-button--autoplay[aria-pressed="true"] { border-color: rgba(0,113,227,.22); background: #0071e3; color: #fff; }

.real-work-grid { --carousel-edge: max(var(--gutter), calc((100vw - min(82vw, 80rem)) / 2)); display: flex; width: 100vw; max-width: none; gap: clamp(1rem, 2vw, 1.6rem); margin-left: calc(50% - 50vw); padding: .5rem var(--carousel-edge) 1.6rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: var(--carousel-edge); scroll-snap-type: x mandatory; scrollbar-width: none; }
.real-work-grid.is-continuous { scroll-snap-type: none; }
.real-work-grid::-webkit-scrollbar { display: none; }
.real-work-card {
  --card-accent: #fff;
  --card-scale: .965;
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  display: grid;
  flex: 0 0 min(82vw, 80rem);
  min-height: clamp(36rem, 68vh, 47rem);
  grid-template-columns: minmax(17rem, .43fr) minmax(28rem, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: clamp(1.8rem, 3vw, 3rem);
  box-shadow: 0 1.8rem 5rem rgba(23,28,40,.18);
  isolation: isolate;
  opacity: .78;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: perspective(90rem) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--card-scale)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform var(--duration-ui) var(--ease-out), border-color var(--duration-ui), box-shadow var(--duration-ui), opacity var(--duration-ui);
}
.real-work-card--akwaaba { --card-accent: #ffe1a0; background: radial-gradient(circle at 82% 20%, rgba(255,224,143,.72), transparent 26rem), linear-gradient(135deg, #ef6f45 0%, #e7a844 40%, #0b4b3d 100%); }
.real-work-card--goldbar { --card-accent: #ffe36e; background: radial-gradient(circle at 78% 22%, rgba(255,207,74,.46), transparent 24rem), linear-gradient(135deg, #17110b 5%, #6d2ed7 52%, #ff4278 100%); }
.real-work-card--wealthwise { --card-accent: #9deaff; background: radial-gradient(circle at 84% 15%, rgba(129,240,255,.7), transparent 24rem), linear-gradient(135deg, #087eaa 0%, #5367ec 50%, #37217b 100%); }
.real-work-card.is-current, .real-work-card:hover, .real-work-card:focus-within { --card-scale: 1; opacity: 1; }

.real-work-card::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--card-accent) 28%, transparent), transparent 36%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-ui);
}
.real-work-card:hover, .real-work-card:focus-within, .real-work-card.is-active { border-color: rgba(255,255,255,.7); box-shadow: 0 2.4rem 6.5rem rgba(23,28,40,.28); }
.real-work-card:hover::before, .real-work-card:focus-within::before { opacity: 1; }

.real-work-index { position: absolute; top: 1.4rem; right: 1.4rem; z-index: 6; display: grid; min-width: 3.2rem; height: 2rem; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(8,12,18,.34); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(1rem); }
.real-work-thumb { position: relative; z-index: 2; display: grid; min-width: 0; min-height: 0; grid-column: 2; grid-row: 1; place-items: center; padding: 2.4rem 2.4rem 2.4rem .5rem; overflow: hidden; transform: translateZ(1.2rem); }
.real-work-thumb img { width: 100%; height: 100%; max-height: 39rem; border: 1px solid rgba(255,255,255,.2); border-radius: clamp(1.1rem, 2vw, 1.8rem); background: rgba(5,8,13,.82); box-shadow: 0 2rem 5rem rgba(5,8,16,.35); object-fit: contain; transition: transform .8s var(--ease-out), filter .8s var(--ease-out); }
.real-work-card:hover .real-work-thumb img, .real-work-card:focus-within .real-work-thumb img { filter: saturate(1.08); transform: scale(1.018) translateY(-.2rem); }

.real-work-meta { position: relative; z-index: 4; display: grid; min-width: 0; min-height: 0; grid-column: 1; grid-row: 1; align-content: center; justify-items: start; gap: .9rem; padding: clamp(2rem, 4vw, 4rem); color: #fff; text-shadow: 0 .15rem 1rem rgba(0,0,0,.18); transform: translateZ(2rem); }
.real-work-meta small, .real-work-type { color: color-mix(in srgb, var(--card-accent) 90%, white); font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.real-work-meta h3 { max-width: 9ch; font-size: clamp(2.6rem, 4.8vw, 5rem); letter-spacing: -.065em; line-height: .88; }
.real-work-card--akwaaba .real-work-meta h3 span,
.real-work-card--wealthwise .real-work-meta h3 span { display: block; }
.real-work-card--akwaaba .real-work-meta { padding-right: clamp(2.75rem, 5vw, 5rem); }
.real-work-card--akwaaba .real-work-meta h3 {
  max-width: 100%;
  font-size: clamp(2.65rem, 3.8vw, 4rem);
}
.real-work-meta p { max-width: 28rem; color: rgba(255,255,255,.82); font-size: clamp(.86rem, 1.2vw, 1rem); line-height: 1.55; }
.real-work-card-action { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .65rem; margin-top: .5rem; padding: .65rem .9rem; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(8,12,18,.24); color: #fff; font-size: .72rem; font-weight: 800; backdrop-filter: blur(1rem); }
.real-work-card-action i { color: var(--card-accent); transition: transform var(--duration-ui) var(--ease-out); }
.real-work-card:hover .real-work-card-action i { transform: translateX(.35rem); }
.real-work-card-trigger { position: absolute; inset: 0; z-index: 8; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.real-work-card-trigger:focus-visible { outline-offset: -.35rem; }

.showcase-scroll-progress { position: relative; height: .2rem; margin: .45rem 0 0; overflow: hidden; border-radius: 99px; background: rgba(0,113,227,.14); }
.showcase-scroll-progress i { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0071e3, #5ac8fa); transform: translateX(var(--showcase-progress-x, 0%)); transition: transform var(--duration-ui) var(--ease-out); }

.real-work-detail {
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem);
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 12%, rgba(141,168,255,.12), transparent 28rem),
    radial-gradient(circle at 12% 80%, rgba(201,238,99,.08), transparent 26rem),
    var(--surface-solid);
  box-shadow: var(--shadow-deep);
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}
.real-work-detail::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); content: ""; }
.real-work-layout { display: grid; grid-template-columns: minmax(18rem, .78fr) minmax(28rem, 1.22fr); min-height: 48rem; }
.real-work-copy-panel { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.8rem); border-right: 1px solid var(--line); }
.real-work-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.real-work-detail-close {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  overflow: hidden;
  padding: .55rem .9rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(30,32,35,.72), rgba(104,130,135,.48) 58%, rgba(38,40,43,.7));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.32), inset 0 0 1.1rem rgba(190,224,229,.1), 0 .55rem 1.4rem rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  backdrop-filter: blur(1.15rem) saturate(145%);
  -webkit-backdrop-filter: blur(1.15rem) saturate(145%);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast);
}
.real-work-detail-close::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 10%, rgba(255,255,255,.28), transparent 38%), linear-gradient(180deg, rgba(255,255,255,.1), transparent 48%);
  content: "";
  pointer-events: none;
}
.real-work-detail-close:hover { border-color: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.68), inset 0 -1px 0 rgba(0,0,0,.28), inset 0 0 1.4rem rgba(199,232,237,.18), 0 .75rem 1.75rem rgba(0,0,0,.24); color: #fff; transform: translateY(-2px); }
.real-work-type { color: var(--accent); }
.real-work-copy-panel > h3 { margin: .55rem 0 1rem; font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.07em; line-height: .88; }
.real-work-copy-panel > p:not(.eyebrow):not(.real-work-type) { color: var(--text-soft); font-size: .92rem; }
.real-work-chips { display: flex; flex-wrap: wrap; gap: .42rem; margin: 1.4rem 0; }
.real-work-chip { padding: .46rem .62rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--text-soft); font-size: .63rem; font-weight: 750; }

.real-work-notes { display: grid; gap: .6rem; margin-top: .35rem; }
.real-work-note { position: relative; padding: 1rem 1rem 1rem 3.15rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.025); }
.real-work-note::before { position: absolute; top: 1rem; left: 1rem; color: var(--accent); font-size: .6rem; font-weight: 850; letter-spacing: .1em; content: attr(data-step); }
.real-work-note h4 { margin-bottom: .35rem; font-size: .78rem; letter-spacing: -.01em; }
.real-work-note p { color: var(--text-muted); font-size: .76rem; line-height: 1.55; }
.button--case {
  position: relative;
  isolation: isolate;
  align-self: flex-start;
  overflow: hidden;
  margin-top: 1.25rem;
  border-color: rgba(235,255,185,.72);
  background: linear-gradient(105deg, rgba(128,171,28,.86), rgba(201,238,99,.78) 48%, rgba(104,147,22,.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), inset 0 -1px 0 rgba(52,78,0,.42), inset 0 0 1.2rem rgba(238,255,188,.26), 0 .65rem 1.55rem rgba(67,99,0,.2);
  color: #101608;
  backdrop-filter: blur(1.15rem) saturate(155%);
  -webkit-backdrop-filter: blur(1.15rem) saturate(155%);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast);
}
.button--case::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 28% 5%, rgba(255,255,255,.62), transparent 36%), linear-gradient(180deg, rgba(255,255,255,.22), transparent 52%);
  content: "";
  pointer-events: none;
}
.button--case:hover { border-color: rgba(245,255,218,.95); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(52,78,0,.35), inset 0 0 1.4rem rgba(245,255,215,.4), 0 .85rem 1.9rem rgba(67,99,0,.3); transform: translateY(-2px) scale(1.015); }

.real-work-gallery-panel { display: grid; min-width: 0; grid-template-rows: 1fr auto; padding: clamp(1rem, 2vw, 1.5rem); }
.real-work-featured { position: relative; display: grid; min-height: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 1.5rem; background: #07090d; cursor: zoom-in; }
.real-work-featured::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(3,5,8,.9)); content: ""; pointer-events: none; }
.real-work-featured img { width: 100%; height: 100%; min-height: 32rem; padding: 1rem; object-fit: contain; transition: opacity var(--duration-ui), transform .65s var(--ease-out); }
.real-work-featured.is-switching img { animation: image-change .48s var(--ease-out); }
@keyframes image-change { 0% { opacity: .3; transform: scale(.985) translateY(.4rem); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
.real-work-featured-copy { position: absolute; right: 1.2rem; bottom: 1.2rem; left: 1.2rem; z-index: 2; display: grid; gap: .25rem; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; background: rgba(5,8,12,.7); color: #fff; text-align: left; backdrop-filter: blur(1rem); }
.real-work-featured-copy strong { font-size: .83rem; }
.real-work-featured-copy span { color: #b8c1cf; font-size: .67rem; line-height: 1.5; }

.real-work-carousel-bar { display: grid; grid-template-columns: minmax(8rem, 1.3fr) minmax(5rem, .55fr) minmax(4rem, .7fr) auto; align-items: center; gap: .7rem; padding: 1rem .25rem .1rem; }
.real-work-carousel-stat { display: grid; gap: .1rem; min-width: 0; }
.real-work-carousel-stat span { color: var(--text-muted); font-size: .58rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.real-work-carousel-stat strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.real-work-progress { height: .18rem; overflow: hidden; border-radius: 99px; background: var(--line); }
.real-work-progress i { display: block; width: var(--image-progress, 14.28%); height: 100%; border-radius: inherit; background: var(--accent); transition: width var(--duration-ui) var(--ease-out); }
.real-work-carousel-controls { display: flex; gap: .4rem; }
.real-work-nav-btn { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); cursor: pointer; transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast) var(--ease-out); }
.real-work-nav-btn:hover { border-color: var(--line-strong); background: var(--surface-bright); transform: translateY(-2px); }

/* Full-screen project image */
.gallery-lightbox {
  width: min(96vw, 96rem);
  height: min(94vh, 62rem);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.5rem;
  background: #080b10;
  color: #fff;
  box-shadow: 0 3rem 10rem rgba(0,0,0,.72);
}
.gallery-lightbox::backdrop { background: rgba(2,4,7,.8); backdrop-filter: blur(1rem); }
.gallery-lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: dialog-in .38s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(1rem) scale(.985); } }
.gallery-lightbox-figure { display: grid; min-height: 0; grid-template-rows: 1fr auto; padding: 1.2rem; }
.gallery-lightbox-figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-lightbox-figure figcaption { max-width: 70rem; margin-inline: auto; padding: .85rem 1rem 0; color: #b3bdcb; text-align: center; font-size: .78rem; }
.gallery-lightbox-close { position: absolute; top: .8rem; right: .8rem; z-index: 4; display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(8,11,16,.78); color: #fff; cursor: pointer; backdrop-filter: blur(1rem); }
.gallery-lightbox-controls { display: flex; justify-content: center; gap: .55rem; padding: 0 1rem 1rem; }
.gallery-lightbox .real-work-nav-btn { background: #151b25; border-color: rgba(255,255,255,.14); }

/* Live project laptop */
.workspace-section {
  padding-top: clamp(7rem, 13vw, 12rem);
  padding-bottom: 2rem;
  overflow: clip;
  scroll-margin-top: calc(var(--header-h) + 1rem);
  background: linear-gradient(180deg, #f6fbff 0%, #e9f7ff 48%, #dff3ff 100%);
  color: #1d1d1f;
}
.workspace-copy { position: relative; z-index: 3; display: grid; max-width: 70rem; gap: 1.25rem; }
.workspace-copy h2 { max-width: 64rem; }
.workspace-copy > p:last-of-type { color: #515154; }
.eyebrow-dark { color: #006edb; }
.workspace-reveal { display: inline-flex; min-height: 4.4rem; width: min(100%, 24rem); align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; padding: .75rem .8rem .75rem 1.1rem; border: 1px solid rgba(0,113,227,.2); border-radius: 1.2rem; background: rgba(255,255,255,.76); color: #1d1d1f; box-shadow: 0 1.5rem 4rem rgba(52,118,160,.13); cursor: pointer; text-align: left; transition: opacity var(--duration-ui), visibility var(--duration-ui), border-color var(--duration-fast), transform var(--duration-ui) var(--ease-out); }
.workspace-reveal span { display: grid; }
.workspace-reveal small { color: #6e6e73; font-size: .6rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.workspace-reveal strong { margin-top: .15rem; font-size: .86rem; }
.workspace-reveal i { display: grid; flex: 0 0 auto; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .9rem; background: #0071e3; color: #fff; }
.workspace-reveal:hover { border-color: #0071e3; transform: translateY(-.2rem); }
.workspace-reveal[aria-expanded="true"] { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(.5rem) scale(.98); }

.mobile-project-links { display: none; }
.workspace-stage { position: relative; height: auto; max-height: 0; min-height: 0; margin-top: 0; overflow: hidden; visibility: hidden; opacity: 0; pointer-events: none; transition: max-height 1s var(--ease-smooth), min-height .9s var(--ease-smooth), margin var(--duration-section) var(--ease-out), opacity .55s ease, visibility 0s .9s; }
.workspace-stage.is-revealed { max-height: 72rem; min-height: clamp(38rem, calc(100svh - var(--header-h)), 58rem); margin-top: 2rem; visibility: visible; opacity: 1; pointer-events: auto; transition: max-height 1s var(--ease-smooth), min-height .9s var(--ease-smooth), margin var(--duration-section) var(--ease-out), opacity .55s ease, visibility 0s; }
.workspace-sticky { position: relative; display: grid; min-height: clamp(38rem, calc(100svh - var(--header-h)), 58rem); place-items: center; overflow: hidden; padding: calc(var(--header-h) + .6rem) .5rem 1.5rem; }
.workspace-device { width: 100%; visibility: hidden; opacity: 0; perspective: 130rem; perspective-origin: 50% 45%; transform: translateY(3rem) scale(.96); transition: opacity .65s ease, transform .9s var(--ease-out), visibility 0s .9s; }
.workspace-stage.is-revealed .workspace-device { visibility: visible; opacity: 1; transform: translateY(0) scale(1); transition: opacity .65s ease, transform .9s var(--ease-out), visibility 0s; }
.workspace-laptop {
  --open: 0;
  --scale: .76;
  --spin: -13deg;
  --y: 78px;
  position: relative;
  width: min(95vw, 88rem, calc((100svh - var(--header-h) - 6rem) * 1.58));
  margin-inline: auto;
  transform: translate3d(0, var(--y), 0) scale(var(--scale)) rotateY(var(--spin));
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 1.05s var(--ease-out);
}
.workspace-device.is-open .workspace-laptop { --open: 1; --scale: 1; --spin: 0deg; --y: 0px; }

.workspace-lid {
  position: relative;
  z-index: 2;
  padding: .82rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 2rem 2rem .75rem .75rem;
  background: linear-gradient(145deg, #2b374a, #0b0f16 78%);
  box-shadow: 0 2rem 7rem rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.26);
  transform: rotateX(calc((1 - var(--open)) * -72deg));
  transform-origin: bottom center;
  transform-style: preserve-3d;
  transition: transform 1.05s var(--ease-out);
}
.laptop-camera { top: .3rem; }
.workspace-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9.25; border: 1px solid rgba(255,255,255,.1); border-radius: 1.35rem .95rem .4rem .4rem; background: #06090e; isolation: isolate; }
.workspace-screen::after { position: absolute; inset: 0; z-index: 30; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 5rem rgba(0,0,0,.2); content: ""; pointer-events: none; }
.workspace-wallpaper { position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(201,238,99,.17), transparent 24rem), radial-gradient(circle at 75% 65%, rgba(141,168,255,.24), transparent 30rem), linear-gradient(145deg, #111823, #080b11 68%); }
.workspace-wallpaper::after { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 4rem 4rem; content: ""; }

.workspace-boot, .workspace-desktop, .project-window { position: absolute; inset: 0; }
.workspace-boot { z-index: 6; display: grid; align-content: center; justify-items: center; padding: 2rem; color: #f4f7fb; text-align: center; transition: opacity var(--duration-ui), visibility var(--duration-ui), transform var(--duration-ui) var(--ease-out); }
.workspace-boot-logo { width: 5rem; height: 5rem; border-radius: 1.35rem; }
.workspace-boot-kicker { margin-top: 1.2rem; color: #c9ee63; font-size: .6rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.workspace-boot-title { margin-top: .45rem; color: #f4f7fb; font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 750; letter-spacing: -.06em; }
.workspace-boot-help { max-width: 32rem; margin-top: .65rem; color: #aab4c4; font-size: .78rem; }
.workspace-device.is-powered .workspace-boot { visibility: hidden; opacity: 0; transform: scale(.985); pointer-events: none; }

.workspace-lock { position: absolute; inset: 0; z-index: 7; display: grid; visibility: hidden; place-items: center; padding: 2rem; background: radial-gradient(circle at 50% 38%, rgba(75,113,124,.2), transparent 28rem), rgba(5,9,14,.3); color: #fff; opacity: 0; pointer-events: none; backdrop-filter: blur(.35rem); transition: opacity .55s ease, visibility .55s; }
.workspace-device.is-ready:not(.is-powered) .workspace-lock { visibility: visible; opacity: 1; pointer-events: auto; }
.workspace-lock-content { display: grid; justify-items: center; text-align: center; text-shadow: 0 .2rem 1rem rgba(0,0,0,.5); }
.workspace-lock-date { color: rgba(255,255,255,.78); font-size: clamp(.75rem, 1.2vw, 1rem); font-weight: 650; }
.workspace-lock-time { margin-top: -.1rem; font-size: clamp(4rem, 9vw, 8rem); font-weight: 250; letter-spacing: -.075em; line-height: 1; font-variant-numeric: tabular-nums; }
.workspace-lock-weather { display: flex; align-items: center; gap: .65rem; margin-top: 1.2rem; padding: .55rem .85rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(25,31,37,.42); box-shadow: inset 0 1px rgba(255,255,255,.24), 0 .6rem 1.5rem rgba(0,0,0,.18); backdrop-filter: blur(1rem); }
.workspace-lock-weather > i { color: #ffc64b; }
.workspace-lock-weather span { display: grid; text-align: left; line-height: 1.05; }
.workspace-lock-weather strong { font-size: .72rem; }
.workspace-lock-weather small { margin-top: .15rem; color: rgba(255,255,255,.65); font-size: .5rem; }
.workspace-unlock { display: inline-flex; min-height: 2.9rem; align-items: center; gap: .55rem; margin-top: 1.3rem; padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: linear-gradient(100deg, rgba(37,38,41,.68), rgba(110,139,144,.48), rgba(41,42,45,.68)); box-shadow: inset 0 1px rgba(255,255,255,.55), 0 .7rem 1.8rem rgba(0,0,0,.22); color: #fff; cursor: pointer; backdrop-filter: blur(1.1rem) saturate(150%); transition: transform var(--duration-fast), border-color var(--duration-fast); }
.workspace-unlock:hover { border-color: rgba(255,255,255,.85); transform: translateY(-2px); }

.workspace-system-bar { position: absolute; top: .65rem; right: .75rem; left: .75rem; z-index: 8; display: flex; visibility: hidden; min-height: 2.65rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem .45rem .35rem .75rem; border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; background: linear-gradient(100deg, rgba(16,20,25,.72), rgba(90,112,117,.34) 58%, rgba(17,21,26,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 .7rem 1.6rem rgba(0,0,0,.2); color: #f5f7fa; opacity: 0; backdrop-filter: blur(1.2rem) saturate(145%); transition: opacity var(--duration-ui), visibility var(--duration-ui); }
.workspace-device.is-powered .workspace-system-bar { visibility: visible; opacity: 1; }
.workspace-system-brand, .workspace-system-status, .workspace-weather, .workspace-clock { display: flex; align-items: center; }
.workspace-system-brand { gap: .45rem; font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.workspace-system-brand img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.workspace-system-status { gap: .28rem; }
.workspace-weather { gap: .38rem; padding: .3rem .5rem; border: 1px solid rgba(255,255,255,.1); border-radius: .7rem; background: rgba(255,255,255,.055); font-size: .6rem; }
.workspace-weather i { color: #f8bf48; }
.workspace-weather small { color: #aeb8c5; }
.workspace-status-icon { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; color: #dce4ec; font-size: .65rem; }
.workspace-sound-toggle { padding: 0; border: 1px solid transparent; border-radius: .55rem; background: transparent; cursor: pointer; transition: border-color var(--duration-fast), background var(--duration-fast), color var(--duration-fast); }
.workspace-sound-toggle:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; }
.workspace-sound-toggle[aria-pressed="true"] { border-color: rgba(201,238,99,.24); background: rgba(201,238,99,.11); color: #dfff82; }
.workspace-clock { min-width: 4.6rem; align-items: flex-end; flex-direction: column; padding: 0 .35rem; line-height: 1.05; }
.workspace-clock strong { font-size: .68rem; font-variant-numeric: tabular-nums; }
.workspace-clock small { margin-top: .18rem; color: #aeb8c5; font-size: .5rem; font-variant-numeric: tabular-nums; }

.workspace-notifications { position: absolute; top: 3.9rem; right: 1rem; z-index: 24; display: grid; width: min(18rem, calc(100% - 2rem)); gap: .55rem; pointer-events: none; }
.workspace-notification { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 1.75rem; align-items: center; gap: .7rem; padding: .7rem .6rem .7rem .8rem; border: 1px solid rgba(255,255,255,.26); border-radius: 1rem; background: linear-gradient(105deg, rgba(22,27,33,.82), rgba(93,118,122,.56), rgba(21,26,32,.8)); box-shadow: inset 0 1px rgba(255,255,255,.25), 0 .8rem 2rem rgba(0,0,0,.3); color: #fff; opacity: 0; pointer-events: auto; backdrop-filter: blur(1.25rem) saturate(145%); transform: translateX(1.5rem) scale(.97); animation: workspace-notification-in .4s var(--ease-out) forwards; }
.workspace-notification.is-leaving { animation: workspace-notification-out .32s ease forwards; }
.workspace-notification > i { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .65rem; background: rgba(201,238,99,.14); color: #dfff82; }
.workspace-notification span { display: grid; line-height: 1.25; }
.workspace-notification strong { font-size: .67rem; }
.workspace-notification small { margin-top: .15rem; color: rgba(255,255,255,.66); font-size: .55rem; }
.workspace-notification-close { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(10,14,18,.24); color: rgba(255,255,255,.8); cursor: pointer; font-size: .58rem; transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast); }
.workspace-notification-close:hover { background: rgba(255,255,255,.16); color: #fff; transform: scale(1.06); }
@keyframes workspace-notification-in { to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes workspace-notification-out { to { opacity: 0; transform: translateX(1rem) scale(.97); } }

.workspace-desktop { z-index: 4; display: flex; align-items: flex-start; gap: 1rem; padding: 4.15rem 2rem 2rem; opacity: 0; pointer-events: none; transition: opacity var(--duration-ui); }
.workspace-device.is-powered .workspace-desktop { opacity: 1; pointer-events: auto; }
.desktop-icon { display: grid; width: 6.5rem; justify-items: center; gap: .5rem; padding: .65rem .35rem; border: 1px solid transparent; border-radius: 1rem; background: transparent; color: #f5f7fb; cursor: pointer; transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast) var(--ease-out); }
.desktop-icon:hover, .desktop-icon:focus-visible, .desktop-icon.is-active { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.desktop-icon-mark { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 1.05rem; background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); box-shadow: 0 1rem 2rem rgba(0,0,0,.24); color: #c9ee63; font-size: 1.1rem; }
.desktop-icon-label { font-size: .62rem; font-weight: 650; line-height: 1.25; text-align: center; }

.project-window { z-index: 12; display: grid; visibility: hidden; grid-template-rows: auto minmax(0, 1fr); background: #0b0f16; opacity: 0; pointer-events: none; transform: translateY(1rem) scale(.98); transition: opacity var(--duration-ui), transform var(--duration-ui) var(--ease-out); }
.project-window.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.project-window.is-minimized { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(30% ) scale(.85); }
.project-window-bar { display: grid; min-height: 2.8rem; grid-template-columns: 8rem 1fr 8rem; align-items: center; padding: .4rem .75rem; border-bottom: 1px solid rgba(255,255,255,.09); background: #101620; }
.traffic-lights { display: flex; gap: .42rem; }
.window-dot { width: .75rem; height: .75rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.window-close { background: #ff625a; }
.window-minimize { background: #f6be3d; }
.window-expand { background: #35c65a; }
.project-window-title { overflow: hidden; color: #e8edf5; font-size: .7rem; font-weight: 750; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.project-window-body, .project-browser, .browser-frame-wrap { min-width: 0; min-height: 0; }
.project-browser { display: grid; height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.project-browser-toolbar { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .75rem; border-bottom: 1px solid rgba(255,255,255,.09); background: #0d121a; }
.project-browser-meta { display: flex; min-width: 0; flex: 1; align-items: center; gap: .7rem; }
.window-kicker { flex: 0 0 auto; color: #c9ee63; font-size: .58rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.project-browser-address { min-width: 0; flex: 1; overflow: hidden; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; background: rgba(255,255,255,.035); color: #9da8b9; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.project-browser-actions { display: flex; flex: 0 0 auto; gap: .45rem; }
.browser-action { display: inline-flex; min-height: 2.55rem; align-items: center; gap: .45rem; padding: .55rem .72rem; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; background: rgba(255,255,255,.04); color: #eef2f8; text-decoration: none; font-size: .64rem; font-weight: 750; cursor: pointer; }
.browser-action:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.075); }
.browser-action--link { border-color: rgba(201,238,99,.24); background: rgba(201,238,99,.1); color: #eafaac; }
.browser-frame-wrap { position: relative; background: #f1f3f5; }
.project-frame { width: 100%; height: 100%; border: 0; background: #fff; }

.browser-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1.5rem; background: #12171e; opacity: 1; transition: opacity var(--duration-ui), visibility var(--duration-ui); }
.browser-overlay.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.browser-overlay-card { display: grid; max-width: 34rem; justify-items: center; padding: 1.6rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.25rem; background: #0b1017; color: #f3f5f8; text-align: center; box-shadow: var(--shadow-soft); }
.browser-spinner { width: 2.8rem; height: 2.8rem; margin-bottom: 1rem; border: .18rem solid rgba(255,255,255,.14); border-top-color: #c9ee63; border-radius: 50%; animation: spinner 1s linear infinite; }
@keyframes spinner { to { transform: rotate(360deg); } }
.browser-overlay-card strong { font-size: 1rem; }
.browser-overlay-card p { max-width: 26rem; margin-top: .55rem; color: #a9b3c2; font-size: .72rem; }
.browser-link { display: inline-flex; min-height: 2.7rem; align-items: center; margin-top: 1rem; padding: .6rem .85rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; text-decoration: none; font-size: .7rem; font-weight: 750; }

.workspace-dock { position: absolute; bottom: .8rem; left: 50%; z-index: 20; display: flex; gap: .45rem; padding: .42rem; border: 1px solid rgba(255,255,255,.13); border-radius: 1.2rem; background: rgba(10,14,20,.72); box-shadow: 0 1.2rem 3rem rgba(0,0,0,.28); backdrop-filter: blur(1.2rem); transform: translateX(-50%); transition: opacity var(--duration-ui), transform var(--duration-ui) var(--ease-out), visibility var(--duration-ui); }
.workspace-device.has-open-project .workspace-dock { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.workspace-device.has-open-project .workspace-dock .dock-item:not(.dock-item--power) { display: none; }
.workspace-device.has-open-project .workspace-dock { visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(.65rem); }
.dock-item { display: grid; width: 2.9rem; height: 2.9rem; place-items: center; border: 1px solid transparent; border-radius: .9rem; background: rgba(255,255,255,.055); color: #eef3fa; cursor: pointer; transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast) var(--ease-out); }
.dock-item:hover, .dock-item.is-active { background: rgba(255,255,255,.12); color: #c9ee63; transform: translateY(-.2rem); }
.dock-item--power { display: flex; width: auto; gap: .5rem; padding: 0 .9rem; color: #ff9690; }
.dock-item--power span { color: #ffd1ce; font-size: .64rem; font-weight: 800; white-space: nowrap; }
.dock-item--power:hover span { color: #fff; }

.workspace-base { position: relative; z-index: 3; height: clamp(1.15rem, 2.4vw, 2rem); margin: 0 -3%; border-radius: 0 0 50% 50%; background: linear-gradient(180deg, #3b4657, #111722 48%, #05070a); box-shadow: 0 1rem 2rem rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.28); transform: translateZ(.5rem); }
.workspace-base-notch { width: 22%; height: .25rem; margin-inline: auto; border-radius: 0 0 999px 999px; background: rgba(255,255,255,.2); }

/* Process and experience */
.process-section, .experience-section { padding: clamp(7rem, 13vw, 12rem) 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.section-head { display: grid; max-width: 62rem; gap: 1.2rem; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.section-head h2 { max-width: 60rem; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.process-card {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--surface-raised), var(--surface-solid));
  transition: border-color var(--duration-ui), transform var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui);
}
.process-card::after { position: absolute; right: -3rem; bottom: -5rem; width: 12rem; height: 12rem; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 2rem rgba(255,255,255,.014), 0 0 0 4rem rgba(255,255,255,.009); content: ""; transition: transform .8s var(--ease-out); }
.process-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); transform: translateY(-.35rem); }
.process-card:hover::after { transform: scale(1.12) translate(-.5rem, -.5rem); }
.process-card > span { color: var(--accent); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.process-card h3 { max-width: 15rem; margin-top: 4.5rem; font-size: clamp(1.65rem, 2.4vw, 2.3rem); letter-spacing: -.05em; line-height: 1.05; }
.process-card p { position: relative; z-index: 2; max-width: 19rem; margin-top: 1rem; color: var(--text-soft); font-size: .85rem; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem; color: var(--accent); text-decoration: none; font-size: .82rem; font-weight: 800; }
.text-link i { transition: transform var(--duration-ui) var(--ease-out); }
.text-link:hover i { transform: translateX(.35rem); }

.experience-section { position: relative; }
.experience-section::before { position: absolute; top: 25%; left: -12rem; width: 28rem; height: 28rem; border-radius: 50%; background: rgba(141,168,255,.07); filter: blur(5rem); content: ""; pointer-events: none; }
.experience-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; }
.experience-card { position: relative; min-height: 20rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(1rem); }
.experience-card:first-child { grid-row: span 2; min-height: 41rem; background: radial-gradient(circle at 75% 75%, rgba(201,238,99,.11), transparent 18rem), var(--surface); }
.experience-label { color: var(--blue); font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.experience-card h3 { max-width: 32rem; margin-top: clamp(4rem, 8vw, 10rem); font-size: clamp(2rem, 4.2vw, 4.6rem); letter-spacing: -.065em; line-height: .95; }
.experience-card:not(:first-child) h3 { margin-top: 2.5rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.experience-card p { max-width: 34rem; margin-top: 1rem; color: var(--text-soft); font-size: .9rem; }
.experience-cv-link { display: flex; min-height: 5.5rem; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .8rem .9rem .8rem 1.2rem; border: 1px solid rgba(255,255,255,.5); border-radius: 1.4rem; background: linear-gradient(100deg, rgba(28,32,37,.86), rgba(85,114,120,.68), rgba(26,31,36,.86)); box-shadow: inset 0 1px rgba(255,255,255,.38), 0 1rem 2.5rem rgba(26,43,52,.18); color: #fff; text-decoration: none; backdrop-filter: blur(1.2rem); transition: transform var(--duration-fast), box-shadow var(--duration-fast); }
.experience-cv-link span { display: grid; line-height: 1.2; }
.experience-cv-link small { color: rgba(255,255,255,.62); font-size: .58rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.experience-cv-link strong { margin-top: .35rem; font-size: 1rem; }
.experience-cv-link > i { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.experience-cv-link:hover { box-shadow: inset 0 1px rgba(255,255,255,.55), 0 1.2rem 3rem rgba(26,43,52,.25); transform: translateY(-2px); }

.social-section { padding: clamp(6rem, 10vw, 9rem) 0; background: linear-gradient(180deg, #fff, #e7f6ff); color: #17191e; }
.social-shell { display: grid; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.social-card { position: relative; display: grid; min-height: 15rem; grid-template-columns: 3.5rem minmax(0, 1fr) 2.8rem; align-items: end; gap: 1rem; overflow: hidden; padding: 1.5rem; border: 1px solid #dce2e8; background: rgba(255,255,255,.76); color: #161a20; text-decoration: none; box-shadow: 0 1rem 3rem rgba(42,69,87,.08); transition: transform var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui); }
.social-card::before { position: absolute; inset: 0; background: radial-gradient(circle at 85% 12%, var(--social-glow, rgba(0,113,227,.15)), transparent 18rem); content: ""; pointer-events: none; }
.social-card > * { position: relative; z-index: 1; }
.social-card > img, .social-card-logo { width: 3.2rem; height: 3.2rem; object-fit: contain; font-size: 2.5rem; }
.social-card > span { display: grid; }
.social-card small { color: #697483; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.social-card strong { margin-top: .3rem; font-size: clamp(1.2rem, 2vw, 1.8rem); letter-spacing: -.04em; }
.social-card > i:last-child { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid #dce2e8; border-radius: 50%; }
.social-card:hover { box-shadow: 0 1.4rem 3.5rem rgba(42,69,87,.15); transform: translateY(-.3rem); }
.social-card--instagram { --social-glow: rgba(203,45,122,.2); }
.social-card--youtube { --social-glow: rgba(255,0,0,.16); }
.social-card--github { --social-glow: rgba(32,41,55,.16); }
.social-card--linkedin { --social-glow: rgba(10,102,194,.18); }

/* Direct Netlify contact experience */
.contact-section { position: relative; padding: clamp(7rem, 13vw, 12rem) 0; overflow: clip; scroll-margin-top: calc(var(--header-h) + 1rem); }
.contact-section::before { position: absolute; inset: 15% -10% -25%; background: radial-gradient(circle at 70% 40%, rgba(201,238,99,.1), transparent 28rem), radial-gradient(circle at 28% 55%, rgba(141,168,255,.1), transparent 30rem); content: ""; pointer-events: none; }

/* Apple-style full-width section rhythm */
.transition-section,
.marquee-section,
.showcase-section,
.workspace-section,
.process-section,
.experience-section,
.contact-section {
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
}

.process-shell,
.experience-shell { position: relative; }

.section-heading-panel {
  padding-block: 0;
}

[data-theme="light"] .transition-section { border-bottom: 0; background: linear-gradient(to top, #dff3ff 0%, #edf8ff 42%, #f5f5f7 100%); }
[data-theme="light"] .marquee-section { background: #fff; }
[data-theme="light"] .showcase-section { background: linear-gradient(180deg, #dff3ff 0%, #edf8ff 52%, #f6fbff 100%); }
[data-theme="light"] .workspace-section { background: linear-gradient(to bottom, #f6fbff 0%, #edf8ff 52%, #dff3ff 100%); }
[data-theme="light"] .process-section,
[data-theme="light"] .contact-section { background: linear-gradient(to bottom, #dff3ff 0%, #edf8ff 48%, #fff 100%); }
[data-theme="light"] .experience-section { background: linear-gradient(to top, #dff3ff 0%, #edf8ff 48%, #fff 100%); }
[data-theme="dark"] main { background: #05070a; }
[data-theme="dark"] main > * + * { border-top-color: #05070a; }
.contact-shell { position: relative; display: grid; grid-template-columns: minmax(18rem, .8fr) minmax(30rem, 1.2fr); align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.contact-head { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.2rem; }
.contact-head h2 { font-size: clamp(3rem, 6vw, 6.3rem); }
.contact-head > a { justify-self: start; color: var(--accent); text-underline-offset: .3rem; }
.contact-panel { padding: clamp(1rem, 2vw, 1.4rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: color-mix(in srgb, var(--surface-solid) 88%, transparent); box-shadow: var(--shadow-deep); backdrop-filter: blur(1.3rem); }
.contact-form { display: grid; gap: .8rem; }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: -1px; padding: 0; border: 0; }
.contact-instructions { padding: .3rem .35rem .65rem; color: var(--text-muted); font-size: .72rem; }
.contact-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-field { position: relative; display: grid; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255,255,255,.035);
  color: var(--text);
  outline: 0;
  transition: border-color var(--duration-fast), background var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast) var(--ease-out);
}
.form-field input { min-height: 4.4rem; padding: 1.55rem 1rem .55rem; }
.form-field textarea { min-height: 11rem; resize: vertical; padding: 1.75rem 1rem .75rem; }
.form-field select { min-height: 4rem; padding: .75rem 2.5rem .75rem 1rem; appearance: none; color-scheme: dark; background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 1.65rem, calc(100% - .9rem) 1.65rem; background-size: .3rem .3rem; background-repeat: no-repeat; }
.form-field select option { background: #111721; color: #f6f7f2; }
.form-field input:hover, .form-field textarea:hover, .form-field select:hover { border-color: var(--line-strong); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--accent); background: rgba(255,255,255,.055); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--accent) 16%, transparent), 0 1rem 2.8rem rgba(0,0,0,.12); transform: translateY(-1px); }
.form-field--floating label { position: absolute; top: 1.3rem; left: 1rem; z-index: 2; color: var(--text-muted); font-size: .82rem; pointer-events: none; transform-origin: left top; transition: color var(--duration-fast), transform var(--duration-ui) var(--ease-out); }
.form-field--floating input:focus + label, .form-field--floating input:not(:placeholder-shown) + label, .form-field--floating textarea:focus + label, .form-field--floating textarea:not(:placeholder-shown) + label { color: var(--accent); transform: translateY(-.72rem) scale(.78); }
.form-field--select label { margin: .2rem 0 .45rem .2rem; color: var(--text-soft); font-size: .72rem; font-weight: 700; }
.form-error { min-height: 1.2rem; padding: .24rem .3rem 0; color: var(--danger); font-size: .65rem; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--danger) 12%, transparent); }
.contact-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .2rem; padding: .35rem; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(255,255,255,.025); }
.contact-options { display: flex; flex-wrap: wrap; gap: .8rem; padding-left: .6rem; color: var(--text-muted); font-size: .62rem; }
.contact-options span { display: inline-flex; align-items: center; gap: .4rem; }
.create-btn { display: inline-flex; min-height: 3.2rem; align-items: center; gap: .6rem; padding: .75rem 1rem; border: 0; border-radius: .9rem; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 850; cursor: pointer; transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast); }
.create-btn:hover { box-shadow: 0 .8rem 2rem color-mix(in srgb, var(--accent) 18%, transparent); transform: translateY(-2px); }
.form-success { padding: .8rem 1rem; border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); border-radius: .9rem; background: color-mix(in srgb, var(--success) 8%, transparent); color: var(--success); font-size: .72rem; }
.form-success.is-error { border-color: rgba(201,55,55,.34); background: rgba(201,55,55,.08); color: #a82424; }
.create-btn:disabled { cursor: wait; opacity: .72; }

/* Footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; margin: .4rem; background: #07100d; color: #fff; }
.footer-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.footer-art::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,10,8,.97) 0%, rgba(3,10,8,.9) 46%, rgba(3,10,8,.48) 100%), linear-gradient(180deg, rgba(4,12,9,.34), rgba(3,9,7,.96)); content: ""; }
.footer-art-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.12); opacity: .72; transform: scale(1.02); }
.footer-shell { position: relative; z-index: 1; display: grid; width: min(calc(100% - 2rem), 100rem); min-height: 43rem; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, .5fr); grid-template-rows: auto 1fr auto; column-gap: clamp(3rem, 8vw, 9rem); padding: clamp(2rem, 4vw, 4rem) 0 1.5rem; }
.footer-intro { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-brand { display: inline-flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; }
.footer-brand img { width: 3.5rem; height: 3.5rem; object-fit: contain; filter: drop-shadow(0 .4rem .8rem rgba(0,0,0,.34)); }
.footer-brand span { display: grid; gap: .12rem; }
.footer-brand strong { font-size: .9rem; }
.footer-brand small { color: rgba(255,255,255,.56); font-size: .62rem; letter-spacing: .035em; }
.footer-availability { display: inline-flex; align-items: center; gap: .65rem; color: rgba(255,255,255,.7); font-size: .72rem; font-weight: 700; }
.footer-availability i { width: .55rem; height: .55rem; border-radius: 50%; background: #70cfff; box-shadow: 0 0 0 .35rem rgba(112,207,255,.12), 0 0 1.2rem rgba(112,207,255,.72); }
.footer-cta { display: grid; align-content: center; justify-items: start; padding: clamp(4rem, 8vw, 8rem) 0; }
.footer-cta .eyebrow { color: #70cfff; }
.footer-cta h2 { max-width: 54rem; margin-top: 1.2rem; font-size: clamp(3.4rem, 6.6vw, 7.3rem); letter-spacing: -.085em; line-height: .86; text-wrap: balance; }
.footer-cta > p:not(.eyebrow) { max-width: 38rem; margin-top: 1.6rem; color: rgba(255,255,255,.65); font-size: clamp(.9rem, 1.15vw, 1.05rem); line-height: 1.65; }
.footer-email { display: inline-flex; min-height: 3.5rem; align-items: center; gap: .8rem; margin-top: 2rem; padding: .8rem 1.15rem; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; background: linear-gradient(110deg, rgba(255,255,255,.25), rgba(82,168,195,.2), rgba(255,255,255,.08)); box-shadow: inset 0 1px rgba(255,255,255,.58), 0 .9rem 2.2rem rgba(0,0,0,.24); color: #fff; text-decoration: none; font-size: .78rem; font-weight: 850; -webkit-backdrop-filter: blur(1.2rem) saturate(150%); backdrop-filter: blur(1.2rem) saturate(150%); transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast); }
.footer-email:hover { box-shadow: inset 0 1px rgba(255,255,255,.72), 0 1.2rem 2.8rem rgba(0,0,0,.3); transform: translateY(-3px); }
.footer-directory { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: clamp(2rem, 4vw, 4rem); padding-block: 4rem; }
.footer-directory nav { display: grid; align-content: start; gap: .9rem; }
.footer-directory nav > p { margin-bottom: .35rem; color: rgba(255,255,255,.42); font-size: .58rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.footer-directory a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.76); text-decoration: none; font-size: .78rem; font-weight: 700; transition: border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast); }
.footer-directory a i { font-size: .55rem; opacity: .6; }
.footer-directory a:hover { border-color: rgba(112,207,255,.55); color: #fff; transform: translateX(.2rem); }
.footer-base { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.46); font-size: .62rem; }
.footer-base > div { display: flex; align-items: center; gap: 1.25rem; }
.footer-base a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.72); text-decoration: none; font-weight: 800; }
.footer-base a:hover { color: #70cfff; }

/* Standalone design-process page */
/* Interactive CV */
.cv-page-body { min-height: 100vh; background: #eef1f5; color: #151820; }
.cv-main { width: min(calc(100% - 1.5rem), 92rem); margin: .75rem auto; }
.cv-hero { display: grid; min-height: 44rem; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); align-items: end; gap: 3rem; overflow: hidden; padding: clamp(3rem, 7vw, 7rem); background: radial-gradient(circle at 82% 18%, rgba(84,183,255,.35), transparent 28rem), linear-gradient(145deg, #e1f4ff, #f8fcff); }
.cv-hero h1 { margin: 1rem 0 1.5rem; font-size: clamp(4.5rem, 8vw, 8.5rem); letter-spacing: -.09em; line-height: .8; }
.cv-role { color: #485466; font-size: clamp(.85rem, 1.3vw, 1.05rem); font-weight: 700; }
.cv-role span { color: #0071e3; }
.cv-profile { max-width: 58rem; margin-top: 1.5rem; color: #566173; font-size: clamp(.95rem, 1.25vw, 1.08rem); line-height: 1.7; }
.cv-contact-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.cv-contact-links a, .cv-contact-links > span { display: inline-flex; min-height: 2.8rem; align-items: center; gap: .5rem; padding: .6rem .8rem; border: 1px solid rgba(0,113,227,.14); border-radius: 999px; background: rgba(255,255,255,.7); color: #273344; text-decoration: none; font-size: .68rem; font-weight: 750; box-shadow: inset 0 1px #fff; }
.cv-contact-links img { width: 1rem; height: 1rem; }
.cv-save-action { display: inline-flex; min-height: 2.8rem; align-items: center; gap: .5rem; padding: .6rem .8rem; border: 1px solid rgba(0,113,227,.28); border-radius: 999px; background: #0071e3; color: #fff; cursor: pointer; font: inherit; font-size: .68rem; font-weight: 800; box-shadow: inset 0 1px rgba(255,255,255,.38), 0 .55rem 1.4rem rgba(0,113,227,.18); }
.cv-at-a-glance { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.cv-at-a-glance span { display: grid; min-height: 9.5rem; align-content: end; padding: 1.25rem; border: 1px solid rgba(0,113,227,.13); background: rgba(255,255,255,.62); box-shadow: inset 0 1px #fff; }
.cv-at-a-glance strong { color: #0071e3; font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.07em; line-height: 1; }
.cv-at-a-glance small { margin-top: .55rem; color: #5b6675; font-size: .62rem; line-height: 1.35; }
.cv-section-nav { position: sticky; top: 6.1rem; z-index: 70; display: flex; justify-content: center; gap: .3rem; margin: .5rem 0; padding: .45rem; border: 1px solid #dce1e7; background: rgba(255,255,255,.82); backdrop-filter: blur(1rem); }
.cv-section-nav a { padding: .55rem .8rem; border-radius: 999px; color: #475263; text-decoration: none; font-size: .66rem; font-weight: 800; }
.cv-section-nav a:hover { background: #15202b; color: #fff; }
.cv-section { margin-top: .5rem; padding: clamp(3rem, 6vw, 6rem); background: #fff; }
.cv-section:nth-of-type(even) { background: linear-gradient(145deg, #e9f7ff, #f7fcff); }
.cv-section-heading { display: grid; max-width: 68rem; gap: 1rem; margin-bottom: 2.5rem; }
.cv-section-heading h2, .cv-project-proof h2 { font-size: clamp(3rem, 6vw, 6.5rem); letter-spacing: -.08em; line-height: .87; }
.cv-section-heading > p:last-child { color: #626d7c; }
.cv-timeline { display: grid; gap: .55rem; }
.cv-role-card { border: 1px solid #dde2e8; background: rgba(255,255,255,.76); }
.cv-role-card summary { display: grid; min-height: 6.5rem; grid-template-columns: 3.4rem minmax(0, 1fr) 2rem; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; }
.cv-role-card summary::-webkit-details-marker, .cv-skill summary::-webkit-details-marker { display: none; }
.cv-role-card summary > span:nth-child(2) { display: grid; gap: .22rem; }
.cv-role-card summary strong { font-size: clamp(1rem, 1.7vw, 1.35rem); }
.cv-role-card summary small { color: #687382; font-size: .68rem; }
.cv-role-card[open] summary > i { transform: rotate(45deg); }
.cv-role-card summary > i { transition: transform .3s var(--ease-out); }
.cv-company-logo { display: grid; width: 3.3rem; height: 3.3rem; place-items: center; border-radius: 1rem; background: linear-gradient(145deg, #25303c, #0a0e13); color: #c9ee63; font-size: .68rem; font-weight: 850; box-shadow: inset 0 1px rgba(255,255,255,.2); }
.cv-company-logo--connex { background: linear-gradient(145deg, #203bff, #52208f); color: #fff; }
.cv-company-logo--tesco { background: #e21d2b; color: #fff; }
.cv-role-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0 1.2rem 1.4rem 5.6rem; }
.cv-role-detail > div:not(.cv-role-tools), .cv-role-detail > p, .cv-role-detail > ul { padding: 1.1rem; border: 1px solid #e2e6eb; background: #f8fafc; }
.cv-role-detail h3 { margin-bottom: .5rem; font-size: .8rem; }
.cv-role-detail p, .cv-role-detail li { color: #5c6776; font-size: .73rem; line-height: 1.6; }
.cv-role-detail ul { margin: 0; padding-left: 2rem; }
.cv-role-tools { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: .4rem; }
.cv-role-tools span { padding: .4rem .55rem; border-radius: 999px; background: #e7f4ff; color: #006bcf; font-size: .58rem; font-weight: 800; }
.cv-skill-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.cv-skill-filters button { min-height: 2.8rem; padding: .55rem .85rem; border: 1px solid #d8dee5; border-radius: 999px; background: #fff; color: #4d5867; cursor: pointer; font-size: .66rem; font-weight: 800; }
.cv-skill-filters button.is-active { border-color: #17212b; background: #17212b; color: #fff; }
.cv-skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.cv-skill { border: 1px solid #dce2e8; background: rgba(255,255,255,.8); }
.cv-skill[hidden] { display: none; }
.cv-skill summary { display: grid; min-height: 4.5rem; grid-template-columns: 2rem 1fr 1rem; align-items: center; gap: .75rem; padding: .75rem 1rem; cursor: pointer; list-style: none; font-size: .76rem; font-weight: 800; }
.cv-skill summary img, .cv-skill-icon { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; object-fit: contain; }
.cv-skill[open] summary > i { transform: rotate(180deg); }
.cv-skill summary > i { transition: transform .3s var(--ease-out); }
.cv-skill > p { padding: 0 1rem 1rem 3.75rem; color: #657080; font-size: .7rem; }
.cv-education-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: .65rem; }
.cv-education-grid article { display: grid; min-height: 22rem; align-content: end; padding: 2rem; border: 1px solid #dce2e8; background: rgba(255,255,255,.8); }
.cv-education-grid h3 { margin: 1rem 0 .5rem; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.05em; }
.cv-education-grid article > p:last-child { color: #626d7c; }
.cv-development-list { display: grid; grid-template-columns: 1fr 1fr; }
.cv-development-list span { padding: 1.2rem 0; border-bottom: 1px solid #dce2e8; color: #3d4857; font-size: .78rem; font-weight: 700; }
.cv-development-list span:nth-child(odd) { margin-right: 1.5rem; }
.cv-project-proof { display: grid; min-height: 38rem; align-content: center; gap: 1.2rem; margin-top: .5rem; padding: clamp(3rem, 7vw, 7rem); background: linear-gradient(145deg, #101722, #030609); color: #fff; }
.cv-project-proof > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1.5rem; }
.cv-project-proof a { display: grid; min-height: 11rem; align-content: end; padding: 1.2rem; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.055); color: #fff; text-decoration: none; font-size: 1rem; font-weight: 800; }
.cv-project-proof a span { margin-top: .35rem; color: #c9ee63; font-size: .62rem; }

.process-page-body { min-height: 100vh; background: #fff; color: #17191e; }
.process-page-body .site-header { position: fixed; background: transparent; }
.process-page-body .brand-mark { filter: drop-shadow(0 .45rem .7rem rgba(21,31,42,.18)); }
.process-page-main { padding: 0; background: #fff; }
.process-page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(5rem, 9vw, 9rem)) 0 clamp(4rem, 7vw, 7rem); background: #061528; color: #fff; isolation: isolate; }
.process-page-hero::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2,10,23,.78) 0%, rgba(2,12,27,.46) 58%, rgba(3,13,28,.22) 100%), linear-gradient(180deg, rgba(3,13,28,.18), rgba(3,13,28,.5)); content: ""; }
.process-page-hero::after { position: absolute; right: -8rem; bottom: -14rem; z-index: 0; width: 34rem; height: 34rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); content: ""; }
.process-page-hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.08) contrast(1.08); transform: scale(1.015); }
.process-page-hero-inner { position: relative; z-index: 1; display: grid; max-width: 76rem; gap: 1.5rem; }
.process-page-hero .eyebrow { color: #c9ee63; }
.process-page-hero h1 { max-width: 68rem; font-size: clamp(4rem, 8.2vw, 8.5rem); font-weight: 750; letter-spacing: -.085em; line-height: .82; }
.process-page-lede { max-width: 48rem; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.process-page-summary { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.process-page-summary span { display: inline-flex; min-height: 2.8rem; align-items: center; gap: .6rem; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(8,19,34,.34); color: rgba(255,255,255,.86); font-size: .72rem; font-weight: 700; box-shadow: inset 0 1px rgba(255,255,255,.22); backdrop-filter: blur(1rem) saturate(1.25); -webkit-backdrop-filter: blur(1rem) saturate(1.25); }
.process-page-summary strong { color: #c9ee63; font-size: .62rem; letter-spacing: .08em; }
.process-page-grid,
.process-page-grid.container { display: grid; width: 100%; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .4rem; padding-inline: .4rem; }
.process-page-card { position: relative; display: grid; min-height: clamp(34rem, 44vw, 46rem); align-content: start; justify-items: center; gap: 1.4rem; overflow: hidden; padding: clamp(5.5rem, 7vw, 7rem) clamp(2rem, 5vw, 5rem) clamp(2.5rem, 4vw, 4rem); border: 1px solid #e1e5ea; border-radius: 0; background: #fff; box-shadow: 0 1.5rem 4rem rgba(41,58,77,.06); text-align: center; }
.process-page-card:nth-child(2), .process-page-card:nth-child(3) { background: linear-gradient(145deg, #e5f6ff, #f5fbff); }
.process-page-card:nth-child(4) { background: linear-gradient(145deg, #101722, #030609); color: #fff; }
.process-page-card::before { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle 18rem at var(--card-light-x, 50%) var(--card-light-y, 38%), rgba(77,178,255,.13), transparent 72%); opacity: 0; content: ""; pointer-events: none; transition: opacity .45s ease; }
.process-page-card > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .process-page-card:hover::before { opacity: 1; } }
.process-page-number { position: absolute; top: 1.5rem; left: 1.5rem; display: grid; width: 3.4rem; height: 3.4rem; place-items: center; border: 1px solid rgba(0,113,227,.22); border-radius: 50%; color: #0071e3; font-size: .75rem; font-weight: 800; letter-spacing: -.02em; }
.process-page-card:nth-child(4) .process-page-number { border-color: rgba(255,255,255,.28); color: #c9ee63; }
.process-page-card-copy .eyebrow { color: #617d00; }
.process-page-card h2 { margin: .8rem auto 0; max-width: 34rem; font-size: clamp(2.8rem, 4.4vw, 5rem); letter-spacing: -.075em; line-height: .88; }
.process-page-card-copy > p:last-child { max-width: 34rem; margin: 1.25rem auto 0; color: #596373; font-size: clamp(.9rem, 1.15vw, 1.05rem); }
.process-page-card:nth-child(4) .process-page-card-copy > p:last-child { color: rgba(255,255,255,.68); }
.process-page-card ul { display: grid; width: min(100%, 30rem); gap: 0; margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid #dce2e8; text-align: left; }
.process-page-card:nth-child(4) ul { border-color: rgba(255,255,255,.16); }
.process-page-card li { padding: 1rem 0; border-bottom: 1px solid #dce2e8; color: #3f4957; font-size: .82rem; font-weight: 650; }
.process-page-card:nth-child(4) li { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.82); }
.process-page-card li::before { margin-right: .65rem; color: #0071e3; content: "\2192"; }
.process-page-example { display: grid; width: min(100%, 30rem); gap: .35rem; margin-top: .65rem; padding: 1rem 1.05rem; border: 1px solid rgba(0,113,227,.12); background: rgba(255,255,255,.5); color: #5a6574; text-align: left; }
.process-page-example strong { color: #0071e3; font-size: .6rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.process-page-example span { font-size: .72rem; line-height: 1.5; }
.process-page-card:nth-child(4) .process-page-example { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.055); color: rgba(255,255,255,.7); }
.process-page-card:nth-child(4) .process-page-example strong { color: #c9ee63; }
.process-motion-ready .process-page-card { opacity: 0; transform: translateY(2rem); transition: opacity .75s ease, transform .9s var(--ease-out); }
.process-motion-ready .process-page-card.is-process-visible { opacity: 1; transform: translateY(0); }
.process-motion-ready .process-page-card > :not(.process-page-number) { opacity: 0; transform: translateY(1rem); transition: opacity .55s ease, transform .7s var(--ease-out); }
.process-motion-ready .process-page-card.is-process-visible .process-page-card-copy { opacity: 1; transform: none; transition-delay: .14s; }
.process-motion-ready .process-page-card.is-process-visible ul { opacity: 1; transform: none; transition-delay: .28s; }
.process-motion-ready .process-page-card.is-process-visible .process-page-example { opacity: 1; transform: none; transition-delay: .4s; }
.process-page-progress { position: fixed; top: 50%; right: .85rem; z-index: 80; display: grid; justify-items: center; gap: .45rem; color: #637083; font-size: .56rem; font-weight: 850; font-variant-numeric: tabular-nums; transform: translateY(-50%); }
.process-page-progress i { display: block; width: 1px; height: 3.5rem; background: linear-gradient(#0071e3, rgba(0,113,227,.16)); }
.process-page-progress span:first-child { color: #0071e3; }
.process-page-return { display: grid; min-height: 30rem; place-content: center; justify-items: center; gap: 1rem; margin: .4rem .4rem 0; padding: 4rem 1.5rem; background: linear-gradient(145deg, #e5f6ff, #f8fcff); text-align: center; }
.process-page-return h2 { max-width: 52rem; font-size: clamp(3rem, 6vw, 6.5rem); letter-spacing: -.075em; line-height: .9; }
.process-page-return-link { display: inline-flex; min-height: 3.2rem; align-items: center; gap: .65rem; margin-top: .8rem; padding: .75rem 1.1rem; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: linear-gradient(100deg, rgba(37,38,41,.78), rgba(92,124,131,.66), rgba(36,38,42,.78)); box-shadow: inset 0 1px rgba(255,255,255,.5), 0 .8rem 2rem rgba(31,54,65,.2); color: #fff; text-decoration: none; font-size: .78rem; font-weight: 800; backdrop-filter: blur(1rem); transition: transform var(--duration-fast), box-shadow var(--duration-fast); }
.process-page-return-link:hover { box-shadow: inset 0 1px rgba(255,255,255,.7), 0 1rem 2.4rem rgba(31,54,65,.28); transform: translateY(-2px); }

/* Progressive motion states */
.reveal { opacity: 1; }
.motion-ready .reveal:not(.is-visible) { opacity: 0; }
.reveal.is-visible { opacity: 1; }

[data-theme="light"] .button--quiet, [data-theme="light"] .hero-role-list span { background: rgba(255,255,255,.5); }
[data-theme="light"] .hero-section .hero-role-list span { background: rgba(10,15,13,.32); }
[data-theme="light"] .hero-device, [data-theme="light"] .workspace-lid { border-color: rgba(26,33,45,.22); }
[data-theme="light"] .contact-panel { background: rgba(255,255,255,.72); }
[data-theme="light"] .form-field input, [data-theme="light"] .form-field textarea, [data-theme="light"] .form-field select { background-color: rgba(255,255,255,.62); }
[data-theme="light"] .form-field select { color-scheme: light; }
[data-theme="light"] .form-field select option { background: #ffffff; color: #141923; }
[data-theme="light"] .footer-art-image { filter: saturate(.72) contrast(1.02); }

/* Responsive composition */
@media (max-width: 1180px) {
  .hero-shell { grid-template-columns: minmax(17rem, .72fr) minmax(26rem, 1.28fr); gap: 2rem; }
  .hero-copy h1 { font-size: clamp(3.7rem, 7.5vw, 6.5rem); }
  .real-work-layout { grid-template-columns: minmax(18rem, .82fr) minmax(25rem, 1.18fr); }
  .contact-shell { gap: 3rem; }
}

@media (max-width: 980px) {
  :root { --header-h: 5rem; }
  .brand-copy small { display: none; }
  .nav-menu a { padding-inline: .65rem; }
  .real-work-layout { grid-template-columns: 1fr; }
  .real-work-copy-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .real-work-gallery-panel { min-height: 48rem; }
  .real-work-featured img { min-height: 38rem; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-card:last-child { grid-column: 1 / -1; min-height: 18rem; }
  .process-card:last-child h3 { margin-top: 3rem; }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-head { position: static; max-width: 48rem; }
  .contact-panel { max-width: 52rem; }
  .process-page-grid { grid-template-columns: 1fr; }
  .process-page-card:last-child { grid-column: auto; }
}

@media (max-width: 820px) {
  :root { --gutter: clamp(.85rem, 4vw, 1.4rem); --header-h: 4.8rem; }
  html { scroll-padding-top: calc(var(--header-h) + .8rem); }
  .site-header { padding: .55rem 0; }
  .cv-header { top: .4rem; width: calc(100% - .8rem); margin-top: .4rem; }
  .cv-main { width: calc(100% - .8rem); }
  .cv-hero { min-height: auto; grid-template-columns: 1fr; padding: 5rem 1.4rem 2rem; }
  .cv-at-a-glance { grid-template-columns: 1fr 1fr; }
  .cv-section-nav { top: 5.5rem; justify-content: flex-start; overflow-x: auto; }
  .cv-section { padding: 4rem 1.35rem; }
  .cv-role-detail { grid-template-columns: 1fr; padding-left: 1.2rem; }
  .cv-role-tools { grid-column: 1; }
  .cv-skill-grid, .cv-education-grid, .cv-project-proof > div { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .footer-shell { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto; }
  .footer-intro, .footer-cta, .footer-directory, .footer-base { grid-column: 1; }
  .footer-cta { padding: 5rem 0 3rem; }
  .footer-directory { padding: 2rem 0 4rem; }
  .header-shell { position: relative; min-height: 3.8rem; padding: .42rem .48rem .42rem .58rem; border-radius: 1.15rem; }
  .brand-mark { width: 2.65rem; height: 2.65rem; }
  .brand-copy strong { font-size: .84rem; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    gap: .25rem;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
    box-shadow: var(--shadow-deep);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.6rem) scale(.985);
    transform-origin: top;
    transition: opacity var(--duration-ui), transform var(--duration-ui) var(--ease-out);
    backdrop-filter: blur(1.5rem);
  }
  .nav-menu.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
  .nav-active-pill { display: none; }
  .nav-menu a.is-active { color: #11151b; background: #fff; }
  .nav-menu a { min-height: 3.15rem; padding: .85rem 1rem; }
  .nav-menu a::after { right: 1rem; left: 1rem; }

  .floating-tools { right: .7rem; bottom: .7rem; }
  .tool-btn { width: 2.75rem; height: 2.75rem; }

  .hero-section { min-height: auto; }
  .hero-sticky { position: relative; min-height: auto; overflow: visible; padding: calc(var(--header-h) + 3rem) 0 5rem; }
  .hero-shell { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { max-width: 42rem; }
  .hero-copy h1 { font-size: clamp(3.6rem, 16vw, 7rem); }
  .hero-subtitle { max-width: 38rem; }
  .hero-device-wrap { width: min(100%, 45rem); margin-inline: auto; }
  .hero-device { width: 100%; border-radius: clamp(1.3rem, 5vw, 2.2rem); }
  .hero-device-screen { border-radius: clamp(.9rem, 4vw, 1.55rem); }
  .hero-depth-caption { display: none; }
  .hero-bg { background-position: 58% top; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,9,8,.28), rgba(5,9,8,.55) 46%, rgba(5,9,8,.94) 96%); }

  .transition-section { padding: 7rem 0; }
  .marquee-group span { padding-block: 1rem; }

  .showcase-section, .process-section, .experience-section, .contact-section { padding-block: 6.5rem; }
  .showcase-section { padding-block: 4.5rem; }
  .showcase-copy, .section-head { margin-bottom: 3rem; }
  .showcase-copy { margin-bottom: 2rem; }
  .real-work-card { flex-basis: min(88vw, 44rem); min-height: 44rem; grid-template-columns: 1fr; grid-template-rows: auto minmax(20rem, 1fr); }
  .real-work-meta { min-height: 0; grid-column: 1; grid-row: 1; align-content: start; padding: 2.2rem 2.2rem 1rem; }
  .real-work-meta h3 { max-width: none; font-size: clamp(2.7rem, 9vw, 4.6rem); }
  .real-work-thumb { height: auto; grid-column: 1; grid-row: 2; padding: .5rem 1.25rem 1.25rem; }
  .real-work-gallery-panel { min-height: 40rem; }
  .real-work-featured img { min-height: 30rem; }

  .workspace-section { padding: 6.5rem 0; }
  .workspace-reveal { display: none; }
  .workspace-stage { display: none; }
  .mobile-project-links { display: grid; gap: .9rem; margin-top: 2.5rem; }
  .mobile-project-link { position: relative; display: grid; min-height: 11rem; overflow: hidden; grid-template-columns: 8rem 1fr auto; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem .75rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--surface); text-decoration: none; box-shadow: var(--shadow-soft); transition: border-color var(--duration-ui), transform var(--duration-ui) var(--ease-out); }
  .mobile-project-link:hover { border-color: var(--line-strong); transform: translateY(-.25rem); }
  .mobile-project-preview { width: 8rem; height: 9.5rem; overflow: hidden; border-radius: 1rem; background: #080b10; }
  .mobile-project-preview img { width: 100%; height: 100%; padding: .35rem; object-fit: contain; }
  .mobile-project-link > span:nth-child(2) { display: grid; gap: .2rem; }
  .mobile-project-link small { color: var(--accent); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-project-link strong { font-size: clamp(1.15rem, 4vw, 1.55rem); letter-spacing: -.04em; }
  .mobile-project-link > span:nth-child(2) > span { color: var(--text-soft); font-size: .72rem; }
  .mobile-project-link > i { color: var(--accent); }

  .experience-grid { grid-template-columns: 1fr; }
  .experience-card:first-child { grid-row: auto; min-height: 24rem; }
  .experience-card h3, .experience-card:first-child h3 { margin-top: 4rem; }
  .contact-head h2 { font-size: clamp(2.9rem, 12vw, 5.4rem); }
}

@media (max-width: 620px) {
  .cv-header { align-items: stretch; flex-direction: column; border-radius: 1rem; }
  .cv-brand { display: none; }
  .cv-header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cv-header-actions a, .cv-header-actions button { justify-content: center; }
  .cv-hero h1 { font-size: clamp(3.6rem, 17vw, 5.4rem); }
  .cv-contact-links { display: grid; grid-template-columns: 1fr 1fr; }
  .cv-contact-links a, .cv-contact-links > span { justify-content: center; }
  .cv-at-a-glance span { min-height: 7rem; }
  .cv-section-nav { top: 7.6rem; }
  .cv-section-heading h2, .cv-project-proof h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .cv-role-card summary { grid-template-columns: 3rem minmax(0, 1fr) 1rem; padding-inline: .75rem; }
  .cv-company-logo { width: 2.8rem; height: 2.8rem; }
  .cv-role-detail { padding: 0 .75rem .9rem; }
  .cv-skill-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .35rem; }
  .cv-skill-filters button { flex: 0 0 auto; }
  .cv-development-list { grid-template-columns: 1fr; }
  .cv-development-list span:nth-child(odd) { margin-right: 0; }
  .social-card { min-height: 12rem; grid-template-columns: 3rem minmax(0, 1fr) 2.6rem; padding: 1.1rem; }
  .process-page-hero { padding-top: calc(var(--header-h) + 4rem); }
  .process-page-hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .process-page-summary { display: grid; }
  .process-page-card { min-height: 32rem; padding: 5.25rem 1.35rem 2rem; }
  .hero-copy h1 { margin-block: 1rem; }
  .hero-role-list { gap: .35rem; }
  .hero-role-list span { font-size: .6rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-device { padding: .55rem; }
  .hero-slide-poster { padding: .65rem .65rem 4.3rem; }
  .hero-slide-label { right: 1rem; bottom: .85rem; left: 1rem; }
  .hero-slide-label small { display: none; }
  .hero-gallery-ui { top: .8rem; right: .8rem; left: .8rem; }
  .boot-ring { width: 2.6rem; height: 2.6rem; margin: 1rem 0; }
  .boot-arrow { display: none; }

  .showcase-section { padding-block: 3.5rem; }
  .showcase-copy { margin-bottom: 1.75rem; }
  .showcase-copy h2 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .showcase-copy > p:last-child { font-size: .93rem; }
  .showcase-carousel-bar > p span { display: none; }
  .showcase-carousel-button { width: 2.9rem; height: 2.9rem; }
  .real-work-grid { gap: .8rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .real-work-card, .real-work-card:last-child { flex-basis: calc(100vw - 2rem); min-height: 40rem; grid-template-columns: 1fr; grid-template-rows: auto minmax(17rem, 1fr); }
  .real-work-meta { min-height: 0; padding: 2rem 1.35rem .75rem; }
  .real-work-meta h3 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .real-work-meta p { font-size: .8rem; }
  .real-work-thumb { height: auto; padding: .4rem .75rem .75rem; }
  .real-work-detail { border-radius: 1.45rem; }
  .real-work-copy-panel { padding: 1.15rem; }
  .real-work-detail-top { align-items: flex-start; }
  .real-work-detail-close span { display: none; }
  .real-work-detail-close { width: 2.75rem; justify-content: center; padding: 0; }
  .real-work-copy-panel > h3 { font-size: clamp(2.35rem, 13vw, 4rem); }
  .real-work-note { padding-left: 2.8rem; }
  .real-work-gallery-panel { min-height: 34rem; padding: .7rem; }
  .real-work-featured { border-radius: 1rem; }
  .real-work-featured img { min-height: 23rem; padding: .45rem; }
  .real-work-featured-copy span { display: none; }
  .real-work-carousel-bar { grid-template-columns: 1fr auto; }
  .real-work-carousel-stat:nth-child(2), .real-work-progress { grid-row: 2; }
  .real-work-progress { min-width: 6rem; }
  .real-work-carousel-controls { grid-row: 1 / 3; grid-column: 2; }

  .mobile-project-link { min-height: 9rem; grid-template-columns: 6.3rem 1fr auto; padding: .6rem .75rem .6rem .6rem; }
  .mobile-project-preview { width: 6.3rem; height: 7.8rem; }

  .process-grid, .process-page-grid { grid-template-columns: 1fr; }
  .process-page-progress { display: none; }
  .process-card, .process-card:last-child, .process-page-card:last-child { grid-column: auto; min-height: 19rem; }
  .process-page-card { min-height: 34rem; gap: 1.1rem; }
  .process-card h3, .process-card:last-child h3 { margin-top: 3.5rem; }
  .contact-field-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: .7rem; border-radius: 1.5rem; }
  .contact-bar { align-items: stretch; flex-direction: column; }
  .contact-options { padding: .55rem .4rem .2rem; }
  .create-btn { justify-content: center; width: 100%; }
  .footer-intro { align-items: flex-start; flex-direction: column; }
  .footer-directory { grid-template-columns: 1fr 1fr; }
  .footer-base { align-items: flex-start; flex-direction: column; padding-bottom: 4rem; }
  .footer-base > div { width: 100%; justify-content: space-between; }
  .gallery-lightbox { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .gallery-lightbox-figure { padding: 3.8rem .6rem .5rem; }
}

@media (max-width: 380px) {
  .brand-copy strong { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .process-page-body .header-shell { gap: .45rem; }
  .process-page-body .brand { gap: .45rem; }
  .process-page-body .brand-mark { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; }
  .process-page-body .brand-copy strong { max-width: none; font-size: .75rem; }
  .hero-copy h1 { font-size: 3.55rem; }
  .hero-subtitle { font-size: .96rem; }
  .hero-role-list span:last-child { display: none; }
  .hero-device-screen { aspect-ratio: 1.25 / 1; }
  .mobile-project-link { grid-template-columns: 5rem 1fr auto; }
  .mobile-project-preview { width: 5rem; height: 6.7rem; }
}

/* Site-wide liquid-glass button system */
:is(
  .button,
  .tool-btn,
  .nav-toggle,
  .marquee-toggle,
  .showcase-carousel-button,
  .real-work-detail-close,
  .real-work-nav-btn,
  .workspace-reveal,
  .browser-action,
  .dock-item,
  .create-btn,
  .gallery-lightbox-close
) {
  border-color: rgba(255,255,255,.48);
  background:
    radial-gradient(circle at 26% 4%, rgba(255,255,255,.34), transparent 35%),
    linear-gradient(100deg, rgba(37,38,41,.76), rgba(110,139,144,.5) 56%, rgba(41,42,45,.74));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.58),
    inset 0 -1px 0 rgba(0,0,0,.3),
    inset 0 0 1.1rem rgba(194,227,232,.12),
    0 .6rem 1.5rem rgba(0,0,0,.2);
  color: rgba(255,255,255,.94);
  backdrop-filter: blur(1.15rem) saturate(150%);
  -webkit-backdrop-filter: blur(1.15rem) saturate(150%);
}

:is(
  .button,
  .tool-btn,
  .nav-toggle,
  .marquee-toggle,
  .showcase-carousel-button,
  .real-work-detail-close,
  .real-work-nav-btn,
  .workspace-reveal,
  .browser-action,
  .dock-item,
  .create-btn,
  .gallery-lightbox-close
):hover {
  border-color: rgba(255,255,255,.74);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    inset 0 -1px 0 rgba(0,0,0,.25),
    inset 0 0 1.4rem rgba(207,239,244,.2),
    0 .8rem 1.8rem rgba(0,0,0,.27);
}

/* Pale glass: light actions and controls on bright sections. */
:is(.hero-section .button--primary, .workspace-reveal, .showcase-carousel-button, .marquee-toggle) {
  border-color: rgba(255,255,255,.8);
  background:
    radial-gradient(circle at 25% 4%, rgba(255,255,255,.96), transparent 38%),
    linear-gradient(105deg, rgba(255,255,255,.82), rgba(220,236,238,.64) 58%, rgba(255,255,255,.76));
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(80,96,100,.2), inset 0 0 1rem rgba(255,255,255,.48), 0 .6rem 1.5rem rgba(39,69,78,.14);
  color: #171b1d;
}

/* Green glass: primary conversion actions retain the portfolio accent. */
:is(.button--primary:not(.hero-section .button--primary), .button--case, .create-btn, .browser-action--link) {
  border-color: rgba(235,255,185,.74);
  background:
    radial-gradient(circle at 26% 4%, rgba(255,255,255,.65), transparent 36%),
    linear-gradient(105deg, rgba(126,169,26,.88), rgba(201,238,99,.8) 50%, rgba(102,145,20,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), inset 0 -1px 0 rgba(52,78,0,.42), inset 0 0 1.2rem rgba(238,255,188,.28), 0 .65rem 1.55rem rgba(67,99,0,.23);
  color: #101608;
}

:is(.button--primary:not(.hero-section .button--primary), .button--case, .create-btn, .browser-action--link):hover {
  border-color: rgba(247,255,224,.98);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(52,78,0,.34), inset 0 0 1.5rem rgba(245,255,215,.42), 0 .85rem 1.9rem rgba(67,99,0,.32);
}

/* Keep semantic state colours while giving selected controls glass depth. */
.showcase-carousel-button--autoplay[aria-pressed="true"] {
  border-color: rgba(173,218,255,.72);
  background: radial-gradient(circle at 28% 5%, rgba(255,255,255,.48), transparent 36%), linear-gradient(105deg, rgba(0,92,190,.86), rgba(61,161,235,.7), rgba(0,91,184,.86));
  color: #fff;
}
.dock-item:hover, .dock-item.is-active { color: #dfff82; }
.dock-item--power, .dock-item--power:hover { color: #ffaaa5; }

/* High-contrast glass controls remain legible over every video frame. */
.floating-tools {
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(135deg, rgba(12,22,38,.86), rgba(35,58,78,.72));
  box-shadow: inset 0 1px rgba(255,255,255,.34), 0 .75rem 2rem rgba(4,12,24,.3);
  color: #fff;
  -webkit-backdrop-filter: blur(1.25rem) saturate(150%);
  backdrop-filter: blur(1.25rem) saturate(150%);
}
.tool-btn {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.2);
}
.tool-btn:hover {
  border-color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.2);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.tool-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0,113,227,.85);
}
.tool-btn[aria-pressed="true"] {
  border-color: rgba(151,213,255,.9);
  background: #0071e3;
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.38), 0 .35rem 1rem rgba(0,75,160,.35);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js-enabled .hero-copy .eyebrow, .js-enabled .hero-copy h1 span, .js-enabled .hero-subtitle, .js-enabled .hero-role-list, .js-enabled .hero-actions, .js-enabled .hero-socials, .js-enabled .hero-device-wrap { opacity: 1; transform: none; }
  .hero-section { min-height: auto; }
  .hero-sticky { position: relative; min-height: auto; padding-bottom: 5rem; }
  .hero-boot-state, .hero-logo-state, .hero-close-cover { display: none; }
  .hero-gallery, .hero-gallery-ui { visibility: visible !important; opacity: 1 !important; }
  .hero-device, .hero-device-wrap, .workspace-laptop, .real-work-card { transform: none !important; }
  .marquee-track { animation: none !important; transform: none !important; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .footer-art-image { animation: none !important; }
  .hero-pointer-glow { display: none; }
}

/* Interactive CV polish: full-width enclosed layout, blue accents and readable type. */
.cv-page-body { padding: 0 .45rem .45rem; background: #e8edf3; font-size: 17px; }
.cv-site-header { position: fixed; top: 0; left: 0; padding-top: .45rem; background: transparent; }
.cv-site-header .header-shell { width: min(calc(100% - .9rem), 100rem); }
.cv-site-header .nav-menu a.is-active { color: #11151b; background: rgba(255,255,255,.88); box-shadow: inset 0 1px rgba(255,255,255,.9), 0 .35rem 1rem rgba(0,0,0,.14); }
.cv-page-body .eyebrow { color: #0071e3; }
.cv-main { width: 100%; max-width: none; overflow: hidden; margin: .45rem auto 0; border: 1px solid #cfd9e3; background: #fff; box-shadow: 0 1.4rem 4rem rgba(28,49,67,.12); }
.cv-hero { min-height: min(49rem, calc(100vh - 6rem)); padding: clamp(3.5rem, 6vw, 7rem) clamp(2rem, 7vw, 9rem); border-bottom: 1px solid #cbddea; background: radial-gradient(circle at 82% 18%, rgba(84,183,255,.38), transparent 30rem), linear-gradient(145deg, #dff3ff, #f8fcff); }
.cv-hero-copy { max-width: 70rem; }
.cv-hero h1 { font-size: clamp(5rem, 9vw, 10rem); }
.cv-role { font-size: clamp(1rem, 1.35vw, 1.25rem); }
.cv-profile { max-width: 66rem; font-size: clamp(1.05rem, 1.2vw, 1.22rem); line-height: 1.75; }
.cv-contact-links a,
.cv-contact-links > span,
.cv-save-action { min-height: 3.2rem; padding: .7rem 1rem; font-size: .82rem; -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem); }
.cv-contact-links a,
.cv-contact-links > span { border-color: rgba(0,113,227,.2); background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(225,244,255,.65)); box-shadow: inset 0 1px #fff, 0 .55rem 1.4rem rgba(20,79,119,.08); }
.cv-contact-links a:hover { border-color: rgba(0,113,227,.48); transform: translateY(-2px); }
.cv-at-a-glance { gap: .8rem; }
.cv-at-a-glance span { min-height: 11rem; padding: 1.5rem; border-color: rgba(0,113,227,.2); background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(233,247,255,.6)); box-shadow: inset 0 1px #fff, 0 .8rem 2rem rgba(23,86,130,.08); }
.cv-at-a-glance strong { color: #0071e3; font-size: clamp(3rem, 4.5vw, 5rem); }
.cv-at-a-glance small { color: #4e5d70; font-size: .82rem; }
.cv-stat { opacity: 0; transition: opacity .4s ease; }
.cv-stat.is-stat-visible { opacity: 1; }
.cv-stat--ratio { display: flex; }
.cv-stat--ratio i { opacity: 0; font-style: normal; transform: translateY(.35rem); transition: opacity .32s ease, transform .32s var(--ease-out); }
.cv-stat--ratio i.is-stat-part-visible { opacity: 1; transform: translateY(0); }
.cv-section-nav { position: relative; top: auto; z-index: 2; min-height: 4.5rem; align-items: center; gap: .55rem; margin: .45rem 0 0; padding: .65rem; border-color: rgba(255,255,255,.75); background: linear-gradient(100deg, rgba(235,247,255,.8), rgba(255,255,255,.68), rgba(218,241,255,.8)); box-shadow: inset 0 1px #fff, 0 .7rem 1.8rem rgba(29,77,110,.1); -webkit-backdrop-filter: blur(1.35rem) saturate(150%); backdrop-filter: blur(1.35rem) saturate(150%); }
.cv-section-nav a { padding: .75rem 1rem; border: 1px solid transparent; color: #31465c; font-size: .82rem; }
.cv-section-nav a:hover,
.cv-section-nav a:focus-visible { border-color: rgba(0,113,227,.25); background: rgba(255,255,255,.72); color: #006edb; box-shadow: inset 0 1px #fff, 0 .45rem 1.1rem rgba(23,75,111,.1); }
.cv-section { margin-top: .45rem; padding: clamp(4.5rem, 7vw, 8rem) clamp(2rem, 7vw, 9rem); border: 1px solid #d3e0ea; }
.cv-section:nth-of-type(even) { background: linear-gradient(145deg, #e3f5ff, #f8fcff); }
.cv-section-heading { max-width: 76rem; gap: 1.25rem; margin-bottom: 3.5rem; }
.cv-section-heading > p:last-child { max-width: 55rem; color: #526174; font-size: 1.1rem; line-height: 1.65; }
.cv-role-card { border-color: #cedce8; background: rgba(255,255,255,.82); box-shadow: 0 .5rem 1.6rem rgba(24,65,94,.045); }
.cv-role-card summary { min-height: 7.5rem; grid-template-columns: 4.4rem minmax(0, 1fr) 2.5rem; gap: 1.25rem; padding: 1.2rem 1.5rem; }
.cv-company-logo { width: 4.2rem; height: 4.2rem; overflow: hidden; border: 1px solid #d7e1e9; border-radius: 1rem; background: #fff; box-shadow: inset 0 1px #fff, 0 .4rem 1rem rgba(15,52,78,.1); }
.cv-company-logo img { width: 100%; height: 100%; padding: .3rem; object-fit: contain; }
.cv-role-card summary strong { font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.cv-role-card summary small { margin-top: .18rem; color: #58687a; font-size: .86rem; }
.cv-role-card summary > i { color: #0071e3; }
.cv-role-detail { gap: 1.15rem; padding: 0 1.5rem 1.7rem 7.1rem; }
.cv-role-detail > div:not(.cv-role-tools),
.cv-role-detail > p,
.cv-role-detail > ul { padding: 1.35rem; border-color: #dbe5ed; background: #f7fbfe; }
.cv-role-detail h3 { font-size: 1.02rem; }
.cv-role-detail p,
.cv-role-detail li { color: #4e5d6e; font-size: .96rem; line-height: 1.7; }
.cv-role-tools span { padding: .55rem .72rem; background: #e1f2ff; color: #006bcf; font-size: .72rem; }
.cv-skill-filters { gap: .6rem; margin-bottom: 1.4rem; }
.cv-skill-filters button { min-height: 3.15rem; padding: .65rem 1rem; border-color: rgba(0,113,227,.18); background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(228,245,255,.7)); color: #3f5265; font-size: .82rem; box-shadow: inset 0 1px #fff, 0 .4rem 1rem rgba(20,78,117,.07); -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem); }
.cv-skill-filters button.is-active { border-color: rgba(0,113,227,.65); background: linear-gradient(135deg, #1187ee, #0065ca); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.35), 0 .65rem 1.5rem rgba(0,113,227,.22); }
.cv-skill { border-color: #d1e0ea; background: rgba(255,255,255,.84); }
.cv-skill summary { min-height: 5.25rem; grid-template-columns: 2.4rem 1fr 1.25rem; gap: .9rem; padding: 1rem 1.2rem; font-size: .96rem; }
.cv-skill summary img,
.cv-skill-icon { width: 2rem; height: 2rem; }
.cv-skill summary > i { color: #0071e3; }
.cv-skill > p { padding: 0 1.2rem 1.25rem 4.5rem; color: #536375; font-size: .9rem; line-height: 1.65; }
.cv-education-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
.cv-education-grid article { min-height: 30rem; align-content: space-between; gap: 4rem; padding: clamp(2rem, 4vw, 4rem); border-color: #cedde8; background: rgba(255,255,255,.84); }
.cv-education-meta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cv-education-logo { display: grid; width: clamp(9rem, 16vw, 15rem); height: 6rem; place-items: center; }
.cv-education-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.cv-education-meta .eyebrow { flex: 0 0 auto; font-size: .8rem; }
.cv-education-grid h3 { margin: 0 0 1.25rem; font-size: clamp(2.5rem, 4vw, 4.8rem); line-height: .95; }
.cv-education-copy > p { color: #526174; font-size: 1.1rem; }
.cv-development-list span { padding: 1.5rem 0; color: #34485b; font-size: 1rem; }
.cv-project-proof { margin-top: .45rem; padding-inline: clamp(2rem, 7vw, 9rem); }
.cv-project-proof a { padding: 1.5rem; font-size: 1.25rem; }
.cv-project-proof a span { color: #59b8ff; font-size: .8rem; }

@media (max-width: 820px) {
  .cv-page-body { padding-inline: .25rem; }
  .cv-header { width: calc(100% - .5rem); }
  .cv-main { width: 100%; }
  .cv-hero { grid-template-columns: 1fr; padding: 5rem 1.4rem 2.5rem; }
  .cv-at-a-glance { grid-template-columns: 1fr 1fr; }
  .cv-section { padding: 4.5rem 1.35rem; }
  .cv-role-detail { grid-template-columns: 1fr; padding: 0 1rem 1rem; }
  .cv-role-tools { grid-column: 1; }
  .cv-skill-grid,
  .cv-education-grid,
  .cv-project-proof > div { grid-template-columns: 1fr; }
  .cv-education-grid article { min-height: 25rem; }
}

@media (max-width: 620px) {
  .cv-header { align-items: stretch; flex-direction: column; }
  .cv-header-actions { grid-template-columns: 1fr 1fr; }
  .cv-section-nav { justify-content: flex-start; overflow-x: auto; }
  .cv-section-nav a { flex: 0 0 auto; }
  .cv-role-card summary { grid-template-columns: 3.4rem minmax(0, 1fr) 1.2rem; padding-inline: .85rem; }
  .cv-company-logo { width: 3.3rem; height: 3.3rem; }
  .cv-education-meta { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .cv-education-logo { width: 11rem; height: 5rem; }
}

/* Universal dark theme: standalone pages and fixed-colour homepage sections. */
[data-theme="dark"] .transition-section { border-color: #07090d; background: linear-gradient(180deg, #0e141c, #080b10); color: #f5f7fb; }
[data-theme="dark"] .transition-lockup p { color: #aab4c3; }
[data-theme="dark"] .marquee-section,
[data-theme="dark"] .marquee-shell { border-color: rgba(255,255,255,.1); background: #090d13; color: #edf2f8; }
[data-theme="dark"] .marquee-toggle { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; }
[data-theme="dark"] .showcase-section { background: linear-gradient(180deg, #081522 0%, #0a1c2b 52%, #071018 100%); color: #f5f7fb; }
[data-theme="dark"] .showcase-copy > p:last-child,
[data-theme="dark"] .showcase-carousel-bar > p span { color: #9fabb9; }
[data-theme="dark"] .showcase-carousel-bar > p strong { color: #f5f7fb; }
[data-theme="dark"] .showcase-carousel-button { border-color: rgba(112,207,255,.2); background: rgba(255,255,255,.075); color: #fff; box-shadow: 0 .7rem 1.8rem rgba(0,0,0,.2); }
[data-theme="dark"] .workspace-section { background: linear-gradient(180deg, #071018 0%, #0a1a27 50%, #060b11 100%); color: #f5f7fb; }
[data-theme="dark"] .workspace-copy > p:last-of-type { color: #a5b1bf; }
[data-theme="dark"] .workspace-section .eyebrow-dark { color: #70cfff; }
[data-theme="dark"] .workspace-reveal { border-color: rgba(112,207,255,.25); background: rgba(15,25,35,.78); color: #f5f7fb; }
[data-theme="dark"] .workspace-reveal small { color: #a5b1bf; }
[data-theme="dark"] .social-section { background: linear-gradient(180deg, #071018, #091725); color: #f5f7fb; }
[data-theme="dark"] .social-section .section-head > p:last-child { color: #9da9b9; }
[data-theme="dark"] .social-card { border-color: rgba(255,255,255,.12); background: rgba(17,25,35,.78); color: #f5f7fb; box-shadow: 0 1rem 3rem rgba(0,0,0,.2); }
[data-theme="dark"] .social-card::before { opacity: .45; }
[data-theme="dark"] .social-card small { color: #9da9b9; }

[data-theme="dark"] .process-page-body { background: #05070a; color: #f3f6fa; }
[data-theme="dark"] .process-page-main,
[data-theme="dark"] .process-page-grid { background: #05070a; }
[data-theme="dark"] .process-page-card,
[data-theme="dark"] .process-page-card:nth-child(2),
[data-theme="dark"] .process-page-card:nth-child(3) { border-color: #26313d; background: linear-gradient(145deg, #111923, #0a0f16); color: #f5f7fb; box-shadow: 0 1.5rem 4rem rgba(0,0,0,.22); }
[data-theme="dark"] .process-page-card:nth-child(4) { border-color: #26313d; background: linear-gradient(145deg, #07111d, #020407); }
[data-theme="dark"] .process-page-card-copy > p:last-child,
[data-theme="dark"] .process-page-card:nth-child(4) .process-page-card-copy > p:last-child { color: #a6b1bf; }
[data-theme="dark"] .process-page-card ul,
[data-theme="dark"] .process-page-card li,
[data-theme="dark"] .process-page-card:nth-child(4) ul,
[data-theme="dark"] .process-page-card:nth-child(4) li { border-color: rgba(255,255,255,.13); color: #c8d0da; }
[data-theme="dark"] .process-page-example,
[data-theme="dark"] .process-page-card:nth-child(4) .process-page-example { border-color: rgba(112,207,255,.18); background: rgba(112,207,255,.055); color: #a9b5c3; }
[data-theme="dark"] .process-page-card-copy .eyebrow,
[data-theme="dark"] .process-page-example strong { color: #70cfff; }
[data-theme="dark"] .process-page-return { background: linear-gradient(145deg, #0d1823, #060a0f); color: #f5f7fb; }

[data-theme="dark"] .cv-page-body { background: #05070a; color: #f4f7fb; }
[data-theme="dark"] .cv-page-body .eyebrow { color: #70cfff; }
[data-theme="dark"] .cv-main { border-color: #26313d; background: #080c12; box-shadow: 0 1.4rem 4rem rgba(0,0,0,.32); }
[data-theme="dark"] .cv-hero { border-color: #263848; background: radial-gradient(circle at 82% 18%, rgba(21,133,214,.28), transparent 30rem), linear-gradient(145deg, #0b1926, #080d14); }
[data-theme="dark"] .cv-role,
[data-theme="dark"] .cv-profile { color: #b3bdca; }
[data-theme="dark"] .cv-contact-links a,
[data-theme="dark"] .cv-contact-links > span { border-color: rgba(112,207,255,.2); background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(50,130,181,.08)); color: #eaf2f9; box-shadow: inset 0 1px rgba(255,255,255,.14), 0 .55rem 1.4rem rgba(0,0,0,.15); }
[data-theme="dark"] .cv-at-a-glance span { border-color: rgba(112,207,255,.2); background: linear-gradient(145deg, rgba(24,37,51,.92), rgba(9,20,30,.78)); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 .8rem 2rem rgba(0,0,0,.18); }
[data-theme="dark"] .cv-at-a-glance strong { color: #70cfff; }
[data-theme="dark"] .cv-at-a-glance small { color: #a6b2c0; }
[data-theme="dark"] .cv-section-nav { border-color: rgba(255,255,255,.12); background: linear-gradient(100deg, rgba(20,34,47,.88), rgba(35,66,84,.68), rgba(14,27,39,.88)); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 .7rem 1.8rem rgba(0,0,0,.18); }
[data-theme="dark"] .cv-section-nav a { color: #c9d4df; }
[data-theme="dark"] .cv-section-nav a:hover,
[data-theme="dark"] .cv-section-nav a:focus-visible { border-color: rgba(112,207,255,.34); background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.2); }
[data-theme="dark"] .cv-section,
[data-theme="dark"] .cv-section:nth-of-type(even) { border-color: #24313d; background: linear-gradient(145deg, #0d141d, #080c12); }
[data-theme="dark"] .cv-section:nth-of-type(even) { background: linear-gradient(145deg, #0b1b29, #080d14); }
[data-theme="dark"] .cv-section-heading > p:last-child { color: #a7b2bf; }
[data-theme="dark"] .cv-role-card,
[data-theme="dark"] .cv-skill,
[data-theme="dark"] .cv-education-grid article { border-color: #273746; background: rgba(17,25,35,.86); box-shadow: 0 .5rem 1.6rem rgba(0,0,0,.14); }
[data-theme="dark"] .cv-role-card summary small { color: #a1adbb; }
[data-theme="dark"] .cv-role-detail > div:not(.cv-role-tools),
[data-theme="dark"] .cv-role-detail > p,
[data-theme="dark"] .cv-role-detail > ul { border-color: #2a3947; background: #101923; }
[data-theme="dark"] .cv-role-detail p,
[data-theme="dark"] .cv-role-detail li,
[data-theme="dark"] .cv-skill > p,
[data-theme="dark"] .cv-education-copy > p { color: #aab5c2; }
[data-theme="dark"] .cv-role-tools span { background: rgba(28,139,220,.16); color: #70cfff; }
[data-theme="dark"] .cv-skill-filters button { border-color: rgba(112,207,255,.18); background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(34,101,143,.08)); color: #c3ceda; box-shadow: inset 0 1px rgba(255,255,255,.12); }
[data-theme="dark"] .cv-skill-filters button.is-active { border-color: rgba(112,207,255,.62); background: linear-gradient(135deg, #168adf, #075ba8); color: #fff; }
[data-theme="dark"] .cv-company-logo,
[data-theme="dark"] .cv-education-logo { border-color: #344452; background: #fff; }
[data-theme="dark"] .cv-development-list span { border-color: #293744; color: #c2ccd7; }
[data-theme="dark"] .cv-project-proof a span { color: #70cfff; }

@media print {
  @page { margin: 12mm; size: A4; }
  .cv-page-body { background: #fff; color: #111; font-size: 9pt; }
  .cv-header, .cv-site-header, .cv-section-nav, .cv-skill-filters, .cv-save-action, .floating-tools, .skip-link { display: none !important; }
  .cv-main { width: 100%; margin: 0; }
  .cv-hero, .cv-section, .cv-project-proof { min-height: 0; margin: 0; padding: 8mm 0; background: #fff !important; color: #111; break-inside: avoid; }
  .cv-hero { grid-template-columns: 1fr; }
  .cv-hero h1 { font-size: 36pt; }
  .cv-at-a-glance { display: none; }
  .cv-contact-links a, .cv-contact-links > span { min-height: 0; padding: 2mm 3mm; border: 1px solid #aaa; }
  .cv-section-heading { margin-bottom: 5mm; }
  .cv-section-heading h2, .cv-project-proof h2 { font-size: 23pt; }
  .cv-role-card { break-inside: avoid; }
  .cv-role-card summary { min-height: 0; padding: 3mm 0; }
  .cv-role-card summary > i { display: none; }
  .cv-role-card .cv-role-detail { display: grid !important; grid-template-columns: 1fr; padding: 0 0 4mm; }
  .cv-role-detail > div:not(.cv-role-tools), .cv-role-detail > p, .cv-role-detail > ul { padding: 3mm; }
  .cv-skill-grid { grid-template-columns: 1fr 1fr; }
  .cv-skill { break-inside: avoid; }
  .cv-skill > p { display: block !important; }
  .cv-project-proof > div { grid-template-columns: repeat(3, 1fr); }
  .cv-project-proof a { min-height: 0; padding: 3mm; border: 1px solid #aaa; color: #111; }
}

/* Mobile reliability pass
   Keep navigation, long headings and the process layout usable at narrow
   phone widths. These rules intentionally live after the desktop page polish
   so mobile declarations win the cascade. */
@media (max-width: 820px) {
  .header-shell {
    width: calc(100% - 1rem);
  }

  .nav-menu {
    max-height: calc(100dvh - var(--header-h) - 1.5rem);
    overflow-y: auto;
    border-color: rgba(255, 255, 255, .55);
    background:
      linear-gradient(135deg, rgba(13, 22, 32, .96), rgba(46, 68, 78, .92));
    color: #fff;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, .42),
      0 1rem 2.5rem rgba(4, 12, 24, .32);
    -webkit-backdrop-filter: blur(1.5rem) saturate(145%);
    backdrop-filter: blur(1.5rem) saturate(145%);
  }

  .nav-menu a,
  .nav-menu a:hover {
    color: rgba(255, 255, 255, .9);
    text-shadow: none;
  }

  .nav-menu a.is-active {
    background: rgba(255, 255, 255, .94);
    color: #11151b;
  }

  .floating-tools {
    right: max(.5rem, env(safe-area-inset-right));
    bottom: max(.5rem, env(safe-area-inset-bottom));
    flex-direction: column;
    gap: .2rem;
    padding: .25rem;
  }

  .floating-tools .tool-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  /* The desktop selector includes `.container` and otherwise overrides the
     earlier one-column mobile declaration. */
  .process-page-grid,
  .process-page-grid.container {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding-inline: .4rem;
  }

  .process-page-card {
    width: 100%;
    min-width: 0;
  }

  .process-page-card-copy,
  .process-page-card ul,
  .process-page-example {
    min-width: 0;
    max-width: 100%;
  }

  .process-page-card h2 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .process-page-card li,
  .process-page-example span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  .process-page-card {
    min-height: auto;
    padding: 5rem 1.25rem 2rem;
  }

  .process-page-card h2 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
    line-height: .94;
  }

  .process-page-card-copy > p:last-child {
    font-size: 1rem;
    line-height: 1.6;
  }

  .process-page-card li {
    font-size: .9rem;
    line-height: 1.45;
  }

  .process-page-example span {
    font-size: .86rem;
  }

  /* Reserve room so persistent accessibility controls never cover the final
     actionable content at the bottom of a page. */
  body {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  }
}
