:root {
  --canvas: #f3f6f8;
  --surface: #ffffff;
  --surface-muted: #edf3f6;
  --ink: #0b1625;
  --ink-2: #17263a;
  --slate: #64748b;
  --line: #d7e0e8;
  --line-strong: #c5d4df;
  --cyan: #13b8c7;
  --cyan-dark: #0b8e9b;
  --cyan-soft: #dff7f8;
  --blue-soft: #e7efff;
  --shadow: 0 26px 70px rgba(31, 58, 82, 0.10);
  --content: 1220px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(19, 184, 199, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid rgba(128, 187, 238, 0.72);
  color: #174872;
  background: #eef7ff;
  box-shadow: 0 10px 24px rgba(61, 115, 166, 0.16);
  transform: translateY(-150%);
}

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

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(11, 22, 37, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 22, 37, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.vibe-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 18px;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 60px;
  padding: 7px 9px 7px 10px;
  border: 1px solid rgba(215, 224, 232, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 35px rgba(31, 58, 82, 0.07);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.vibe-header.is-scrolled .nav-shell {
  border-color: rgba(197, 212, 223, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(31, 58, 82, 0.11);
}

.vibe-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-monogram {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(142, 183, 224, 0.48);
  border-radius: 50%;
  color: #224d76;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.98), transparent 45%),
    linear-gradient(145deg, #f8fbff, #dcecff);
  box-shadow: 0 7px 18px rgba(71, 126, 180, 0.13);
  font-size: 0.58rem;
  letter-spacing: -0.11em;
}

.anchor-nav {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.anchor-nav a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.anchor-nav a:hover {
  color: var(--ink);
  background: var(--cyan-soft);
}

.anchor-nav a[aria-current="page"] {
  color: #194a75;
  background: linear-gradient(135deg, rgba(246, 251, 255, 0.98), rgba(220, 237, 255, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(126, 174, 220, 0.4),
    0 5px 14px rgba(70, 123, 175, 0.12);
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  padding: 9px 13px;
  border: 1px solid rgba(215, 224, 232, 0.95);
  border-radius: 999px;
  appearance: none;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.resume-link:hover {
  border-color: var(--cyan);
  color: var(--cyan-dark);
  background: var(--cyan-soft);
  transform: translateY(-1px);
}

main {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.section-anchor {
  scroll-margin-top: 105px;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  min-height: 620px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(215, 224, 232, 0.94);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 23%, rgba(19, 184, 199, 0.18), transparent 18rem),
    radial-gradient(circle at 12% 90%, rgba(104, 141, 190, 0.10), transparent 22rem),
    linear-gradient(138deg, #fbfdfe 0%, #f5f9fa 60%, #edf7f9 100%);
  box-shadow: var(--shadow);
}

.hero-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.64;
  background-image:
    linear-gradient(rgba(11, 22, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 22, 37, 0.035) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(120deg, #000 0%, #000 42%, transparent 79%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 78px 25px 76px 78px;
}

.section-index,
.hello-label,
.card-date,
.card-type,
.experience-date,
.experience-type,
.work-kicker,
.placeholder-index {
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--cyan-dark);
  font-size: 0.72rem;
}

.status-dot,
.now-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(19, 184, 199, 0.14);
}

.hello-label {
  margin: 25px 0 14px;
  color: #8292a0;
  font-size: 0.74rem;
}

.hero-section h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.4rem, 6.5vw, 6.6rem);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.98;
}

.hero-greeting {
  display: block;
  color: var(--ink);
  font-size: 0.58em;
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.hero-section h1 strong {
  display: block;
  color: transparent;
  background: linear-gradient(110deg, #0b1625 8%, #1b4162 56%, #0b8e9b 120%);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 900;
}

.hero-role {
  margin: 25px 0 13px;
  color: #2e4965;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.hero-role span {
  padding-left: 4px;
  color: var(--cyan);
}

.hero-intro {
  max-width: 550px;
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
}

.focus-tags,
.hero-actions,
.experience-tags,
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-tags {
  margin-top: 27px;
}

.focus-tags span,
.experience-tags span,
.work-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(197, 212, 223, 0.92);
  border-radius: 999px;
  color: #42617a;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.71rem;
  font-weight: 750;
}

.focus-tags span:nth-child(3) {
  border-color: rgba(19, 184, 199, 0.28);
  color: var(--cyan-dark);
  background: var(--cyan-soft);
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 11px 20px rgba(11, 22, 37, 0.16);
}

.button-primary:hover {
  background: #1a314d;
  box-shadow: 0 15px 27px rgba(11, 22, 37, 0.20);
}

.button-secondary {
  border-color: rgba(197, 212, 223, 0.98);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.button-secondary:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.coordinate-disc {
  position: absolute;
  top: 48px;
  right: 27px;
  width: min(92%, 510px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(19, 184, 199, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 36%, rgba(255, 255, 255, 0.8) 0 3%, rgba(19, 184, 199, 0.16) 3.3% 4.1%, transparent 4.4%),
    radial-gradient(circle at 45% 45%, rgba(19, 184, 199, 0.1), rgba(19, 184, 199, 0.025) 48%, transparent 71%);
}

.disc-ring {
  position: absolute;
  border: 1px solid rgba(19, 184, 199, 0.24);
  border-radius: 50%;
}

.ring-one {
  inset: 10%;
}

.ring-two {
  inset: 24%;
  border-color: rgba(11, 22, 37, 0.11);
}

.disc-axis {
  position: absolute;
  background: rgba(11, 22, 37, 0.10);
}

.axis-x {
  top: 45%;
  right: 0;
  left: 0;
  height: 1px;
}

.axis-y {
  top: 0;
  bottom: 0;
  left: 45%;
  width: 1px;
}

.hero-visual::before {
  position: absolute;
  top: 34px;
  right: 62px;
  bottom: 26px;
  width: 1px;
  content: "";
  background: repeating-linear-gradient(to bottom, rgba(11, 22, 37, 0.27) 0 4px, transparent 4px 12px);
}

.hero-cutout {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: -49px;
  width: min(89%, 500px);
  height: auto;
  filter: drop-shadow(0 24px 17px rgba(11, 22, 37, 0.17));
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-section:hover .hero-cutout {
  transform: translateY(-4px);
}

.content-section {
  padding-top: 122px;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 860;
  letter-spacing: -0.07em;
  line-height: 1.08;
}

.section-heading > p {
  max-width: 540px;
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
  text-align: center;
}

.section-heading .section-index {
  justify-content: center;
}

.section-heading.education-heading {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 0;
  margin-bottom: 30px;
  text-align: center;
}

.education-heading .section-index {
  justify-content: center;
  color: #287b92;
}

.education-heading h2 {
  color: #123c58;
}

.section-heading.education-heading > p {
  max-width: 540px;
  color: #597286;
  text-align: center;
}

.education-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 105px minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.education-card {
  position: relative;
  height: 100%;
  min-height: 340px;
  padding: 32px 35px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 13px 35px rgba(31, 58, 82, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.education-card::after {
  position: absolute;
  right: -46px;
  bottom: -55px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(19, 184, 199, 0.13);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(19, 184, 199, 0.035);
}

.education-card:hover {
  border-color: rgba(19, 184, 199, 0.52);
  box-shadow: 0 20px 46px rgba(31, 58, 82, 0.10);
  transform: translateY(-4px);
}

.school-cover {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  margin: -32px -35px 26px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #dfecef;
}

.school-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(0.92) brightness(1.04);
}

.school-cover::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(194, 220, 248, 0.13), rgba(250, 253, 255, 0.04) 58%, rgba(215, 231, 248, 0.11));
  content: "";
}

.school-cover-scut img {
  object-position: center 40%;
}

.school-cover-gzhu img {
  object-position: center 34%;
}

.education-connector {
  align-self: center;
}

.school-mark {
  position: absolute;
  top: 28px;
  right: 30px;
  z-index: 1;
  display: grid;
  width: 63px;
  height: 63px;
  place-items: center;
  border: 1px solid rgba(19, 184, 199, 0.28);
  border-radius: 50%;
  color: var(--cyan-dark);
  background: rgba(223, 247, 248, 0.62);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.school-cover .school-mark {
  top: auto;
  right: 18px;
  bottom: 14px;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 7px 18px rgba(11, 22, 37, 0.14);
  backdrop-filter: blur(7px);
}

.school-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 63px;
}

.school-card-topline .card-date {
  margin: 0;
}

.education-card > .school-card-topline .school-mark {
  position: relative;
  top: auto;
  right: auto;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  margin: 0;
  place-items: center;
  border-color: rgba(19, 184, 199, 0.28);
  background: rgba(223, 247, 248, 0.80);
  box-shadow: 0 8px 18px rgba(31, 58, 82, 0.08);
  backdrop-filter: blur(7px);
}

.school-card-topline + .card-type {
  margin-top: 8px;
}

.card-date {
  margin: 0;
  color: #73889a;
  font-size: 0.72rem;
}

.card-type {
  margin: 26px 0 5px;
  color: var(--cyan-dark);
  font-size: 0.65rem;
}

.education-card h3 {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  letter-spacing: -0.045em;
}

.degree {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: #42617a;
  font-size: 0.84rem;
  font-weight: 700;
}

.education-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
  font-size: 0.82rem;
}

.education-card li {
  position: relative;
  padding-left: 14px;
}

.education-card li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.education-connector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 100px;
}

.education-connector span {
  height: 1px;
  background: var(--line-strong);
}

.education-connector i {
  display: grid;
  width: 16px;
  height: 16px;
  margin: 0 8px;
  border: 4px solid var(--canvas);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(19, 184, 199, 0.48);
}

.experience-timeline {
  position: relative;
  display: grid;
  gap: 17px;
}

.experience-timeline::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 41px;
  width: 1px;
  content: "";
  background: linear-gradient(to bottom, var(--cyan), var(--line-strong) 28%, var(--line-strong) 75%, transparent);
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 165px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 153px;
  padding: 25px 32px 25px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 27px rgba(31, 58, 82, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.experience-card:hover {
  border-color: rgba(19, 184, 199, 0.48);
  box-shadow: 0 17px 36px rgba(31, 58, 82, 0.085);
  transform: translateX(4px);
}

.experience-card-featured {
  border-color: rgba(19, 184, 199, 0.30);
  background: linear-gradient(100deg, rgba(223, 247, 248, 0.55), rgba(255, 255, 255, 0.96) 37%);
}

.experience-stem {
  position: relative;
  min-height: 72px;
}

.experience-stem span {
  position: absolute;
  top: 18px;
  left: 34px;
  width: 15px;
  height: 15px;
  border: 4px solid var(--canvas);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(11, 22, 37, 0.22);
}

.experience-card-featured .experience-stem span {
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(19, 184, 199, 0.53);
}

.experience-date {
  padding-top: 4px;
  color: #647b90;
  font-size: 0.72rem;
  line-height: 1.45;
}

.experience-type {
  margin: 0;
  color: var(--cyan-dark);
  font-size: 0.66rem;
}

.experience-main h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.experience-role {
  margin: 2px 0 8px;
  color: #42617a;
  font-size: 0.81rem;
  font-weight: 800;
}

.experience-main > p:not(.experience-type):not(.experience-role) {
  max-width: 760px;
  margin: 0;
  color: var(--slate);
  font-size: 0.85rem;
}

.experience-tags {
  margin-top: 13px;
}

.experience-tags span {
  min-height: 24px;
  padding: 2px 8px;
  background: #f9fbfc;
  font-size: 0.67rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  transition: color 160ms ease, border-color 160ms ease, gap 160ms ease;
}

.inline-link:hover {
  gap: 12px;
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

.featured-work {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, 0.76fr) minmax(420px, 1.24fr);
  min-height: 438px;
  overflow: hidden;
  border: 1px solid #14253a;
  border-radius: var(--radius-xl);
  color: #f7fafc;
  background:
    radial-gradient(circle at 5% 105%, rgba(19, 184, 199, 0.34), transparent 22rem),
    linear-gradient(125deg, #0b1625 0%, #112238 66%, #102d3e 100%);
  box-shadow: 0 24px 52px rgba(11, 22, 37, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.featured-work::after {
  position: absolute;
  top: -60px;
  right: 7%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(223, 247, 248, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 44px rgba(223, 247, 248, 0.025), 0 0 0 92px rgba(223, 247, 248, 0.02);
}

.featured-work:hover {
  box-shadow: 0 30px 65px rgba(11, 22, 37, 0.25);
  transform: translateY(-5px);
}

.work-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 24px 43px 49px;
}

.work-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #7bdde2;
  font-size: 0.66rem;
}

.work-state {
  padding: 4px 8px;
  border: 1px solid rgba(123, 221, 226, 0.30);
  border-radius: 999px;
  color: #c9fcfe;
  background: rgba(19, 184, 199, 0.12);
}

.work-copy h3 {
  margin: 31px 0 10px;
  color: #fff;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.work-copy > p {
  max-width: 375px;
  margin: 0;
  color: #c4d1dc;
  font-size: 0.88rem;
}

.work-tags {
  margin-top: 21px;
}

.work-tags span {
  border-color: rgba(200, 221, 234, 0.18);
  color: #d6e4ed;
  background: rgba(255, 255, 255, 0.05);
}

.work-open {
  display: inline-flex;
  gap: 9px;
  margin-top: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  transition: gap 160ms ease, color 160ms ease, border-color 160ms ease;
}

.featured-work:hover .work-open {
  gap: 14px;
  border-color: #7bdde2;
  color: #a7fbff;
}

.dashboard-preview {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 42px 45px 42px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 17px;
  background: #f5f8fb;
  box-shadow: -17px 25px 40px rgba(0, 0, 0, 0.26);
  transform: perspective(1100px) rotateY(-5deg) rotateX(2deg);
  transition: transform 300ms ease;
}

.featured-work:hover .dashboard-preview {
  transform: perspective(1100px) rotateY(-1deg) rotateX(0deg) translateY(-3px);
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 13px;
  border-bottom: 1px solid #dce5ed;
  color: #62748a;
  background: #fff;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.preview-pill {
  padding: 3px 6px;
  border-radius: 999px;
  color: #0b8e9b;
  background: #dff7f8;
}

.preview-layout {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  min-height: 276px;
}

.preview-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 17px 13px;
  border-right: 1px solid #dce5ed;
  background: #fafcff;
}

.preview-side span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #cbd7e2;
}

.preview-side .side-active {
  width: 15px;
  background: #13b8c7;
}

.preview-board {
  padding: 17px;
}

.preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-title span {
  display: block;
  width: 78px;
  height: 8px;
  border-radius: 999px;
  background: #22334a;
}

.preview-title i {
  width: 38px;
  height: 7px;
  border-radius: 999px;
  background: #dfe9ee;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.preview-metrics > div {
  min-width: 0;
  padding: 9px 8px 8px;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fff;
}

.preview-metrics small,
.preview-metrics b,
.preview-metrics i {
  display: block;
}

.preview-metrics small {
  overflow: hidden;
  color: #708195;
  font-size: 0.54rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-metrics b {
  margin-top: 5px;
  overflow: hidden;
  color: #203047;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: clamp(0.53rem, 1vw, 0.72rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-metrics i {
  width: 42%;
  height: 3px;
  margin-top: 7px;
  border-radius: 999px;
  background: #74cfd5;
}

.preview-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(70px, 0.7fr);
  gap: 9px;
  margin-top: 9px;
}

.preview-line-chart,
.preview-bars,
.preview-table {
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fff;
}

.preview-line-chart {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  background:
    repeating-linear-gradient(to bottom, transparent 0 24px, #edf2f6 25px),
    #fff;
}

.chart-label,
.preview-bars > span {
  position: absolute;
  top: 8px;
  left: 9px;
  color: #708195;
  font-size: 0.53rem;
  font-weight: 700;
}

.preview-line-chart svg {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 78px;
}

.preview-line-chart path {
  fill: rgba(19, 184, 199, 0.14);
}

.preview-line-chart polyline {
  fill: none;
  stroke: #13aebd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.preview-bars {
  position: relative;
  display: grid;
  align-content: end;
  gap: 7px;
  min-height: 104px;
  padding: 29px 9px 10px;
}

.preview-bars i {
  display: block;
  width: var(--bar);
  height: 5px;
  border-radius: 999px;
  background: #9fb3c4;
}

.preview-bars i:nth-of-type(1) {
  background: #13b8c7;
}

.preview-table {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.8fr 0.55fr;
  gap: 7px 9px;
  margin-top: 9px;
  padding: 10px;
}

.preview-table span {
  height: 5px;
  border-radius: 99px;
  background: #d9e4ec;
}

.preview-table span:nth-child(4n + 1) {
  background: #afc5d2;
}

.preview-table span:nth-child(4n) {
  width: 64%;
  justify-self: end;
  background: #8dd2d8;
}

.skills-section {
  padding-bottom: 120px;
}

.section-heading.skills-heading {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 0;
  margin-bottom: 30px;
  text-align: center;
}

.skills-heading .section-index {
  justify-content: center;
  color: #287b92;
}

.skills-heading h2 {
  color: #123c58;
}

.section-heading.skills-heading > p {
  max-width: 540px;
  color: #597286;
  text-align: center;
}

.archive-placeholder {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  min-height: 258px;
  padding: 37px 42px;
  overflow: hidden;
  border: 1px dashed #b8c8d4;
  border-radius: var(--radius-lg);
  color: var(--slate);
  background:
    radial-gradient(circle at 93% 16%, rgba(19, 184, 199, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.72);
}

.placeholder-stack {
  position: relative;
  width: 139px;
  height: 160px;
  margin-left: 18px;
}

.placeholder-stack > span,
.placeholder-stack > div {
  position: absolute;
  width: 116px;
  height: 143px;
  border: 1px solid #bacbd7;
  border-radius: 17px;
}

.placeholder-stack > span:nth-child(1) {
  top: 11px;
  left: 0;
  background: #d7e2eb;
  transform: rotate(-8deg);
}

.placeholder-stack > span:nth-child(2) {
  top: 5px;
  left: 10px;
  background: #e5edf2;
  transform: rotate(-3deg);
}

.placeholder-stack > span:nth-child(3) {
  top: 4px;
  left: 21px;
  background: #f2f7f9;
  transform: rotate(4deg);
}

.placeholder-stack > div {
  z-index: 1;
  top: 0;
  left: 15px;
  display: grid;
  place-items: center;
  color: #d9fbfd;
  background:
    radial-gradient(circle at 50% 30%, rgba(19, 184, 199, 0.26), transparent 50%),
    var(--ink);
  box-shadow: 0 14px 23px rgba(31, 58, 82, 0.14);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.13em;
  line-height: 0.76;
  text-align: center;
}

.placeholder-stack small {
  display: block;
  margin-top: 12px;
  color: #91b3bf;
  font-size: 0.45rem;
  letter-spacing: 0.07em;
}

.placeholder-index {
  margin: 0;
  color: var(--cyan-dark);
  font-size: 0.68rem;
}

.archive-placeholder h3 {
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.archive-placeholder p:not(.placeholder-index) {
  max-width: 540px;
  margin: 0;
  color: var(--slate);
  font-size: 0.88rem;
}

.pending-stamp {
  padding: 8px 10px;
  border: 1px solid rgba(19, 184, 199, 0.38);
  border-radius: 999px;
  color: var(--cyan-dark);
  background: rgba(223, 247, 248, 0.65);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Skills archive-card experience. The record content is populated by home-vibe.js. */
.archive-placeholder.archive-draw {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  min-height: 408px;
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(197, 212, 223, 0.96);
  border-radius: var(--radius-lg);
  color: var(--slate);
  background:
    radial-gradient(circle at 9% 16%, rgba(19, 184, 199, 0.12), transparent 15rem),
    radial-gradient(circle at 90% 94%, rgba(105, 154, 181, 0.12), transparent 19rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 247, 248, 0.78));
  box-shadow: 0 18px 48px rgba(31, 58, 82, 0.06);
}

.archive-placeholder.archive-draw::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 22, 37, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 22, 37, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(115deg, #000, transparent 78%);
}

.archive-draw .archive-deck-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.archive-draw .placeholder-stack {
  position: relative;
  width: 214px;
  height: 253px;
  margin: 0;
}

.archive-draw .placeholder-stack > span,
.archive-draw .archive-deck-front {
  position: absolute;
  width: 181px;
  height: 228px;
  border: 1px solid rgba(138, 178, 190, 0.68);
  border-radius: 22px;
}

.archive-draw .placeholder-stack > span:nth-child(1) {
  top: 17px;
  left: 0;
  background: #a9cad2;
  transform: rotate(-10deg);
}

.archive-draw .placeholder-stack > span:nth-child(2) {
  top: 8px;
  left: 17px;
  background: #c8dfe3;
  transform: rotate(-4deg);
}

.archive-draw .placeholder-stack > span:nth-child(3) {
  top: 5px;
  left: 30px;
  background: #e6f1f3;
  transform: rotate(4deg);
}

.archive-draw .archive-deck-front {
  z-index: 1;
  top: 0;
  left: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(165, 228, 233, 0.40);
  color: #d9fbfd;
  background:
    radial-gradient(circle at 50% 30%, rgba(19, 184, 199, 0.25), transparent 31%),
    linear-gradient(148deg, #173b55, #091827 76%);
  box-shadow: 0 19px 29px rgba(24, 52, 71, 0.22);
}

.archive-draw .archive-deck-front::before {
  position: absolute;
  z-index: -1;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(143, 230, 234, 0.27);
  border-radius: 50%;
  box-shadow: 0 0 0 19px rgba(143, 230, 234, 0.055), 0 0 0 39px rgba(143, 230, 234, 0.035);
  content: "";
}

.archive-draw .archive-deck-front strong {
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 1.9rem;
  font-weight: 850;
  letter-spacing: -0.13em;
  line-height: 0.9;
}

.archive-draw .archive-deck-front span,
.archive-draw .archive-deck-front small {
  color: #9ac5ce;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.archive-draw .archive-deck-front small {
  color: #d9fbfd;
  font-size: 0.50rem;
}

.archive-placeholder p.archive-deck-caption {
  margin: 1px 0 0;
  color: #31536a;
  font-size: 0.78rem;
  font-weight: 760;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
}

.archive-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.archive-action[hidden] {
  display: none;
}

.archive-action:hover {
  transform: translateY(-2px);
}

.archive-action-primary {
  border-color: rgba(133, 181, 226, 0.48);
  color: #194d79;
  background: linear-gradient(135deg, #f1f8ff, #d9ebfc);
  box-shadow: 0 10px 20px rgba(62, 119, 173, 0.13);
}

.archive-action-primary:hover {
  border-color: rgba(74, 142, 207, 0.62);
  background: linear-gradient(135deg, #f9fcff, #d5eaff);
  box-shadow: 0 14px 25px rgba(62, 119, 173, 0.17);
}

.archive-action-secondary {
  border-color: rgba(129, 164, 181, 0.42);
  color: #29465e;
  background: rgba(255, 255, 255, 0.72);
}

.archive-action-secondary:hover {
  border-color: rgba(19, 184, 199, 0.65);
  background: rgba(223, 247, 248, 0.88);
}

.archive-filter-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(197, 212, 223, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.archive-filter-tabs button {
  min-height: 27px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  color: #627b8d;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 760;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.archive-filter-tabs button[aria-pressed="true"] {
  color: #10364c;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 58, 82, 0.11);
}

.archive-draw .archive-record {
  --record-accent: #13b8c7;
  --record-accent-dark: #0c6572;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 282px;
  padding: 34px 37px 27px;
  overflow: hidden;
  border: 1px solid rgba(201, 218, 226, 0.92);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.89);
  box-shadow: 0 14px 32px rgba(31, 58, 82, 0.08);
}

.archive-draw .archive-record[data-kind="hobby"] {
  --record-accent: #7daeb3;
  --record-accent-dark: #426d72;
}

.archive-record-media {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  width: 156px;
  height: 196px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.80);
  border-radius: 16px;
  background: #dce9ea;
  box-shadow: 0 12px 24px rgba(31, 58, 82, 0.16);
}

.archive-record-media[hidden] {
  display: none;
}

.archive-record-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-record[data-has-media="true"] {
  padding-right: 219px;
}

.archive-record[data-has-media="true"] .archive-record-orbits {
  opacity: 0.30;
}

.archive-record[data-image-layout="landscape"] .archive-record-media {
  width: 205px;
  height: 128px;
}

.archive-record[data-image-layout="landscape"] {
  padding-right: 246px;
}

.archive-record-orbits {
  position: absolute;
  top: 50%;
  right: -54px;
  width: 250px;
  height: 250px;
  transform: translateY(-50%);
}

.archive-record-orbits span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(19, 184, 199, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.archive-record[data-kind="hobby"] .archive-record-orbits span {
  border-color: rgba(91, 143, 149, 0.30);
}

.archive-record-orbits span:nth-child(1) {
  width: 88px;
  height: 88px;
  background: rgba(19, 184, 199, 0.09);
}

.archive-record[data-kind="hobby"] .archive-record-orbits span:nth-child(1) {
  background: rgba(125, 174, 179, 0.11);
}

.archive-record-orbits span:nth-child(2) {
  width: 151px;
  height: 151px;
}

.archive-record-orbits span:nth-child(3) {
  width: 214px;
  height: 214px;
}

.archive-record-topline,
.archive-record h3,
.archive-record > p,
.archive-record-tags,
.archive-record-footer {
  position: relative;
  z-index: 1;
}

.archive-record-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.archive-placeholder p.archive-record-kicker {
  margin: 0;
  color: var(--record-accent-dark);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.archive-record-category {
  padding: 4px 8px;
  border: 1px solid rgba(19, 184, 199, 0.42);
  border-radius: 999px;
  color: var(--record-accent-dark);
  background: rgba(223, 247, 248, 0.70);
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.archive-record[data-kind="hobby"] .archive-record-category {
  border-color: rgba(91, 143, 149, 0.38);
  background: rgba(232, 243, 243, 0.84);
}

.archive-draw .archive-record h3 {
  max-width: 80%;
  margin: 17px 0 8px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.archive-placeholder .archive-record > p {
  max-width: 480px;
  margin: 0;
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.72;
}

.archive-record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  margin: 18px 0 16px;
  padding: 0;
  list-style: none;
}

.archive-record-tags li {
  padding: 4px 8px;
  border: 1px solid rgba(188, 209, 219, 0.80);
  border-radius: 999px;
  color: #42627a;
  background: rgba(255, 255, 255, 0.70);
  font-size: 0.70rem;
  font-weight: 720;
}

.archive-record-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(215, 224, 232, 0.88);
  color: #70889a;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.archive-all {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid rgba(197, 212, 223, 0.82);
}

.archive-all[hidden] {
  display: none;
}

.archive-all-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.archive-all-heading p,
.archive-all-heading span {
  margin: 0;
  color: #47667c;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.archive-all-heading span {
  color: var(--cyan-dark);
  letter-spacing: 0;
}

.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.archive-grid-card {
  position: relative;
  min-height: 204px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(201, 218, 226, 0.96);
  border-radius: 17px;
  color: inherit;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.archive-grid-card::after {
  position: absolute;
  top: -58px;
  right: -53px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(19, 184, 199, 0.27);
  border-radius: 50%;
  box-shadow: 0 0 0 17px rgba(19, 184, 199, 0.04);
  content: "";
}

.archive-grid-card[data-kind="hobby"]::after {
  border-color: rgba(91, 143, 149, 0.29);
  box-shadow: 0 0 0 17px rgba(91, 143, 149, 0.045);
}

.archive-grid-card:hover,
.archive-grid-card.is-selected {
  border-color: rgba(19, 184, 199, 0.60);
  background: #fff;
  box-shadow: 0 12px 25px rgba(31, 58, 82, 0.09);
  transform: translateY(-3px);
}

.archive-grid-card[data-kind="hobby"]:hover,
.archive-grid-card[data-kind="hobby"].is-selected {
  border-color: rgba(91, 143, 149, 0.58);
}

.archive-grid-card > * {
  position: relative;
  z-index: 1;
}

.archive-grid-card-kicker {
  margin: 0;
  color: #527287;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.archive-grid-card h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 1.12rem;
  letter-spacing: -0.035em;
}

.archive-grid-card p:not(.archive-grid-card-kicker) {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--slate);
  font-size: 0.77rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.archive-grid-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.archive-grid-card-tags li {
  padding: 3px 6px;
  border-radius: 999px;
  color: #46657a;
  background: rgba(223, 247, 248, 0.78);
  font-size: 0.62rem;
  font-weight: 740;
}

.archive-grid-card[data-kind="hobby"] .archive-grid-card-tags li {
  background: rgba(232, 243, 243, 0.94);
}

.archive-grid-card-media {
  display: flex;
  align-items: end;
  height: 54px;
  margin: 0 0 12px;
  padding: 8px;
  border: 1px dashed rgba(91, 143, 149, 0.48);
  border-radius: 11px;
  color: #557585;
  background:
    radial-gradient(circle at 82% 24%, rgba(125, 174, 179, 0.18), transparent 3rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 246, 247, 0.70));
  font-size: 0.63rem;
  font-weight: 760;
}

.archive-grid-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-dialog[hidden] {
  display: none;
}

.contact-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 37, 0.48);
  backdrop-filter: blur(6px);
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 44px));
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 7%, rgba(19, 184, 199, 0.20), transparent 9rem),
    #f8fbfc;
  box-shadow: 0 30px 80px rgba(11, 22, 37, 0.27);
}

.contact-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font: 1.35rem/1 Arial, sans-serif;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.contact-close:hover {
  border-color: var(--cyan);
  color: var(--cyan-dark);
  background: var(--cyan-soft);
}

.contact-kicker {
  margin: 0;
  color: var(--cyan-dark);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.70rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.contact-card h2 {
  margin: 7px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.contact-card > p:not(.contact-kicker) {
  margin: 0;
  color: var(--slate);
  font-size: 0.88rem;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.contact-list a {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.80);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-list a:hover {
  border-color: rgba(19, 184, 199, 0.65);
  background: #fff;
  transform: translateY(-2px);
}

.contact-list span {
  color: var(--cyan-dark);
  font-size: 0.70rem;
  font-weight: 800;
}

.contact-list strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.contact-section {
  position: relative;
  display: flex;
  min-height: 520px;
  margin-top: clamp(56px, 7vw, 86px);
  padding: clamp(62px, 7vw, 88px) clamp(34px, 6vw, 76px) clamp(40px, 5vw, 58px);
  overflow: hidden;
  isolation: isolate;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(188, 213, 239, 0.78);
  border-radius: var(--atmosphere-radius, 40px);
  color: #173858;
  background:
    radial-gradient(circle at 82% 18%, rgba(180, 217, 255, 0.48), transparent 20rem),
    radial-gradient(circle at 10% 92%, rgba(222, 238, 255, 0.72), transparent 23rem),
    linear-gradient(135deg, rgba(251, 253, 255, 0.98) 0%, rgba(239, 247, 255, 0.96) 58%, rgba(229, 241, 253, 0.98) 100%);
  box-shadow: 0 28px 72px rgba(65, 111, 157, 0.13);
}

.contact-section::before,
.contact-section::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.contact-section::before {
  top: -110px;
  right: -95px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(103, 164, 222, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(184, 217, 249, 0.08);
}

.contact-section::after {
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: calc(var(--atmosphere-radius, 40px) - 8px);
}

.contact-section-copy {
  max-width: 820px;
}

.contact-section-kicker {
  margin: 0 0 20px;
  color: #3977af;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.contact-section h2 {
  display: grid;
  margin: 0;
  color: #153653;
  font-size: clamp(3.25rem, 6vw, 5.8rem);
  font-weight: 480;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.contact-section-intro {
  margin: 30px 0 0;
  color: #667f98;
  font-size: 0.86rem;
  line-height: 1.85;
}

.contact-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.contact-action {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(149, 187, 224, 0.48);
  border-radius: 11px;
  appearance: none;
  color: #315a80;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(76, 142, 206, 0.58);
  background: rgba(255, 255, 255, 0.96);
  color: #173f66;
  outline: none;
}

.contact-action-primary {
  border-color: #a9cdee;
  color: #174b77;
  background: linear-gradient(135deg, #eaf5ff, #cfe6fb);
  box-shadow: 0 10px 24px rgba(63, 123, 180, 0.14);
}

.contact-action-primary:hover,
.contact-action-primary:focus-visible {
  color: #103e69;
  background: linear-gradient(135deg, #f5faff, #d9ecff);
}

.contact-back-to-top {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  color: #68839d;
  font-size: 0.76rem;
  transition: color 160ms ease, transform 160ms ease;
}

.contact-back-to-top:hover,
.contact-back-to-top:focus-visible {
  transform: translateY(-2px);
  color: #1b4d78;
  outline: none;
}

body.has-contact-dialog {
  overflow: hidden;
}

.vibe-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 35px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.vibe-footer-icp {
  flex: 0 0 100%;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease;
}

.vibe-footer-icp:hover,
.vibe-footer-icp:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 1040px) {
  .vibe-header,
  main,
  .vibe-footer {
    width: min(var(--content), calc(100% - 32px));
  }

  .anchor-nav a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.73rem;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(338px, 0.75fr);
  }

  .hero-copy {
    padding-left: 52px;
  }

  .hero-cutout {
    right: 13px;
    width: min(94%, 455px);
  }

  .featured-work {
    grid-template-columns: minmax(270px, 0.82fr) minmax(360px, 1.18fr);
  }

  .work-copy {
    padding-left: 37px;
  }

  .dashboard-preview {
    margin-right: 30px;
  }

  .archive-placeholder {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .pending-stamp {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .vibe-header {
    width: min(var(--content), calc(100% - 24px));
    padding-top: 12px;
  }

  .nav-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 54px;
    padding: 6px 7px;
  }

  .brand-monogram {
    width: 34px;
    height: 34px;
    font-size: 0.52rem;
  }

  .brand-copy {
    display: none;
  }

  .anchor-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .anchor-nav::-webkit-scrollbar {
    display: none;
  }

  .anchor-nav a {
    padding: 7px 9px;
    font-size: 0.71rem;
  }

  .resume-link {
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  main,
  .vibe-footer {
    width: min(var(--content), calc(100% - 24px));
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 48px 31px 20px;
  }

  .hero-section h1 {
    font-size: clamp(3.4rem, 12.5vw, 5.8rem);
  }

  .hero-visual {
    min-height: 430px;
  }

  .coordinate-disc {
    top: 7px;
    right: 4%;
    width: min(89%, 450px);
  }

  .hero-cutout {
    right: 5%;
    bottom: -43px;
    width: min(83%, 435px);
  }

  .section-heading {
    display: grid;
    justify-items: center;
    gap: 0;
    margin-bottom: 24px;
    text-align: center;
  }

  .section-heading > p {
    max-width: 540px;
    margin: 0;
    text-align: center;
  }

  .content-section {
    padding-top: 90px;
  }

  .education-track {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto 1fr;
    gap: 14px;
  }

  .education-connector {
    grid-template-columns: auto;
    justify-content: center;
    min-height: 34px;
  }

  .education-connector span {
    display: none;
  }

  .education-connector i {
    width: 14px;
    height: 14px;
    margin: 0;
  }

  .experience-card {
    grid-template-columns: 58px 126px minmax(0, 1fr);
    gap: 14px;
    padding-right: 22px;
  }

  .experience-timeline::before {
    left: 29px;
  }

  .experience-stem span {
    left: 22px;
  }

  .featured-work {
    grid-template-columns: 1fr;
  }

  .work-copy {
    min-height: 290px;
    padding: 35px 31px 30px;
  }

  .dashboard-preview {
    margin: 0 25px 31px;
    transform: none;
  }

  .archive-placeholder {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 19px;
    padding: 30px 25px;
  }

  .placeholder-stack {
    width: 120px;
    margin-left: 0;
    transform: scale(0.84);
    transform-origin: left center;
  }

  .pending-stamp {
    grid-column: 1 / -1;
  }

  .contact-section {
    min-height: 480px;
    padding: 58px 38px 38px;
  }

  .contact-section h2 {
    font-size: clamp(3rem, 9vw, 4.8rem);
  }
}

@media (max-width: 560px) {
  .vibe-header {
    width: calc(100% - 18px);
  }

  .nav-shell {
    gap: 5px;
    padding-left: 5px;
  }

  .anchor-nav a {
    padding: 7px 8px;
  }

  .resume-link {
    padding: 8px 9px;
  }

  .header-contact {
    padding-right: 10px;
    padding-left: 10px;
  }

  main,
  .vibe-footer {
    width: calc(100% - 28px);
  }

  .hero-section {
    margin-top: 15px;
    border-radius: 23px;
  }

  .hero-copy {
    padding: 37px 23px 12px;
  }

  .contact-section {
    min-height: 520px;
    margin-top: 44px;
    padding: 48px 24px 28px;
    border-radius: 25px;
  }

  .contact-section::after {
    inset: 6px;
    border-radius: 19px;
  }

  .contact-section-kicker {
    margin-bottom: 17px;
    font-size: 0.65rem;
  }

  .contact-section h2 {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
    line-height: 1.02;
  }

  .contact-section-intro {
    margin-top: 24px;
    font-size: 0.8rem;
  }

  .contact-section-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-action-primary {
    grid-column: 1 / -1;
  }

  .contact-back-to-top {
    margin-top: 30px;
  }

  .section-index {
    font-size: 0.65rem;
  }

  .hello-label {
    margin-top: 20px;
  }

  .hero-role {
    margin-top: 18px;
    font-size: 0.72rem;
    letter-spacing: -0.015em;
  }

  .hero-intro {
    font-size: 0.91rem;
  }

  .focus-tags {
    margin-top: 20px;
    gap: 6px;
  }

  .focus-tags span {
    min-height: 25px;
    padding: 3px 8px;
    font-size: 0.64rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 0.75rem;
  }

  .hero-visual {
    min-height: 362px;
  }

  .coordinate-disc {
    top: 4px;
    right: 2%;
    width: min(91%, 365px);
  }

  .hero-cutout {
    right: 1%;
    bottom: -37px;
    width: min(88%, 382px);
  }

  .content-section {
    padding-top: 71px;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .section-heading > p {
    font-size: 0.82rem;
  }

  .education-card {
    min-height: 0;
    padding: 27px 23px 25px;
    border-radius: 18px;
  }

  .school-cover {
    margin: -27px -23px 22px;
  }

  .school-mark {
    top: 22px;
    right: 19px;
    width: 54px;
    height: 54px;
    font-size: 0.58rem;
  }

  .card-type {
    margin-top: 21px;
  }

  .education-card h3 {
    max-width: none;
    font-size: 1.32rem;
  }

  .education-card ul {
    margin-top: 19px;
    font-size: 0.77rem;
  }

  .experience-timeline {
    gap: 12px;
  }

  .experience-card {
    grid-template-columns: 38px 1fr;
    gap: 6px 11px;
    padding: 21px 17px 21px 0;
    border-radius: 15px;
  }

  .experience-timeline::before {
    left: 19px;
  }

  .experience-stem {
    grid-row: 1 / span 2;
    min-height: 36px;
  }

  .experience-stem span {
    top: 7px;
    left: 13px;
    width: 13px;
    height: 13px;
    border-width: 3px;
  }

  .experience-date {
    padding: 0;
    font-size: 0.66rem;
  }

  .experience-main {
    grid-column: 2;
  }

  .experience-type {
    font-size: 0.60rem;
  }

  .experience-main h3 {
    font-size: 1rem;
  }

  .experience-main > p:not(.experience-type):not(.experience-role) {
    font-size: 0.78rem;
  }

  .experience-tags {
    margin-top: 10px;
  }

  .inline-link {
    margin-top: 20px;
    font-size: 0.78rem;
  }

  .featured-work {
    border-radius: 20px;
  }

  .work-copy {
    min-height: 268px;
    padding: 29px 22px 26px;
  }

  .work-copy h3 {
    margin-top: 24px;
    font-size: 2.25rem;
  }

  .work-copy > p {
    font-size: 0.80rem;
  }

  .work-tags {
    gap: 5px;
    margin-top: 16px;
  }

  .work-tags span {
    min-height: 23px;
    padding: 2px 7px;
    font-size: 0.60rem;
  }

  .dashboard-preview {
    margin: 0 13px 18px;
    border-radius: 11px;
  }

  .preview-layout {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 226px;
  }

  .preview-side {
    gap: 11px;
    padding: 14px 9px;
  }

  .preview-board {
    padding: 12px;
  }

  .preview-metrics {
    gap: 5px;
    margin-top: 10px;
  }

  .preview-metrics > div {
    padding: 7px 5px;
  }

  .preview-metrics b {
    font-size: 0.53rem;
  }

  .preview-charts {
    gap: 5px;
    margin-top: 5px;
  }

  .preview-line-chart,
  .preview-bars {
    min-height: 84px;
  }

  .preview-line-chart svg {
    height: 59px;
  }

  .preview-bars {
    padding: 24px 6px 7px;
  }

  .preview-table {
    gap: 5px;
    margin-top: 5px;
    padding: 7px;
  }

  .archive-placeholder {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px 22px;
    border-radius: 18px;
  }

  .placeholder-stack {
    width: 110px;
    height: 122px;
    margin-left: 3px;
    transform: scale(0.72);
    transform-origin: top left;
  }

  .archive-placeholder h3 {
    font-size: 1.25rem;
  }

  .archive-placeholder p:not(.placeholder-index) {
    font-size: 0.80rem;
  }

  .contact-card {
    padding: 29px 22px 23px;
    border-radius: 20px;
  }

  .contact-card h2 {
    font-size: 1.7rem;
  }

  .pending-stamp {
    justify-self: start;
    font-size: 0.57rem;
  }

  .vibe-footer {
    flex-direction: column;
    gap: 5px;
    padding: 22px 0 28px;
    font-size: 0.60rem;
  }
}

/* 2026-08-30: ice-blue portfolio atmosphere and the opening chapter carousel. */
:root {
  --atmosphere-radius: clamp(26px, 3vw, 40px);
  --atmosphere-border: rgba(255, 255, 255, 0.9);
  --atmosphere-surface: rgba(246, 251, 255, 0.76);
  --atmosphere-shadow:
    0 34px 92px rgba(69, 112, 157, 0.11),
    0 4px 20px rgba(80, 128, 176, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

html {
  background: #edf6ff;
}

body.portfolio-home {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 7% 3%, rgba(255, 255, 255, 0.98) 0 13%, transparent 40%),
    radial-gradient(ellipse at 92% 8%, rgba(218, 235, 255, 0.78) 0 8%, transparent 36%),
    radial-gradient(ellipse at 18% 84%, rgba(239, 247, 255, 0.92) 0 10%, transparent 38%),
    linear-gradient(132deg, #fbfdff 0%, #f3f8ff 45%, #e7f2ff 100%);
  background-attachment: fixed;
}

body.portfolio-home .page-grid {
  z-index: -1;
  opacity: 1;
  overflow: hidden;
  background-image:
    radial-gradient(circle, rgba(96, 166, 235, 0.24) 0 1.25px, transparent 1.45px),
    linear-gradient(116deg, transparent 12%, rgba(255, 255, 255, 0.62) 29%, transparent 47%),
    linear-gradient(151deg, transparent 50%, rgba(177, 211, 246, 0.12) 68%, rgba(255, 255, 255, 0.5) 83%, transparent 95%);
  background-position: calc(100% - 66px) 76px, center, center;
  background-repeat: no-repeat;
  background-size: 156px 208px, auto, auto;
  mask-image: none;
}

body.portfolio-home .page-grid::before,
body.portfolio-home .page-grid::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  content: "";
}

body.portfolio-home .page-grid::before {
  top: -660px;
  right: 17vw;
  width: 1040px;
  height: 1040px;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.26),
    inset 0 -30px 90px rgba(196, 222, 250, 0.06);
}

body.portfolio-home .page-grid::after {
  bottom: -590px;
  left: -340px;
  width: 940px;
  height: 940px;
  background: radial-gradient(circle at 63% 34%, rgba(255, 255, 255, 0.48), rgba(214, 234, 254, 0.08) 54%, transparent 72%);
  box-shadow:
    inset 28px 24px 90px rgba(255, 255, 255, 0.44),
    0 42px 120px rgba(92, 146, 199, 0.06);
}

body.portfolio-home .nav-shell,
body.portfolio-home .hero-section,
body.portfolio-home .content-section,
body.portfolio-home #entry-portal.entry-portal {
  border-color: var(--atmosphere-border);
  border-radius: var(--atmosphere-radius);
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 255, 255, 0.92), transparent 26rem),
    linear-gradient(146deg, rgba(255, 255, 255, 0.84), var(--atmosphere-surface) 54%, rgba(233, 244, 255, 0.72));
  box-shadow: var(--atmosphere-shadow);
  backdrop-filter: blur(30px) saturate(0.92);
  -webkit-backdrop-filter: blur(30px) saturate(0.92);
}

body.portfolio-home .nav-shell {
  border-radius: var(--atmosphere-radius);
  background: rgba(249, 252, 255, 0.8);
}

body.portfolio-home .vibe-header.is-scrolled .nav-shell {
  border-color: rgba(255, 255, 255, 0.94);
  background: rgba(250, 253, 255, 0.93);
  box-shadow:
    0 22px 56px rgba(64, 111, 157, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

body.portfolio-home .hero-section {
  margin-top: clamp(56px, 7vw, 86px);
  background:
    radial-gradient(circle at 84% 21%, rgba(192, 222, 248, 0.4), transparent 19rem),
    radial-gradient(circle at 11% 91%, rgba(218, 237, 255, 0.34), transparent 22rem),
    linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(245, 250, 255, 0.76) 57%, rgba(232, 243, 254, 0.8));
}

body.portfolio-home .hero-section::before {
  opacity: 0.58;
  background:
    linear-gradient(116deg, transparent 15%, rgba(255, 255, 255, 0.72) 31%, transparent 46%),
    radial-gradient(ellipse at 46% 26%, rgba(189, 218, 247, 0.2), transparent 42%);
  background-size: auto;
  mask-image: none;
}

body.portfolio-home .content-section {
  position: relative;
  margin-top: clamp(56px, 7vw, 86px);
  padding: clamp(54px, 5.5vw, 76px) clamp(24px, 4.25vw, 52px) clamp(58px, 6vw, 82px);
}

body.portfolio-home .skills-section {
  padding-bottom: clamp(58px, 6vw, 82px);
}

/* Opening module: all selectors stay under #entry-portal to avoid touching existing cards. */
#entry-portal.entry-portal {
  --entry-ink: #1c252d;
  --entry-muted: #74828b;
  --entry-line: rgba(73, 88, 99, 0.14);
  --entry-ease-out: cubic-bezier(0.2, 0.78, 0.2, 1);
  --entry-ease-spring: cubic-bezier(0.2, 0.9, 0.2, 1.08);
  position: relative;
  z-index: 0;
  min-height: 690px;
  margin-top: 26px;
  padding: clamp(45px, 5.1vw, 68px) clamp(22px, 4.25vw, 52px) clamp(34px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
  color: var(--entry-ink);
}

#entry-portal.entry-portal::before,
#entry-portal.entry-portal::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

#entry-portal.entry-portal::before {
  inset: 0;
  opacity: 0.58;
  background:
    linear-gradient(112deg, transparent 14%, rgba(255, 255, 255, 0.74) 30%, transparent 44%),
    radial-gradient(ellipse at 43% 27%, rgba(207, 202, 210, 0.25), transparent 40%);
}

#entry-portal.entry-portal::after {
  inset: 9px;
  border: 1px solid rgba(92, 99, 106, 0.055);
  border-radius: calc(var(--atmosphere-radius) - 8px);
}

#entry-portal .entry-intro {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

#entry-portal .entry-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #89959d;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

#entry-portal .entry-eyebrow span {
  padding: 5px 9px;
  border: 1px solid rgba(67, 84, 94, 0.12);
  border-radius: 999px;
  color: #61717b;
  letter-spacing: 0.08em;
}

#entry-portal .entry-intro h1 {
  margin: 0;
  color: var(--entry-ink);
  font-size: clamp(3.1rem, 5.4vw, 4.85rem);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: -0.075em;
}

#entry-portal .intro-line {
  display: block;
  overflow: hidden;
  padding: 0 0.1em 0.055em;
}

#entry-portal .intro-line > span {
  display: block;
}

#entry-portal .entry-lede {
  max-width: 570px;
  margin: 17px auto 0;
  color: var(--entry-muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

#entry-portal .quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  margin: 15px auto 0;
  padding: 0 13px;
  border: 1px solid rgba(74, 84, 91, 0.11);
  border-radius: 999px;
  appearance: none;
  color: #687680;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 7px 20px rgba(72, 73, 80, 0.04);
  cursor: pointer;
  font: inherit;
  font-size: 0.69rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

#entry-portal .quiet-button svg,
#entry-portal .carousel-controls svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#entry-portal .quiet-button:hover,
#entry-portal .quiet-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(74, 84, 91, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--entry-ink);
}

#entry-portal .entry-carousel {
  position: relative;
  margin: clamp(24px, 3.4vw, 40px) auto 0;
}

#entry-portal .carousel-meta,
#entry-portal .carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#entry-portal .carousel-meta {
  width: min(1060px, 100%);
  margin: 0 auto -4px;
  color: #8c979d;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

#entry-portal .carousel-meta p {
  margin: 0;
}

#entry-portal .carousel-meta p:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

#entry-portal .carousel-meta p:first-child span {
  width: 17px;
  height: 1px;
  background: #aab2b7;
}

#entry-portal .carousel-hint {
  letter-spacing: 0.06em;
}

#entry-portal .card-stage {
  position: relative;
  width: min(1140px, 100%);
  height: 345px;
  margin: 0 auto;
  overflow: hidden;
  outline: none;
  perspective: 1500px;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

#entry-portal .card-stage:focus-visible {
  border-radius: 22px;
  outline: 2px solid rgba(65, 85, 96, 0.72);
  outline-offset: 3px;
}

#entry-portal .nav-card {
  --slot-x: 0px;
  --slot-scale: 1;
  --slot-rotate: 0deg;
  --slot-y: 0px;
  --slot-opacity: 1;
  --slot-z: 5;
  position: absolute;
  z-index: var(--slot-z);
  top: 24px;
  left: 50%;
  display: block;
  width: clamp(176px, 17vw, 208px);
  height: 286px;
  opacity: var(--slot-opacity);
  color: var(--card-ink, #24323a);
  text-decoration: none;
  transform: translateX(calc(-50% + var(--slot-x))) translateY(var(--slot-y)) scale(var(--slot-scale)) rotateY(var(--slot-rotate));
  transform-style: preserve-3d;
  transition:
    transform 760ms var(--entry-ease-out),
    opacity 520ms ease,
    filter 520ms ease;
  will-change: transform, opacity;
}

#entry-portal .nav-card[data-slot="-2"] {
  --slot-x: clamp(-430px, -36vw, -350px);
  --slot-scale: 0.78;
  --slot-rotate: 10deg;
  --slot-y: 14px;
  --slot-opacity: 0.5;
  --slot-z: 1;
}

#entry-portal .nav-card[data-slot="-1"] {
  --slot-x: clamp(-225px, -18.5vw, -190px);
  --slot-scale: 0.9;
  --slot-rotate: 5deg;
  --slot-y: 7px;
  --slot-opacity: 0.78;
  --slot-z: 3;
}

#entry-portal .nav-card[data-slot="0"] {
  --slot-x: 0px;
  --slot-scale: 1.08;
  --slot-rotate: 0deg;
  --slot-y: 0px;
  --slot-opacity: 1;
  --slot-z: 6;
}

#entry-portal .nav-card[data-slot="1"] {
  --slot-x: clamp(190px, 18.5vw, 225px);
  --slot-scale: 0.9;
  --slot-rotate: -5deg;
  --slot-y: 7px;
  --slot-opacity: 0.78;
  --slot-z: 3;
}

#entry-portal .nav-card[data-slot="2"] {
  --slot-x: clamp(350px, 36vw, 430px);
  --slot-scale: 0.78;
  --slot-rotate: -10deg;
  --slot-y: 14px;
  --slot-opacity: 0.5;
  --slot-z: 1;
}

#entry-portal .nav-card.is-wrapping {
  opacity: 0;
  transition: none;
}

#entry-portal .nav-card-surface {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 19%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(148deg, var(--card-a), var(--card-b));
  box-shadow:
    0 18px 44px rgba(57, 65, 71, 0.13),
    0 2px 7px rgba(59, 63, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 220ms var(--entry-ease-out), box-shadow 220ms ease, border-color 220ms ease;
}

#entry-portal .nav-card:nth-child(1) {
  --card-a: #f0f1ef;
  --card-b: #dfe6e4;
  --card-ink: #273a3a;
  --card-accent: #7d9e98;
}

#entry-portal .nav-card:nth-child(2) {
  --card-a: #f2eee9;
  --card-b: #e3dcd5;
  --card-ink: #4a3e37;
  --card-accent: #ad8e76;
}

#entry-portal .nav-card:nth-child(3) {
  --card-a: #e8ebee;
  --card-b: #d4dce3;
  --card-ink: #243745;
  --card-accent: #718b9e;
}

#entry-portal .nav-card:nth-child(4) {
  --card-a: #e8ebee;
  --card-b: #d8d9e4;
  --card-ink: #34364b;
  --card-accent: #8287ad;
}

#entry-portal .nav-card:nth-child(5) {
  --card-a: #eeebe9;
  --card-b: #e4dfe2;
  --card-ink: #493d45;
  --card-accent: #a68797;
}

#entry-portal .nav-card[data-slot="0"] .nav-card-surface {
  border-color: #fff;
  box-shadow:
    0 27px 60px rgba(52, 62, 70, 0.19),
    0 4px 12px rgba(54, 62, 67, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#entry-portal .nav-card:hover .nav-card-surface,
#entry-portal .nav-card:focus-visible .nav-card-surface {
  transform: translateY(-7px);
  border-color: #fff;
  box-shadow:
    0 30px 64px rgba(50, 59, 66, 0.2),
    0 4px 13px rgba(54, 62, 67, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#entry-portal .nav-card:focus-visible {
  outline: none;
}

#entry-portal .nav-card:focus-visible .nav-card-surface {
  outline: 2px solid rgba(41, 59, 71, 0.65);
  outline-offset: 3px;
}

#entry-portal .card-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: color-mix(in srgb, var(--card-ink), transparent 26%);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.44rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

#entry-portal .card-topline i {
  position: relative;
  width: 6px;
  height: 6px;
  border: 1px solid color-mix(in srgb, var(--card-ink), transparent 44%);
  border-radius: 50%;
}

#entry-portal .card-topline i::after {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 10px;
  height: 1px;
  background: color-mix(in srgb, var(--card-ink), transparent 78%);
  content: "";
}

#entry-portal .card-art {
  position: relative;
  z-index: 1;
  display: block;
  height: 125px;
  margin: 9px 0 3px;
}

#entry-portal .card-art-reference {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  filter: saturate(0.94) contrast(0.98) brightness(1.02);
  -webkit-mask-image: radial-gradient(ellipse 88% 84% at 50% 49%, #000 62%, rgba(0, 0, 0, 0.9) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 84% at 50% 49%, #000 62%, rgba(0, 0, 0, 0.9) 78%, transparent 100%);
}

#entry-portal .card-art::before {
  position: absolute;
  inset: 10px 2px 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 48% 52% 46% 54% / 54% 43% 57% 46%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 14px 12px 28px rgba(255, 255, 255, 0.2);
  content: "";
}

#entry-portal .card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 90px;
  margin-top: auto;
  flex-direction: column;
}

#entry-portal .card-copy small {
  margin-bottom: 4px;
  color: color-mix(in srgb, var(--card-ink), transparent 40%);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.44rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

#entry-portal .card-copy strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

#entry-portal .card-copy > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--card-ink), transparent 84%);
  color: color-mix(in srgb, var(--card-ink), transparent 31%);
  font-size: 0.5rem;
  font-weight: 700;
}

#entry-portal .card-copy > span b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-ink), transparent 76%);
  border-radius: 50%;
  font-size: 0.56rem;
}

#entry-portal :is(.art-halo, .art-portrait, .art-orbit, .art-sheet, .art-cap, .art-path, .art-node, .art-date, .art-window, .art-code, .art-spark, .art-petal, .art-core) {
  position: absolute;
  display: block;
}

#entry-portal .art-halo {
  top: 22px;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(143, 174, 168, 0.18) 55%, transparent 70%);
}

#entry-portal .art-portrait {
  top: 34px;
  left: 50%;
  width: 47px;
  height: 58px;
  transform: translateX(-50%);
  border: 1px solid rgba(42, 75, 72, 0.15);
  border-radius: 25px 25px 18px 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(101, 136, 131, 0.6));
  box-shadow: 0 13px 22px rgba(52, 83, 80, 0.18);
}

#entry-portal .art-portrait::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(39, 65, 64, 0.58);
  content: "";
}

#entry-portal .art-portrait b {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  height: 16px;
  border-radius: 14px 14px 8px 8px;
  background: rgba(39, 65, 64, 0.46);
}

#entry-portal .art-orbit {
  top: 60px;
  left: 50%;
  border: 1px solid rgba(56, 91, 88, 0.24);
  border-radius: 50%;
}

#entry-portal .art-orbit-one {
  width: 128px;
  height: 34px;
  transform: translate(-50%, -50%) rotate(-12deg);
}

#entry-portal .art-orbit-two {
  width: 110px;
  height: 29px;
  transform: translate(-50%, -50%) rotate(17deg);
}

#entry-portal .art-sheet {
  top: 27px;
  left: 50%;
  width: 61px;
  height: 77px;
  border: 1px solid rgba(91, 69, 54, 0.14);
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(80, 67, 58, 0.13);
}

#entry-portal .art-sheet::before,
#entry-portal .art-sheet::after {
  position: absolute;
  right: 11px;
  left: 11px;
  height: 1px;
  background: rgba(79, 62, 51, 0.17);
  box-shadow: 0 9px rgba(79, 62, 51, 0.12), 0 18px rgba(79, 62, 51, 0.12);
  content: "";
}

#entry-portal .art-sheet::before {
  top: 35px;
}

#entry-portal .art-sheet-one {
  transform: translateX(-64%) rotate(-8deg);
  background: #e2d1c2;
}

#entry-portal .art-sheet-two {
  transform: translateX(-36%) rotate(6deg);
  background: rgba(255, 255, 255, 0.75);
}

#entry-portal .art-cap {
  top: 39px;
  left: 50%;
  width: 43px;
  height: 24px;
  transform: translateX(-50%) rotate(-3deg);
}

#entry-portal .art-cap::before {
  position: absolute;
  width: 43px;
  height: 23px;
  transform: rotate(45deg) scale(0.7);
  border-radius: 3px;
  background: #66574d;
  box-shadow: 0 8px 16px rgba(78, 62, 51, 0.18);
  content: "";
}

#entry-portal .art-cap b {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 25px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 2px 2px 10px 10px;
  background: #7a685c;
}

#entry-portal .art-path {
  top: 29px;
  left: 28px;
  width: 129px;
  height: 65px;
  transform: skewX(-24deg);
  border-bottom: 1px solid rgba(45, 70, 85, 0.23);
  border-left: 1px solid rgba(45, 70, 85, 0.23);
  border-radius: 0 0 0 31px;
}

#entry-portal .art-node {
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: #728d9e;
  box-shadow: 0 3px 10px rgba(41, 69, 84, 0.2);
}

#entry-portal .art-node-one { top: 73px; left: 28px; }
#entry-portal .art-node-two { top: 49px; left: 83px; }
#entry-portal .art-node-three { top: 26px; right: 25px; }

#entry-portal .art-date {
  right: 22px;
  bottom: 14px;
  color: rgba(36, 55, 69, 0.52);
  font: 700 0.44rem/1 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.12em;
}

#entry-portal .art-window {
  top: 25px;
  left: 50%;
  width: 108px;
  height: 75px;
  transform: translateX(-50%) rotate(-3deg);
  overflow: hidden;
  border: 1px solid rgba(54, 53, 83, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 24px rgba(59, 58, 88, 0.15);
}

#entry-portal .art-window::before {
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  border-bottom: 1px solid rgba(53, 53, 82, 0.09);
  background: rgba(117, 119, 154, 0.12);
  content: "";
}

#entry-portal .art-window b,
#entry-portal .art-window i,
#entry-portal .art-window em {
  position: absolute;
  display: block;
  border-radius: 3px;
  background: rgba(107, 111, 158, 0.25);
}

#entry-portal .art-window b { top: 23px; left: 11px; width: 31px; height: 38px; }
#entry-portal .art-window i { top: 23px; right: 11px; width: 46px; height: 9px; }
#entry-portal .art-window em { top: 39px; right: 18px; width: 39px; height: 22px; }

#entry-portal .art-code {
  top: 48px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  color: #555c83;
  font: 800 1.19rem/1 Consolas, "SFMono-Regular", monospace;
  text-shadow: 0 2px 12px rgba(66, 66, 104, 0.18);
}

#entry-portal .art-spark {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid rgba(69, 69, 108, 0.4);
  background: rgba(255, 255, 255, 0.5);
}

#entry-portal .art-spark-one { top: 30px; right: 26px; }
#entry-portal .art-spark-two { bottom: 23px; left: 25px; width: 5px; height: 5px; }

#entry-portal .art-petal {
  top: 53px;
  left: 50%;
  width: 54px;
  height: 28px;
  transform-origin: 0 50%;
  border: 1px solid rgba(82, 63, 75, 0.12);
  border-radius: 50% 10% 50% 10%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(166, 133, 151, 0.42));
  box-shadow: 0 7px 18px rgba(90, 69, 82, 0.09);
}

#entry-portal .art-petal-one { transform: rotate(-6deg); }
#entry-portal .art-petal-two { transform: rotate(84deg); }
#entry-portal .art-petal-three { transform: rotate(174deg); }
#entry-portal .art-petal-four { transform: rotate(264deg); }

#entry-portal .art-core {
  top: 43px;
  left: 50%;
  display: grid;
  width: 22px;
  height: 22px;
  transform: translate(-50%, 0);
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: #9b7d8d;
  color: #fff;
  font-size: 0.75rem;
  box-shadow: 0 5px 13px rgba(88, 65, 78, 0.17);
}

#entry-portal .carousel-toolbar {
  width: min(1060px, 100%);
  min-height: 44px;
  margin: -7px auto 0;
  padding-top: 11px;
  border-top: 1px solid var(--entry-line);
}

#entry-portal .carousel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

#entry-portal .carousel-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(59, 72, 81, 0.12);
  border-radius: 50%;
  appearance: none;
  background: rgba(255, 255, 255, 0.58);
  color: #667680;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

#entry-portal .carousel-controls button:not(:disabled):hover,
#entry-portal .carousel-controls button:not(:disabled):focus-visible {
  transform: translateY(-1px);
  background: #23313a;
  color: #fff;
  outline: none;
}

#entry-portal .carousel-controls .play-toggle {
  width: 28px;
  height: 28px;
  margin: 0 2px;
  background: transparent;
}

#entry-portal .carousel-controls .play-toggle:disabled {
  opacity: 0.38;
  background: transparent;
  color: #87939a;
  cursor: not-allowed;
  transform: none;
}

#entry-portal .play-icon {
  display: none;
}

#entry-portal .play-toggle[aria-pressed="true"] .pause-icon {
  display: none;
}

#entry-portal .play-toggle[aria-pressed="true"] .play-icon {
  display: block;
}

#entry-portal .carousel-state {
  display: flex;
  align-items: center;
  gap: 18px;
}

#entry-portal .carousel-status {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 108px;
  margin: 0;
}

#entry-portal .carousel-status strong {
  color: #43525c;
  font: 700 0.63rem/1 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.07em;
}

#entry-portal .carousel-status span,
#entry-portal .tap-note {
  color: #7d8991;
  font-size: 0.63rem;
}

#entry-portal .carousel-dots {
  display: flex;
  align-items: center;
  gap: 0;
}

#entry-portal .carousel-dots button {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#entry-portal .carousel-dots button::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c5cbce;
  content: "";
  transition: width 220ms ease, border-radius 220ms ease, background 220ms ease;
}

#entry-portal .carousel-dots button[aria-current="true"]::before {
  width: 19px;
  border-radius: 999px;
  background: #4e606a;
}

#entry-portal .carousel-dots button:focus-visible {
  outline: 2px solid #526670;
  outline-offset: 3px;
}

#entry-portal .tap-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#entry-portal .tap-note span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(62, 75, 84, 0.12);
  border-radius: 50%;
}

#entry-portal.is-intro .entry-eyebrow {
  animation: entry-copy-fade 620ms 130ms var(--entry-ease-out) both;
}

#entry-portal.is-intro .intro-line:first-child > span {
  animation: entry-line-reveal 820ms 230ms var(--entry-ease-out) both;
}

#entry-portal.is-intro .intro-line:nth-child(2) > span {
  animation: entry-line-reveal 820ms 370ms var(--entry-ease-out) both;
}

#entry-portal.is-intro .entry-lede,
#entry-portal.is-intro .quiet-button {
  animation: entry-copy-fade 680ms 630ms var(--entry-ease-out) both;
}

#entry-portal.is-intro .carousel-meta,
#entry-portal.is-intro .carousel-toolbar {
  animation: entry-copy-fade 600ms 1280ms var(--entry-ease-out) both;
}

#entry-portal.is-intro .nav-card {
  animation: entry-card-spread 1050ms var(--intro-delay, 850ms) var(--entry-ease-spring) both;
}

@keyframes entry-line-reveal {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: none; }
}

@keyframes entry-copy-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes entry-card-spread {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-50%) translateY(50px) scale(0.42) rotateY(0deg);
  }
  24% {
    opacity: 0.96;
    filter: blur(0);
    transform: translateX(-50%) translateY(8px) scale(0.72) rotateY(0deg);
  }
  100% {
    opacity: var(--slot-opacity);
    filter: blur(0);
    transform: translateX(calc(-50% + var(--slot-x))) translateY(var(--slot-y)) scale(var(--slot-scale)) rotateY(var(--slot-rotate));
  }
}

@media (max-width: 1040px) {
  #entry-portal.entry-portal {
    min-height: 680px;
    padding-inline: clamp(18px, 3.8vw, 40px);
  }

  #entry-portal .card-stage {
    height: 337px;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  }

  #entry-portal .nav-card {
    top: 21px;
    width: min(248px, calc(100% - 58px));
  }

  #entry-portal .nav-card[data-slot="-2"] {
    --slot-x: clamp(-720px, -65vw, -520px);
    --slot-scale: 0.86;
    --slot-rotate: 0deg;
    --slot-opacity: 0;
  }

  #entry-portal .nav-card[data-slot="-1"] {
    --slot-x: clamp(-330px, -32vw, -242px);
    --slot-scale: 0.88;
    --slot-rotate: 0deg;
    --slot-opacity: 0.42;
  }

  #entry-portal .nav-card[data-slot="0"] {
    --slot-scale: 1.02;
  }

  #entry-portal .nav-card[data-slot="1"] {
    --slot-x: clamp(242px, 32vw, 330px);
    --slot-scale: 0.88;
    --slot-rotate: 0deg;
    --slot-opacity: 0.42;
  }

  #entry-portal .nav-card[data-slot="2"] {
    --slot-x: clamp(520px, 65vw, 720px);
    --slot-scale: 0.86;
    --slot-rotate: 0deg;
    --slot-opacity: 0;
  }
}

@media (max-width: 760px) {
  #entry-portal.entry-portal {
    display: grid;
    min-height: calc(100vh - 92px);
    min-height: calc(100svh - 92px);
    padding: 38px 14px 26px;
    grid-template-rows: auto minmax(0, 1fr);
  }

  #entry-portal.entry-portal::after {
    inset: 6px;
    border-radius: calc(var(--atmosphere-radius) - 6px);
  }

  #entry-portal .entry-intro h1 {
    font-size: clamp(2.3rem, 10.5vw, 3.25rem);
    line-height: 1.05;
  }

  #entry-portal .entry-eyebrow {
    gap: 8px;
    font-size: 0.5rem;
  }

  #entry-portal .entry-lede {
    max-width: 320px;
    margin-top: 14px;
    font-size: 0.75rem;
  }

  #entry-portal .quiet-button {
    min-height: 32px;
    margin-top: 13px;
  }

  #entry-portal .entry-carousel {
    display: grid;
    width: 100%;
    min-height: 0;
    margin-top: 21px;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  #entry-portal .carousel-meta {
    padding-inline: 6px;
  }

  #entry-portal .carousel-hint {
    display: none;
  }

  #entry-portal .card-stage {
    align-self: center;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  }

  #entry-portal .carousel-toolbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 18px;
    margin-top: -4px;
    padding: 13px 6px 0;
  }

  #entry-portal .carousel-state {
    justify-self: end;
    gap: 12px;
  }

  #entry-portal .carousel-status {
    min-width: 0;
  }

  #entry-portal .carousel-status span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  #entry-portal .tap-note {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 350px) {
  #entry-portal .carousel-toolbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  #entry-portal .carousel-state {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  :root {
    --atmosphere-radius: 25px;
  }

  body.portfolio-home .nav-shell {
    border-radius: var(--atmosphere-radius);
  }

  body.portfolio-home #entry-portal.entry-portal {
    min-height: calc(100vh - 81px);
    min-height: calc(100svh - 81px);
    margin-top: 15px;
  }

  body.portfolio-home .hero-section,
  body.portfolio-home .content-section {
    margin-top: 44px;
  }

  body.portfolio-home .content-section {
    padding: 43px 16px 46px;
  }

  body.portfolio-home .skills-section {
    padding-bottom: 46px;
  }
}

@media (max-width: 410px) {
  #entry-portal.entry-portal {
    padding-top: 34px;
  }

  #entry-portal .entry-eyebrow {
    letter-spacing: 0.11em;
  }

  #entry-portal .entry-intro h1 {
    font-size: 2.27rem;
  }

  #entry-portal .entry-lede {
    font-size: 0.7rem;
  }

  #entry-portal .quiet-button span {
    display: none;
  }

  #entry-portal .quiet-button {
    width: 34px;
    padding: 0;
  }

  #entry-portal .card-stage {
    height: 324px;
  }

  #entry-portal .nav-card {
    height: 274px;
  }

  #entry-portal .card-art {
    height: 118px;
  }
}

@media (max-height: 800px) and (min-width: 1041px) {
  #entry-portal.entry-portal {
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 31px;
  }

  #entry-portal .entry-carousel {
    margin-top: 23px;
  }

  #entry-portal .card-stage {
    height: 324px;
  }
}

/* Give laptop-sized desktop viewports a stronger card presence without touching tablet/mobile. */
@media (min-width: 1041px) and (max-width: 1999px) and (min-height: 801px) {
  #entry-portal .card-stage {
    height: 355px;
  }

  #entry-portal .nav-card {
    top: 18px;
    width: clamp(224px, 15.2vw, 232px);
    height: clamp(298px, 20.2vw, 310px);
  }

  #entry-portal .nav-card[data-slot="-2"] { --slot-x: -455px; }
  #entry-portal .nav-card[data-slot="-1"] { --slot-x: -246px; }
  #entry-portal .nav-card[data-slot="1"] { --slot-x: 246px; }
  #entry-portal .nav-card[data-slot="2"] { --slot-x: 455px; }

  #entry-portal .card-art {
    height: clamp(132px, 8.8vw, 138px);
  }

  #entry-portal .card-copy {
    min-height: 96px;
  }

  #entry-portal .card-copy strong {
    font-size: 1.34rem;
  }
}

/* On short laptop screens, enlarge the cards horizontally while preserving the first-screen height. */
@media (min-width: 1041px) and (max-width: 1999px) and (max-height: 800px) {
  #entry-portal .nav-card {
    top: 18px;
    width: 224px;
    height: 286px;
  }

  #entry-portal .nav-card[data-slot="-2"] { --slot-x: -448px; }
  #entry-portal .nav-card[data-slot="-1"] { --slot-x: -238px; }
  #entry-portal .nav-card[data-slot="1"] { --slot-x: 238px; }
  #entry-portal .nav-card[data-slot="2"] { --slot-x: 448px; }

  #entry-portal .card-art {
    height: 129px;
  }

  #entry-portal .card-copy strong {
    font-size: 1.3rem;
  }
}

/* Keep the complete navigation and opening module inside one desktop viewport. */
@media (min-width: 761px) {
  #entry-portal.entry-portal {
    display: grid;
    min-height: calc(100vh - 104px);
    min-height: calc(100svh - 104px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  #entry-portal .entry-carousel {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  #entry-portal .card-stage {
    align-self: center;
  }
}

@media (min-width: 761px) and (max-width: 820px) {
  #entry-portal.entry-portal {
    min-height: calc(100vh - 92px);
    min-height: calc(100svh - 92px);
  }
}

/* Let scaled 2K external displays use their extra space without changing 1920px-and-below laptop sizing. */
@media (min-width: 2000px) and (min-height: 1050px) {
  body.portfolio-home {
    --content: 1660px;
  }

  #entry-portal.entry-portal {
    padding-inline: 40px;
  }

  #entry-portal .entry-intro {
    width: min(1040px, 100%);
  }

  #entry-portal .entry-intro h1 {
    font-size: 5.25rem;
  }

  #entry-portal .entry-carousel {
    margin-top: 44px;
  }

  #entry-portal .carousel-meta,
  #entry-portal .carousel-toolbar {
    width: min(1500px, 100%);
    margin-inline: auto;
  }

  #entry-portal .card-stage {
    width: min(1580px, 100%);
    height: 510px;
  }

  #entry-portal .nav-card {
    top: 36px;
    width: 320px;
    height: 420px;
  }

  #entry-portal .nav-card[data-slot="-2"] {
    --slot-x: -640px;
    --slot-scale: 0.8;
    --slot-rotate: 12deg;
    --slot-y: 38px;
  }

  #entry-portal .nav-card[data-slot="-1"] {
    --slot-x: -340px;
    --slot-scale: 0.93;
    --slot-rotate: 6deg;
    --slot-y: 16px;
  }

  #entry-portal .nav-card[data-slot="0"] {
    --slot-scale: 1.1;
  }

  #entry-portal .nav-card[data-slot="1"] {
    --slot-x: 340px;
    --slot-scale: 0.93;
    --slot-rotate: -6deg;
    --slot-y: 16px;
  }

  #entry-portal .nav-card[data-slot="2"] {
    --slot-x: 640px;
    --slot-scale: 0.8;
    --slot-rotate: -12deg;
    --slot-y: 38px;
  }

  #entry-portal .nav-card-surface {
    padding: 22px;
    border-radius: 29px;
  }

  #entry-portal .card-topline,
  #entry-portal .card-copy small {
    font-size: 0.55rem;
  }

  #entry-portal .card-art {
    height: 192px;
    margin-top: 12px;
  }

  #entry-portal .card-copy {
    min-height: 132px;
  }

  #entry-portal .card-copy strong {
    font-size: 1.78rem;
  }

  #entry-portal .card-copy > span {
    font-size: 0.62rem;
  }

  #entry-portal .card-copy > span b {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }
}

@media (min-width: 2300px) and (min-height: 1200px) {
  body.portfolio-home {
    --content: 1900px;
  }

  #entry-portal .entry-intro {
    width: min(1120px, 100%);
  }

  #entry-portal .entry-intro h1 {
    font-size: 6rem;
  }

  #entry-portal .entry-carousel {
    margin-top: 48px;
  }

  #entry-portal .carousel-meta,
  #entry-portal .carousel-toolbar {
    width: min(1740px, 100%);
  }

  #entry-portal .card-stage {
    width: min(1820px, 100%);
    height: 535px;
  }

  #entry-portal .nav-card {
    top: 40px;
    width: 320px;
    height: 420px;
  }

  #entry-portal .nav-card[data-slot="-2"] {
    --slot-x: -710px;
    --slot-scale: 0.82;
    --slot-rotate: 14deg;
    --slot-y: 50px;
  }

  #entry-portal .nav-card[data-slot="-1"] {
    --slot-x: -360px;
    --slot-scale: 0.94;
    --slot-rotate: 7deg;
    --slot-y: 20px;
  }

  #entry-portal .nav-card[data-slot="0"] {
    --slot-scale: 1.1;
  }

  #entry-portal .nav-card[data-slot="1"] {
    --slot-x: 360px;
    --slot-scale: 0.94;
    --slot-rotate: -7deg;
    --slot-y: 20px;
  }

  #entry-portal .nav-card[data-slot="2"] {
    --slot-x: 710px;
    --slot-scale: 0.82;
    --slot-rotate: -14deg;
    --slot-y: 50px;
  }

  #entry-portal .nav-card-surface {
    padding: 22px;
    border-radius: 30px;
  }

  #entry-portal .card-art {
    height: 192px;
    margin-top: 14px;
  }

  #entry-portal .card-copy {
    min-height: 132px;
  }

  #entry-portal .card-copy strong {
    font-size: 1.78rem;
  }

  #entry-portal .card-copy > span {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #entry-portal,
  #entry-portal *,
  #entry-portal *::before,
  #entry-portal *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1040px) {
  .archive-placeholder.archive-draw {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 820px) {
  .archive-placeholder.archive-draw {
    grid-template-columns: 1fr;
    gap: 29px;
    min-height: 0;
    padding: 40px 34px;
  }

  .archive-draw .archive-deck-wrap,
  .archive-draw .archive-record {
    width: min(100%, 580px);
    justify-self: center;
  }

  .archive-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .archive-placeholder.archive-draw {
    gap: 23px;
    padding: 28px 19px 30px;
    border-radius: 18px;
  }

  .archive-actions {
    gap: 7px;
  }

  .archive-action {
    min-height: 37px;
    padding: 8px 11px;
    font-size: 0.72rem;
  }

  .archive-filter-tabs button {
    padding-right: 9px;
    padding-left: 9px;
  }

  .archive-draw .archive-record {
    min-height: 272px;
    padding: 28px 22px 22px;
    border-radius: 20px;
  }

  .archive-record[data-has-media="true"],
  .archive-record[data-image-layout="landscape"] {
    min-height: 0;
    padding-right: 22px;
  }

  .archive-record-media,
  .archive-record[data-image-layout="landscape"] .archive-record-media {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 158px;
    margin: 0 0 18px;
    align-self: center;
  }

  .archive-record[data-image-layout="portrait"] .archive-record-media {
    width: 142px;
    height: 178px;
  }

  .archive-draw .archive-record h3 {
    max-width: 86%;
    font-size: 1.52rem;
  }

  .archive-placeholder .archive-record > p {
    font-size: 0.81rem;
  }

  .archive-record-orbits {
    right: -72px;
    width: 206px;
    height: 206px;
  }

  .archive-record-orbits span:nth-child(2) {
    width: 132px;
    height: 132px;
  }

  .archive-record-orbits span:nth-child(3) {
    width: 186px;
    height: 186px;
  }

  .archive-all {
    padding-top: 23px;
  }

  .archive-all-heading {
    gap: 10px;
  }

  .archive-all-heading p,
  .archive-all-heading span {
    font-size: 0.62rem;
  }

  .archive-card-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .archive-grid-card {
    min-height: 184px;
    padding: 17px;
  }
}

/* The dashboard stays on the portfolio page; its own page chrome is hidden in embed mode. */
.featured-work.featured-work-embedded {
  display: block;
  min-height: 0;
}

.featured-work-embedded:hover {
  box-shadow: 0 28px 58px rgba(11, 22, 37, 0.22);
  transform: none;
}

.featured-work-embedded .work-copy {
  min-height: 0;
  padding: 42px 48px 36px;
}

.featured-work-embedded .work-open {
  margin-top: 22px;
}

.dashboard-embed-shell {
  position: relative;
  z-index: 1;
  margin: 0 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  background: #f5f7fb;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.dashboard-embed {
  display: block;
  width: 100%;
  height: 1104px;
  border: 0;
  background: #f5f7fb;
}

/* Single-card archive: the front stays intentionally text-light, then flips to a random record. */
.archive-placeholder.archive-draw {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 620px;
  padding: clamp(38px, 5vw, 64px);
}

.archive-flip-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 560px);
  justify-items: center;
  gap: 22px;
  perspective: 1600px;
}

.archive-flip-card {
  position: relative;
  width: 100%;
  height: 520px;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.archive-flip-card.is-revealed {
  transform: rotateY(180deg);
}

.archive-flip-card.is-reshuffling {
  animation: archive-redeal 680ms cubic-bezier(0.45, 0.05, 0.2, 1);
}

@keyframes archive-redeal {
  from {
    transform: rotateY(180deg);
  }

  50% {
    transform: rotateY(360deg);
  }

  to {
    transform: rotateY(540deg);
  }
}

.archive-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 218, 226, 0.94);
  border-radius: 28px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.archive-flip-cover {
  display: grid;
  place-items: center;
  isolation: isolate;
  border-color: rgba(166, 201, 235, 0.72);
  color: #214f78;
  background:
    radial-gradient(circle at 50% 42%, rgba(144, 198, 246, 0.26), transparent 31%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), transparent 42%),
    linear-gradient(148deg, #fbfdff, #e4f1fe 76%);
  box-shadow: 0 22px 38px rgba(60, 113, 163, 0.14);
}

.archive-flip-cover::before {
  position: absolute;
  z-index: -1;
  width: 198px;
  height: 198px;
  border: 1px solid rgba(91, 159, 220, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(126, 183, 233, 0.08), 0 0 0 50px rgba(126, 183, 233, 0.04);
  content: "";
}

.archive-flip-cover::after {
  position: absolute;
  inset: 20px;
  z-index: -1;
  border: 1px solid rgba(145, 188, 228, 0.28);
  border-radius: 20px;
  content: "";
}

.archive-flip-cover span {
  color: #214f78;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: clamp(0.93rem, 2vw, 1.18rem);
  font-weight: 850;
  letter-spacing: 0.16em;
}

.archive-flip-record {
  --record-accent: #13b8c7;
  --record-accent-dark: #0c6572;
  display: flex;
  flex-direction: column;
  padding: 36px 39px 29px;
  color: var(--slate);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 34px rgba(31, 58, 82, 0.10);
  transform: rotateY(180deg);
}

.archive-flip-card[data-kind="hobby"] .archive-flip-record {
  --record-accent: #7daeb3;
  --record-accent-dark: #426d72;
}

.archive-flip-orbits {
  position: absolute;
  top: 50%;
  right: -62px;
  width: 262px;
  height: 262px;
  opacity: 0.9;
  transform: translateY(-50%);
}

.archive-flip-orbits span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(19, 184, 199, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.archive-flip-card[data-kind="hobby"] .archive-flip-orbits span {
  border-color: rgba(91, 143, 149, 0.30);
}

.archive-flip-orbits span:nth-child(1) {
  width: 92px;
  height: 92px;
  background: rgba(19, 184, 199, 0.09);
}

.archive-flip-card[data-kind="hobby"] .archive-flip-orbits span:nth-child(1) {
  background: rgba(125, 174, 179, 0.11);
}

.archive-flip-orbits span:nth-child(2) {
  width: 159px;
  height: 159px;
}

.archive-flip-orbits span:nth-child(3) {
  width: 226px;
  height: 226px;
}

.archive-flip-media {
  position: absolute;
  z-index: 2;
  top: 26px;
  right: 26px;
  width: 168px;
  height: 212px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 17px;
  background: #dce9ea;
  box-shadow: 0 13px 25px rgba(31, 58, 82, 0.16);
}

.archive-flip-media[hidden] {
  display: none;
}

.archive-flip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-flip-card[data-has-media="true"] .archive-flip-record {
  padding-right: 242px;
}

.archive-flip-card[data-image-layout="landscape"] .archive-flip-media {
  width: 220px;
  height: 138px;
}

.archive-flip-card[data-image-layout="landscape"] .archive-flip-record {
  padding-right: 258px;
}

.archive-flip-topline,
.archive-flip-record h3,
.archive-flip-description,
.archive-flip-tags,
.archive-flip-footer {
  position: relative;
  z-index: 1;
}

.archive-flip-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.archive-placeholder .archive-flip-record .archive-flip-kicker {
  margin: 0;
  color: var(--record-accent-dark);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.archive-flip-category {
  padding: 4px 8px;
  border: 1px solid rgba(19, 184, 199, 0.42);
  border-radius: 999px;
  color: var(--record-accent-dark);
  background: rgba(223, 247, 248, 0.70);
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.archive-flip-card[data-kind="hobby"] .archive-flip-category {
  border-color: rgba(91, 143, 149, 0.38);
  background: rgba(232, 243, 243, 0.84);
}

.archive-placeholder .archive-flip-record h3 {
  max-width: 82%;
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.archive-placeholder .archive-flip-record .archive-flip-description {
  max-width: 480px;
  margin: 0;
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.72;
}

.archive-flip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  margin: 19px 0 16px;
  padding: 0;
  list-style: none;
}

.archive-flip-tags li {
  padding: 4px 8px;
  border: 1px solid rgba(188, 209, 219, 0.80);
  border-radius: 999px;
  color: #42627a;
  background: rgba(255, 255, 255, 0.70);
  font-size: 0.70rem;
  font-weight: 720;
}

.archive-flip-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(215, 224, 232, 0.88);
  color: #70889a;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.archive-flip-stage .archive-action {
  min-height: 42px;
  padding: 9px 17px;
}

.archive-flip-stage .archive-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

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

@media (max-width: 1120px) {
  .dashboard-embed {
    height: 980px;
  }
}

@media (max-width: 820px) {
  .featured-work-embedded .work-copy {
    min-height: 0;
    padding: 35px 31px 25px;
  }

  .dashboard-embed-shell {
    margin: 0 20px 20px;
    border-radius: 18px;
  }

  .dashboard-embed {
    height: 930px;
  }

  .archive-placeholder.archive-draw {
    min-height: 0;
    padding: 42px 30px;
  }
}

@media (max-width: 560px) {
  .featured-work-embedded .work-copy {
    padding: 29px 23px 22px;
  }

  .dashboard-embed-shell {
    margin: 0 13px 13px;
    border-radius: 15px;
  }

  .dashboard-embed {
    height: 880px;
  }

  .archive-placeholder.archive-draw {
    padding: 28px 19px 30px;
    border-radius: 18px;
  }

  .archive-flip-stage {
    gap: 18px;
  }

  .archive-flip-card {
    height: 515px;
  }

  .archive-flip-face {
    border-radius: 21px;
  }

  .archive-flip-record {
    padding: 27px 22px 22px;
  }

  .archive-flip-card[data-has-media="true"] .archive-flip-record,
  .archive-flip-card[data-image-layout="landscape"] .archive-flip-record {
    padding-right: 22px;
  }

  .archive-flip-media,
  .archive-flip-card[data-image-layout="landscape"] .archive-flip-media {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 148px;
    margin: 0 0 17px;
    align-self: center;
  }

  .archive-flip-card[data-image-layout="portrait"] .archive-flip-media {
    width: 136px;
    height: 170px;
  }

  .archive-placeholder .archive-flip-record h3 {
    max-width: 86%;
    margin-top: 14px;
    font-size: 1.56rem;
  }

  .archive-placeholder .archive-flip-record .archive-flip-description {
    font-size: 0.81rem;
  }

  .archive-flip-orbits {
    right: -74px;
    width: 210px;
    height: 210px;
  }

  .archive-flip-orbits span:nth-child(2) {
    width: 135px;
    height: 135px;
  }

  .archive-flip-orbits span:nth-child(3) {
    width: 190px;
    height: 190px;
  }
}

/* Vibe Coding uses a single stage with switchable public demos. */
.work-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -6px 0 22px;
}

.work-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(188, 209, 219, 0.92);
  border-radius: 999px;
  color: #4d6b80;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 780;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.work-tab span {
  padding: 2px 5px;
  border-radius: 999px;
  color: #7e93a2;
  background: rgba(224, 236, 241, 0.74);
  font-size: 0.56rem;
  letter-spacing: 0.02em;
}

.work-tab:hover,
.work-tab:focus-visible {
  border-color: rgba(19, 184, 199, 0.56);
  color: #0c6572;
  outline: none;
  transform: translateY(-1px);
}

.work-tab[aria-selected="true"] {
  border-color: #0e2338;
  color: #f4fcff;
  background: #0e2338;
  box-shadow: 0 9px 17px rgba(11, 34, 56, 0.16);
}

.work-tab[aria-selected="true"] span {
  color: #bdd6df;
  background: rgba(255, 255, 255, 0.12);
}

.work-panels { min-width: 0; }
.work-panel[hidden] { display: none; }

.agent-embed-shell,
.automation-embed-shell {
  position: relative;
  z-index: 1;
  margin: 0 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  background: #f5f7fb;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.agent-embed {
  display: block;
  width: 100%;
  height: 710px;
  border: 0;
  background: #f5f7fb;
}

.automation-embed {
  display: block;
  width: 100%;
  height: 1740px;
  border: 0;
  background: #f3f7f9;
}

.work-coming-soon {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  align-items: stretch;
  min-height: 360px;
}

.work-coming-soon .work-copy { align-self: center; }

.automation-safe-demo {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 255px;
  padding: 35px;
  overflow: hidden;
}

.automation-safe-demo::before,
.automation-safe-demo::after {
  position: absolute;
  border: 1px solid rgba(153, 228, 234, 0.18);
  border-radius: 50%;
  content: "";
}

.automation-safe-demo::before {
  top: -42px;
  right: -44px;
  width: 220px;
  height: 220px;
  box-shadow: 0 0 0 36px rgba(153, 228, 234, 0.025);
}

.automation-safe-demo::after {
  bottom: -58px;
  left: -52px;
  width: 152px;
  height: 152px;
}

.automation-demo-window {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  overflow: hidden;
  border: 1px solid rgba(182, 231, 235, 0.36);
  border-radius: 15px;
  background: rgba(8, 28, 47, 0.66);
  box-shadow: 0 18px 35px rgba(2, 12, 23, 0.25);
  animation: qa-window-float 4.4s ease-in-out infinite;
}

.automation-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(182, 231, 235, 0.15);
  color: #bdeff1;
  background: rgba(12, 47, 70, 0.62);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.59rem;
  letter-spacing: 0.06em;
}

.automation-demo-bar strong { color: #ecffff; font-size: 0.63rem; }
.automation-demo-bar > span:last-child { margin-left: auto; color: #75dce1; font-weight: 800; }

.automation-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1bd59d;
  box-shadow: 0 0 0 4px rgba(27, 213, 157, 0.12);
  animation: qa-dot-pulse 1.6s ease-in-out infinite;
}

.automation-demo-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.automation-demo-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 8px;
  border: 1px solid rgba(182, 231, 235, 0.12);
  border-radius: 9px;
  color: #d7e9ee;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
  animation: qa-step-glow 4.4s ease-in-out infinite;
}

.automation-demo-steps li:nth-child(2) { animation-delay: 0.45s; }
.automation-demo-steps li:nth-child(3) { animation-delay: 0.9s; }

.automation-demo-steps b,
.automation-demo-steps i {
  color: #7fe6e9;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 850;
}

.automation-demo-steps i {
  padding: 3px 5px;
  border: 1px solid rgba(127, 230, 233, 0.18);
  border-radius: 999px;
  color: #abf6d7;
  background: rgba(27, 213, 157, 0.08);
}

.automation-demo-progress {
  height: 5px;
  margin: 0 14px 15px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(182, 231, 235, 0.12);
}

.automation-demo-progress span {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13b8c7, #88f0e1);
  animation: qa-progress 4.4s ease-in-out infinite;
}

.automation-safe-demo > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #a4d8dd;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
}

@keyframes qa-window-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes qa-dot-pulse {
  0%, 100% { opacity: 0.62; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes qa-step-glow {
  0%, 100% { border-color: rgba(182, 231, 235, 0.12); background: rgba(255, 255, 255, 0.035); }
  50% { border-color: rgba(112, 225, 232, 0.34); background: rgba(19, 184, 199, 0.08); }
}

@keyframes qa-progress {
  0% { width: 14%; transform: translateX(0); }
  55% { width: 86%; transform: translateX(0); }
  100% { width: 14%; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .automation-demo-window,
  .automation-demo-dot,
  .automation-demo-steps li,
  .automation-demo-progress span { animation: none; }
}

.work-coming-soon-art {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  isolation: isolate;
}

.work-coming-soon-art::before,
.work-coming-soon-art::after,
.work-coming-soon-art span {
  position: absolute;
  border: 1px solid rgba(153, 228, 234, 0.22);
  border-radius: 50%;
  content: "";
}

.work-coming-soon-art::before {
  top: 50%;
  left: 50%;
  width: 218px;
  height: 218px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 38px rgba(153, 228, 234, 0.04), 0 0 0 76px rgba(153, 228, 234, 0.025);
}

.work-coming-soon-art::after {
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  background: rgba(19, 184, 199, 0.15);
  transform: translate(-50%, -50%);
}

.work-coming-soon-art span:nth-child(1) { top: 20%; left: 24%; width: 9px; height: 9px; background: #19bdc8; border: 0; }
.work-coming-soon-art span:nth-child(2) { right: 20%; bottom: 23%; width: 12px; height: 12px; background: rgba(19, 184, 199, 0.26); border: 0; }
.work-coming-soon-art span:nth-child(3) { top: 24%; right: 19%; width: 6px; height: 6px; background: #a4e7eb; border: 0; }

/* Keep the existing single white archive card, then place its controls and overview underneath. */
.archive-controls {
  display: grid;
  justify-items: center;
  gap: 11px;
  width: 100%;
}

.archive-flip-stage .archive-actions {
  margin-top: 0;
}

.archive-flip-stage .archive-action-secondary {
  min-height: 42px;
  padding: 9px 17px;
}

.archive-placeholder.archive-draw .archive-all {
  width: min(100%, 1000px);
  margin-top: 40px;
}

.archive-grid-card-media {
  height: 122px;
  margin: -1px -1px 13px;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  border-color: rgba(91, 143, 149, 0.32);
  border-radius: 12px;
  background: #e6f0f2;
}

.archive-grid-card-media img { display: block; }

.archive-flip-card[data-kind="skill"] .archive-flip-media img,
.archive-grid-card[data-kind="skill"] .archive-grid-card-media img {
  filter: saturate(0.78) contrast(0.9) brightness(1.08);
}

.archive-grid-card[data-kind="hobby"] { min-height: 286px; }

/* A horizontal activity photo occupies the lower half of the same archive card. */
.archive-flip-card[data-image-layout="landscape"] .archive-flip-record {
  padding: 29px 34px 23px;
}

.archive-flip-card[data-image-layout="landscape"] .archive-flip-topline { order: 1; }

.archive-flip-card[data-image-layout="landscape"] .archive-flip-record h3 {
  order: 2;
  max-width: none;
  margin: 12px auto 5px;
  text-align: center;
}

.archive-flip-card[data-image-layout="landscape"] .archive-flip-description {
  order: 3;
  align-self: center;
  max-width: 470px;
  text-align: center;
}

.archive-flip-card[data-image-layout="landscape"] .archive-flip-tags {
  order: 4;
  justify-content: center;
  margin: 11px 0 10px;
}

.archive-flip-card[data-image-layout="landscape"] .archive-flip-media {
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  order: 5;
  width: 100%;
  height: 258px;
  margin: auto 0 11px;
  border-radius: 16px;
}

.archive-flip-card[data-image-layout="landscape"] .archive-flip-footer {
  order: 6;
  margin-top: 0;
  padding-top: 10px;
}

.archive-flip-card[data-image-layout="landscape"] .archive-flip-orbits { opacity: 0.22; }

/* Skill cards keep their text left-aligned and use the lower half for a safe public showcase image. */
.archive-flip-card[data-image-layout="showcase"] .archive-flip-record {
  padding: 29px 34px 23px;
}

.archive-flip-card[data-image-layout="showcase"] .archive-flip-topline { order: 1; }

.archive-flip-card[data-image-layout="showcase"] .archive-flip-record h3 {
  order: 2;
  max-width: 100%;
  margin: 12px 0 5px;
}

.archive-flip-card[data-image-layout="showcase"] .archive-flip-description {
  order: 3;
  max-width: 610px;
}

.archive-flip-card[data-image-layout="showcase"] .archive-flip-tags {
  order: 4;
  margin: 11px 0 10px;
}

.archive-flip-card[data-image-layout="showcase"] .archive-flip-media {
  position: relative;
  z-index: 1;
  inset: auto;
  order: 5;
  width: 100%;
  height: 205px;
  margin: auto 0 11px;
  border-radius: 16px;
}

.archive-flip-card[data-image-layout="showcase"] .archive-flip-footer {
  order: 6;
  margin-top: 0;
  padding-top: 10px;
}

.archive-flip-card[data-image-layout="showcase"] .archive-flip-orbits { opacity: 0.14; }

/* A portrait activity photo becomes a larger right-side poster; its title and caption stay horizontal at left. */
.archive-flip-card[data-image-layout="portrait"] .archive-flip-record {
  padding: 30px 350px 26px 36px;
}

.archive-flip-card[data-image-layout="portrait"] .archive-flip-media {
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: 310px;
  height: auto;
  border-radius: 18px;
}

.archive-flip-card[data-image-layout="portrait"] .archive-flip-topline { margin-left: 0; }

.archive-flip-card[data-image-layout="portrait"] .archive-flip-record h3 {
  position: absolute;
  z-index: 3;
  bottom: 145px;
  left: 36px;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 2.05rem;
  letter-spacing: -0.045em;
  line-height: 1.08;
  transform: none;
  writing-mode: horizontal-tb;
}

.archive-flip-card[data-image-layout="portrait"] .archive-flip-description {
  position: absolute;
  right: 350px;
  bottom: 88px;
  left: 36px;
  max-width: none;
  margin: 0;
}

.archive-flip-card[data-image-layout="portrait"] .archive-flip-tags {
  max-width: 190px;
  margin: 18px 0 16px;
}

.archive-flip-card[data-image-layout="portrait"] .archive-flip-footer {
  position: absolute;
  right: 36px;
  bottom: 25px;
  left: 36px;
}

.archive-flip-card[data-image-layout="portrait"] .archive-flip-orbits { opacity: 0.34; }

@media (max-width: 820px) {
  .agent-embed-shell,
  .automation-embed-shell { margin: 0 20px 20px; border-radius: 18px; }
  .agent-embed { height: 735px; }
  .automation-embed { height: 2800px; }
  .work-coming-soon { grid-template-columns: 1fr; }
  .work-coming-soon-art { min-height: 180px; }
  .archive-placeholder.archive-draw .archive-all { margin-top: 31px; }
  .archive-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .work-switcher { gap: 6px; margin-bottom: 17px; }
  .work-tab { min-height: 32px; padding: 6px 9px; font-size: 0.66rem; }
  .work-tab span { display: none; }
  .agent-embed-shell,
  .automation-embed-shell { margin: 0 13px 13px; border-radius: 15px; }
  .agent-embed { height: 1180px; }
  .automation-embed { height: 3500px; }
  .work-coming-soon { min-height: 0; }
  .work-coming-soon-art { min-height: 150px; }
  .archive-controls { gap: 9px; }
  .archive-card-grid { grid-template-columns: 1fr; }
  .archive-grid-card[data-kind="hobby"] { min-height: 0; }

  .archive-flip-card[data-image-layout="landscape"] .archive-flip-record {
    padding: 24px 22px 19px;
  }

  .archive-flip-card[data-image-layout="landscape"] .archive-flip-media {
    width: 100%;
    height: 180px;
    margin: auto 0 9px;
  }

  .archive-flip-card[data-image-layout="landscape"] .archive-flip-record h3 { font-size: 1.62rem; }
  .archive-flip-card[data-image-layout="landscape"] .archive-flip-description { font-size: 0.79rem; }

  .archive-flip-card[data-image-layout="showcase"] .archive-flip-record {
    padding: 24px 22px 19px;
  }

  .archive-flip-card[data-image-layout="showcase"] .archive-flip-media {
    width: 100%;
    height: 145px;
    margin: auto 0 9px;
  }

  .archive-flip-card[data-image-layout="showcase"] .archive-flip-record h3 {
    max-width: 100%;
    font-size: 1.55rem;
  }

  .archive-flip-card[data-image-layout="showcase"] .archive-flip-description {
    font-size: 0.78rem;
  }

  .archive-flip-card[data-image-layout="portrait"] .archive-flip-record {
    padding: 25px 190px 22px 22px;
  }

  .archive-flip-card[data-image-layout="portrait"] .archive-flip-media {
    position: absolute;
    top: 16px;
    right: 14px;
    bottom: 16px;
    width: 164px;
    height: auto;
  }

  .archive-flip-card[data-image-layout="portrait"] .archive-flip-topline { margin-left: 0; }

  .archive-flip-card[data-image-layout="portrait"] .archive-flip-record h3 {
    top: auto;
    bottom: 125px;
    left: 21px;
    font-size: 1.58rem;
    letter-spacing: -0.045em;
    transform: none;
    writing-mode: horizontal-tb;
  }

  .archive-flip-card[data-image-layout="portrait"] .archive-flip-description {
    right: 190px;
    bottom: 70px;
    left: 22px;
    max-width: none;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
  }

  .archive-flip-card[data-image-layout="portrait"] .archive-flip-tags {
    max-width: 130px;
    margin: 14px 0;
  }

  .archive-flip-card[data-image-layout="portrait"] .archive-flip-footer {
    right: 22px;
    bottom: 18px;
    left: 22px;
  }
}

/* 2026-08-30: light blue Vibe Coding showcase, inspired by the approved references. */
#works {
  --work-blue: #1268f3;
  --work-blue-deep: #071b46;
  --work-blue-muted: #536b8e;
  --work-blue-line: #d8e4f6;
  overflow: hidden;
  isolation: isolate;
}

#works::before {
  content: none;
}

#works .section-heading,
#works .work-switcher,
#works .work-panels {
  position: relative;
  z-index: 1;
}

#works .section-index {
  color: var(--work-blue);
}

#works .section-heading h2 {
  color: var(--work-blue-deep);
}

#works .work-switcher {
  gap: 10px;
  margin: -5px 0 28px;
}

#works .work-tab {
  min-height: 40px;
  padding: 8px 18px;
  border-color: rgba(190, 208, 235, 0.82);
  color: #557096;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px rgba(32, 84, 158, 0.045);
  font-size: 0.76rem;
}

#works .work-tab:hover,
#works .work-tab:focus-visible {
  border-color: rgba(39, 116, 244, 0.52);
  color: #0c58ca;
  background: #fff;
  box-shadow: 0 9px 22px rgba(25, 94, 199, 0.1);
}

#works .work-tab[aria-selected="true"] {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #1669f2, #0e83f8);
  box-shadow: 0 12px 26px rgba(18, 104, 243, 0.24);
}

#works .work-tab[aria-selected="true"] span {
  color: #eaf4ff;
  background: rgba(255, 255, 255, 0.17);
}

#works .featured-work.featured-work-embedded {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(310px, 0.72fr) minmax(490px, 1.28fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(206, 220, 241, 0.9);
  border-radius: 26px;
  color: var(--work-blue-deep);
  background:
    radial-gradient(circle at 91% 8%, rgba(214, 232, 255, 0.6), transparent 22rem),
    linear-gradient(142deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  box-shadow: 0 22px 52px rgba(33, 75, 137, 0.09);
}

#works .featured-work.featured-work-embedded::before {
  position: absolute;
  top: 33px;
  right: 34px;
  width: 94px;
  height: 74px;
  opacity: 0.52;
  background-image: radial-gradient(circle, rgba(30, 111, 245, 0.3) 1.2px, transparent 1.4px);
  background-size: 13px 13px;
  content: "";
}

#works .featured-work.featured-work-embedded::after {
  top: -175px;
  right: 43%;
  width: 430px;
  height: 430px;
  border-color: rgba(38, 112, 229, 0.07);
  box-shadow: 0 0 0 58px rgba(38, 112, 229, 0.02);
}

#works .featured-work-embedded:hover {
  border-color: rgba(159, 188, 230, 0.94);
  box-shadow: 0 28px 62px rgba(33, 75, 137, 0.12);
  transform: none;
}

#works .work-panel[hidden] {
  display: none;
}

#works .featured-work-embedded .work-copy {
  min-height: 350px;
  justify-content: center;
  padding: 46px 18px 42px 46px;
}

#works .work-kicker {
  color: var(--work-blue);
  font-size: 0.69rem;
  letter-spacing: 0.07em;
}

#works .work-state {
  border-color: rgba(18, 104, 243, 0.18);
  color: #0f62dc;
  background: rgba(232, 242, 255, 0.84);
}

#works .work-copy h3 {
  margin: 30px 0 15px;
  color: var(--work-blue-deep);
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  line-height: 1.03;
}

#works .work-copy > p {
  max-width: 430px;
  color: var(--work-blue-muted);
  font-size: 0.88rem;
  line-height: 1.9;
}

#works .work-tags {
  gap: 8px;
  margin-top: 23px;
}

#works .work-tags span {
  min-height: 28px;
  padding: 4px 11px;
  border-color: rgba(49, 126, 237, 0.14);
  color: #1761c6;
  background: rgba(236, 245, 255, 0.88);
}

#works .work-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 350px;
  margin: 26px 27px 26px 5px;
  align-self: stretch;
}

#works .work-visual-window {
  position: relative;
  height: 100%;
  min-height: 298px;
  overflow: hidden;
  border: 1px solid rgba(214, 226, 244, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 28px 54px rgba(31, 84, 158, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transform: perspective(1200px) rotateY(-2deg) rotateX(0.6deg);
  transform-origin: center left;
}

#works .work-visual-bar {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid #e5edf8;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

#works .work-visual-dots {
  display: flex;
  gap: 4px;
}

#works .work-visual-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5d5b;
}

#works .work-visual-dots i:nth-child(2) { background: #ffc637; }
#works .work-visual-dots i:nth-child(3) { background: #30c46b; }

#works .work-visual-bar > b {
  width: min(44%, 210px);
  height: 7px;
  margin-left: auto;
  border-radius: 999px;
  background: #edf3fb;
}

#works .work-visual-bar > em {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f83f6, #1165e7);
}

#works .work-visual-layout {
  display: grid;
  height: calc(100% - 34px);
  min-height: 264px;
  grid-template-columns: 54px minmax(0, 1fr);
}

#works .work-visual-rail {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 11px;
  flex-direction: column;
  border-right: 1px solid #e4edf8;
  background: rgba(246, 250, 255, 0.9);
}

#works .work-visual-rail span {
  width: 23px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, #cfdbec 0 34%, transparent 34% 46%, #e5ecf6 46%);
}

#works .work-visual-rail span.is-active {
  background: #ddebff;
  box-shadow: inset 3px 0 0 var(--work-blue);
}

#works .work-visual-screen {
  min-width: 0;
  padding: 18px;
  background:
    radial-gradient(circle at 83% 16%, rgba(224, 238, 255, 0.7), transparent 11rem),
    #fbfdff;
}

#works .work-visual-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#works .work-visual-title-row span {
  width: 35%;
  height: 12px;
  border-radius: 4px;
  background: #183766;
}

#works .work-visual-title-row i {
  width: 25%;
  height: 17px;
  border: 1px solid #dce8f8;
  border-radius: 999px;
  background: #fff;
}

#works .work-visual-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

#works .work-visual-metrics i {
  height: 52px;
  border: 1px solid #dce8f7;
  border-radius: 9px;
  background:
    linear-gradient(#1c73ea, #1c73ea) 12px 14px / 36% 7px no-repeat,
    linear-gradient(#d8e5f5, #d8e5f5) 12px 29px / 66% 5px no-repeat,
    linear-gradient(145deg, #fff, #f6faff);
  box-shadow: 0 5px 12px rgba(34, 89, 163, 0.04);
}

#works .work-visual-dashboard-grid {
  display: grid;
  min-height: 142px;
  grid-template-columns: minmax(0, 1.55fr) minmax(70px, 0.8fr) minmax(62px, 0.62fr);
  gap: 9px;
  margin-top: 10px;
}

#works .work-visual-chart,
#works .work-visual-bars,
#works .work-visual-donut {
  align-self: stretch;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  background-color: #fff;
}

#works .work-visual-chart {
  display: grid;
  padding: 18px 10px 7px;
  place-items: end stretch;
}

#works .work-visual-chart svg,
#works .work-visual-agent-grid svg {
  width: 100%;
  overflow: visible;
  fill: none;
  stroke: #287df0;
  stroke-width: 2;
}

#works .work-visual-chart .work-visual-chart-fill {
  fill: rgba(40, 125, 240, 0.1);
  stroke: none;
}

#works .work-visual-bars {
  display: flex;
  gap: 6px;
  align-items: end;
  justify-content: center;
  padding: 18px 9px 13px;
}

#works .work-visual-bars span {
  width: 10px;
  height: 35%;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #2e83f4, #7fb9ff);
}

#works .work-visual-bars span:nth-child(2) { height: 54%; }
#works .work-visual-bars span:nth-child(3) { height: 42%; }
#works .work-visual-bars span:nth-child(4) { height: 72%; }
#works .work-visual-bars span:nth-child(5) { height: 60%; }
#works .work-visual-bars span:nth-child(6) { height: 86%; }

#works .work-visual-donut {
  margin: 0;
  background:
    radial-gradient(circle, #fff 0 32%, transparent 33%),
    conic-gradient(#1a73e8 0 38%, #1fc5bf 38% 67%, #93c5fd 67% 83%, #e5edf8 83%);
  background-clip: content-box;
  padding: 21px;
}

#works .work-visual-agent-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(42px, 1fr) minmax(9px, auto)) minmax(42px, 1fr);
  gap: 7px;
  align-items: center;
  margin-top: 19px;
}

#works .work-visual-agent-flow > span {
  display: grid;
  height: 70px;
  place-items: center;
  border: 1px solid #d8e6f7;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f4f9ff);
}

#works .work-visual-agent-flow > span b {
  width: 24px;
  height: 24px;
  border: 2px solid #257af0;
  border-radius: 8px;
  box-shadow: 0 0 0 6px rgba(37, 122, 240, 0.08);
}

#works .work-visual-agent-flow > i {
  color: #4872aa;
  font-size: 0.85rem;
  font-style: normal;
}

#works .work-visual-agent-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 10px;
  margin-top: 11px;
}

#works .work-visual-agent-grid > div {
  min-height: 100px;
  padding: 12px;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  background: #fff;
}

#works .work-visual-agent-grid strong {
  display: block;
  width: 44%;
  height: 7px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: #24446f;
}

#works .work-visual-agent-grid div:last-child span {
  display: block;
  width: 84%;
  height: 7px;
  margin: 10px 0;
  border-radius: 999px;
  background: #e0e9f5;
}

#works .work-visual-agent-grid div:last-child span:nth-of-type(2) { width: 68%; }
#works .work-visual-agent-grid div:last-child span:nth-of-type(3) { width: 78%; }
#works .work-visual-agent-grid div:last-child span:nth-of-type(4) { width: 51%; background: #cfe2ff; }

#works .work-visual-automation-stage {
  position: relative;
  height: calc(100% - 34px);
  min-height: 264px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(39, 125, 242, 0.18) 1px, transparent 1.3px) calc(100% - 18px) 23px / 13px 13px no-repeat,
    linear-gradient(145deg, #f9fcff, #eef5ff);
}

#works .work-visual-form,
#works .work-visual-run {
  position: absolute;
  padding: 16px;
  border: 1px solid #d9e6f7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(34, 91, 170, 0.08);
}

#works .work-visual-form {
  top: 35px;
  left: 8%;
  width: 54%;
  height: 155px;
}

#works .work-visual-form i {
  display: block;
  width: 45%;
  height: 9px;
  margin-bottom: 19px;
  border-radius: 999px;
  background: #254a78;
}

#works .work-visual-form span {
  display: block;
  height: 24px;
  margin: 9px 0;
  border: 1px solid #dce8f7;
  border-radius: 7px;
  background: #f8fbff;
}

#works .work-visual-form button {
  width: 55%;
  height: 25px;
  margin-top: 5px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #1c6ff0, #0c8af9);
}

#works .work-visual-run {
  top: 66px;
  right: 6%;
  width: 36%;
  height: 142px;
}

#works .work-visual-run i {
  display: block;
  height: 8px;
  margin: 12px 0;
  border-radius: 999px;
  background: #e1eaf6;
}

#works .work-visual-run i:last-child { width: 68%; background: #cfe2ff; }

#works .work-visual-check {
  display: grid;
  width: 39px;
  height: 39px;
  margin: -34px auto 19px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #2e82f3;
  box-shadow: 0 0 0 2px #71abf7, 0 9px 17px rgba(34, 111, 222, 0.2);
  font-size: 1.05rem;
  font-weight: 900;
}

#works .work-visual-mini-chart {
  position: absolute;
  right: 12%;
  bottom: 25px;
  left: 18%;
  display: flex;
  height: 55px;
  gap: 8px;
  align-items: end;
  padding: 0 18px;
  border-bottom: 1px solid #cbdcf2;
}

#works .work-visual-mini-chart span {
  width: 13%;
  height: 38%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#7eb8ff, #267bed);
}

#works .work-visual-mini-chart span:nth-child(2) { height: 62%; }
#works .work-visual-mini-chart span:nth-child(3) { height: 49%; }
#works .work-visual-mini-chart span:nth-child(4) { height: 82%; }
#works .work-visual-mini-chart span:nth-child(5) { height: 70%; }

#works .work-visual-qa-badge {
  position: absolute;
  bottom: 38px;
  left: 8%;
  display: grid;
  width: 50px;
  height: 42px;
  place-items: center;
  border: 1px solid #d4e3f6;
  border-radius: 11px;
  color: #2478ed;
  background: #fff;
  box-shadow: 0 10px 20px rgba(34, 91, 170, 0.09);
  font-weight: 850;
}

/* 2026-08-30: concrete product-use previews for the three Vibe Coding builds. */
#works .work-preview-app,
#works .work-preview-qa-stage {
  height: calc(100% - 34px);
  min-height: 264px;
  color: #17395f;
  background:
    radial-gradient(circle at 92% 12%, rgba(84, 157, 255, 0.12), transparent 9rem),
    linear-gradient(145deg, #fbfdff, #f1f7ff);
}

#works .work-preview-app {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
}

#works .work-preview-sidebar {
  display: flex;
  min-width: 0;
  gap: 7px;
  padding: 12px 8px;
  flex-direction: column;
  border-right: 1px solid #e0eaf7;
  background: rgba(246, 250, 255, 0.94);
}

#works .work-preview-brand {
  display: grid;
  width: 30px;
  height: 30px;
  margin: 0 auto 2px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #2e85f5, #1768df);
  box-shadow: 0 7px 14px rgba(34, 111, 222, 0.2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

#works .work-preview-nav-item {
  display: grid;
  min-width: 0;
  min-height: 27px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #7186a2;
}

#works .work-preview-nav-item.is-active {
  border-color: #c7ddfa;
  color: #1769dc;
  background: #e8f2ff;
}

#works .work-preview-nav-item i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 850;
}

#works .work-preview-nav-item b {
  overflow: hidden;
  font-size: 0.48rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-canvas {
  display: flex;
  min-width: 0;
  gap: 8px;
  padding: 12px 13px 11px;
  flex-direction: column;
}

#works .work-preview-head {
  display: flex;
  min-width: 0;
  min-height: 29px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#works .work-preview-head > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

#works .work-preview-head small {
  color: #2875d8;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

#works .work-preview-head strong {
  overflow: hidden;
  color: #142f53;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-head > em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #d5e5f8;
  border-radius: 999px;
  color: #5f7592;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.43rem;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

#works .work-preview-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe7f6;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 17px rgba(37, 86, 151, 0.055);
}

#works .work-preview-panel > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

#works .work-preview-panel > header b {
  overflow: hidden;
  color: #26486f;
  font-size: 0.48rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-panel > header small {
  color: #8a9bb0;
  font-size: 0.39rem;
  white-space: nowrap;
}

#works .work-preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

#works .work-preview-kpis article {
  display: grid;
  min-width: 0;
  min-height: 50px;
  gap: 1px;
  padding: 6px 8px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 3px 0 0 #62a4f4;
}

#works .work-preview-kpis span {
  overflow: hidden;
  color: #71859f;
  font-size: 0.43rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-kpis strong {
  overflow: hidden;
  color: #142d4e;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-kpis em {
  color: #149581;
  font-size: 0.39rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.15;
}

#works .work-preview-dashboard-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.55fr) minmax(72px, 0.78fr) minmax(70px, 0.68fr);
  gap: 7px;
  flex: 1 1 auto;
}

#works .work-preview-dashboard-grid .work-preview-panel {
  display: flex;
  min-height: 0;
  padding: 7px;
  flex-direction: column;
}

#works .work-preview-line-panel svg {
  width: 100%;
  min-height: 0;
  margin-top: 3px;
  flex: 1 1 auto;
}

#works .work-preview-grid-line {
  fill: none;
  stroke: #e5edf7;
  stroke-width: 1;
}

#works .work-preview-area {
  fill: rgba(45, 128, 242, 0.11);
  stroke: none;
}

#works .work-preview-line {
  fill: none;
  stroke: #287df0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

#works .work-preview-bars {
  display: flex;
  min-height: 0;
  gap: 5px;
  align-items: end;
  justify-content: center;
  margin-top: 6px;
  padding: 0 3px 3px;
  flex: 1 1 auto;
  border-bottom: 1px solid #dfe9f5;
}

#works .work-preview-bars span {
  width: 9px;
  height: 38%;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #2f82f2, #77b6ff);
}

#works .work-preview-bars span:nth-child(2) { height: 58%; }
#works .work-preview-bars span:nth-child(3) { height: 45%; }
#works .work-preview-bars span:nth-child(4) { height: 76%; }
#works .work-preview-bars span:nth-child(5) { height: 64%; }
#works .work-preview-bars span:nth-child(6) { height: 88%; }

#works .work-preview-donut-panel {
  text-align: center;
}

#works .work-preview-donut {
  display: block;
  width: 58px;
  height: 58px;
  margin: auto;
  border: 12px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(#237cf0 0 58%, #21c2b8 58% 83%, #c5dcfa 83%) border-box;
}

#works .work-preview-donut-panel p {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 2px 0 0;
  color: #7588a1;
  font-size: 0.36rem;
  line-height: 1.2;
}

#works .work-preview-agent-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(44px, 1fr) auto) minmax(44px, 1fr);
  gap: 4px;
  align-items: center;
}

#works .work-preview-agent-flow > span {
  display: grid;
  min-width: 0;
  min-height: 52px;
  gap: 1px;
  place-items: center;
  padding: 4px;
  border: 1px solid #d8e6f7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

#works .work-preview-agent-flow > span i {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid #6eacf7;
  border-radius: 7px;
  color: #176fe7;
  background: #edf6ff;
  font-size: 0.47rem;
  font-style: normal;
  font-weight: 850;
}

#works .work-preview-agent-flow b,
#works .work-preview-agent-flow small {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-agent-flow b {
  color: #27486f;
  font-size: 0.42rem;
  line-height: 1.15;
}

#works .work-preview-agent-flow small {
  color: #8a9bb0;
  font-size: 0.34rem;
  line-height: 1.1;
}

#works .work-preview-agent-flow > em {
  color: #4f7db8;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 800;
}

#works .work-preview-agent-grid {
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(0, 1.35fr) minmax(88px, 0.72fr);
  gap: 7px;
  flex: 1 1 auto;
}

#works .work-preview-agent-grid .work-preview-panel {
  display: flex;
  padding: 6px 7px;
  flex-direction: column;
}

#works .work-preview-agent-status > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 4px;
}

#works .work-preview-agent-status > div span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

#works .work-preview-agent-status > div b {
  overflow: hidden;
  color: #153457;
  font-size: 0.58rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-agent-status > div small {
  color: #7d90a7;
  font-size: 0.33rem;
  line-height: 1;
}

#works .work-preview-agent-status svg {
  display: block;
  width: 100%;
  min-height: 21px;
  margin-top: 1px;
  flex: 1 1 auto;
}

#works .work-preview-agent-topics p {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 5px 0 0;
  color: #5e7591;
  font-size: 0.35rem;
  line-height: 1.15;
}

#works .work-preview-agent-topics p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-agent-topics p em {
  color: #2879e3;
  font-style: normal;
  font-weight: 800;
}

#works .work-preview-sources {
  display: grid;
  min-height: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

#works .work-preview-sources > span {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid #dbe7f6;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
}

#works .work-preview-sources i {
  display: grid;
  height: 19px;
  place-items: center;
  border-radius: 5px;
  color: #2376e3;
  background: #eaf4ff;
  font-size: 0.32rem;
  font-style: normal;
  font-weight: 850;
}

#works .work-preview-sources b {
  overflow: hidden;
  color: #516c8b;
  font-size: 0.36rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-qa-stage {
  display: flex;
  gap: 9px;
  padding: 13px 15px 12px;
  flex-direction: column;
  overflow: hidden;
}

#works .work-preview-qa-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(130px, 0.7fr);
  gap: 9px;
  flex: 1 1 auto;
}

#works .work-preview-qa-grid .work-preview-panel {
  padding: 8px 10px;
}

#works .work-preview-qa-cases p {
  display: grid;
  min-width: 0;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  margin: 6px 0 0;
  padding: 5px 7px;
  border: 1px solid #e1eaf6;
  border-radius: 7px;
  background: #f9fbff;
}

#works .work-preview-qa-cases p > i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2c82f2;
  box-shadow: 0 0 0 3px rgba(44, 130, 242, 0.1);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 900;
}

#works .work-preview-qa-cases p > span {
  display: grid;
  min-width: 0;
}

#works .work-preview-qa-cases p b,
#works .work-preview-qa-cases p small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#works .work-preview-qa-cases p b {
  color: #294a70;
  font-size: 0.45rem;
  line-height: 1.25;
}

#works .work-preview-qa-cases p small {
  color: #8c9caf;
  font-size: 0.31rem;
  line-height: 1.15;
}

#works .work-preview-qa-cases p > em {
  padding: 2px 5px;
  border-radius: 999px;
  color: #13836f;
  background: #e5f8f3;
  font-size: 0.34rem;
  font-style: normal;
  font-weight: 850;
}

#works .work-preview-qa-result {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

#works .work-preview-qa-check {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 8px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #54a3ff, #287cf0);
  box-shadow: 0 0 0 2px #8dc1ff, 0 11px 22px rgba(37, 117, 223, 0.2);
  font-size: 1.35rem;
  font-weight: 900;
}

#works .work-preview-qa-result strong {
  color: #18385f;
  font-size: 0.75rem;
  line-height: 1.25;
}

#works .work-preview-qa-result small {
  margin-top: 2px;
  color: #7488a1;
  font-size: 0.39rem;
}

#works .work-preview-qa-summary {
  display: grid;
  min-height: 42px;
  grid-template-columns: minmax(88px, 0.65fr) minmax(0, 1.35fr) 36px;
  gap: 10px;
  align-items: end;
  padding: 5px 8px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

#works .work-preview-qa-summary > span {
  display: grid;
  align-self: center;
}

#works .work-preview-qa-summary b {
  color: #294a70;
  font-size: 0.42rem;
}

#works .work-preview-qa-summary small {
  color: #14917c;
  font-size: 0.34rem;
}

#works .work-preview-qa-summary > div {
  display: flex;
  height: 30px;
  gap: 8px;
  align-items: end;
  padding: 0 8px;
  border-bottom: 1px solid #dce7f4;
}

#works .work-preview-qa-summary > div i {
  width: 15%;
  height: 43%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#73b2ff, #2a7df0);
}

#works .work-preview-qa-summary > div i:nth-child(2) { height: 66%; }
#works .work-preview-qa-summary > div i:nth-child(3) { height: 55%; }
#works .work-preview-qa-summary > div i:nth-child(4) { height: 82%; }
#works .work-preview-qa-summary > div i:nth-child(5) { height: 72%; }

#works .work-preview-qa-summary > em {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border: 1px solid #cfe1f8;
  border-radius: 8px;
  color: #2679e5;
  background: #eef6ff;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 850;
}

#works .dashboard-embed-shell,
#works .agent-embed-shell,
#works .automation-embed-shell {
  z-index: 2;
  grid-column: 1 / -1;
  margin: 0 18px 18px;
  border: 1px solid rgba(211, 224, 242, 0.96);
  border-radius: 18px;
  background: #f7faff;
  box-shadow: 0 18px 38px rgba(31, 78, 145, 0.1);
}

@media (max-width: 820px) {
  #works .featured-work.featured-work-embedded {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  #works .featured-work-embedded .work-copy {
    min-height: 0;
    padding: 36px 31px 25px;
  }

  #works .work-copy h3 {
    margin-top: 23px;
  }

  #works .work-visual {
    min-height: 305px;
    margin: 0 22px 24px;
  }

  #works .work-visual-window {
    min-height: 305px;
    transform: none;
  }

  #works .dashboard-embed-shell,
  #works .agent-embed-shell,
  #works .automation-embed-shell {
    margin: 0 18px 18px;
  }
}

@media (max-width: 560px) {
  #works .work-switcher {
    gap: 7px;
    margin-bottom: 20px;
  }

  #works .work-tab {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 0.66rem;
  }

  #works .featured-work-embedded .work-copy {
    padding: 29px 22px 22px;
  }

  #works .work-copy h3 {
    margin: 22px 0 12px;
    font-size: 2.2rem;
  }

  #works .work-copy > p {
    font-size: 0.8rem;
    line-height: 1.75;
  }

  #works .work-visual {
    min-height: 242px;
    margin: 0 13px 14px;
  }

  #works .work-visual-window {
    min-height: 242px;
    border-radius: 14px;
  }

  #works .work-preview-app,
  #works .work-preview-qa-stage {
    height: calc(100% - 29px);
    min-height: 213px;
  }

  #works .work-preview-app {
    grid-template-columns: minmax(0, 1fr);
  }

  #works .work-preview-sidebar {
    display: none;
  }

  #works .work-preview-canvas,
  #works .work-preview-qa-stage {
    gap: 5px;
    padding: 7px 8px;
  }

  #works .work-preview-head {
    min-height: 23px;
    gap: 5px;
  }

  #works .work-preview-head small { font-size: 0.33rem; }
  #works .work-preview-head strong { font-size: 0.56rem; }
  #works .work-preview-head > em { padding: 2px 5px; font-size: 0.31rem; }

  #works .work-preview-kpis { gap: 4px; }

  #works .work-preview-kpis article {
    min-height: 39px;
    gap: 0;
    padding: 4px 5px;
    box-shadow: inset 2px 0 0 #62a4f4;
  }

  #works .work-preview-kpis span { font-size: 0.3rem; }
  #works .work-preview-kpis strong { font-size: 0.54rem; }
  #works .work-preview-kpis em { font-size: 0.28rem; }

  #works .work-preview-dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(68px, 0.75fr);
    gap: 4px;
  }

  #works .work-preview-dashboard-grid .work-preview-panel { padding: 5px; }
  #works .work-preview-panel > header b { font-size: 0.34rem; }
  #works .work-preview-panel > header small { font-size: 0.28rem; }
  #works .work-preview-bars { gap: 3px; margin-top: 3px; padding-inline: 1px; }
  #works .work-preview-bars span { width: 6px; }
  #works .work-preview-agent-flow {
    grid-template-columns: repeat(3, minmax(38px, 1fr) auto) minmax(38px, 1fr);
    gap: 2px;
  }

  #works .work-preview-agent-flow > span {
    min-height: 42px;
    padding: 2px;
  }

  #works .work-preview-agent-flow > span i {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    font-size: 0.35rem;
  }

  #works .work-preview-agent-flow b { font-size: 0.31rem; }
  #works .work-preview-agent-flow small { font-size: 0.25rem; }
  #works .work-preview-agent-flow > em { font-size: 0.36rem; }

  #works .work-preview-agent-grid {
    min-height: 62px;
    grid-template-columns: minmax(0, 1.35fr) minmax(72px, 0.72fr);
    gap: 4px;
  }

  #works .work-preview-agent-grid .work-preview-panel { padding: 4px 5px; }
  #works .work-preview-agent-status > div { gap: 2px; margin-top: 2px; }
  #works .work-preview-agent-status > div b { font-size: 0.42rem; }
  #works .work-preview-agent-status > div small { font-size: 0.24rem; }
  #works .work-preview-agent-status svg { height: 15px; }
  #works .work-preview-agent-topics p { gap: 2px; margin-top: 3px; font-size: 0.25rem; }
  #works .work-preview-sources { min-height: 24px; gap: 4px; }
  #works .work-preview-sources > span { grid-template-columns: 18px minmax(0, 1fr); gap: 3px; padding: 2px 4px; }
  #works .work-preview-sources i { height: 16px; font-size: 0.23rem; }
  #works .work-preview-sources b { font-size: 0.25rem; }

  #works .work-preview-qa-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(80px, 0.7fr);
    gap: 5px;
  }

  #works .work-preview-qa-grid .work-preview-panel { padding: 5px; }

  #works .work-preview-qa-cases p {
    grid-template-columns: 17px minmax(0, 1fr) auto;
    gap: 4px;
    margin-top: 3px;
    padding: 3px 4px;
  }

  #works .work-preview-qa-cases p > i { width: 15px; height: 15px; font-size: 0.37rem; }
  #works .work-preview-qa-cases p b { font-size: 0.31rem; }
  #works .work-preview-qa-cases p small { font-size: 0.23rem; }
  #works .work-preview-qa-cases p > em { padding: 1px 3px; font-size: 0.24rem; }
  #works .work-preview-qa-check { width: 40px; height: 40px; margin-bottom: 5px; font-size: 1rem; }
  #works .work-preview-qa-result strong { font-size: 0.55rem; }
  #works .work-preview-qa-result small { font-size: 0.28rem; }

  #works .work-preview-qa-summary {
    min-height: 34px;
    grid-template-columns: minmax(64px, 0.7fr) minmax(0, 1.3fr) 27px;
    gap: 5px;
    padding: 3px 5px;
  }

  #works .work-preview-qa-summary b { font-size: 0.3rem; }
  #works .work-preview-qa-summary small { font-size: 0.25rem; }
  #works .work-preview-qa-summary > div { height: 24px; gap: 4px; padding-inline: 4px; }
  #works .work-preview-qa-summary > em { width: 26px; height: 24px; font-size: 0.36rem; }

  #works .work-visual-bar {
    height: 29px;
    padding-inline: 9px;
  }

  #works .work-visual-layout {
    min-height: 213px;
    grid-template-columns: 37px minmax(0, 1fr);
  }

  #works .work-visual-rail {
    gap: 10px;
    padding: 13px 7px;
  }

  #works .work-visual-rail span {
    width: 20px;
    height: 15px;
  }

  #works .work-visual-screen {
    padding: 12px;
  }

  #works .work-visual-metrics {
    gap: 5px;
    margin-top: 11px;
  }

  #works .work-visual-metrics i {
    height: 39px;
    background-position: 7px 10px, 7px 23px, 0 0;
  }

  #works .work-visual-dashboard-grid {
    min-height: 108px;
    grid-template-columns: minmax(0, 1.45fr) minmax(50px, 0.8fr);
    gap: 6px;
    margin-top: 7px;
  }

  #works .work-visual-donut {
    display: none;
  }

  #works .work-visual-agent-flow {
    gap: 4px;
    margin-top: 12px;
  }

  #works .work-visual-agent-flow > span {
    height: 52px;
  }

  #works .work-visual-agent-flow > span b {
    width: 18px;
    height: 18px;
  }

  #works .work-visual-agent-flow > i {
    font-size: 0.62rem;
  }

  #works .work-visual-agent-grid {
    gap: 6px;
    margin-top: 7px;
  }

  #works .work-visual-agent-grid > div {
    min-height: 82px;
    padding: 9px;
  }

  #works .work-visual-automation-stage {
    min-height: 213px;
  }

  #works .work-visual-form {
    top: 24px;
    left: 5%;
    height: 128px;
    padding: 12px;
  }

  #works .work-visual-run {
    top: 48px;
    right: 4%;
    height: 118px;
    padding: 12px;
  }

  #works .work-visual-check {
    width: 32px;
    height: 32px;
    margin-top: -28px;
  }

  #works .work-visual-mini-chart {
    right: 9%;
    bottom: 17px;
    left: 22%;
    height: 38px;
  }

  #works .work-visual-qa-badge {
    bottom: 26px;
    left: 5%;
    width: 42px;
    height: 35px;
    font-size: 0.75rem;
  }

  #works .dashboard-embed-shell,
  #works .agent-embed-shell,
  #works .automation-embed-shell {
    margin: 0 11px 11px;
    border-radius: 13px;
  }
}

/* 2026-08-31: one consistent pale-blue canvas and heading system. */
:root {
  --section-heading-color: #123c58;
}

html {
  background: #e4f1ff;
}

body.portfolio-home {
  background:
    radial-gradient(ellipse at 8% 4%, rgba(255, 255, 255, 0.62) 0 10%, transparent 38%),
    radial-gradient(ellipse at 92% 7%, rgba(191, 221, 255, 0.72) 0 9%, transparent 39%),
    radial-gradient(ellipse at 12% 90%, rgba(255, 255, 255, 0.34) 0 8%, transparent 36%),
    linear-gradient(145deg, #edf6ff 0%, #e5f1ff 50%, #d9eaff 100%);
  background-attachment: fixed;
}

body.portfolio-home #education .section-heading h2,
body.portfolio-home #experience .section-heading h2,
body.portfolio-home #works .section-heading h2,
body.portfolio-home #skills .section-heading h2 {
  color: var(--section-heading-color);
}

body.portfolio-home .button-primary {
  border-color: #a9cdee;
  color: #174b77;
  background: linear-gradient(135deg, #edf7ff, #cfe6fb);
  box-shadow: 0 11px 22px rgba(63, 123, 180, 0.14);
}

body.portfolio-home .button-primary:hover {
  border-color: #86b8e5;
  color: #103e69;
  background: linear-gradient(135deg, #f7fbff, #d9ecff);
  box-shadow: 0 14px 26px rgba(63, 123, 180, 0.17);
}

body.portfolio-home #entry-portal .carousel-controls button:not(:disabled):hover,
body.portfolio-home #entry-portal .carousel-controls button:not(:disabled):focus-visible {
  border-color: #a8cbea;
  color: #174b77;
  background: #e4f2ff;
}

body.portfolio-home .experience-stem span {
  border-color: #eaf4ff;
  background: #78afe2;
  box-shadow: 0 0 0 1px rgba(66, 129, 189, 0.28);
}

body.portfolio-home .contact-backdrop {
  background: rgba(66, 119, 173, 0.24);
}

/* Visual editor hooks: dormant on the public page until an override exists. */
[data-edit-key],
.editor-extra-copy {
  position: relative;
  translate: var(--editor-x, 0) var(--editor-y, 0);
}

.editor-extra-slot:empty {
  display: none;
}

.editor-extra-slot:not(:empty) {
  display: grid;
  gap: 10px;
}

.editor-extra-slot-section {
  width: min(720px, 100%);
  margin: -12px auto 32px;
  text-align: center;
}

.hero-copy > .editor-extra-slot:not(:empty) {
  margin: -1px 0 18px;
}

.editor-extra-slot-contact:not(:empty) {
  margin: 0 0 24px;
}

.editor-extra-copy {
  margin: 0;
  color: #5f7690;
  font-size: 0.9rem;
  line-height: 1.75;
}

html.portfolio-editor-preview [data-edit-key] {
  cursor: pointer;
  outline: 1px dashed transparent;
  outline-offset: 4px;
  transition: outline-color 140ms ease, background-color 140ms ease;
}

html.portfolio-editor-preview [data-edit-key]:hover,
html.portfolio-editor-preview [data-edit-key].is-editor-selected {
  outline-color: #2e8fe7;
  background-color: rgba(214, 235, 255, 0.34);
}
