/* ================================================================
   NIKOLA CRHÁK — cold atelier
   Light paper field, ink type, forest teal accent
   ================================================================ */

:root {
  --bg: #e8edf2;
  --bg-soft: #f3f6f9;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(21, 32, 43, 0.1);
  --border-hi: rgba(12, 110, 90, 0.5);
  --white: #15202b;
  --body: #445260;
  --muted: #6b7c8c;
  --blue: #0c6e5a;
  --blue-deep: #0a5848;
  --green: #0c6e5a;
  --orange: #a85a12;
  --display:
    "Bricolage Grotesque", "Source Sans 3", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: ease;
  --max: 1160px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--pad);
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--blue);
  color: #f3f6f9;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transform: translateY(-120%);
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus {
  transform: none;
  outline: none;
}
.skip-link:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue);
}

::selection {
  background: var(--blue);
  color: #f3f6f9;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

.shell {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}

.page {
  position: relative;
  z-index: 1;
}

/* Atmosphere — paper wash + grain (no glow orbs) */
.ambiance {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambiance-wash {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(
      55% 45% at 88% 8%,
      rgba(12, 110, 90, 0.2),
      transparent 70%
    ),
    radial-gradient(
      50% 40% at 8% 78%,
      rgba(45, 74, 110, 0.14),
      transparent 72%
    ),
    radial-gradient(
      40% 35% at 55% 45%,
      rgba(243, 246, 249, 0.95),
      transparent 75%
    ),
    linear-gradient(165deg, var(--bg-soft) 0%, var(--bg) 48%, #dfe6ee 100%);
  animation: wash-shift 28s var(--ease-in-out) infinite;
}
.ambiance-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 75% at 50% 35%,
    transparent 40%,
    rgba(21, 32, 43, 0.055) 100%
  );
}
.ambiance-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes wash-shift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-2%, 1.5%) scale(1.03);
  }
  70% {
    transform: translate(1.5%, -1%) scale(0.99);
  }
}
@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--white);
}
.nav-logo .tld {
  color: var(--blue);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  transition: color 160ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--white);
  }
  .nav-links a:hover::after {
    transform: scaleX(1);
  }
}
.nav-links a:focus-visible {
  color: var(--white);
  outline: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 2.1rem;
  padding: 0 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    border-color 160ms ease;
}
.nav-toggle:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .nav-toggle:hover {
    border-color: var(--border-hi);
  }
}
.nav-toggle:focus-visible {
  outline: none;
  border-color: var(--border-hi);
  box-shadow: 0 0 0 2px rgba(12, 110, 90, 0.22);
}

/* ================================================================
   HERO — two column
   ================================================================ */
.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 7vw, 5.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  column-gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.eyebrow .dot {
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.eyebrow .dot,
.status-dot.live i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.eyebrow .dot::after,
.status-dot.live i::after {
  display: none;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero .about-copy > *,
  .js .hero .status-panel {
    opacity: 0;
    animation: enter-up 600ms var(--ease-out) forwards;
  }
  .js .hero .about-copy > *:nth-child(1) {
    animation-delay: 40ms;
  }
  .js .hero .about-copy > *:nth-child(2) {
    animation-delay: 90ms;
  }
  .js .hero .about-copy > *:nth-child(3) {
    animation-delay: 140ms;
  }
  .js .hero .about-copy > *:nth-child(4) {
    animation-delay: 180ms;
  }
  .js .hero .about-copy > *:nth-child(5) {
    animation-delay: 220ms;
  }
  .js .hero .about-copy > *:nth-child(6) {
    animation-delay: 260ms;
  }
  .js .hero .about-copy > *:nth-child(7) {
    animation-delay: 300ms;
  }
  .js .hero .status-panel {
    animation-delay: 340ms;
  }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.85rem, 6vw, 4.6rem);
  font-weight: 800;
  font-optical-sizing: auto;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.hero .sub {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--body);
  margin-bottom: 0.35rem;
}
.hero .location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}
.btn-fill {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f3f6f9;
  background: var(--blue);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  transition:
    transform 160ms var(--ease-out),
    background 160ms ease;
}
.btn-fill:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .btn-fill:hover {
    background: var(--blue-deep);
  }
}
.btn-fill:focus-visible,
.btn-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(12, 110, 90, 0.3);
}

.about-copy p {
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.about-copy p:last-child {
  margin-bottom: 0;
}
.about-copy .eyebrow {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.about-copy strong,
.about-copy .hi {
  color: var(--white);
  font-weight: 600;
}
.about-copy em {
  font-style: italic;
  color: var(--muted);
}

.status-panel {
  position: relative;
  padding: 1.35rem 0 0.15rem 1.35rem;
  border-left: 2px solid var(--blue);
  isolation: isolate;
}
.status-panel::before {
  display: none;
}
.panel-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.panel-kicker::before {
  display: none;
}
.now-list li {
  display: grid;
  gap: 0.12rem;
  padding: 0.8rem 0 0.85rem;
  border-top: 1px solid var(--border);
}
.now-list .name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
}
.now-list .role {
  color: var(--body);
  font-size: 0.88rem;
}
.status-meta {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 22rem;
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}
.section-head {
  margin-bottom: 1.75rem;
}
.section-head h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.section-head h2::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
  transform: translateY(0.12em) rotate(12deg);
}
.section-head p {
  font-size: 1.05rem;
  color: var(--body);
  max-width: 38rem;
  padding-left: 1.55rem;
}

/* ================================================================
   PROJECT GRID
   ================================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
  }
}
.card-shot-link {
  display: block;
  line-height: 0;
  background: #d5dde6;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-shot-link {
    border-color: var(--border-hi);
  }
}
.card-shot-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(12, 110, 90, 0.35);
}
.card-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-bottom: none;
}
.card-body {
  padding: 1.1rem 0.15rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.live i {
  background: var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.status-dot.dev i {
  background: var(--orange);
}
.status-dot.nda i {
  background: var(--orange);
}

.card-id {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
}
.card .desc {
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.card-foot {
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  background: var(--surface);
  transition:
    transform 160ms var(--ease-out),
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}
.btn-outline:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(12, 110, 90, 0.06);
  }
}

/* ================================================================
   EXPERIENCE
   ================================================================ */
.exp-panel {
  border-left: 1px solid var(--border);
  margin-left: 0.2rem;
}
.exp-item {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 0 0 1.75rem 1.35rem;
  position: relative;
}
.exp-item + .exp-item {
  padding-top: 0.35rem;
}
.exp-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.35rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.exp-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.4rem;
}
.exp-role {
  font-size: 0.88rem;
  color: var(--body);
  font-weight: 500;
  line-height: 1.55;
}
.exp-company {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.exp-bullets li {
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}
.exp-bullets li + li {
  margin-top: 0.35rem;
}
.exp-bullets li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ================================================================
   EXPERIENCE + EDUCATION GRID
   ================================================================ */
.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.career-col {
  min-width: 0;
}
.section-head--compact {
  margin-bottom: 1.35rem;
}
.section-head--compact p {
  font-size: 0.92rem;
}

.edu-panel {
  border-left: 1px solid var(--border);
  margin-left: 0.2rem;
  height: 100%;
}
.edu-item {
  padding: 0 0 0.25rem 1.35rem;
  position: relative;
}
.edu-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.35rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.edu-school {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}
.edu-bullets li {
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}
.edu-bullets li + li {
  margin-top: 0.35rem;
}
.edu-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* ================================================================
   CERTIFICATIONS
   ================================================================ */
.cert-panel {
  border-top: 1px solid var(--border);
}
.cert-item {
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid var(--border);
}
.cert-item:first-child {
  border-top: none;
}
.cert-title {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.cert-sep {
  color: var(--muted);
  font-weight: 400;
  margin: 0 0.2rem;
}
.cert-issuer {
  font-weight: 500;
  color: var(--muted);
}
.cert-bullets li {
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}
.cert-bullets li + li {
  margin-top: 0.35rem;
}
.cert-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.cert-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cert-status {
  color: var(--orange);
}
.cert-verify {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}
.cert-verify:hover,
.cert-verify:focus-visible {
  color: var(--blue);
  outline: none;
}

/* ================================================================
   STACK + CONTACT
   ================================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stack-card {
  background: transparent;
  border: none;
  border-top: 2px solid var(--blue);
  border-radius: 0;
  padding: 1.15rem 0.1rem 0.25rem;
  transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .stack-card:hover {
    transform: translateY(-2px);
  }
}
.stack-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.stack-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--blue);
  opacity: 1;
}
.stack-card-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.stack-card li {
  font-size: 0.88rem;
  padding: 0.4rem 0;
  color: var(--body);
  border-top: 1px solid var(--border);
}
.stack-card li:first-of-type {
  border-top: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 1.5rem;
}
.contact-layout .section-head {
  margin-bottom: 0;
}
.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(21, 32, 43, 0.08);
}
.js .reveal[data-visible] .portrait {
  animation:
    float-y 8s var(--ease-in-out) 0.55s infinite,
    enter-up 500ms var(--ease-out);
}
.js .reveal.is-instant[data-visible] .portrait {
  animation: float-y 8s var(--ease-in-out) infinite;
  opacity: 1;
}
.contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
  width: 100%;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  transition:
    transform 160ms var(--ease-out),
    background 160ms ease,
    border-color 160ms ease;
}
.contact-btn:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .contact-btn:hover {
    border-color: var(--border-hi);
    background: rgba(12, 110, 90, 0.06);
  }
}
.contact-btn:focus-visible {
  outline: none;
  border-color: var(--border-hi);
  box-shadow: 0 0 0 2px rgba(12, 110, 90, 0.22);
}
.contact-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 160ms ease;
}
.contact-btn-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.contact-btn:focus-visible .contact-btn-icon {
  color: var(--blue);
}
.contact-btn-arrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1;
  flex-shrink: 0;
  transition:
    transform 160ms var(--ease-out),
    color 160ms ease;
}
.contact-btn:focus-visible .contact-btn-arrow {
  color: var(--blue);
  transform: translateX(3px);
}
@media (hover: hover) and (pointer: fine) {
  .contact-btn:hover .contact-btn-icon {
    color: var(--blue);
  }
  .contact-btn:hover .contact-btn-arrow {
    color: var(--blue);
    transform: translateX(3px);
  }
}
.contact-btn-label {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer span:last-child {
  color: var(--body);
}

/* Scroll reveal — stagger children once into view */
.js .reveal:not([data-visible]) .section-head,
.js .reveal:not([data-visible]) .section-head--compact,
.js .reveal:not([data-visible]) .card,
.js .reveal:not([data-visible]) .stack-card,
.js .reveal:not([data-visible]) .exp-item,
.js .reveal:not([data-visible]) .edu-item,
.js .reveal:not([data-visible]) .cert-item,
.js .reveal:not([data-visible]) .contact-layout > *,
.js .reveal:not([data-visible]) .contact-actions .contact-btn {
  opacity: 0;
}
.js .reveal[data-visible] .section-head,
.js .reveal[data-visible] .section-head--compact,
.js .reveal[data-visible] .card,
.js .reveal[data-visible] .stack-card,
.js .reveal[data-visible] .exp-item,
.js .reveal[data-visible] .edu-item,
.js .reveal[data-visible] .cert-item,
.js .reveal[data-visible] .contact-layout > *,
.js .reveal[data-visible] .contact-actions .contact-btn {
  opacity: 1;
  animation: enter-up 500ms var(--ease-out);
}
.js .reveal[data-visible] .section-head,
.js .reveal[data-visible] .section-head--compact {
  animation-delay: 0ms;
}
.js .reveal[data-visible] .card:nth-child(1),
.js .reveal[data-visible] .stack-card:nth-child(1),
.js .reveal[data-visible] .exp-item:nth-child(1),
.js .reveal[data-visible] .cert-item:nth-child(1),
.js .reveal[data-visible] .contact-layout > *:nth-child(1),
.js .reveal[data-visible] .contact-actions .contact-btn:nth-child(1) {
  animation-delay: 40ms;
}
.js .reveal[data-visible] .card:nth-child(2),
.js .reveal[data-visible] .stack-card:nth-child(2),
.js .reveal[data-visible] .exp-item:nth-child(2),
.js .reveal[data-visible] .cert-item:nth-child(2),
.js .reveal[data-visible] .contact-layout > *:nth-child(2),
.js .reveal[data-visible] .contact-actions .contact-btn:nth-child(2) {
  animation-delay: 90ms;
}
.js .reveal[data-visible] .card:nth-child(3),
.js .reveal[data-visible] .stack-card:nth-child(3),
.js .reveal[data-visible] .exp-item:nth-child(3),
.js .reveal[data-visible] .cert-item:nth-child(3),
.js .reveal[data-visible] .contact-actions .contact-btn:nth-child(3) {
  animation-delay: 140ms;
}
.js .reveal[data-visible] .card:nth-child(4),
.js .reveal[data-visible] .stack-card:nth-child(4),
.js .reveal[data-visible] .cert-item:nth-child(4),
.js .reveal[data-visible] .contact-actions .contact-btn:nth-child(4) {
  animation-delay: 190ms;
}
.js .reveal[data-visible] .stack-card:nth-child(5),
.js .reveal[data-visible] .contact-actions .contact-btn:nth-child(5) {
  animation-delay: 240ms;
}
.js .reveal[data-visible] .edu-item,
.js
  .reveal[data-visible]
  .career-col:nth-child(2)
  .section-head--compact {
  animation-delay: 120ms;
}
.js .reveal.is-instant[data-visible] .section-head,
.js .reveal.is-instant[data-visible] .section-head--compact,
.js .reveal.is-instant[data-visible] .card,
.js .reveal.is-instant[data-visible] .stack-card,
.js .reveal.is-instant[data-visible] .exp-item,
.js .reveal.is-instant[data-visible] .edu-item,
.js .reveal.is-instant[data-visible] .cert-item,
.js .reveal.is-instant[data-visible] .contact-layout > *,
.js .reveal.is-instant[data-visible] .contact-actions .contact-btn {
  animation: none;
  opacity: 1;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .status-panel {
    margin-top: 2.25rem;
    padding: 1.35rem 0 0.15rem;
    border-left: none;
    border-top: 2px solid var(--blue);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .portrait {
    width: min(100%, 12rem);
  }
  .nav-inner {
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.15rem 0 0.55rem;
    background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform-origin: top right;
    opacity: 0;
    transform: scale(0.97);
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out),
      visibility 200ms;
  }
  .nav.is-open .nav-links {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out),
      visibility 0s;
  }
  .nav-links a {
    padding: 0.8rem 0;
    border-top: 1px solid var(--border);
  }
  .nav-links a::after {
    display: none;
  }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .career-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 680px) {
  .project-grid,
  .stack-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }
  .shell {
    width: min(var(--max), 100% - 2rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .hero .about-copy > *,
  .js .hero .status-panel {
    animation: none;
    opacity: 1;
  }
  .eyebrow .dot,
  .status-dot.live i {
    animation: none;
  }
  .eyebrow .dot::after,
  .status-dot.live i::after,
  .status-panel::before {
    display: none;
  }
  .ambiance-wash {
    animation: none;
    transform: none;
  }
  .js .reveal[data-visible] .portrait,
  .js .reveal.is-instant[data-visible] .portrait {
    animation: none;
  }
  .js .reveal:not([data-visible]) .section-head,
  .js .reveal:not([data-visible]) .section-head--compact,
  .js .reveal:not([data-visible]) .card,
  .js .reveal:not([data-visible]) .stack-card,
  .js .reveal:not([data-visible]) .exp-item,
  .js .reveal:not([data-visible]) .edu-item,
  .js .reveal:not([data-visible]) .cert-item,
  .js .reveal:not([data-visible]) .contact-layout > *,
  .js .reveal:not([data-visible]) .contact-actions .contact-btn,
  .js .reveal[data-visible] .section-head,
  .js .reveal[data-visible] .section-head--compact,
  .js .reveal[data-visible] .card,
  .js .reveal[data-visible] .stack-card,
  .js .reveal[data-visible] .exp-item,
  .js .reveal[data-visible] .edu-item,
  .js .reveal[data-visible] .cert-item,
  .js .reveal[data-visible] .contact-layout > *,
  .js .reveal[data-visible] .contact-actions .contact-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .btn-fill:active,
  .btn-outline:active,
  .contact-btn:active,
  .nav-toggle:active,
  .contact-btn:focus-visible .contact-btn-arrow,
  .contact-btn:hover .contact-btn-arrow,
  .card:hover,
  .stack-card:hover,
  .nav-links {
    transform: none;
  }
}


/* ================================================================
   MULTI-PAGE — page hero + case study
   ================================================================ */
.page-hero {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.65rem;
}
.page-hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--body);
  max-width: 36rem;
  line-height: 1.65;
}
.nav-links a.is-active {
  color: var(--white);
}
.nav-links a.is-active::after {
  transform: scaleX(1);
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.case-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color 160ms ease;
}
.case-back:hover,
.case-back:focus-visible {
  color: var(--blue);
  outline: none;
}
.case-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}
.case-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.case-hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--body);
  max-width: 38rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}
.case-cover {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #d5dde6;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.case-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.case-prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}
.case-prose h2:first-child {
  margin-top: 0;
}
.case-prose p,
.case-prose li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--body);
}
.case-prose p + p {
  margin-top: 1rem;
}
.case-prose ul {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.case-prose li {
  padding-left: 1rem;
  position: relative;
}
.case-prose li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.case-aside {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem 0 0 1.25rem;
  border-left: 2px solid var(--blue);
}
.case-aside h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.case-aside dl {
  display: grid;
  gap: 0.85rem;
}
.case-aside dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.case-aside dd {
  font-size: 0.92rem;
  color: var(--white);
  font-weight: 500;
}
.case-aside .case-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.35rem;
}
.case-aside .btn-fill,
.case-aside .btn-outline {
  justify-content: center;
}
@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-aside {
    position: static;
    order: -1;
    margin-bottom: 0.5rem;
  }
}
.section-more {
  margin-top: 1.75rem;
}
.page-section--tight {
  padding-top: 0;
}
.case-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.case-prose a:hover {
  color: var(--blue-deep);
}
