:root {
  color-scheme: light;
  --paper: oklch(0.965 0.018 88);
  --paper-deep: oklch(0.9 0.032 84);
  --ink: oklch(0.145 0.012 250);
  --muted: oklch(0.42 0.016 250);
  --soft: oklch(0.67 0.012 250);
  --line: oklch(0.76 0.017 82);
  --green: oklch(0.36 0.075 154);
  --red: oklch(0.54 0.16 28);
  --blue: oklch(0.46 0.09 248);
  --cream: oklch(0.985 0.011 95);
  --mono:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  --body:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --display:
    "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1180px, calc(100vw - 32px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(
      circle at 18% 18%,
      oklch(0.92 0.035 78) 0 9rem,
      transparent 20rem
    ),
    linear-gradient(135deg, var(--paper), var(--cream) 54%, var(--paper-deep));
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  -webkit-tap-highlight-color: oklch(0.54 0.16 28 / 0.18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(oklch(0.2 0.01 250 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.2 0.01 250 / 0.025) 1px, transparent 1px);
  background-size:
    100% 42px,
    42px 100%;
  mix-blend-mode: multiply;
  opacity: 0.42;
}

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

a {
  color: inherit;
  text-decoration-color: oklch(0.145 0.012 250 / 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

.proof-ledger p a {
  font-weight: 800;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

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

h1,
h2,
h3 {
  scroll-margin-top: 24px;
}

.site-shell {
  width: var(--page);
  margin: 0 auto;
  position: relative;
}

.site-header {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand-mark {
  width: clamp(58px, 6vw, 82px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 240ms var(--ease);
}

.brand-mark:hover {
  transform: rotate(-4deg) translateY(-2px);
}

.brand-mark img {
  width: 100%;
  height: auto;
}

.brand-mark .brand-logo {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  object-fit: contain;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transition: right 220ms var(--ease);
}

.site-nav a:hover::before,
.site-nav a[aria-current="page"]::before {
  right: 0;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.nav-button {
  display: none;
}

.nav-button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(34px, 5vw, 64px) 0 clamp(44px, 6vw, 78px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.row-tag,
.section-label span,
.plate-kicker,
.plate-rail,
.ticker,
.site-footer,
.case-meta,
.case-link,
.hero-links,
.contact-links,
figcaption,
pre {
  font-family: var(--mono);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: 0;
}

h1 {
  max-width: 12.5ch;
  margin-bottom: 24px;
  font-size: clamp(3.7rem, 8.6vw, 7rem);
  line-height: 0.88;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5.2vw, 5.4rem);
  line-height: 0.9;
  text-wrap: balance;
}

h3 {
  margin-bottom: 6px;
  font-size: clamp(1.28rem, 2.2vw, 2rem);
  line-height: 1;
}

p {
  max-width: 64ch;
  color: var(--muted);
}

.hero-lede,
.page-hero p,
.project-copy p,
.case-body > p {
  max-width: 54ch;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.1vw, 1.72rem);
  line-height: 1.35;
}

.hero-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 30px;
  font-weight: 700;
}

.hero-links a,
.contact-links a,
.case-link,
.project-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.hero-links a::after,
.contact-links a::after,
.case-link::after,
.project-copy a::after,
.section-link::after {
  content: " /";
  margin-left: 0.45em;
  color: var(--red);
}

.profile-card {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  padding: clamp(24px, 3.4vw, 38px);
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 12px 12px 0 var(--green);
}

.profile-card .eyebrow {
  margin-bottom: 0;
}

.profile-card h2 {
  max-width: 11ch;
  color: var(--ink);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 0.94;
}

.profile-list {
  display: grid;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.profile-list div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list div:last-child {
  border-bottom: 0;
}

.profile-list dt {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.profile-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.profile-list-wide {
  width: min(100%, 760px);
}

.section-link {
  grid-column: 2;
  width: max-content;
  margin-top: 28px;
  font-family: var(--mono);
  font-weight: 700;
}

.profile-hero {
  min-height: min(420px, calc(100dvh - 96px));
}

.profile-hero h1 {
  max-width: 14ch;
  font-size: clamp(3.2rem, 6.6vw, 5.8rem);
}

.identity-plate {
  min-height: clamp(360px, 36vw, 470px);
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, oklch(0.14 0.012 250), oklch(0.21 0.022 250)),
    var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.8vw, 28px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--red);
}

.identity-plate::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid oklch(0.985 0.011 95 / 0.24);
  pointer-events: none;
  z-index: -1;
}

.identity-plate::after {
  content: "SYSTEM";
  position: absolute;
  right: -42px;
  top: 70px;
  color: oklch(0.985 0.011 95 / 0.08);
  font-family: var(--mono);
  font-size: clamp(4.5rem, 8vw, 7rem);
  font-weight: 700;
  transform: rotate(90deg);
  z-index: -1;
}

.plate-mark {
  width: min(30%, 118px);
  margin-left: auto;
  filter: invert(1);
  opacity: 0.94;
  transform: rotate(-8deg);
}

.plate-kicker {
  margin: auto 0 0;
  color: oklch(0.82 0.045 150);
  font-size: 0.82rem;
  font-weight: 700;
}

.plate-steps {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--cream);
  font-size: clamp(1.34rem, 2.45vw, 2.3rem);
  font-weight: 800;
  line-height: 0.94;
}

.plate-steps li {
  display: grid;
  grid-template-columns: 3.5ch minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.plate-steps span {
  color: oklch(0.82 0.045 150);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.plate-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  padding-top: clamp(12px, 2vw, 18px);
  margin-top: clamp(4px, 1vw, 10px);
  border-top: 1px solid oklch(0.985 0.011 95 / 0.2);
  color: oklch(0.985 0.011 95 / 0.72);
  font-size: 0.74rem;
}

.ticker {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--red);
  color: var(--cream);
  font-size: clamp(0.92rem, 1.6vw, 1.3rem);
  font-weight: 700;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 36px;
  padding: 12px 18px;
  animation: ticker 28s linear infinite;
}

.ticker-track span::before {
  content: "/";
  margin-right: 36px;
  opacity: 0.55;
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.split-section,
.project-callout,
.case-study,
.tool-cloud,
.contact-panel {
  padding: clamp(68px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--line);
}

.split-section,
.project-callout,
.case-study {
  display: grid;
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.split-section {
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
}

.split-section > *,
.project-callout > *,
.case-study > *,
.contact-panel > *,
.hero > * {
  min-width: 0;
}

.section-label {
  position: sticky;
  top: 24px;
}

.section-label span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 700;
}

.section-label h2 {
  max-width: 12.5ch;
  font-size: clamp(2.35rem, 3.8vw, 4.05rem);
  line-height: 0.92;
}

.work-rows {
  display: grid;
  border-top: 2px solid var(--ink);
}

.work-rows article,
.proof-ledger article,
.background-ledger article {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px clamp(18px, 3vw, 34px);
  align-items: start;
  padding: clamp(22px, 3.8vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.work-rows article:last-child,
.proof-ledger article:last-child,
.background-ledger article:last-child {
  border-bottom: 0;
}

.row-tag {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding-top: 0.28em;
}

.work-rows h3,
.proof-ledger h3,
.background-ledger h3 {
  grid-column: 2;
  max-width: 20ch;
  font-size: clamp(1.48rem, 2.4vw, 2.24rem);
  line-height: 1.02;
}

.work-rows p:not(.row-tag),
.proof-ledger p:not(.row-tag),
.background-ledger p:not(.row-tag),
.note-stack p {
  margin-bottom: 0;
}

.work-rows p:not(.row-tag),
.proof-ledger p:not(.row-tag),
.background-ledger p:not(.row-tag) {
  grid-column: 2;
  max-width: 58ch;
}

.proof-ledger,
.background-ledger {
  display: grid;
  border-top: 2px solid var(--ink);
}

.note-stack {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.note-stack p {
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  line-height: 1.34;
}

.project-callout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.project-callout > div:first-child {
  grid-column: 1 / -1;
}

.project-callout h2,
.case-title h2 {
  color: var(--red);
  max-width: 100%;
  font-size: clamp(3.15rem, 9vw, 6.4rem);
  line-height: 0.9;
}

.project-copy {
  justify-self: end;
  max-width: 680px;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--green);
}

.project-preview,
.case-hero-image,
.theme-grid figure {
  margin: 0;
}

.project-preview {
  align-self: end;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--red);
}

.project-preview img,
.case-hero-image img,
.theme-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.project-preview figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.page-hero {
  min-height: min(520px, calc(100dvh - 96px));
  display: grid;
  align-content: center;
  padding: clamp(48px, 7vw, 88px) 0;
}

.page-hero h1 {
  max-width: 12ch;
}

.case-body {
  justify-self: end;
  width: min(100%, 740px);
  max-width: 740px;
}

.case-study {
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
}

.case-hero-image {
  width: 100%;
  max-width: 100%;
  margin-top: 34px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--green);
  overflow: hidden;
}

.case-hero-image figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.case-showcase-image {
  box-shadow: 9px 9px 0 var(--red);
}

.case-showcase-image img {
  object-fit: contain;
}

.case-visual-stack {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.case-visual-stack .case-hero-image {
  margin-top: 0;
}

.case-ui-preview {
  box-shadow: 9px 9px 0 var(--red);
}

.case-ui-preview img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: top center;
}

.case-console-preview {
  box-shadow: 9px 9px 0 var(--red);
}

.case-console-preview img {
  aspect-ratio: 1400 / 665;
  object-fit: contain;
  object-position: top center;
}

.case-site-preview img {
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top center;
}

.case-workflow-preview {
  box-shadow: 9px 9px 0 var(--green);
}

.case-workflow-preview img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.case-meta {
  max-width: 100%;
  margin: 34px 0;
  border-top: 2px solid var(--ink);
}

.case-meta div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.case-meta dt {
  color: var(--blue);
  font-weight: 700;
}

.case-meta dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.case-proof-block {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.case-proof-copy {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.case-proof-copy p {
  margin: 0;
}

.case-proof-copy p:not(.row-tag) {
  max-width: 58ch;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.theme-grid figure {
  border: 1px solid var(--ink);
  background: var(--cream);
}

.theme-grid figcaption {
  padding: 9px 11px 11px;
  color: var(--ink);
}

.code-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.code-ledger > div {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

pre {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  margin: 10px 0 0;
  padding: 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.55;
}

pre code {
  display: block;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tool-cloud {
  display: grid;
  gap: 26px;
}

.tool-cloud h2 {
  max-width: 11ch;
}

.tool-cloud ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tool-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.tool-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tool-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.tool-cloud li {
  padding: 10px 13px;
  border: 1px solid var(--ink);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  transform: rotate(var(--tilt, -1deg));
}

.tool-cloud li:nth-child(2n) {
  --tilt: 1deg;
}

.tool-cloud li:nth-child(3n) {
  --tilt: -2deg;
}

.cv-ats {
  --paper: oklch(0.985 0.006 95);
  --paper-deep: oklch(0.965 0.008 95);
  --cream: #fffdfa;
  --ink: oklch(0.16 0.01 250);
  --muted: oklch(0.38 0.012 250);
  --line: oklch(0.82 0.012 88);
  --green: oklch(0.35 0.055 154);
  --red: oklch(0.48 0.12 28);
  --blue: oklch(0.42 0.07 248);
  --page: min(980px, calc(100vw - 40px));
  background: var(--cream);
  font-size: 14px;
}

.cv-ats::before {
  display: none;
}

.cv-ats .site-header {
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.cv-ats .brand-mark {
  width: auto;
  color: var(--ink);
  text-decoration: none;
  transform: none;
}

.cv-ats .brand-mark:hover {
  transform: none;
}

.cv-ats .brand-text {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.cv-ats .site-nav {
  gap: 24px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
}

.cv-ats .site-nav a::before {
  bottom: 2px;
  height: 1px;
}

.cv-ats .hero,
.cv-ats .page-hero {
  min-height: auto;
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--line);
}

.cv-ats .hero {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: 34px;
  align-items: start;
}

.cv-ats .hero-copy {
  max-width: 660px;
}

.cv-ats .eyebrow,
.cv-ats .row-tag,
.cv-ats .section-label span,
.cv-ats .case-meta,
.cv-ats .case-link,
.cv-ats .hero-links,
.cv-ats .contact-links,
.cv-ats figcaption,
.cv-ats pre,
.cv-ats .site-footer {
  font-family: var(--body);
}

.cv-ats .resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 10px 0;
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.cv-ats .resume-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.cv-ats .eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cv-ats h1,
.cv-ats h2,
.cv-ats h3,
.cv-ats h4,
.cv-ats h5 {
  font-family: var(--body);
  text-wrap: auto;
}

.cv-ats h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.cv-ats h2 {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cv-ats h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.25;
}

.cv-ats p {
  color: var(--muted);
}

.cv-ats .hero-lede,
.cv-ats .page-hero p,
.cv-ats .project-copy p,
.cv-ats .case-body > p {
  max-width: 64ch;
  font-size: 0.98rem;
  line-height: 1.52;
}

.cv-ats .hero-links,
.cv-ats .contact-links {
  gap: 12px 20px;
  margin-top: 22px;
  font-size: 0.92rem;
}

.cv-ats .detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 800;
}

.cv-ats .hero-links a,
.cv-ats .contact-links a,
.cv-ats .detail-links a,
.cv-ats .case-link,
.cv-ats .project-copy a {
  min-height: 44px;
}

.cv-ats .hero-links a::after,
.cv-ats .contact-links a::after,
.cv-ats .detail-links a::after,
.cv-ats .case-link::after,
.cv-ats .project-copy a::after,
.cv-ats .section-link::after {
  content: "";
  margin-left: 0;
}

.cv-ats .profile-card {
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: none;
}

.cv-ats .profile-card h2 {
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.35;
}

.cv-ats .profile-list {
  border-top: 1px solid var(--line);
}

.cv-ats .profile-list-wide {
  border-top: 0;
}

.cv-ats .profile-list div {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.cv-ats .profile-list-wide div:first-child {
  padding-top: 0;
}

.cv-ats .profile-list dt {
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 800;
}

.cv-ats .profile-list dd {
  font-size: 0.86rem;
  font-weight: 700;
}

.cv-ats .split-section,
.cv-ats .project-callout,
.cv-ats .case-study,
.cv-ats .tool-cloud,
.cv-ats .contact-panel {
  padding: 32px 0;
}

.cv-ats .split-section,
.cv-ats .case-study {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 32px;
}

.cv-ats .section-label {
  position: static;
}

.cv-ats .section-label span {
  display: none;
}

.cv-ats .section-label h2 {
  max-width: none;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cv-ats .work-rows,
.cv-ats .proof-ledger,
.cv-ats .background-ledger {
  border-top: 0;
}

.cv-ats .work-rows article,
.cv-ats .proof-ledger article,
.cv-ats .background-ledger article {
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 5px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.cv-ats .work-rows article:first-child,
.cv-ats .proof-ledger article:first-child,
.cv-ats .background-ledger article:first-child {
  padding-top: 0;
}

.cv-ats .work-rows article > *,
.cv-ats .proof-ledger article > *,
.cv-ats .background-ledger article > * {
  min-width: 0;
}

.cv-ats .row-tag {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding-top: 0.1em;
}

.cv-ats .work-rows h3,
.cv-ats .proof-ledger h3,
.cv-ats .background-ledger h3 {
  grid-column: 2;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.25;
}

.cv-ats .work-rows p:not(.row-tag),
.cv-ats .proof-ledger p:not(.row-tag),
.cv-ats .background-ledger p:not(.row-tag) {
  grid-column: 2;
  margin: 0;
  max-width: 68ch;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cv-ats .work-rows p:not(.row-tag) a,
.cv-ats .proof-ledger p:not(.row-tag) a,
.cv-ats .background-ledger p:not(.row-tag) a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 2px;
}

.cv-ats .section-link {
  margin-top: 14px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 800;
}

.cv-ats .profile-hero {
  min-height: auto;
}

.cv-ats .profile-hero h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cv-ats .tool-cloud {
  gap: 32px;
}

.cv-ats .tool-cloud h2 {
  max-width: none;
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cv-ats .tool-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.cv-ats .tool-group {
  gap: 8px;
}

.cv-ats .tool-group h3 {
  font-size: 0.9rem;
  font-weight: 850;
}

.cv-ats .tool-cloud li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-family: var(--body);
  font-size: 0.82rem;
  transform: none;
}

.cv-ats .contact-panel {
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  border-bottom: 0;
}

.cv-ats .contact-panel .contact-links {
  margin-top: 0;
  align-self: start;
}

.cv-ats .contact-panel h2 {
  max-width: none;
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cv-ats .page-hero h1 {
  max-width: none;
}

.cv-ats .case-title h2 {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.2;
}

.cv-ats .case-body {
  width: 100%;
  max-width: 780px;
}

.cv-ats .work-index {
  padding-top: 30px;
  padding-bottom: 34px;
}

.cv-ats .table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.cv-ats .work-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cv-ats .work-table th,
.cv-ats .work-table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cv-ats .work-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cv-ats .work-table thead th {
  padding-top: 0;
}

.cv-ats .work-table td:first-child {
  width: 19%;
  font-weight: 850;
}

.cv-ats .work-table td:nth-child(2),
.cv-ats .work-table td:nth-child(3) {
  width: 16%;
  color: var(--muted);
  font-weight: 700;
}

.cv-ats .work-table td:last-child {
  width: 15%;
}

.cv-ats .work-table a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-right: 12px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.cv-ats .work-proof {
  padding-top: 30px;
}

.cv-ats .visual-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.cv-ats .visual-work-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.cv-ats .visual-work-image {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cv-ats .visual-work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #ffffff;
}

.cv-ats .work-sample-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 3px;
  padding-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.cv-ats .work-sample-meta span + span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.cv-ats .visual-work-card h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
}

.cv-ats .visual-work-card h3 a {
  color: inherit;
  text-decoration: none;
}

.cv-ats .visual-work-card h3 a:hover {
  color: var(--green);
}

.cv-ats .visual-work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.cv-ats .work-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 2px;
}

.cv-ats .work-sample-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.cv-ats .case-hero-image,
.cv-ats .project-preview,
.cv-ats .theme-grid figure {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: none;
}

.cv-ats .case-hero-image {
  margin-top: 22px;
}

.cv-ats .case-visual-stack {
  gap: 18px;
  margin-top: 22px;
}

.cv-ats .case-meta {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.cv-ats .case-meta div {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
}

.cv-ats .case-meta dt {
  color: var(--muted);
}

.cv-ats .case-link {
  margin-right: 18px;
  font-size: 0.92rem;
}

.cv-ats .case-proof-copy {
  border-top: 1px solid var(--line);
}

.cv-ats .related-work-list {
  border-top: 1px solid var(--line);
}

.cv-ats .related-work-list a {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 5px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.cv-ats .related-work-list a:hover strong {
  color: var(--green);
}

.cv-ats .related-type {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cv-ats .related-work-list strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.cv-ats .related-work-list span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.cv-ats pre {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.cv-ats .site-footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
}

.contact-panel h2 {
  max-width: 12ch;
}

.site-footer {
  min-height: 96px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .identity-plate,
  .page-hero,
  .split-section,
  .project-callout,
  .case-study,
  .tool-cloud,
  .contact-panel {
    animation: enter 720ms var(--ease) both;
  }

  .identity-plate {
    animation-delay: 120ms;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.cv-ats .hero-copy,
.cv-ats .identity-plate,
.cv-ats .page-hero,
.cv-ats .split-section,
.cv-ats .project-callout,
.cv-ats .case-study,
.cv-ats .tool-cloud,
.cv-ats .contact-panel {
  animation: none;
}

@media (max-width: 940px) {
  .hero,
  .split-section,
  .project-callout,
  .case-study,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-link {
    grid-column: 1;
  }

  .section-label {
    position: static;
  }

  .work-rows article {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .proof-ledger article,
  .background-ledger article {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .work-rows article p:not(.row-tag) {
    grid-column: 2;
  }

  .proof-ledger p:not(.row-tag),
  .background-ledger p:not(.row-tag) {
    grid-column: 2;
  }

  .identity-plate {
    max-width: 620px;
  }

  .profile-card {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 28px);
  }

  .site-shell {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .site-shell * {
    min-width: 0;
  }

  body {
    background:
      radial-gradient(
        circle at 0% 10%,
        oklch(0.92 0.035 78) 0 7rem,
        transparent 18rem
      ),
      linear-gradient(135deg, var(--paper), var(--cream) 60%, var(--paper-deep));
  }

  body::before {
    background-size:
      100% 38px,
      38px 100%;
    opacity: 0.28;
  }

  .site-header {
    min-height: 108px;
    grid-template-columns: auto auto;
  }

  .nav-button {
    justify-self: end;
    width: 54px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 2px solid var(--ink);
    background: var(--cream);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
  }

  .nav-button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 5px;
  }

  .nav-line {
    width: 21px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding: 18px 0 22px;
    border-top: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 36px 0 60px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 4.4rem);
  }

  .hero-lede,
  .page-hero p,
  .project-copy p,
  .case-body > p,
  p {
    max-width: 100%;
  }

  .hero-lede,
  .page-hero p,
  .project-copy p,
  .case-body > p {
    font-size: 1.16rem;
  }

  .case-body {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .case-meta dd,
  figcaption,
  pre,
  code {
    overflow-wrap: anywhere;
  }

  .case-hero-image,
  .project-preview,
  .theme-grid figure {
    overflow: hidden;
  }

  .case-hero-image {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
    box-shadow: 7px 7px 0 var(--green);
  }

  .case-showcase-image {
    box-shadow: 7px 7px 0 var(--red);
  }

  .case-visual-stack {
    gap: 22px;
    width: calc(100% - 8px);
  }

  .case-visual-stack .case-hero-image {
    width: 100%;
    max-width: 100%;
  }

  .case-ui-preview {
    box-shadow: 7px 7px 0 var(--red);
  }

  .case-ui-preview img {
    aspect-ratio: 16 / 9;
  }

  .case-console-preview {
    box-shadow: 7px 7px 0 var(--red);
  }

  .case-console-preview img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .case-workflow-preview {
    box-shadow: 7px 7px 0 var(--green);
  }

  .case-workflow-preview img {
    aspect-ratio: 16 / 9;
  }

  .identity-plate {
    min-height: 360px;
    padding: 24px;
    box-shadow: 8px 8px 0 var(--red);
  }

  .profile-card {
    padding: 22px;
    box-shadow: 7px 7px 0 var(--green);
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .identity-plate::after {
    right: -34px;
    top: 66px;
    font-size: 4.4rem;
  }

  .ticker-track {
    animation-duration: 22s;
  }

  .split-section,
  .project-callout,
  .case-study,
  .tool-cloud,
  .contact-panel {
    padding: 58px 0;
  }

  .work-rows article,
  .proof-ledger article,
  .background-ledger article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-rows h3,
  .proof-ledger h3,
  .background-ledger h3,
  .proof-ledger p:not(.row-tag),
  .background-ledger p:not(.row-tag),
  .work-rows article p:not(.row-tag) {
    grid-column: auto;
  }

  .work-rows h3,
  .proof-ledger h3,
  .background-ledger h3 {
    max-width: 100%;
  }

  .row-tag {
    padding-top: 0;
  }

  .project-copy {
    padding: 22px;
    box-shadow: 7px 7px 0 var(--green);
  }

  .project-preview {
    box-shadow: 7px 7px 0 var(--red);
  }

  .theme-grid,
  .code-ledger {
    grid-template-columns: 1fr;
  }

  .tool-groups,
  .cv-ats .tool-groups {
    grid-template-columns: 1fr;
  }

  .case-proof-block .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-proof-block .theme-grid figcaption {
    padding: 7px 8px 9px;
  }

  .case-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0 36px;
  }
}

@media (max-width: 390px) {
  :root {
    --page: calc(100vw - 24px);
  }

  .site-shell {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .brand-mark {
    width: 58px;
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }
}

@media (max-width: 940px) {
  .cv-ats .hero,
  .cv-ats .split-section,
  .cv-ats .case-study,
  .cv-ats .contact-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cv-ats .section-link {
    grid-column: 1;
  }

  .cv-ats .work-table,
  .cv-ats .work-table thead,
  .cv-ats .work-table tbody,
  .cv-ats .work-table tr,
  .cv-ats .work-table th,
  .cv-ats .work-table td {
    display: block;
  }

  .cv-ats .work-table {
    min-width: 0;
  }

  .cv-ats .work-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .cv-ats .work-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .cv-ats .work-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 4px 0;
    border-bottom: 0;
  }

  .cv-ats .work-table a {
    min-height: 40px;
  }

  .cv-ats .work-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .cv-ats .work-table td:first-child,
  .cv-ats .work-table td:nth-child(2),
  .cv-ats .work-table td:nth-child(3),
  .cv-ats .work-table td:last-child {
    width: auto;
  }

  .cv-ats .visual-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cv-ats {
    --page: calc(100vw - 28px);
  }

  .cv-ats .site-header {
    min-height: 84px;
  }

  .cv-ats .brand-text {
    font-size: 0.94rem;
  }

  .cv-ats .nav-button {
    border: 1px solid var(--ink);
    background: #ffffff;
  }

  .cv-ats .site-nav {
    border-top: 1px solid var(--line);
  }

  .cv-ats .hero,
  .cv-ats .page-hero {
    padding: 32px 0 30px;
  }

  .cv-ats h1,
  .cv-ats .profile-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.06;
  }

  .cv-ats .resume-contact {
    gap: 4px 12px;
    font-size: 0.82rem;
  }

  .cv-ats .hero-lede,
  .cv-ats .page-hero p,
  .cv-ats .project-copy p,
  .cv-ats .case-body > p {
    font-size: 1rem;
  }

  .cv-ats .profile-card {
    padding: 18px;
  }

  .cv-ats .profile-list div,
  .cv-ats .work-rows article,
  .cv-ats .proof-ledger article,
  .cv-ats .background-ledger article,
  .cv-ats .case-meta div,
  .cv-ats .related-work-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cv-ats .row-tag,
  .cv-ats .work-rows h3,
  .cv-ats .proof-ledger h3,
  .cv-ats .background-ledger h3,
  .cv-ats .work-rows p:not(.row-tag),
  .cv-ats .proof-ledger p:not(.row-tag),
  .cv-ats .background-ledger p:not(.row-tag) {
    grid-column: 1;
    grid-row: auto;
  }

  .cv-ats .split-section,
  .cv-ats .project-callout,
  .cv-ats .case-study,
  .cv-ats .tool-cloud,
  .cv-ats .contact-panel {
    padding: 34px 0;
  }

  .cv-ats .case-title h2 {
    font-size: 1.35rem;
  }

  .cv-ats .work-table td {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .cv-ats .visual-work-grid {
    grid-template-columns: 1fr;
  }

  .cv-ats .related-type,
  .cv-ats .related-work-list strong,
  .cv-ats .related-work-list span:last-child {
    grid-column: 1;
    grid-row: auto;
  }
}
