:root {
  --font-display: "Sora";
  --font-sans: "DM Sans";
  --media-frame: #f1ece5;
}

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body,
button,
summary {
  font-family: var(--font-sans), Arial, sans-serif;
}

h1,
h2,
h3 {
  font-family: var(--font-display), Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

p {
  line-height: 1.72;
}

/* Built by Kia uses standalone headings, not tiny eyebrow labels. */
.kicker,
.section-label {
  display: none !important;
}

.project-context {
  max-width: 46rem;
  margin: 0.8rem 0 1rem !important;
  color: var(--plum) !important;
  font-family: var(--font-sans), Arial, sans-serif;
  font-size: clamp(0.94rem, 1vw, 1.04rem) !important;
  font-weight: 650;
  line-height: 1.55 !important;
  letter-spacing: 0;
  text-transform: none;
}

.content-heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.content-heading-light {
  color: #fff;
}

.project-role,
.card-role {
  letter-spacing: 0;
  text-transform: none;
}

.project-role {
  margin-top: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.card-role {
  font-size: 0.86rem;
  line-height: 1.55;
}

.cms-meta span {
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.document-card p {
  font-size: 0.82rem;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.cms-project-number,
.website-card-image > span,
.practice-grid > a > span,
.home-cms-grid article > span,
.method-grid > div > span {
  display: none;
}

.button {
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.1rem;
  border-radius: 3px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

/* Secondary actions remain visibly actionable on light and dark cards. */
.button-outline {
  border: 2px solid var(--plum);
  background: var(--paper);
  color: var(--plum);
  box-shadow: 0 7px 16px #35182314;
}

.button-outline-light {
  border: 2px solid #fff;
  background: #ffffff14;
  color: #fff;
}

.cms-project-links .button-outline,
.project-actions .button-outline {
  font-weight: 850;
}

/* A tighter rhythm keeps the work visible without oversized empty bands. */
.home-hero {
  min-height: 620px;
  padding-block: clamp(3.5rem, 5vw, 5.5rem);
}

.home-statement,
.featured-section,
.career-section,
.skills-section {
  padding-block: clamp(4rem, 6vw, 6.5rem);
}

.practice-section,
.home-cms-section,
.method-section,
.writing-block,
.teaching-topics,
.teaching-note,
.cms-project-list,
.web-cms-showcase {
  padding-block: clamp(3.75rem, 5.5vw, 6rem);
}

.section-heading-row {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.practice-grid > a {
  min-height: 290px;
}

.home-split article {
  padding: clamp(3.5rem, 5vw, 5.75rem);
}

.page-hero,
.route-web-development .page-hero,
.route-cms-work .page-hero {
  padding-block: clamp(4rem, 6vw, 6.5rem);
}

.web-project-list {
  padding-bottom: clamp(4rem, 6vw, 6.5rem);
}

.project-detail-title {
  padding: clamp(3rem, 4.5vw, 5rem);
}

.project-detail-body {
  padding-block: clamp(4rem, 6vw, 6.5rem);
}

.project-gallery {
  padding-block: clamp(3.5rem, 5vw, 5.5rem);
}

.next-page-panel {
  min-height: 360px;
  padding: 3.5rem 4vw;
}

.teaching-hero {
  padding-block: clamp(5rem, 7vw, 7.5rem);
}

.teaching-content {
  padding-block: clamp(4rem, 6vw, 6.5rem);
}

.about-stats > div > div {
  min-height: 195px;
}

.project-actions .button-action-build {
  border-color: var(--gold);
  background: #f4e6c8;
  color: var(--ink);
}

.project-actions .button-action-live {
  background: var(--navy);
  color: #fff;
}

/* Balanced index-page heroes */
.route-web-development .page-hero,
.route-cms-work .page-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.55fr);
  align-items: end;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  padding-block: clamp(4rem, 6vw, 6.5rem);
}

/* The homepage CMS cards now include the project screenshots themselves. */
.home-cms-grid {
  align-items: stretch;
}

.home-cms-grid article {
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.home-cms-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--media-frame);
  border-bottom: 1px solid var(--line);
}

.home-cms-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-cms-grid article > p,
.home-cms-grid article > h3,
.home-cms-grid article > a {
  margin-right: 1.4rem;
  margin-left: 1.4rem;
}

.home-cms-grid article > p {
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.home-cms-grid article > h3 {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.home-cms-grid article > a:first-of-type {
  margin-top: auto;
}

.home-cms-grid article > a:last-child {
  margin-bottom: 1.4rem;
}

.route-web-development .page-hero h1,
.route-cms-work .page-hero h1 {
  max-width: 58rem;
  font-size: clamp(3.5rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.route-web-development .page-hero > p,
.route-cms-work .page-hero > p {
  width: 100%;
  max-width: 35rem;
  justify-self: end;
  margin: 0;
  padding-bottom: 0.35rem;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.75;
}

/* One original, uncropped image field throughout the portfolio. */
.home-hero-image,
.featured-project-image,
.route-web-development .website-card-image,
.project-detail-media,
.route-cms-work .cms-project-media,
.route-web-development .web-cms-grid .cms-project-media {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--media-frame);
  border: 1px solid var(--line);
}

/* CMS cards retain their current layout while every image uses one frame. */
.route-cms-work .cms-project-media,
.route-web-development .web-cms-grid .cms-project-media {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
}

.home-hero-image > img,
.featured-project-image img,
.route-web-development .website-card-image img,
.project-detail-media img,
.route-cms-work .cms-project-media img,
.route-web-development .web-cms-grid .cms-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.home-hero-image > img {
  object-fit: contain;
}

.project-image-mmorbit,
.project-image-kikis-reset-room,
.website-card-image.project-image-mmorbit,
.website-card-image.project-image-kikis-reset-room {
  background: var(--media-frame);
}

/* Kiki's wide desktop capture fills 16:9 by trimming only empty side margins. */
.featured-project-image.project-image-kikis-reset-room img,
.route-web-development .website-card-image.project-image-kikis-reset-room img,
.project-detail-media.project-image-kikis-reset-room img {
  object-fit: cover;
  object-position: center;
}

/* Web Development projects */
.route-web-development .web-project-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.route-web-development .website-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.route-web-development .website-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: clamp(1.7rem, 3vw, 2.5rem);
}

.route-web-development .website-card-copy h2 {
  font-size: clamp(2.15rem, 3vw, 3.25rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.route-web-development .website-card .project-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
}

.route-web-development .website-card .project-actions .button {
  width: 100%;
}

.route-web-development .website-card .project-actions .button:nth-child(3) {
  grid-column: 1 / -1;
}

/* CMS projects are matching cards with fixed media frames and anchored actions. */
.route-cms-work .cms-project-list > .page-width,
.route-web-development .web-cms-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
  display: grid;
}

.route-cms-work .cms-project,
.route-web-development .web-cms-grid .cms-project {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: var(--paper);
  border: 0;
  border-top: 7px solid var(--gold);
  box-shadow: 0 18px 42px #0000002b;
}

.route-cms-work .cms-project-copy,
.route-web-development .web-cms-grid .cms-project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 2rem 2rem 1.25rem;
}

.route-cms-work .cms-project-copy h2,
.route-web-development .web-cms-grid .cms-project-copy h2 {
  font-size: clamp(2rem, 2.65vw, 3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.route-cms-work .cms-project-copy > p,
.route-web-development .web-cms-grid .cms-project-copy > p {
  overflow-wrap: anywhere;
}

.route-cms-work .cms-project-links,
.route-web-development .web-cms-grid .cms-project-links {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
  padding: 0 2rem 2rem;
}

.route-cms-work .cms-project-links .button,
.route-web-development .web-cms-grid .cms-project-links .button {
  width: 100%;
}

.route-cms-work .document-link,
.route-web-development .web-cms-grid .document-link {
  display: block;
  min-width: 0;
  padding: 0.65rem 0;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Reuse the CMS projects and images on the Web Development page. */
.web-cms-showcase {
  padding-block: clamp(5rem, 8vw, 9rem);
  background: var(--navy);
  color: #fff;
}

.web-cms-showcase .section-label {
  display: none;
}

.web-cms-showcase .section-heading-row h2 {
  max-width: 960px;
}

.web-cms-showcase .text-link {
  color: #fff;
}

.web-cms-intro {
  max-width: 780px;
  margin: -1rem 0 3rem;
  color: #ffffffc7;
  font-size: 1.05rem;
}

/* Keep secondary portfolio imagery uncropped as well. */
.project-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: var(--media-frame);
}

.editorial-card > img,
.case-study-document > img,
.document-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.4rem;
}

.document-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.document-card > div {
  min-width: 0;
}

.document-card h3 {
  max-width: 100%;
  font-size: clamp(1.65rem, 2.1vw, 2.35rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.document-card > img {
  background: var(--media-frame);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* Writing case studies use one landscape media system; titles remain HTML. */
.case-study-document {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.case-study-document > img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.case-study-document > div {
  flex: 1;
}

.editorial-card > img {
  aspect-ratio: 16 / 9;
}

.career-cta-copy {
  max-width: 760px;
  margin: -0.4rem auto 2rem;
  color: #ffffffd4;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.75;
}

@media (width <= 1120px) {
  .route-writing .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .featured-project .project-actions .button:nth-child(3) {
    grid-column: auto;
  }

  .route-web-development .page-hero,
  .route-cms-work .page-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
  }

  .route-web-development .page-hero > p,
  .route-cms-work .page-hero > p {
    max-width: 48rem;
    justify-self: start;
    padding-bottom: 0;
  }
}

@media (width <= 900px) {
  .route-web-development .web-project-list,
  .route-cms-work .cms-project-list > .page-width,
  .route-web-development .web-cms-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 760px) {
  .route-writing .document-grid {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .home-statement,
  .featured-section,
  .practice-section,
  .home-cms-section,
  .method-section,
  .writing-block,
  .teaching-topics,
  .teaching-note,
  .career-section,
  .skills-section,
  .cms-project-list,
  .web-cms-showcase {
    padding-block: 3.5rem;
  }

  .home-split article {
    padding: 3.5rem 1.25rem;
  }

  .route-web-development .page-hero,
  .route-cms-work .page-hero {
    padding-block: 3.75rem;
  }

  .route-web-development .page-hero h1,
  .route-cms-work .page-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.25rem);
  }

  .featured-project-image,
  .route-web-development .website-card-image,
  .project-detail-media,
  .route-cms-work .cms-project-media,
  .route-web-development .web-cms-grid .cms-project-media {
    padding: 0;
  }

  .route-web-development .website-card-copy,
  .route-cms-work .cms-project-copy,
  .route-web-development .web-cms-grid .cms-project-copy {
    padding: 1.6rem 1.25rem 1rem;
  }

  .route-web-development .website-card-copy h2,
  .route-cms-work .cms-project-copy h2,
  .route-web-development .web-cms-grid .cms-project-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .route-web-development .website-card .project-actions {
    grid-template-columns: 1fr;
  }

  .route-web-development .website-card .project-actions .button:nth-child(3) {
    grid-column: auto;
  }

  .route-cms-work .cms-project-links,
  .route-web-development .web-cms-grid .cms-project-links {
    padding: 0 1.25rem 1.5rem;
  }

  .web-cms-intro {
    margin-top: -0.5rem;
  }

  .project-detail-title {
    padding: 3.5rem 1.2rem;
  }

  .project-detail-body,
  .project-gallery {
    padding-block: 3.5rem;
  }

  .next-page-panel {
    min-height: 300px;
    padding-block: 3rem;
  }
}

/* Accessibility, original Writing covers, and Teaching portfolio release. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  opacity: 1;
  pointer-events: auto;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--navy);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid #005fcc !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px #fff !important;
}

main:focus {
  outline: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.35rem;
}

.mobile-nav summary {
  min-width: 44px;
  min-height: 44px;
}

/* Original Built by Kia cover system: one ratio, one frame, no stock photos. */
.route-writing .case-study-document > img,
.route-writing .editorial-card > img {
  aspect-ratio: 16 / 9;
  background: var(--media-frame);
  object-fit: cover;
  object-position: center;
}

.route-writing .case-study-document,
.route-writing .editorial-card,
.route-writing .document-card {
  height: 100%;
}

.route-writing .editorial-card {
  display: flex;
  flex-direction: column;
}

.route-writing .editorial-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.route-writing .editorial-card strong {
  margin-top: auto;
}

/* Teaching is presented as a faculty portfolio, not a generic topic list. */
.teaching-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.55fr);
  align-items: end;
  gap: clamp(2.5rem, 5vw, 6rem);
}

.teaching-hero h1 {
  max-width: 1040px;
  font-size: clamp(3.5rem, 6.2vw, 7rem);
}

.teaching-hero-grid > p {
  margin: 0 !important;
}

.teaching-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.65fr);
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

.teaching-intro h2,
.teaching-section-heading h2,
.teaching-toolkit h2,
.accessibility-content h2,
.accessibility-limitations h2,
.accessibility-feedback h2 {
  font-size: clamp(2.6rem, 4.8vw, 5.1rem);
  line-height: 1;
}

.teaching-intro-copy p,
.teaching-section-heading > p,
.teaching-toolkit p,
.accessibility-content p,
.accessibility-limitations p,
.accessibility-feedback p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.course-portfolio {
  background: var(--paper);
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

.teaching-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.teaching-section-heading > p {
  margin: 0;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.course-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.course-card:last-child {
  grid-column: 1 / -1;
}

.course-card-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.course-code {
  width: fit-content;
  margin: 0;
  border: 1px solid var(--plum);
  border-radius: 999px;
  color: var(--plum);
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.course-card h3 {
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  line-height: 1.05;
}

.course-card > p {
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.75;
}

.course-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: auto 0 0;
  padding: 1.2rem 0 0;
  list-style: none;
}

.course-skills li {
  border-radius: 999px;
  background: var(--rose-light);
  color: var(--plum);
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 750;
}

.teaching-practice {
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

.teaching-strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.teaching-strength-grid article {
  min-height: 260px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem;
}

.teaching-strength-grid h3 {
  margin-top: 3rem;
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
}

.teaching-strength-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.teaching-process {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

.teaching-section-heading-light > p {
  color: #ffffffc7;
}

.teaching-journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #ffffff66;
  border-left: 1px solid #ffffff66;
  list-style: none;
}

.teaching-journey li {
  min-height: 210px;
  border-right: 1px solid #ffffff66;
  border-bottom: 1px solid #ffffff66;
  padding: 1.4rem;
}

.teaching-journey strong,
.teaching-journey span {
  display: block;
}

.teaching-journey strong {
  color: var(--rose);
  font-family: var(--font-display), Arial, sans-serif;
  font-size: 1.5rem;
}

.teaching-journey span {
  margin-top: 3rem;
  color: #ffffffc7;
  line-height: 1.65;
}

.teaching-toolkit {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

.teaching-toolkit ul {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teaching-toolkit li {
  border: 1px solid var(--plum);
  border-radius: 999px;
  color: var(--plum);
  padding: 0.75rem 1rem;
  font-weight: 750;
}

.teaching-philosophy {
  background: var(--plum);
  color: #fff;
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
  text-align: center;
}

.teaching-philosophy h2 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(3rem, 5vw, 5.7rem);
}

.teaching-philosophy p {
  max-width: 760px;
  margin: 1.5rem auto 2rem;
  color: #ffffffd2;
  font-size: 1.06rem;
}

/* Public accessibility statement and documented limitations. */
.accessibility-hero {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(5rem, 8vw, 8rem);
}

.accessibility-hero h1 {
  max-width: 1100px;
  font-size: clamp(3.4rem, 6.2vw, 6.8rem);
  line-height: 0.98;
}

.accessibility-hero p {
  max-width: 760px;
  margin: 2rem 0 0;
  color: #ffffffcc;
  font-size: 1.08rem;
}

.accessibility-content {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

.accessibility-feature-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.accessibility-feature-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.accessibility-feature-list strong {
  color: var(--plum);
}

.accessibility-feature-list span {
  color: var(--muted);
  line-height: 1.65;
}

.accessibility-limitations {
  background: var(--paper);
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

.accessibility-limitations p,
.accessibility-feedback p {
  max-width: 820px;
}

.accessibility-limitations .button {
  margin-top: 1rem;
}

.accessibility-feedback {
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

@media (width <= 1120px) {
  .teaching-hero-grid,
  .teaching-intro,
  .teaching-section-heading,
  .teaching-toolkit,
  .accessibility-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

@media (width <= 760px) {
  .course-grid,
  .teaching-strength-grid,
  .teaching-journey {
    grid-template-columns: 1fr;
  }

  .course-card:last-child {
    grid-column: auto;
  }

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

  .course-card-heading,
  .accessibility-feature-list li {
    grid-template-columns: 1fr;
  }

  .teaching-strength-grid article,
  .teaching-journey li {
    min-height: 0;
  }

  .teaching-strength-grid h3,
  .teaching-journey span {
    margin-top: 1.5rem;
  }
}

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

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

  :where(.button, .text-link, .website-card, .cms-project, .document-card, .case-study-document, .editorial-card):hover {
    transform: none !important;
  }
}

/* Balanced text system for the Teaching and Accessibility routes. */
.route-teaching :where(h1, h2, h3),
.route-accessibility :where(h1, h2, h3) {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.route-teaching .teaching-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  align-items: end;
}

.route-teaching .teaching-hero h1 {
  max-width: 960px;
  font-size: clamp(3.25rem, 5.35vw, 5.9rem);
  line-height: 0.99;
}

.route-teaching .teaching-hero-grid > p,
.route-accessibility .accessibility-hero p {
  max-width: 44rem;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
}

.route-teaching .teaching-intro h2,
.route-teaching .teaching-section-heading h2,
.route-teaching .teaching-toolkit h2,
.route-accessibility .accessibility-content h2,
.route-accessibility .accessibility-limitations h2,
.route-accessibility .accessibility-feedback h2 {
  font-size: clamp(2.35rem, 3.8vw, 4.35rem);
  line-height: 1.04;
}

.route-teaching .teaching-intro-copy,
.route-teaching .teaching-section-heading > p,
.route-teaching .teaching-toolkit > div > p,
.route-accessibility .accessibility-content > div,
.route-accessibility .accessibility-limitations p,
.route-accessibility .accessibility-feedback p {
  max-width: 48rem;
}

.route-teaching .course-card h3 {
  font-size: clamp(1.75rem, 2.25vw, 2.65rem);
  line-height: 1.08;
}

.route-teaching .teaching-strength-grid h3 {
  font-size: clamp(1.55rem, 1.9vw, 2.15rem);
  line-height: 1.12;
}

.route-teaching .teaching-philosophy h2 {
  font-size: clamp(2.75rem, 4.5vw, 5rem);
  line-height: 1.02;
}

.route-accessibility .accessibility-hero h1 {
  max-width: 980px;
  font-size: clamp(3.1rem, 5.25vw, 5.85rem);
  line-height: 1;
}

.route-accessibility .accessibility-feature-list li {
  grid-template-columns: minmax(10rem, 0.4fr) minmax(0, 1fr);
}

@media (width <= 1120px) {
  .route-teaching .teaching-hero-grid {
    grid-template-columns: 1fr;
  }

  .route-teaching .teaching-hero-grid > p {
    max-width: 46rem;
  }
}

@media (width <= 760px) {
  .route-teaching .teaching-hero h1,
  .route-accessibility .accessibility-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
    line-height: 1.02;
  }

  .route-teaching .teaching-intro h2,
  .route-teaching .teaching-section-heading h2,
  .route-teaching .teaching-toolkit h2,
  .route-accessibility .accessibility-content h2,
  .route-accessibility .accessibility-limitations h2,
  .route-accessibility .accessibility-feedback h2 {
    font-size: clamp(2.15rem, 9.5vw, 3.2rem);
  }

  .route-teaching .course-card-heading {
    gap: 0.8rem;
  }

  .route-accessibility .accessibility-feature-list li {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

/* Cohesive portfolio card and media system. */
.route-web-development .web-project-list,
.route-cms-work .cms-project-list > .page-width,
.route-web-development .web-cms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.route-web-development .website-card,
.route-cms-work .cms-project,
.route-web-development .web-cms-grid .cms-project {
  min-width: 0;
  height: 100%;
}

/* Every portfolio image uses the same uncropped 16:10 presentation. */
.featured-project-image,
.home-cms-media,
.route-web-development .website-card-image,
.route-cms-work .cms-project-media,
.route-web-development .web-cms-grid .cms-project-media {
  box-sizing: border-box;
  aspect-ratio: 16 / 10;
  padding: clamp(0.8rem, 1.25vw, 1.2rem);
  background: #f0ebe4;
  border: 1px solid var(--line);
}

.featured-project-image img,
.home-cms-media img,
.route-web-development .website-card-image img,
.route-web-development .website-card-image.project-image-kikis-reset-room img,
.route-cms-work .cms-project-media img,
.route-web-development .web-cms-grid .cms-project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
}

.route-web-development .website-card-copy,
.route-cms-work .cms-project-copy,
.route-web-development .web-cms-grid .cms-project-copy {
  padding: clamp(1.35rem, 1.9vw, 1.85rem);
}

.route-web-development .website-card-copy h2,
.route-cms-work .cms-project-copy h2,
.route-web-development .web-cms-grid .cms-project-copy h2 {
  max-width: 100%;
  font-size: clamp(1.8rem, 2.25vw, 2.55rem);
  line-height: 1.07;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.route-web-development .website-card-copy p,
.route-cms-work .cms-project-copy p,
.route-web-development .web-cms-grid .cms-project-copy p {
  overflow-wrap: break-word;
  word-break: normal;
}

.route-web-development .website-card .project-actions,
.route-cms-work .cms-project-links,
.route-web-development .web-cms-grid .cms-project-links {
  margin-top: auto;
}

.route-cms-work .cms-project-links,
.route-web-development .web-cms-grid .cms-project-links {
  padding: 0 clamp(1.35rem, 1.9vw, 1.85rem) clamp(1.35rem, 1.9vw, 1.85rem);
}

.route-cms-work .cms-project-links .button,
.route-web-development .web-cms-grid .cms-project-links .button,
.route-web-development .website-card .project-actions .button {
  min-height: 3rem;
  white-space: normal;
  line-height: 1.25;
}

@media (width <= 1180px) {
  .route-web-development .web-project-list,
  .route-cms-work .cms-project-list > .page-width,
  .route-web-development .web-cms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 760px) {
  .route-web-development .web-project-list,
  .route-cms-work .cms-project-list > .page-width,
  .route-web-development .web-cms-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-project-image,
  .home-cms-media,
  .route-web-development .website-card-image,
  .route-cms-work .cms-project-media,
  .route-web-development .web-cms-grid .cms-project-media {
    padding: 0.7rem;
  }
}

/* Homepage featured images: equal full-bleed frames with controlled crops. */
.route-home .featured-project-image {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  background: var(--media-frame);
}

.route-home .featured-project-image img,
.route-home .featured-project-image.project-image-kikis-reset-room img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.route-home .featured-project-image.project-image-mmorbit img {
  object-position: center top !important;
}

.route-home .featured-project-image.project-image-kikis-reset-room img,
.route-home .featured-project-image.project-image-airport-summit img {
  object-position: center center !important;
}

/* BUILT-BY-KIA MEDIA CONTRACT - DO NOT OVERRIDE
   All portfolio card media uses one full-bleed 16:10 frame. Intentional
   changes must also update scripts/verify-design-contract.mjs. */
:root {
  --portfolio-media-ratio: 16 / 10;
}

.route-home .featured-project-image,
.route-home .home-cms-media,
.route-web-development .website-card-image,
.route-cms-work .cms-project-media,
.route-web-development .web-cms-grid .cms-project-media {
  box-sizing: border-box;
  display: block;
  width: 100%;
  aspect-ratio: var(--portfolio-media-ratio);
  padding: 0;
  overflow: hidden;
  background: var(--media-frame);
  border: 1px solid var(--line);
}

.route-home .featured-project-image img,
.route-home .home-cms-media img,
.route-web-development .website-card-image img,
.route-cms-work .cms-project-media img,
.route-web-development .web-cms-grid .cms-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Fixed focal points prevent important content from being lost by the crop. */
.route-home .project-image-mmorbit img,
.route-web-development .project-image-mmorbit img {
  object-position: center top !important;
}

.route-home .project-image-kikis-reset-room img,
.route-web-development .project-image-kikis-reset-room img,
.route-home .project-image-airport-summit img,
.route-web-development .project-image-airport-summit img {
  object-position: center center !important;
}

.route-home .home-cms-media img[src*="cms-01-"],
.route-cms-work .cms-project-media img[src*="cms-01-"],
.route-web-development .web-cms-grid .cms-project-media img[src*="cms-01-"] {
  object-position: center 44% !important;
}

/* The grid contract keeps CMS cards aligned at desktop, tablet, and phone. */
.route-cms-work .cms-project-list > .page-width,
.route-web-development .web-cms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

@media (width <= 1180px) {
  .route-cms-work .cms-project-list > .page-width,
  .route-web-development .web-cms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 760px) {
  .route-cms-work .cms-project-list > .page-width,
  .route-web-development .web-cms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

