/* Authoritative paper treatment for the portfolio section. */
.section-aside > p { margin: 0; }
.work-section .case-shortcut { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--work-heading); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.work-section .case-shortcut:focus-visible { outline-color: var(--work-heading); }
.contact-email .copy-email { width: fit-content; min-height: 44px; margin-top: 16px; padding: 8px 16px; border: 1px solid #eee7d888; border-radius: 2px; background: transparent; color: #eee7d8; cursor: pointer; }
.contact-email .copy-email:hover { background: #eee7d81a; }
.contact-email .copy-email:focus-visible { outline: 2px solid #eee7d8; outline-offset: 4px; }
.contact-email .copy-status { display: block; min-height: 24px; margin-top: 8px; max-width: 34ch; font-size: 14px; line-height: 1.7; letter-spacing: normal; color: #eee7d8; }
html.instant-work-arrival { scroll-behavior: auto; scroll-padding-top: 78px; }
html.instant-work-arrival #work { scroll-margin-top: 0; }
@media (max-width: 700px) { html.instant-work-arrival { scroll-padding-top: 66px; } }
.work-section {
  --work-paper: #e5e0d5;
  --work-ink: #292d26;
  --work-muted: #62665b;
  --work-backdrop: #252822;
  --work-heading: #eee8db;
  background: var(--work-backdrop);
  color: var(--work-heading);
  padding: 96px 0;
  transition: none;
}
.work-section::before { display: none; }
.work-section .section-heading { grid-template-columns: 1fr auto; gap: 48px; align-items: end; margin-bottom: 40px; }
.work-section .section-heading h2 { font-size: clamp(38px, 4.3vw, 64px); color: var(--work-heading); }
.work-section .section-aside { color: #bdbfb2; font-size: 18px; line-height: 1.7; max-width: 310px; }
.work-section .project-index { display: flex; flex-wrap: nowrap; gap: 32px; padding: 0; margin-bottom: 40px; border: 0; border-bottom: 1px solid #656a5d; border-radius: 0; background: var(--work-backdrop); box-shadow: none; overflow-x: auto; scrollbar-width: thin; }
.work-section .project-index a, .work-section .project-index a:first-child { display: block; flex: 0 0 auto; min-width: 0; min-height: 48px; padding: 14px 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; color: #bdbfb2; font: 500 16px/1.3 var(--body); transform: none; transition: color .2s; }
.work-section .project-index a::after { display: none; }
.work-section .project-index a:hover, .work-section .project-index a[aria-current] { background: none; color: var(--work-heading); box-shadow: none; transform: none; border-bottom-color: var(--work-heading); }
.work-section .feature-surface { padding: 28px 32px 32px; border: 1px solid var(--case-edge, #f3efe4); border-radius: 5px; color: var(--work-ink); background: var(--work-paper); box-shadow: 0 2px 3px #373b2b0b, 0 14px 30px #373b2b12; }
.work-section .feature-heading { min-height: 50px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--case-rule, #9c9e8e55); }
.work-section .feature-heading h3 { margin: 0; font-size: 32px; line-height: 1.15; font-family: var(--wordmark); font-weight: 700; letter-spacing: -.025em; }
.work-section .case-category { color: var(--work-muted); font-size: 14px; }
.work-section .feature-mosaic { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 40px; height: 420px; }
.work-section .feature-side { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; min-height: 0; padding: 12px 0; }
.case-promise { margin: 0; font-size: clamp(25px, 2.3vw, 34px); font-family: var(--display); font-weight: 600; line-height: 1.55; letter-spacing: -.04em; }
.case-description { margin: 0; max-width: 360px; font-size: 16px; line-height: 1.85; color: var(--work-muted); }
.work-section .feature-action { display: inline-flex; align-items: center; min-height: 48px; margin-top: 6px; padding: 10px 16px; border: 1px solid var(--case-rule, #74796a); border-radius: 2px; color: var(--work-ink); background: none; font-size: 16px; }
.work-section .feature-action:hover { color: var(--work-ink); background: none; }
.work-section .feature-main-media { display: flex; align-items: center; border: 1px solid #adad9a55; border-radius: 2px; background: #d4d5ca; cursor: default; }
.work-section .feature-main-media>img, .work-section .feature-main-media>video { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #d4d5ca; transform: none; transition: none; }
.work-section .more-heading { margin: 84px 0 30px; padding-top: 0; border: 0; }
.work-section .more-heading h3 { font-size: 36px; color: var(--work-heading); }
.work-section .more-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-section .more-projects .project-card { grid-column: auto; transform: none; filter: none; }
.work-section .more-projects .project-card-button { display: flex; flex-direction: column; height: 100%; padding: 16px; border: 1px solid #f3efe4; border-radius: 4px; color: var(--work-ink); background: var(--work-paper); box-shadow: 0 2px 3px #373b2b0b, 0 10px 24px #373b2b0e; text-align: left; }
.work-section .more-projects .project-card:nth-child(n) .project-visual { width: 100%; aspect-ratio: 1.45; border: 1px solid #999e9050; border-radius: 1px; background: #d4d5ca; overflow: hidden; }
.work-section .project-visual::before, .work-section .project-visual::after { display: none; }
.case-cover { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-section .card-meta { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 8px 8px; }
.work-section .card-meta h3 { font-family: var(--wordmark), var(--display); font-weight: 700; margin: 0; color: var(--work-ink); font-size: 26px; }
.work-section .card-meta p { margin: 0 0 10px; color: var(--work-muted); font-size: 16px; line-height: 1.75; }
.case-read { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 24px; min-height: 46px; margin-top: auto; padding: 10px 14px; border: 1px solid #9c9e8e88; border-radius: 2px; font-size: 14px; }
.work-section a:focus-visible, .work-section button:focus-visible { outline: 2px solid #46503b; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work-section .more-projects .project-card-button { transition: transform .2s ease; }
  .work-section .more-projects .project-card-button:hover { transform: translateY(-4px); }
}
@media (min-width: 1001px) and (min-height: 781px) {
  .work-section .feature-mosaic { height: min(420px, calc(100svh - 410px)); }
}
@media (max-width: 1000px) {
  .work-section .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .work-section .section-aside { max-width: none; margin: 0; }
  .work-section .feature-mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; height: auto; }
  .work-section .feature-main-media { min-height: 330px; }
  .work-section .more-projects { gap: 18px; }
}
@media (max-width: 700px) {
  .work-section { padding: 64px 0; }
  .work-section .project-index { gap: 24px; margin-bottom: 28px; }
  .work-section .feature-surface { padding: 22px 20px; }
  .work-section .feature-heading { align-items: flex-start; gap: 10px; margin-bottom: 22px; padding-bottom: 18px; }
  .work-section .feature-heading h3 { font-size: 26px; }
  .work-section .case-category { font-size: 12px; line-height: 1.7; white-space: nowrap; }
  .work-section .feature-mosaic { display: flex; flex-direction: column; gap: 26px; }
  .work-section .feature-side { padding: 0; gap: 16px; }
  .case-promise { font-size: 25px; }
  .case-description { font-size: 16px; }
  .work-section .feature-main-media { width: 100%; height: auto; min-height: 0; aspect-ratio: 1.2; }
  .work-section .more-projects { grid-template-columns: 1fr; }
  .work-section .more-heading { margin: 56px 0 24px; }
  .work-section .more-heading h3 { font-size: 30px; }
}

/* Each sheet keeps its own tone throughout the reversible stack handoff. */
#project-paper { --work-paper: #e9e3d6; --work-ink: #292d26; --work-muted: #626459; }
#project-campus { --work-paper: #45483e; --work-ink: #f1eadb; --work-muted: #d0cbbb; --case-edge: #77796a; --case-rule: #b9b5a36b; }
#project-campus .feature-surface { box-shadow: 0 -2px 3px #25281f12, 0 -12px 30px #25281f24, 0 14px 30px #25281f26; }
#project-campus .feature-main-media, #project-campus .feature-main-media>video { background: #363a32; border-color: #77796a; }
#project-campus button:focus-visible { outline-color: #eee5cc; }

/* Keep keyboard focus visible against the dark chapter background. */
.work-section .project-index a:focus-visible { outline-color: var(--work-heading); outline-offset: -3px; }

/* A separate, explicitly unfinished field-practice case after the five projects. */
.practice-section { padding: 80px 0 0; color: #30362d; scroll-margin-top: 96px; }
.practice-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.practice-heading h2 { margin: 0; font: 600 clamp(36px, 4.3vw, 64px)/1.3 var(--display); letter-spacing: -.025em; }
.practice-heading>span { color: #65695e; font-size: 14px; }
.practice-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  background: #e9e3d6;
  border: 1px solid #b5b6a7;
  border-radius: 5px;
}

.practice-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.practice-title-group {
  flex: 1;
  min-width: 280px;
}

.practice-context {
  margin: 0 0 10px;
  color: #626858;
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .06em;
}

.practice-title-group h3 {
  margin: 0;
  font: 600 clamp(26px, 2.6vw, 36px)/1.25 var(--display);
  letter-spacing: -.025em;
  color: #20251e;
}

.practice-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid #242821;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  color: #242821;
  background: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.practice-entry-btn:hover {
  background: #242821;
  color: #e9e3d6;
}

.practice-entry-btn span {
  font-size: 16px;
  transition: transform .2s ease;
}

.practice-entry-btn:hover span {
  transform: translate(2px, -2px);
}

.practice-desc {
  width: 100%;
  padding: 16px 0;
  border-block: 1px solid #c2c4b5;
  color: #4e5447;
}

.practice-desc p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  max-width: 960px;
}

.practice-outline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 4px;
}

.practice-outline-col {
  padding: 24px 22px;
  background: rgba(222, 218, 203, 0.45);
  border: 1px solid #c2c5b7;
  border-top: 3px solid #292e26;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}

.practice-outline-col:hover {
  transform: translateY(-2px);
  border-color: #292e26;
}

.practice-outline-col span {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 700;
  color: #3b4234;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.practice-outline-col p {
  margin: 0;
  color: #555b4e;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .practice-outline { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 700px) {
  .practice-section { padding-top: 56px; }
  .practice-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .practice-card { padding: 24px 20px; gap: 20px; }
  .practice-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .practice-entry-btn { width: 100%; justify-content: center; }
}
