/* Shared presentation for the current portfolio pages. */
.section-heading .section-kicker { display: block; width: fit-content; margin-bottom: 12px; }
.section-heading h2, .contact-prompt h2 { display: block; background: none; text-shadow: none; }
.featured-work > .section-heading::after { content: none; }
.section-kicker { border-color: #0f766e; color: #115e59; }
.hero-proof a { color: inherit; text-underline-offset: 3px; }
.curated-home .featured-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.curated-home .featured-card { grid-template-rows: auto 1fr; border-radius: 14px; box-shadow: 0 8px 24px #102c3810; }
.curated-home .featured-card::before { content: none; }
.curated-home .featured-card img { height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #eaf0f3; }
.curated-home .featured-card h3 a { color: inherit; text-decoration: none; }
.curated-home .featured-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.curated-home .featured-card:first-child { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto; align-items: center; }
.curated-home .featured-card:first-child > div { padding: 30px; }
.curated-home .featured-card:first-child img { align-self: stretch; height: 100%; }
.featured-card:hover, .featured-card:focus-within { transform: translateY(-2px); border-color: #81b3aa; }
.gallery-card { display: flex; flex-direction: column; border-radius: 12px; box-shadow: 0 5px 18px #102c3808; }
.gallery-card > img { height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #eaf0f3; }
.gallery-card > div { display: flex; flex-direction: column; flex: 1; }
.gallery-card .featured-links { margin-top: auto; padding-top: 16px; }
.gallery-card .featured-links a, .featured-card .featured-links a { min-height: 44px; }
.project-flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 30px; padding: 0; }
.project-flow li { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #d6e4e1; border-radius: 10px; background: #ffffffc9; font-size: .9rem; font-weight: 600; }
.project-flow li > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #e1f0eb; color: #115e59; font-size: .75rem; }
.case-sections { gap: 24px; }
.case-sections section { border: 1px solid #dbe4e9; padding: 24px; border-radius: 12px; background: #ffffffd9; }
.case-sections p:last-child { margin-bottom: 0; }
.case-next { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border: 1px solid #c8dfd8; background: #eaf3ef; }
.case-next > div:last-child { text-align: right; }
.case-next p { font-size: .8rem; color: #526760; }
.case-next a { display: inline-flex; min-height: 44px; align-items: center; }
.role-card { box-shadow: 0 6px 22px #102c3808; }
details.role-example { padding: 0; overflow: hidden; }
.role-example summary { padding: 18px 20px; cursor: pointer; font-weight: 650; color: #115e59; }
.role-example p { padding: 0 20px 20px; }
.education-band { border: 1px solid #d7e2eb; background: #eef3f8; }
:where(section,article,[id]) { scroll-margin-top: 100px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #0f766e; outline-offset: 4px; border-radius: 3px; }
@media (max-width: 760px) {
  .curated-home .featured-work-grid { grid-template-columns: 1fr; }
  .curated-home .featured-card:first-child { grid-template-columns: 1fr; }
  .curated-home .featured-card:first-child img { height: auto; }
  .curated-home .featured-card:first-child > div { padding: 22px; }
  .project-flow { grid-template-columns: 1fr; gap: 8px; }
  .project-flow li { padding: 10px 14px; }
  .case-sections { grid-template-columns: 1fr; }
  .case-sections section { padding: 20px; }
  .case-next { padding: 20px; }
}
@media (max-width: 480px) {
  .site-header { flex-wrap: wrap; gap: 8px; }
  .site-nav { justify-content: flex-end; gap: 6px 12px; }
  .site-nav a { padding-block: 8px; }
  .case-next { grid-template-columns: 1fr; gap: 12px; }
  .case-next > div:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Shared visual accents for the existing portfolio layout. */
body {
  --paper: #edf3f4;
  --ink: #182629;
  --accent-yellow: #f6d667;
  --display-font: Georgia, "Times New Roman", serif;
  background: var(--paper);
}

body::before,
body::after {
  opacity: .12;
}

.site-header {
  background: #f8faf9f5;
  border-bottom-color: #cfdbde;
}

.brand {
  background: var(--accent-yellow);
  border-width: 1px;
  border-radius: 6px;
  box-shadow: none;
  font-family: var(--display-font);
}

.curated-home .hero {
  background: linear-gradient(#e1eceeaa, #e1eceeaa),
    #e1ecee url("assets/retro-workstation.jpg") center bottom / cover no-repeat;
  border: 1px solid #c4d5d9;
  border-radius: 8px;
  box-shadow: 0 12px 32px #18363b12;
  animation: none;
}

.curated-home .hero::before,
.curated-home .hero::after,
.curated-home .hero-ambient {
  display: none;
}

.curated-home .hero h1,
.section-heading h2,
.case-heading h1,
.home-experience h2,
.contact-prompt h2 {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
}

.curated-home .hero h1 {
  font-size: 3.6rem;
  line-height: 1.05;
}

.curated-home .hero .eyebrow {
  border-color: #ab801b;
  background: none;
  color: var(--ink);
  text-shadow: none;
}

.curated-home .hero-text {
  color: #33494f;
}

.curated-home .hero .button.primary,
.contact-prompt .button.primary {
  background: var(--accent-yellow);
  border-color: #a8862e;
  color: var(--ink);
  box-shadow: none;
}

.curated-home .hero .button.primary:hover,
.contact-prompt .button.primary:hover {
  background: #ffe48b;
}

.curated-home .hero .button.secondary {
  background: #f8faf9;
  border-color: #859da3;
  color: var(--ink);
}

.curated-home .hero .hero-proof span {
  padding: 5px 9px;
  border-color: #bdcfd2;
  border-radius: 5px;
  background: #f3f8f8;
  color: #33494f;
  font-size: .78rem;
  animation: none;
}

.curated-home .hero-showcase {
  border-radius: 8px;
  box-shadow: 0 12px 30px #18363b26;
}

.curated-home .contact-prompt {
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #c4d5d9;
  border-radius: 8px;
  background: linear-gradient(90deg, #e6efef 30%, #e6efef88),
    #e6efef url("assets/retro-keyboard.jpg") right 58% / cover no-repeat;
}

.page-main > .case-heading:first-of-type {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: 190px;
  margin: 0 0 24px;
  padding: 28px 31% 28px 28px;
  border: 1px solid #c4d5d9;
  border-radius: 8px;
  background: #e1ecee;
  overflow: hidden;
}

.case-study > .case-heading:first-of-type {
  margin-top: 16px;
}

[data-header-art="approach"] { --heading-art: url("assets/header-approach.jpg"); }
[data-header-art="experience"] { --heading-art: url("assets/header-experience.jpg"); }
[data-header-art="skills"] { --heading-art: url("assets/header-skills.jpg"); }
[data-header-art="contact"] { --heading-art: url("assets/header-contact.jpg"); }
[data-header-art="arcane-duel"] { --heading-art: url("assets/arcane-duel-preview.png"); }
[data-header-art="bookstore"] { --heading-art: url("assets/cowboy-bookstore-hero.png"); }
[data-header-art="campus-connect"] { --heading-art: url("assets/campus-connect-preview.png"); }
[data-header-art="datadock"] { --heading-art: url("assets/datadock-home-preview.png"); }
[data-header-art="fitnex"] { --heading-art: url("assets/fitnex-banner.jpg"); }
[data-header-art="fortunatocare"] { --heading-art: url("assets/fortunatocare-about.jpg"); }
[data-header-art="signaldesk"] { --heading-art: url("assets/signaldesk-preview.png"); }
[data-header-art="snapchef"] { --heading-art: url("assets/snapchef-food-board.png"); }
[data-header-art="studyops"] { --heading-art: url("assets/studyops-preview.png"); }
[data-header-art="tetris"] { --heading-art: url("assets/tetris-game-preview.png"); }

.case-heading[data-header-art]::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 33%;
  background: var(--heading-art) center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 34%);
  content: "";
}

.curated-home .featured-card,
.gallery-card,
.case-sections section {
  border-radius: 8px;
}

.featured-links a {
  border-radius: 6px;
}

@media (max-width: 860px) {
  .curated-home .hero h1 { font-size: 3rem; }
}

@media (max-width: 560px) {
  .curated-home .hero h1 { font-size: 2.45rem; }

  .page-main > .case-heading:first-of-type {
    padding: 20px 20px 96px;
  }

  .case-heading[data-header-art]::before {
    inset: auto 0 0 auto;
    width: min(75%, 260px);
    height: 88px;
    mask-image: linear-gradient(90deg, transparent, #000 28%);
  }

  .curated-home .hero {
    background-size: auto, auto 62%;
    background-position: center, center bottom;
  }

  .curated-home .hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
