/* Selected work and architecture. Colors inherit the shared theme tokens. */
.work-section, .about-section {
  background: var(--subtle);
  padding: 76px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 38px;
}

.section-heading .section-kicker {
  margin-bottom: 16px;
}

.section-heading h2, .about-grid h2, .contact-grid h2 {
  font-family: Manrope, sans-serif;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1.8px;
  font-weight: 550;
  margin-bottom: 0;
}

.section-heading > p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 4px;
}

.featured-work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-work + .featured-work {
  margin-top: 36px;
}

.featured-copy {
  padding: 42px;
}

.project-type {
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--green);
  display: block;
  margin-bottom: 20px;
}

.featured-copy h3 {
  font-family: Manrope, sans-serif;
  font-size: 29px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -.6px;
  margin-bottom: 20px;
}

.featured-copy > p {
  font-size: 15px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  font-size: 12px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.outcome {
  border-top: 1px solid var(--line);
  margin: 28px 0 16px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

.outcome strong {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.6px;
}

.outcome > span {
  font-size: 13px;
  color: var(--muted);
}

.architecture {
  background: var(--diagram);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.diagram-caption {
  font-size: 12px;
  letter-spacing: .1em;
  align-self: flex-start;
  margin-bottom: 30px;
  color: var(--green);
  font-weight: 650;
}

.diagram-node {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 76%;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 650;
  z-index: 1;
}

.diagram-node span, .agent-nodes span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  color: var(--muted);
}

.orchestration-node {
  background: var(--night);
  color: var(--lime);
  border-color: var(--night-line);
}

.orchestration-node span {
  color: var(--night-text);
}

.connector-line {
  height: 23px;
  width: 1px;
  background: var(--muted);
}

.fan-out, .fan-in {
  width: 72%;
  height: 24px;
  border-inline: 1px solid var(--muted);
  position: relative;
}

.fan-out {
  border-top: 1px solid var(--muted);
  margin-top: 22px;
}

.fan-in {
  border-bottom: 1px solid var(--muted);
  margin-bottom: 22px;
}

.fan-out::before, .fan-in::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 46px;
  width: 1px;
  background: var(--muted);
}

.fan-out::before {
  bottom: 0;
}

.fan-in::after {
  top: 0;
}

.agent-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 8px;
  z-index: 1;
}

.agent-nodes > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  padding: 13px 5px;
}

.result-node {
  background: var(--highlight);
  color: var(--highlight-ink);
}

.diagram-note {
  font-size: 12px;
  margin-top: 24px;
  color: var(--muted);
}

.conversation-architecture, .platform-architecture {
  gap: 22px;
}

.conversation-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.conversation-flow > div {
  min-height: 126px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conversation-flow b {
  font-size: 13px;
  color: var(--green);
  letter-spacing: .1em;
}

.conversation-flow strong {
  font-size: 15px;
  line-height: 1.2;
}

.conversation-flow span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.conversation-flow i {
  font-style: normal;
  color: var(--green);
  font-size: 20px;
}

.conversation-signals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.conversation-signals span, .platform-foundations span {
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
}

.platform-architecture {
  align-items: stretch;
}

.platform-layer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.platform-layer span {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}

.platform-layer b {
  font-size: 15px;
}

.platform-layer.control-plane {
  background: var(--night);
  border-color: var(--night-line);
}

.control-plane span {
  color: var(--lime);
}

.control-plane b {
  color: white;
  font-weight: 500;
}

.platform-foundations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.platform-foundations span {
  text-align: center;
  border-radius: 8px;
  padding: 10px 6px;
}

.trace-controls {
  width: 100%;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.trace-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trace-status {
  min-height: 66px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.trace-buttons button:disabled {
  opacity: .5;
  cursor: default;
}

[data-trace-step] {
  transition: outline-color .2s, box-shadow .2s;
}

[data-trace-step].is-active {
  outline: 3px solid var(--green);
  outline-offset: 4px;
  border-radius: 9px;
  box-shadow: 0 0 22px rgb(148 187 91 / 25%);
}

[data-trace-step].is-complete {
  box-shadow: 0 0 0 1px var(--green);
  border-radius: 9px;
}

.architecture[data-tracing] .connector-line, .architecture[data-tracing] .fan-out::before, .architecture[data-tracing] .fan-in::after {
  background: var(--green);
}

/* Open-source projects. */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 46px 0 20px;
}

.projects-header h3 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -.5px;
  margin: 0;
}

.projects-header a {
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  align-items: center;
}

.project-filters button {
  border-radius: 999px;
}

.project-filters [aria-pressed="true"] {
  background: var(--highlight);
  color: var(--highlight-ink);
  border-color: var(--green);
}

#filter-status {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}

.project-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.project-number {
  font-family: Manrope, sans-serif;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 25px;
}

.project-card h4 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.7px;
  font-weight: 550;
  margin: 0 0 14px;
}

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

.project-card .tags {
  margin-top: auto;
  padding-top: 8px;
}

.project-link {
  font-size: 14px;
  margin-top: 25px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.project-link:hover {
  color: var(--green);
}

/* Career, principles, skills, and recommendations. */
.experience {
  padding-block: 80px 74px;
}

.timeline {
  margin-top: 45px;
}

.role {
  display: grid;
  grid-template-columns: 235px 1fr;
  border-top: 1px solid var(--line);
  padding: 34px 0 38px;
  gap: 35px;
}

.role-date {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  padding-top: 9px;
}

.role-date > span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 13px;
  margin-top: 6px;
}

.role-body h3 {
  font-family: Manrope, sans-serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.8px;
  margin: 0;
}

.role-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.role-status {
  color: var(--highlight-ink);
  border: 1px solid var(--line);
  background: var(--highlight);
  padding: 2px 9px;
  font-size: 12px;
}

.role-body h4 {
  font-size: 16px;
  font-weight: 550;
  margin: 4px 0 18px;
}

.role-body h4 span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.role-body p, .role-body li {
  font-size: 16px;
  color: var(--muted);
}

.role-body ul {
  padding-left: 20px;
  margin: 0 0 20px;
}

.role-body li {
  padding: 3px 0 3px 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
}

.about-grid h2 {
  margin-bottom: 26px;
}

.about-grid p {
  color: var(--muted);
}

.about-grid .about-lead {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.5;
}

.expertise {
  padding-top: 15px;
}

.expertise > div {
  border-top: 1px solid var(--line);
  padding: 25px 0 21px 42px;
  position: relative;
}

.expertise > div > span {
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--green);
  top: 28px;
}

.expertise h3 {
  font-size: 18px;
  font-weight: 550;
  margin-bottom: 10px;
}

.expertise p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.engineering-principles, .technical-skills {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.engineering-principles > h3, #recommendations-title {
  font-family: Manrope, sans-serif;
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -.6px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.principles-grid article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.principles-grid span {
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--green);
}

.principles-grid h4 {
  font-size: 19px;
  margin: 16px 0 12px;
  line-height: 1.4;
}

.principles-grid p {
  font-size: 14px;
  margin: 0;
}

.technical-skills > .section-kicker {
  display: block;
  margin-bottom: 22px;
}

.technical-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}

.technical-skills-grid > div {
  border-top: 1px solid var(--line);
  padding: 20px 0 16px;
  scroll-margin-top: 130px;
}

.technical-skills-grid > div:target {
  background: var(--highlight);
}

.technical-skills-grid h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 7px;
}

.technical-skills-grid p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.credentials {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  border-top: 1px solid var(--line);
  margin-top: 55px;
  padding-top: 32px;
}

.credentials .section-kicker {
  display: block;
  margin-bottom: 22px;
}

.credentials h3 {
  font-size: 15px;
  margin: 18px 0 4px;
  font-weight: 600;
}

.credentials p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.credentials .source-link {
  margin-top: 12px;
}

.recommendation-static-wrap {
  border-top: 1px solid var(--line);
  margin-top: 52px;
  padding-top: 36px;
}

.recommendation-static {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.recommendation {
  margin: 0;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 42px;
  color: var(--green);
  line-height: 1;
}

.recommendation blockquote {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  letter-spacing: -.3px;
  line-height: 1.55;
  margin: 4px 0 18px;
}

.recommendation figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.recommendation figcaption span {
  color: var(--muted);
}

.recommendation-source {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.contact-section {
  background: linear-gradient(135deg, #102c31, #173e40);
  color: white;
  padding: 70px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 70px;
  align-items: center;
}

.contact-grid .section-kicker {
  color: var(--lime);
}

.contact-grid h2 {
  font-size: 47px;
}

.contact-grid p:not(.section-kicker) {
  font-size: 16px;
  color: var(--night-text);
  max-width: 570px;
  margin: 22px 0 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.contact-actions .text-link {
  text-align: center;
}

.contact-actions > span {
  color: var(--night-muted);
  text-align: center;
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* Native dialogs: case studies, résumé, and quick jump. */
.case-study-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 14px;
  font-weight: 650;
}

.case-study-trigger::after {
  content: "↗";
  margin-left: 5px;
}

.case-study-trigger:hover {
  color: var(--green);
  border-color: var(--green);
}

.case-study-modal {
  width: min(820px, calc(100vw - 36px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.case-study-modal::backdrop {
  background: rgb(8 31 34 / 76%);
  backdrop-filter: blur(4px);
}

.case-study-modal h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -1.7px;
  margin: 7px 44px 32px 0;
}

.case-study-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  z-index: 1;
}

.case-study-close:hover {
  background: var(--highlight);
}

.case-study-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}

.case-study-modal-grid section {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.case-study-modal-grid h3 {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 8px;
}

.case-study-modal-grid p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.case-study-result {
  border-top: 1px solid var(--line);
  background: var(--highlight);
  color: var(--highlight-ink);
  margin-top: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-study-result span {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-study-result strong {
  font-size: 19px;
  letter-spacing: -.4px;
}

.adr {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}

.adr summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.adr h4 {
  margin: 16px 0 6px;
  font-size: 13px;
}

.adr .adr-status {
  font-size: 11px;
  margin-top: 12px;
}

.dialog-actions {
  margin-top: 24px;
}

.inline-feedback {
  font-size: 13px;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.resume-modal {
  width: min(1000px, calc(100vw - 36px));
}

.resume-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.resume-help {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0;
}

.resume-document {
  display: block;
  width: 100%;
  height: 60dvh;
  min-height: 320px;
  border: 1px solid var(--line);
  background: var(--subtle);
}

.resume-summary {
  margin-top: 20px;
}

.resume-summary summary {
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}

.resume-summary p {
  font-size: 14px;
  color: var(--muted);
}

.resume-summary a {
  text-decoration: underline;
}

.command-palette {
  width: min(640px, calc(100vw - 32px));
}

.command-palette h2 {
  font-size: 30px;
  margin-bottom: 24px;
}

.command-palette label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
}

#command-search {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--subtle);
  color: var(--ink);
}

#command-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}

#command-results {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 45dvh;
  overflow: auto;
}

#command-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

#command-results a:hover, #command-results a:focus {
  background: var(--highlight);
  color: var(--highlight-ink);
}

#command-results a span {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

#command-results .empty-result {
  padding: 20px 12px;
  color: var(--muted);
  font-size: 14px;
}

html:not(.js) dialog:target {
  display: block;
  position: fixed;
  inset: 24px 0;
  z-index: 40;
}

@media (max-width: 1050px) {
  .featured-copy {
    padding: 30px;
  }

  .architecture {
    padding: 26px 20px;
  }

  .featured-copy h3 {
    font-size: 26px;
  }

  .role {
    grid-template-columns: 190px 1fr;
    gap: 20px;
  }

  .about-grid, .credentials {
    gap: 40px;
  }

  .project-card {
    padding: 22px;
  }

  .contact-grid {
    gap: 40px;
  }

  .section-heading h2, .about-grid h2 {
    font-size: 37px;
  }

  .principles-grid {
    gap: 14px;
  }

  .principles-grid article {
    padding: 20px;
  }

}

@media (max-width: 800px) {
  .featured-work {
    grid-template-columns: 1fr;
  }

  .architecture {
    padding: 30px;
  }

  .diagram-node {
    min-width: 65%;
  }

  .agent-nodes {
    max-width: 480px;
  }

  .fan-out, .fan-in {
    max-width: 325px;
  }

  .project-grid, .recommendation-static, .principles-grid {
    grid-template-columns: 1fr;
  }

  .project-number {
    margin-bottom: 15px;
  }

  .project-card .tags {
    margin-top: 0;
  }

  .about-grid {
    gap: 36px;
    grid-template-columns: 1fr;
  }

  .expertise {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .expertise > div {
    padding-left: 0;
    padding-top: 45px;
  }

  .expertise > div > span {
    top: 17px;
  }

  .contact-grid {
    grid-template-columns: 1fr 240px;
    gap: 30px;
  }

  .contact-grid h2 {
    font-size: 39px;
  }

  .conversation-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .conversation-flow > div {
    min-height: auto;
  }

  .conversation-flow i {
    transform: rotate(90deg);
    text-align: center;
  }

  .platform-foundations {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {
  .work-section, .about-section {
    padding: 48px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading > p {
    margin-top: 16px;
  }

  .section-heading > p br, .featured-copy h3 br {
    display: none;
  }

  .section-heading h2, .about-grid h2 {
    font-size: 34px;
  }

  .section-kicker {
    font-size: 11px;
    letter-spacing: .08em;
  }

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

  .featured-copy {
    padding: 27px 23px;
  }

  .featured-copy h3 {
    font-size: 28px;
  }

  .architecture {
    padding: 28px 14px;
  }

  .diagram-caption {
    align-self: center;
    letter-spacing: .05em;
  }

  .diagram-node {
    width: 90%;
    padding: 13px 8px;
  }

  .agent-nodes {
    gap: 5px;
  }

  .agent-nodes > div {
    font-size: 12px;
    padding: 12px 3px;
  }

  .agent-nodes span {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .projects-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 34px;
  }

  .project-card {
    padding: 26px 23px;
  }

  .experience {
    padding-block: 48px 35px;
  }

  .role {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 25px 0 29px;
  }

  .role-date {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 0;
    font-size: 10px;
  }

  .role-date > span {
    margin: 0;
    font-size: 12px;
  }

  .role-body h4 span {
    display: block;
    margin-top: 5px;
  }

  .expertise {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .expertise > div {
    padding: 23px 0 23px 38px;
  }

  .expertise > div > span {
    top: 25px;
  }

  .credentials {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 35px;
    padding-top: 32px;
  }

  .credentials h3 {
    font-size: 16px;
  }

  .credentials p {
    font-size: 14px;
  }

  .technical-skills-grid {
    grid-template-columns: 1fr;
  }

  .technical-skills-grid > div {
    scroll-margin-top: 24px;
  }

  .contact-section {
    padding: 48px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-actions {
    align-items: flex-start;
  }

  .contact-actions .text-link {
    text-align: left;
  }

  .case-study-modal {
    padding: 30px 24px;
    max-height: calc(100dvh - 24px);
  }

  .case-study-modal-grid {
    grid-template-columns: 1fr;
  }

  .case-study-modal h2 {
    font-size: 30px;
  }

}

@media print {
  :root, :root[data-theme], :root:not([data-theme]) {
    color-scheme: light;
    --ink: #142e32;
    --muted: #566567;
    --paper: white;
    --subtle: white;
    --canvas: white;
    --diagram: #e8eeeb;
    --line: #ccd9d3;
    --green: #245c4d;
    --highlight: #f1f9df;
    --highlight-ink: #245c4d;
  }

  .header, .hero-actions, .hero-aside, .contact-section, .footer, .project-link, .trace-controls, .project-filters, dialog, .toast {
    display: none !important;
  }

  .hero {
    background: white;
    color: #142e32;
    padding: 20px;
    display: block;
  }

  .hero h1 em, .hero p, .hero-domains {
    color: #142e32;
  }

  .content {
    padding: 20px;
  }

  .role, .project-card, .featured-work, .recommendation {
    break-inside: avoid;
  }

  .work-section, .about-section, .experience, .impact {
    padding-block: 20px;
  }

  .project-card[hidden] {
    display: flex !important;
  }

}
