/* Content layouts only; brand and component styles come from ../css/styles.css. */
.preview-note {
  text-align: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  padding: 5px 16px;
}
.nav-desktop {
  gap: 18px;
}
.nav-desktop a {
  font-size: 14px;
}
.nav-desktop a[aria-current="page"],
.nav-mobile a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}
.entry-grid,
.industry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.entry-grid a {
  color: var(--text);
}
.entry-grid h3 {
  color: var(--brand);
}
.industry-cards h3 {
  color: var(--brand);
  margin-top: 0;
}
.industry-cards ul {
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.9;
  margin: 20px 0 24px;
}
.industry-cards h4 {
  margin-bottom: 8px;
}
.industry-cards p {
  color: var(--text-muted);
}
.card-link {
  margin-top: 24px;
}
.page-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 28px;
}
.page-end {
  text-align: center;
  padding-bottom: 64px;
}
.page-end .btn {
  margin: 6px;
}
.page-end p {
  font-size: 13px;
  color: var(--text-muted);
}
.report-example {
  max-width: 760px;
  margin: 36px auto 0;
}
.report-example p {
  color: var(--text-muted);
}
details {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
}
details h4 {
  margin-bottom: 6px;
}
html {
  scroll-padding-top: 88px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
@media (max-width: 1100px) {
  .nav-desktop {
    gap: 12px;
  }
  .nav-desktop a {
    font-size: 12px;
  }
  .nav-desktop .btn {
    padding: 9px 14px;
  }
}
@media (max-width: 960px) {
  .industry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entry-grid {
    grid-template-columns: 1fr;
  }
  .nav-desktop {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .industry-cards {
    grid-template-columns: 1fr;
  }
  .page-end .btn {
    display: flex;
  }
  .preview-note {
    font-size: 11px;
  }
}
/* Keep original illustration assets within their content columns. */
.cbd-grid > *,
.cbd-visual {
  min-width: 0;
}
.cbd-visual img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Homepage summaries connect the product pages without changing brand assets. */
.home-page .hero {
  padding: 44px 0 48px;
}
.home-page .hero-inner {
  gap: 36px;
}
.home-page .hero-lead {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 22px;
}
.home-page .hero-cta {
  margin-bottom: 20px;
}
.home-service-card {
  padding: 24px;
}
.home-service-card .eyebrow {
  font-size: 12px;
}
.home-service-card h3 {
  margin-bottom: 12px;
}
.home-deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.home-deliverables li {
  padding: 10px 0;
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.home-deliverables strong {
  color: var(--brand);
  white-space: nowrap;
}
.home-deliverables span {
  color: var(--text-muted);
}
.home-page main > section:not(.hero) {
  padding: 44px 0;
}
.home-page .section-head {
  max-width: 800px;
  margin-bottom: 26px;
}
.home-page .section-head p {
  font-size: 15px;
}
.home-page .why-card {
  padding: 22px;
}
.home-page .why-card p {
  font-size: 14px;
  line-height: 1.8;
}
.home-page .why-card h3 {
  font-size: 17px;
}
.home-page .why-icon {
  width: 36px;
  height: 36px;
  font-size: 17px;
  margin-bottom: 12px;
}
.home-page .services-wrap {
  gap: 18px;
}
.home-page .service-col {
  padding: 22px;
}
.home-page .service-col li {
  font-size: 14px;
}
.section-bottom-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  font-size: 13px;
}
.section-bottom-link > span {
  color: var(--text-muted);
}
.section-bottom-link > a {
  white-space: nowrap;
  font-weight: 600;
}
.home-process {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--brand-light);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-top: 22px;
  font-size: 13px;
}
.home-process strong {
  color: var(--brand);
}
.home-process i {
  color: var(--brand);
  font-style: normal;
}
.home-process > a {
  margin-left: auto;
}
.home-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-card-title h3 {
  color: var(--text);
  margin: 0 0 8px;
}
.home-card-title span {
  color: var(--brand);
}
.home-industry-grid small {
  font-size: 12px;
  display: block;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}
.home-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.home-case-grid article > h3 {
  margin: 16px 0;
}
.home-case-grid article > a {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
}
.home-tool-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.home-tool-row h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--brand);
}
.home-tool-row p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.home-contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.home-contact-actions > a:last-child {
  font-size: 14px;
}
.home-page .page-note {
  font-size: 12px;
  margin-top: 18px;
}
@media (max-width: 960px) {
  .home-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-process {
    gap: 12px;
  }
  .home-process > a {
    margin-left: 0;
  }
  .home-page .hero-inner {
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .home-page .hero {
    padding: 30px 0;
  }
  .home-page .hero h1 {
    font-size: 30px;
  }
  .home-page main > section:not(.hero) {
    padding: 32px 0;
  }
  .home-page .section-head h2 {
    font-size: 24px;
  }
  .home-page .section-head p {
    font-size: 14px;
  }
  .home-case-grid,
  .home-tool-row {
    grid-template-columns: 1fr;
  }
  .home-industry-grid {
    gap: 12px;
  }
  .home-page .home-industry-grid .why-card {
    padding: 16px;
  }
  .home-industry-grid small {
    font-size: 11px;
  }
  .section-bottom-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .home-process {
    gap: 10px;
    font-size: 12px;
  }
  .home-process strong {
    width: 100%;
  }
  .home-process > a {
    width: 100%;
  }
  .home-service-card {
    text-align: left;
  }
  .home-deliverables li {
    font-size: 12px;
    gap: 10px;
  }
  .home-tool-row {
    gap: 20px;
    padding: 20px;
  }
  .home-contact-actions {
    gap: 12px;
  }
}
/* Existing brand materials and actual student product captures. */
.hero-service-image {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  height: 130px;
  object-fit: cover;
  margin: -24px -24px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.home-page .home-deliverables li {
  padding: 8px 0;
}
.media-figure {
  margin: 0;
  min-width: 0;
}
.image-open {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.image-open > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.image-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--brand);
  font: 12px var(--font-sans);
}
.media-figure figcaption {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 10px;
}
.home-model-preview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.home-model-preview h3 {
  font-size: 22px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.home-model-preview p {
  font-size: 14px;
  color: var(--text-muted);
}
.home-model-preview a {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}
.model-figure .image-open {
  box-shadow: none;
}
.brochure-preview {
  display: grid;
  grid-template-columns: 1.4fr 0.45fr 0.45fr;
  align-items: center;
  gap: 26px;
  margin-top: 26px;
  background: var(--brand-light);
  padding: 24px 30px;
  border-radius: var(--radius-lg);
}
.brochure-preview h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.brochure-preview p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
}
.brochure-preview > div > a {
  font-size: 14px;
  font-weight: 600;
}
.brochure-preview > a > img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px #0f172a20);
}
.brochure-preview > a > span {
  display: block;
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
}
.project-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.project-media-grid .image-open {
  height: 180px;
  display: flex;
  align-items: center;
  padding: 16px;
}
.project-media-grid .image-open img {
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}
.student-main-shot {
  margin-bottom: 24px;
}
.student-main-shot .image-open {
  border-radius: var(--radius-lg);
}
.student-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 25px;
}
.student-secondary-grid .image-open {
  aspect-ratio: 1.5;
}
.student-secondary-grid .image-open img {
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
}
.image-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(1300px, 94vw);
  max-height: 94vh;
  padding: 45px 16px 14px;
  box-shadow: 0 20px 90px #0f172a50;
}
.image-dialog::backdrop {
  background: #0f172ab3;
}
.image-dialog img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  margin: auto;
}
.image-dialog p {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 12px 0 0;
}
.image-close {
  position: absolute;
  right: 16px;
  top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 6px 12px;
  font: 13px var(--font-sans);
  cursor: pointer;
}
body:has(.image-dialog[open]) {
  overflow: hidden;
}
@media (max-width: 900px) {
  .home-model-preview {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .brochure-preview {
    grid-template-columns: 1fr 110px 110px;
    gap: 16px;
    padding: 22px;
  }
  .home-model-preview h3 {
    font-size: 20px;
  }
  .brochure-preview > a > img {
    height: 145px;
  }
}
@media (max-width: 600px) {
  .hero-service-image {
    height: 110px;
  }
  .brochure-preview {
    grid-template-columns: 1fr 1fr;
  }
  .brochure-preview > div {
    grid-column: span 2;
  }
  .brochure-preview > a > img {
    height: 180px;
  }
  .home-model-preview {
    padding: 18px;
  }
  .project-media-grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }
  .project-media-grid .image-open {
    height: 160px;
  }
  .student-secondary-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .image-zoom {
    font-size: 10px;
    bottom: 7px;
    right: 7px;
  }
  .media-figure figcaption {
    font-size: 11px;
  }
}
@media (min-width: 901px) {
  .student-secondary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Detailed tool descriptions retain original brand typography and cards. */
.tool-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin: 32px 0;
}
.tool-detail-grid > div {
  min-width: 0;
}
.tool-detail-grid h3 {
  color: var(--brand);
  margin-top: 0;
}
.tool-detail-grid p,
.tool-detail-grid li {
  color: var(--text-muted);
  line-height: 1.9;
}
.tool-detail-grid ul {
  padding-left: 22px;
}
.tool-detail-grid li {
  margin-bottom: 10px;
}
.tool-detail-grid .media-figure img {
  width: 100%;
  height: auto;
}
.tool-detail-grid strong {
  color: var(--text);
}
@media (max-width: 900px) {
  .tool-detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .tool-detail-grid {
    margin: 26px 0;
  }
}

.section-head .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

/* Keep the homepage case summary in equal-width cards across complete rows. */
#home-stories .case-card--featured {
  grid-column: auto;
  background: #fff;
}
