/* Hallmark · macrostructure: Marquee Hero · components: H1 Marquee, N9 Edge-aligned minimal, F3 Tabular spec sheet, S3 Sticky pinned, Ft5 Statement */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--color-paper);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: var(--color-paper);
}

::-webkit-scrollbar-thumb {
  border: var(--space-2xs) solid var(--color-paper);
  background: var(--color-rule);
}

a {
  color: inherit;
  text-decoration-thickness: var(--rule-hair);
  text-underline-offset: var(--space-2xs);
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: var(--space-2xs);
}

.skip-link {
  position: fixed;
  inset-block-start: var(--space-md);
  inset-inline-start: var(--space-md);
  z-index: var(--z-tooltip);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  transform: translateY(-180%);
  transition: transform var(--dur-short) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.hero-stage {
  width: min(100%, var(--page-max));
  margin-inline: auto;
}

.hero {
  position: relative;
  background: var(--color-paper);
  overflow: hidden;
}

@media (min-width: 60.0625rem) {
  .hero-stage {
    container-type: inline-size;
    height: calc(720 / 1280 * 100cqi);
    overflow: hidden;
  }

  .hero.comp-frame {
    width: 1280px;
    height: 720px;
    aspect-ratio: auto;
    transform: scale(calc(100cqi / 1280px));
    transform-origin: top left;
  }
}

.region {
  margin: 0;
}

.hero__monogram {
  z-index: var(--z-raised);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.8;
}

.hero__name {
  z-index: var(--z-raised);
  padding-block-start: 2.85rem;
  color: var(--color-ink);
  font-size: 13px;
  line-height: 1;
}

.hero__nav {
  position: absolute;
  inset: 0;
  z-index: var(--z-raised);
  pointer-events: none;
}

.hero__nav a {
  display: block;
  color: var(--color-ink);
  padding-block-start: 8px;
  padding-inline-start: 2px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  transition: color var(--dur-short) var(--ease-out);
}

.hero__nav a::after {
  display: block;
  width: 100%;
  height: var(--rule-hair);
  margin-block-start: var(--space-xs);
  background: var(--color-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-short) var(--ease-out);
}

.hero__nav a:is(:hover, :focus-visible, [aria-current="true"]) {
  color: var(--color-accent);
}

.hero__nav a:is(:hover, :focus-visible, [aria-current="true"])::after {
  transform: scaleX(1);
}

.masthead-rule {
  z-index: var(--z-base);
  height: 13.3%;
  border-block-end: var(--rule-hair) solid var(--color-rule);
  pointer-events: none;
}

.hero__thesis {
  z-index: var(--z-raised);
  width: max-content;
  color: var(--color-ink);
  font-family: var(--r-hero-thesis-family), var(--font-display);
  font-size: var(--r-hero-thesis-font);
  font-weight: var(--r-hero-thesis-weight);
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
}

.hero__summary {
  z-index: var(--z-raised);
  width: max-content;
  color: var(--color-muted);
  font-size: var(--r-hero-summary-font);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  white-space: nowrap;
}

.hero__proof {
  margin: 0;
}

.proof {
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block-start: 11px;
  padding-inline-start: 4px;
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.proof[data-region="proof-leadership"] {
  inset-block-start: 31.5%;
}

.proof[data-region="proof-scale"] {
  padding-block-start: 7px;
  padding-inline-start: 0;
}

.proof[data-region="proof-scale"] dt {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
}

.proof[data-region="proof-scale"] dd {
  margin-block-start: 0.45rem;
}

.proof:first-child {
  border-block-start: var(--rule-hair) solid var(--color-rule);
}

.proof dt {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: var(--r-proof-years-font);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.proof dd {
  width: max-content;
  margin: 0.4rem 0 0;
  color: var(--color-neutral);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.evidence-rule {
  z-index: var(--z-base);
  inset-block-start: calc(var(--r-evidence-rule-y) + 85px);
  height: 0;
  border-block-start: var(--rule-hair) solid var(--color-rule);
  pointer-events: none;
}

.hero__current-title {
  z-index: var(--z-raised);
  width: max-content;
  color: var(--color-accent);
  font-size: var(--r-current-title-font);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.hero__current-company {
  z-index: var(--z-raised);
  width: max-content;
  color: color-mix(in oklch, var(--color-ink) 82%, var(--color-muted));
  font-size: var(--r-current-company-font);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.hero__current-date {
  z-index: var(--z-raised);
  width: max-content;
  padding-block-start: 3.25rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.hero__current-summary {
  z-index: var(--z-raised);
  width: max-content;
  color: var(--color-muted);
  font-size: var(--r-current-summary-font);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
  white-space: nowrap;
}

.resume-section {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: var(--space-3xl) var(--page-gutter) var(--space-2xl);
}

.section-heading {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  width: 100%;
  margin: 0;
  padding-block: var(--space-sm);
  background: var(--color-paper);
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.section-lead {
  max-width: 62ch;
  margin: var(--space-lg) 0 var(--space-xl);
  color: var(--color-muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.section-heading h2,
.project-copy h2,
.project-copy h3,
.archive h3,
.credentials h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.experience-summary,
.archive-item p,
.project-copy > p,
.expertise-group li,
.credentials li {
  color: var(--color-muted);
}

.experience-list,
.archive-list,
.expertise-group ul,
.credentials ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-item,
.archive-item,
.credentials li,
.expertise-group li,
.proof {
  transition: border-color var(--dur-short) var(--ease-out);
}

.experience-item:is(:hover, :focus-within),
.archive-item:is(:hover, :focus-within),
.credentials li:is(:hover, :focus-within),
.expertise-group li:is(:hover, :focus-within),
.proof:is(:hover, :focus-within) {
  border-color: var(--color-accent);
}

.experience-item,
.archive-item {
  display: grid;
  grid-template-columns: 8.5rem minmax(16rem, 0.95fr) minmax(0, 1.7fr) 7.5rem;
  gap: var(--space-lg);
  padding-block: var(--space-xl);
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.archive-item {
  grid-template-columns: 9rem minmax(14rem, 0.8fr) minmax(0, 2fr);
}

.experience-date,
.project-meta,
.credentials time {
  margin: 0;
  color: var(--color-neutral);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.experience-role h3,
.archive-item h4 {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.experience-role p,
.archive-item h4 span {
  display: block;
  margin: var(--space-xs) 0 0;
  color: var(--color-accent);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
}

.experience-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-summary li {
  margin-block-end: var(--space-sm);
  line-height: 1.55;
}

.experience-summary li::before {
  content: "— ";
  color: var(--color-accent);
}

.experience-stack {
  margin: 0;
  color: var(--color-neutral);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.archive {
  margin-block-start: var(--space-3xl);
}

.archive h3,
.credentials h3 {
  margin-block-end: var(--space-lg);
  font-size: var(--text-xl);
}

.archive-item > p {
  margin: 0;
  line-height: 1.55;
}

.work-samples {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-xl);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.work-samples li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  min-width: 0;
}

.work-samples img {
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 938 / 750;
  object-fit: cover;
  object-position: top;
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
}

.work-samples h5 {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.work-samples time {
  display: inline-block;
  margin-inline-start: var(--space-xs);
  color: var(--color-neutral);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
}

.work-samples p {
  margin: var(--space-xs) 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.work-sample__stack {
  color: var(--color-neutral);
}

.work-samples .project-link {
  margin-block-start: var(--space-sm);
}

.work-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin: var(--space-md) 0 0;
  padding: var(--space-sm) 0 0;
  border-block-start: var(--rule-hair) solid var(--color-rule);
  list-style: none;
}

.work-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs) var(--space-md);
}

.work-links span {
  color: var(--color-ink);
  font-weight: 700;
}

.work-links a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-block-end: var(--rule-hair) solid currentColor;
}

.expertise-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: var(--space-2xl);
}

.expertise-group h3 {
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.expertise-group li {
  padding-block: var(--space-sm);
  border-block-start: var(--rule-hair) solid var(--color-rule);
  line-height: 1.4;
}

.technology-band {
  margin-block-start: var(--space-2xl);
  padding-block: var(--space-lg);
  border-block: var(--rule-hair) solid var(--color-ink);
}

.technology-band p {
  max-width: 78ch;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.project-layout,
.credentials {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: var(--space-xl);
  padding-block: var(--space-xl);
  border-block-start: var(--rule-hair) solid var(--color-ink);
}

.credentials {
  margin-block-start: var(--space-2xl);
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.project-facts {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: var(--space-lg);
  margin-block: var(--space-xl);
}

.project-facts p {
  margin: 0;
  padding-block-start: var(--space-sm);
  border-block-start: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  line-height: 1.5;
}

.project-stack {
  margin: var(--space-md) 0 0;
  color: var(--color-neutral);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.project-copy .project-link {
  display: inline-block;
  margin-block-start: var(--space-md);
}

.project-link,
.site-footer a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.project-link {
  border-block-end: var(--rule-hair) solid currentColor;
}

.credentials li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-md);
  border-block-start: var(--rule-hair) solid var(--color-rule);
}

.site-footer {
  display: grid;
  gap: var(--space-xl);
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: var(--space-3xl) var(--page-gutter) var(--space-xl);
}

.site-footer__line {
  max-width: 16ch;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.site-footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-lg);
  padding-block-start: var(--space-sm);
  border-block-start: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
}

@media (max-width: 60rem) {
  .hero.comp-frame {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    padding: var(--space-lg) var(--page-gutter) var(--space-2xl);
  }

  .hero .region,
  .hero__nav,
  .hero__nav a,
  .proof {
    position: static;
    width: auto;
    height: auto;
    inset: auto;
  }

  .hero__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
  }

  .hero__nav a {
    padding: 0;
    font-size: 0.9375rem;
  }

  .hero__name,
  .hero__current-date {
    padding: 0;
  }

  .hero__thesis,
  .hero__summary,
  .hero__current-company,
  .hero__current-summary,
  .hero__current-title {
    width: auto;
    white-space: normal;
  }

  .hero__thesis {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .masthead-rule,
  .evidence-rule {
    display: none;
  }

  .proof {
    padding: var(--space-sm) 0;
  }

  .experience-item,
  .archive-item,
  .project-layout,
  .credentials,
  .expertise-layout,
  .project-facts,
  .credentials li,
  .work-samples,
  .work-samples li {
    grid-template-columns: 1fr;
  }

  .work-samples img {
    max-width: 16rem;
  }

  .section-heading {
    position: static;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }
}
