:root {
  --bg: #f8f1e7;
  --bg-warm: #ff8a2a;
  --layer-light: #fffaf3;
  --layer-orange: #ff8a2a;
  --layer-orange-deep: #f0781f;
  --panel: #fffaf3;
  --ink: #161a1d;
  --muted: #5f554b;
  --soft: #d9b08a;
  --line: #202625;
  --blue: #315d8f;
  --violet: #6b4a8f;
  --green: #3f6f53;
  --gold: #c9791f;
  --orange: #ff7a1a;
  --orange-soft: #ffb16d;
  --aqua: #4b8f86;
  --shadow: 0 18px 42px rgba(58, 34, 14, 0.13);
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 122, 26, 0.2), transparent 360px),
    radial-gradient(circle at top right, rgba(255, 138, 42, 0.28), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, Manrope, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, 0.94);
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 10px 28px rgba(74, 35, 7, 0.08);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 78px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1.12rem;
  color: var(--ink);
}

.brand span {
  display: block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.76rem;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-links button {
  border: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(32, 38, 37, 0.12);
}

.menu-toggle {
  display: none;
  border: 2px solid var(--orange);
  background: var(--orange);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 750;
  color: var(--ink);
}

.section,
.hero,
.page-hero,
.case-hero,
.cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 24px;
  position: relative;
  clip-path: inset(0 -100vmax);
}

main > section:nth-of-type(odd),
main > .case-content {
  background: var(--layer-light);
  box-shadow: 0 0 0 100vmax var(--layer-light);
}

main > section:nth-of-type(even) {
  background: var(--layer-orange);
  box-shadow: 0 0 0 100vmax var(--layer-orange);
}

main > section:nth-of-type(even) .eyebrow,
main > section:nth-of-type(even) .section-head p,
main > section:nth-of-type(even) > p,
main > section:nth-of-type(even) .lead,
main > section:nth-of-type(even) .cta p,
main > section:nth-of-type(even) p {
  color: rgba(22, 26, 29, 0.9);
}

main > section:nth-of-type(even) .eyebrow::before {
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 78px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 760;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  max-width: 760px;
  font-weight: 780;
}

.case-hero h1,
.page-hero h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  line-height: 1.14;
}

h2 {
  font-size: clamp(1.5rem, 2.1vw, 2.15rem);
  font-weight: 720;
}

h3 {
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  font-weight: 700;
}

p {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  max-width: 760px;
  margin-top: 24px;
}

.confidence {
  margin-top: 24px;
  max-width: 720px;
  font-size: 1.06rem;
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(31, 31, 29, 0.14);
}

.button.secondary:hover,
.button.copy:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.visual-card,
.card,
.project-card,
.fact-card,
.artifact-card,
.pillar {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.visual-card,
.project-card,
.card,
.pillar {
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.98), rgba(255, 243, 223, 0.88));
}

main > section:nth-of-type(even) .visual-card,
main > section:nth-of-type(even) .project-card,
main > section:nth-of-type(even) .card,
main > section:nth-of-type(even) .pillar,
main > section:nth-of-type(even) .fact-card,
main > section:nth-of-type(even) .artifact-card {
  background: #fffaf3;
  box-shadow: 0 16px 34px rgba(74, 35, 7, 0.18);
}

.visual-card {
  padding: 24px;
  min-height: 124px;
}

.visual-card:nth-child(2),
.visual-card:nth-child(4) {
  transform: translateX(26px);
}

.visual-card strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 750;
}

.visual-card span {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--muted);
  max-width: 520px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resume-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: end;
}

.resume-contact {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px;
}

.resume-contact p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(32, 38, 37, 0.14);
}

.resume-contact p:last-child {
  border-bottom: 0;
}

.resume-contact strong,
.resume-contact span,
.resume-contact a {
  display: block;
}

.resume-contact strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.resume-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.resume-main,
.resume-side {
  display: grid;
  gap: 22px;
}

.resume-block {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px;
}

.resume-block h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: 18px;
}

.resume-item {
  padding: 18px 0;
  border-top: 1px solid rgba(32, 38, 37, 0.14);
}

.resume-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.resume-item:last-child {
  padding-bottom: 0;
}

.resume-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.resume-item p {
  color: var(--muted);
  margin-bottom: 8px;
}

.resume-item a {
  font-weight: 650;
}

.resume-item-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 6px;
}

.resume-item-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}

.resume-item.compact {
  padding: 14px 0;
}

.resume-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-list li {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--layer-light);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 550;
}

.button.disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.resume-page {
  background:
    linear-gradient(180deg, rgba(255, 122, 26, 0.08), rgba(255, 250, 243, 0) 340px),
    var(--bg);
}

.resume-document {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 24px 34px;
}

.resume-top {
  background: var(--surface);
  border: 2px solid var(--line);
  border-top: 8px solid var(--orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 42px;
}

.resume-label {
  color: var(--orange);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.resume-top h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: 0;
  margin-bottom: 10px;
}

.resume-title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  font-weight: 650;
  margin-bottom: 18px;
}

.resume-summary {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.resume-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.resume-contact-row a {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--layer-light);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.resume-section {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 34px 42px;
  margin-top: 24px;
}

.resume-section h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 3px solid var(--orange);
}

.resume-entry {
  padding: 22px 0;
  border-bottom: 1px solid rgba(32, 38, 37, 0.16);
}

.resume-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resume-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 10px;
}

.resume-entry-head h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.resume-entry-head p {
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0;
}

.resume-entry-head span {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: right;
}

.resume-entry ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.resume-entry li {
  margin: 8px 0;
}

.resume-entry > p {
  color: var(--muted);
  margin: 0;
}

.resume-compact-grid,
.resume-skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.resume-compact-grid article,
.resume-skill-groups div {
  background: var(--layer-light);
  border: 1.5px solid rgba(32, 38, 37, 0.18);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.resume-compact-grid h3,
.resume-skill-groups h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.resume-compact-grid p,
.resume-skill-groups p {
  color: var(--muted);
  margin: 0;
}

.resume-body,
body:has(.resume-page) {
  background: #fbfaf7;
  color: #202020;
}

.resume-body .site-header,
body:has(.resume-page) .site-header {
  background: rgba(251, 250, 247, 0.92);
  border-bottom-color: rgba(255, 122, 26, 0.34);
}

body.resume-body .menu-toggle {
  color: #202020;
  background: #ffffff;
  border-color: rgba(255, 122, 26, 0.55);
}

body.resume-body .menu-toggle:hover {
  background: rgba(255, 122, 26, 0.12);
}

body.resume-body .nav-links {
  background: transparent;
}

body.resume-body .nav-links a {
  color: #202020;
}

body.resume-body .nav-links a:hover,
body.resume-body .nav-links a[aria-current="page"] {
  background: rgba(255, 122, 26, 0.14);
  color: #202020;
}

body:has(.resume-page) .brand,
body:has(.resume-page) .nav-links a {
  color: #202020;
}

body:has(.resume-page) .brand span {
  color: rgba(32, 32, 32, 0.62);
}

body:has(.resume-page) .nav-links a:hover,
body:has(.resume-page) .nav-links a[aria-current="page"] {
  background: rgba(255, 122, 26, 0.14);
  color: #202020;
}

.resume-body .site-footer,
body:has(.resume-page) .site-footer {
  background: #fbfaf7;
  border-top-color: rgba(255, 122, 26, 0.42);
}

.resume-body .site-footer,
.resume-body .site-footer strong,
.resume-body .site-footer a,
body:has(.resume-page) .site-footer,
body:has(.resume-page) .site-footer strong,
body:has(.resume-page) .site-footer a {
  color: #202020;
}

.resume-body .site-footer p,
.resume-body .footer-links span,
body:has(.resume-page) .site-footer p,
body:has(.resume-page) .footer-links span {
  color: rgba(32, 32, 32, 0.62);
}

.resume-page {
  background: #fbfaf7;
  color: #202020;
}

.resume-document {
  max-width: 900px;
  padding: 46px 22px 30px;
}

.resume-top {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 22px;
}

.resume-label {
  color: #ff8a2a;
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.resume-top h1 {
  color: #202020;
  font-size: clamp(2rem, 5vw, 3.05rem);
  margin-bottom: 4px;
}

.resume-title {
  color: #d95f00;
  font-size: 1rem;
  margin-bottom: 12px;
  text-wrap: balance;
}

.resume-summary {
  color: rgba(32, 32, 32, 0.74);
  max-width: 900px;
  font-size: 0.92rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.resume-contact-row {
  gap: 14px;
  margin-top: 16px;
}

.resume-contact-row a {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: rgba(32, 32, 32, 0.78);
  font-size: 0.78rem;
  font-weight: 550;
}

.resume-contact-row a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: #ff8a2a;
  vertical-align: middle;
}

.resume-actions {
  margin-top: 18px;
}

.resume-filters {
  justify-content: flex-start;
  margin: 18px 0 6px;
}

.resume-filter-hidden {
  display: none !important;
}

body.resume-print-prep,
body.resume-print-prep .resume-page,
body.resume-print-prep .resume-document {
  background: #ffffff !important;
  background-image: none !important;
}

body.resume-print-prep {
  font-size: 11px;
}

body.resume-print-prep .resume-document {
  max-width: 7.6in;
  padding: 0 !important;
  margin: 0 auto !important;
  font-size: 11px;
}

body.resume-print-prep .resume-top {
  padding: 0 0 14px;
}

body.resume-print-prep .resume-section {
  padding-top: 16px;
  margin-top: 0;
}

body.resume-print-prep .resume-entry {
  padding-bottom: 10px;
  margin-bottom: 10px;
}

body.resume-print-prep .resume-compact-grid,
body.resume-print-prep .resume-skill-groups {
  display: block !important;
}

body.resume-print-prep .resume-compact-grid article,
body.resume-print-prep .resume-skill-groups div {
  margin-bottom: 8px;
}

body.resume-print-prep .resume-page *,
body.resume-print-prep .resume-document * {
  background: #ffffff !important;
  background-image: none !important;
}

body.resume-print-prep .site-header,
body.resume-print-prep .site-footer,
body.resume-print-prep .resume-filters,
body.resume-print-prep .resume-actions,
body.resume-print-prep .resume-end,
body.resume-print-prep .resume-filter-hidden,
body.resume-print-prep .resume-print-omit {
  display: none !important;
}

.resume-actions .button {
  min-height: 38px;
  padding: 9px 14px;
  border-width: 1.5px;
}

.resume-actions .button.secondary {
  background: transparent;
  color: #d95f00;
  border-color: rgba(255, 122, 26, 0.74);
}

.resume-actions .button.primary {
  background: #ff8a2a;
  border-color: #ff8a2a;
  color: #202020;
}

.resume-actions .button.primary:hover {
  background: #202020;
  border-color: #202020;
  color: #fffaf4;
}

.resume-actions .button.secondary:hover {
  background: rgba(255, 122, 26, 0.12);
  color: #202020;
  border-color: #ff8a2a;
}

.resume-actions .button.disabled,
.resume-actions .button.disabled:hover {
  background: transparent;
  color: rgba(32, 32, 32, 0.46);
  border-color: rgba(255, 122, 26, 0.38);
}

.resume-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 22px 0 0;
  margin-top: 4px;
}

.resume-section h2 {
  color: #202020;
  font-size: 1.05rem;
  padding-bottom: 0;
  margin-bottom: 14px;
  border-bottom: 0;
  text-wrap: balance;
}

.resume-section h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: #ff8a2a;
  vertical-align: 2px;
}

.resume-entry {
  padding: 0 0 18px 16px;
  margin: 0 0 18px;
  border-bottom: 0;
  border-left: 2px solid #ff8a2a;
}

.resume-entry:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.resume-entry-head {
  margin-bottom: 7px;
}

.resume-entry-head h3 {
  color: #202020;
  font-size: 0.98rem;
  margin-bottom: 2px;
  text-wrap: balance;
}

.resume-entry-head p {
  color: #d95f00;
  font-size: 0.82rem;
  text-wrap: balance;
}

.resume-entry-head span {
  color: rgba(32, 32, 32, 0.56);
  font-size: 0.72rem;
}

.resume-entry ul {
  color: rgba(32, 32, 32, 0.72);
  font-size: 0.8rem;
  line-height: 1.5;
  padding-left: 14px;
  text-wrap: pretty;
}

.resume-entry li {
  margin: 4px 0;
}

.resume-entry > p {
  color: rgba(32, 32, 32, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.resume-entry a {
  color: #d95f00;
}

.resume-compact-grid,
.resume-skill-groups {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.resume-compact-grid article,
.resume-skill-groups div {
  background: transparent;
  border: 0;
  border-left: 2px solid #ff8a2a;
  border-radius: 0;
  padding: 0 0 10px 14px;
  margin: 0 0 10px;
}

.resume-compact-grid h3,
.resume-skill-groups h3 {
  color: #202020;
  font-size: 0.9rem;
  text-wrap: balance;
}

.resume-compact-grid p,
.resume-skill-groups p {
  color: rgba(32, 32, 32, 0.72);
  font-size: 0.8rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.resume-end {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 22px 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(32, 32, 32, 0.62);
  font-size: 0.84rem;
}

.resume-end a {
  color: #d95f00;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  min-height: 340px;
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: var(--layer-light);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.project-thumb.cover img {
  object-fit: cover;
  padding: 0;
}

.project-thumb.placeholder {
  display: grid;
  place-items: center;
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(255, 250, 243, 0.9)),
    var(--panel);
}

.project-thumb.placeholder span {
  color: rgba(22, 26, 29, 0.72);
  font-size: 0.9rem;
  font-weight: 550;
  text-align: center;
  padding: 18px;
}

.project-card.featured {
  grid-row: auto;
  min-height: 340px;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 22px 24px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent, var(--blue));
  opacity: 0.7;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent, var(--line));
  box-shadow: 0 24px 55px rgba(31, 31, 29, 0.16);
}

.project-type {
  color: var(--accent, var(--blue));
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 16px;
  font-size: clamp(1.28rem, 1.85vw, 1.82rem);
}

.project-card p {
  color: var(--muted);
  margin-top: 16px;
}

.why {
  margin-top: 18px;
  font-weight: 650;
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 18px;
}

.tag {
  display: inline-flex;
  border: 2px solid rgba(32, 38, 37, 0.16);
  background: rgba(227, 111, 30, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.arrow {
  margin-top: auto;
  font-weight: 750;
  font-size: 1.4rem;
}

.card,
.pillar,
.fact-card,
.artifact-card {
  padding: 24px;
}

.card p,
.pillar p,
.fact-card p,
.artifact-card p {
  color: var(--muted);
  margin-top: 12px;
}

.method-group ul,
.case-content ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.method-group li,
.case-content li {
  margin: 7px 0;
}

.band {
  background: inherit;
  border-top: 3px solid rgba(32, 38, 37, 0.2);
  border-bottom: 3px solid rgba(32, 38, 37, 0.2);
}

.cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cta p {
  color: var(--muted);
  max-width: 720px;
  margin-top: 14px;
}

.site-footer {
  border-top: 5px solid var(--orange);
  padding: 42px 24px;
  background: var(--ink);
  color: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.footer-inner p,
.footer-links {
  color: rgba(250, 246, 239, 0.76);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 450;
  font-size: 0.92rem;
  color: rgba(250, 246, 239, 0.72);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 0;
}

.filter-button {
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  background: var(--ink);
  color: var(--bg);
}

.project-card.is-hidden {
  display: none;
}

.case-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.accent-line {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--accent, var(--blue));
  margin-top: 28px;
}

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

.fact-card {
  box-shadow: none;
  border-width: 2px;
}

.fact-card strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--accent, var(--blue));
  font-weight: 650;
}

.fact-card p {
  margin-top: 4px;
}

.case-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 82px;
  position: relative;
  clip-path: inset(0 -100vmax);
}

.case-content section {
  padding: 48px 0;
  border-top: 2px solid rgba(32, 38, 37, 0.18);
}

.case-content section:has(+ section.moment) {
  padding-bottom: 24px;
}

.case-content section.moment + section {
  padding-top: 24px;
}

.case-content h2 {
  font-size: clamp(1.55rem, 2.25vw, 2.1rem);
  margin-bottom: 18px;
}

.case-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.case-content p + p {
  margin-top: 18px;
}

.case-kicker {
  color: var(--accent, var(--orange));
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.quote {
  border-left: 6px solid var(--accent, var(--blue));
  margin: 24px 0;
  padding: 18px 0 18px 22px;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
}

.pull-quote {
  margin: 48px 0;
  padding: 42px 34px;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 650;
  line-height: 1.16;
  text-align: center;
}

.case-content section > .pull-quote {
  margin-top: 28px;
}

.case-content section > .pull-quote.small {
  margin-top: 22px;
}

.pull-quote.small {
  margin: 32px 0;
  padding: 28px 26px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  text-align: left;
}

.moment {
  margin: 20px 0;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--layer-orange);
  box-shadow: var(--shadow);
}

.case-content section.moment {
  padding: 28px 36px;
  border-top: 3px solid var(--line);
}

.moment h2 {
  margin-bottom: 16px;
}

.moment p {
  color: rgba(22, 26, 29, 0.9);
  font-size: 1.08rem;
}

.inline-artifact {
  margin: 32px 0 12px;
}

.inline-artifact .artifact-card {
  max-width: 100%;
}

.deep-dive {
  margin-top: 22px;
  border: 2px solid var(--soft);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}

.deep-dive summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 650;
  color: var(--ink);
}

.deep-dive summary:hover {
  background: rgba(255, 122, 26, 0.1);
}

.deep-dive-content {
  padding: 0 18px 18px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.insight-card {
  border: 2px solid var(--soft);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 18px;
}

.insight-card h3 {
  margin-bottom: 8px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.artifact-placeholder {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 2px dashed var(--soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.38);
  color: var(--muted);
  font-weight: 650;
  text-align: center;
  padding: 18px;
}

.artifact-note {
  min-height: 150px;
  border: 2px solid var(--soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 122, 26, 0.12), rgba(255, 250, 243, 0.95));
  color: rgba(22, 26, 29, 0.86);
  padding: 18px;
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  line-height: 1.5;
}

.artifact-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--soft);
  border-radius: var(--radius-md);
  background: var(--layer-light);
}

.artifact-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.artifact-media.cover img {
  object-fit: cover;
  padding: 0;
}

.small-list {
  color: var(--muted);
}

.note {
  background: var(--bg-warm);
  border: 2px solid var(--soft);
  border-radius: var(--radius-md);
  padding: 18px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 78px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--panel);
    border: 3px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  body:has(.resume-page) .nav-links {
    background: #ffffff;
    border-color: rgba(255, 122, 26, 0.52);
  }

  .nav-links a,
  .nav-links button {
    min-height: 48px;
    text-align: left;
  }

  .hero,
  .case-hero,
  .resume-hero,
  .resume-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .visual-card:nth-child(2),
  .visual-card:nth-child(4) {
    transform: none;
  }

  .section-head,
  .cta,
  .footer-inner {
    display: block;
  }

  .section-head p,
  .cta .actions {
    margin-top: 18px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .project-grid,
  .facts,
  .insight-grid,
  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-row: auto;
    min-height: 360px;
  }

  .project-card {
    min-height: 0;
  }

  .footer-links {
    margin-top: 22px;
  }

  .resume-document {
    padding-top: 38px;
  }

  .resume-entry-head {
    display: block;
  }

  .resume-entry-head span {
    display: block;
    text-align: left;
    margin-top: 4px;
    white-space: normal;
  }

  .resume-end {
    display: block;
  }

  .resume-end span {
    display: block;
    margin-top: 8px;
  }

  .resume-hero {
    padding-top: 58px;
  }

  .resume-layout {
    padding-top: 10px;
  }

  .resume-item-head {
    display: block;
  }

  .resume-item-head span {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .nav {
    min-height: 70px;
    padding: 0 16px;
  }

  .nav-links {
    top: 70px;
  }

  .section,
  .hero,
  .page-hero,
  .case-hero,
  .cta {
    padding: 56px 18px;
  }

  .case-content {
    padding: 12px 18px 58px;
  }

  .moment {
    margin: 18px 0;
  }

  .case-content section.moment {
    padding: 24px 20px;
  }

  .pull-quote {
    margin: 34px 0;
    padding: 32px 20px;
  }

  .pull-quote.small {
    margin: 26px 0;
    padding: 24px 18px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .case-hero h1,
  .page-hero h1 {
    font-size: 1.85rem;
  }

  .resume-hero,
  .resume-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .resume-block,
  .resume-contact {
    padding: 22px;
  }

  .resume-document {
    padding-left: 18px;
    padding-right: 18px;
  }

  .resume-top h1 {
    font-size: 2.15rem;
  }

  .resume-section {
    padding-top: 20px;
  }

  .resume-contact-row {
    display: block;
  }

  .resume-contact-row a {
    display: block;
    margin-top: 7px;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.45in;
  }

  .site-header,
  .cta,
  .site-footer,
  .actions,
  .resume-filters,
  .resume-actions,
  .resume-end,
  .menu-toggle,
  .resume-filter-hidden {
    display: none !important;
  }

  .resume-print-omit {
    display: none !important;
  }

  body,
  html,
  body.resume-body,
  .resume-page,
  .resume-document,
  .resume-page *,
  .resume-document * {
    background: #ffffff !important;
    background-image: none !important;
  }

  body,
  html,
  body.resume-body,
  .resume-page {
    color: #202020 !important;
    font-size: 11px;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  .resume-document {
    max-width: none;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  .resume-top {
    padding: 0 0 14px;
    border-bottom: 2px solid #ff8a2a;
  }

  .resume-top h1 {
    font-size: 28pt;
  }

  .resume-title,
  .resume-summary,
  .resume-contact-row a,
  .resume-entry li,
  .resume-entry > p,
  .resume-compact-grid p,
  .resume-skill-groups p {
    color: #202020 !important;
    orphans: 3;
    widows: 3;
  }

  .resume-section {
    break-inside: auto;
    page-break-inside: auto;
    padding-top: 16px;
    margin-top: 0;
    height: auto !important;
    overflow: visible !important;
  }

  .resume-entry {
    break-inside: auto;
    page-break-inside: auto;
  }

  .resume-entry-head,
  .resume-compact-grid article,
  .resume-skill-groups div {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .resume-entry {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .resume-compact-grid,
  .resume-skill-groups {
    display: block !important;
  }

  .resume-compact-grid article,
  .resume-skill-groups div {
    background: transparent !important;
    border: 0 !important;
    border-left: 2px solid #ff8a2a !important;
    border-radius: 0 !important;
    padding: 0 0 8px 12px !important;
    margin-bottom: 8px;
  }

  a {
    color: #202020 !important;
    text-decoration: none !important;
  }
}
