/* Reference-led extension of the established Pybase website, 2026-10-30. */
.hero-enhanced { padding-top: 52px; }
.hero-composition { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-bottom: 56px; }
.hero-enhanced h1 { font-size: clamp(50px, 5.2vw, 76px); line-height: 1.04; max-width: 12ch; letter-spacing: -.04em; }
.hero-enhanced h1 > span { display: block; font-size: .63em; line-height: 1.18; color: var(--mint); margin-top: 24px; letter-spacing: -.035em; max-width: 18ch; }
.hero-copy > p { font-size: 17px; line-height: 1.8; color: #b6c0c7; max-width: 375px; margin-top: 28px; }
.hero-enhanced .hero-actions { gap: 18px; margin-top: 28px; }
.hero-enhanced .brand-flow { width: 100%; max-width: none; padding: 0; margin: 0; position: relative; }
.brand-flow > img { width: 100%; height: auto; }
.flow-labels { position: absolute; top: 16px; inset-inline: 24px; display: flex; justify-content: space-between; gap: 12px; color: #bed2da; font-size: 12px; }
.flow-labels > span { display: flex; align-items: center; gap: 8px; }
.flow-labels > span::before { content: ''; width: 4px; height: 4px; background: var(--mint); border-radius: 50%; }
.brand-flow figcaption { font-size: 12px; color: #bed2da; margin-top: 0; padding-inline: 24px; }
.brand-flow figcaption > span { color: #9cb1bc; }
.hero-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 1px solid var(--dark-line); }
.hero-routes > a { padding-block: 25px 30px; display: grid; grid-template-columns: 1fr 24px; column-gap: 16px; }
.hero-routes > a > span { grid-column: 1; font-size: 12px; color: #9db2bd; margin-bottom: 6px; }
.hero-routes strong { font-size: 16px; color: #e6f0f4; font-weight: 450; line-height: 1.5; }
.hero-routes .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--mint); transition: transform .24s var(--ease); }
.hero-routes > a:hover .icon { transform: translate(3px,-3px); }
.hero-routes > a:hover strong { color: var(--mint); }

.solutions { padding-bottom: 92px; }
.service summary h3 { font-weight: 450; }
.service summary:hover h3 { color: var(--deep); }
.service-toggle { border-color: #b4c7d2; }
.section-heading-row > p { font-size: 16px; }
.project-portfolio { background: var(--soft); }
.project-portfolio .section-heading-row { margin-bottom: 64px; }
.project-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 76px; padding-block: 0 60px; }
.project-story + .project-story { margin-top: 64px; padding-top: 64px; border-top: 1px solid #c9d8dd; }
.project-visual { min-height: 430px; padding: 30px 36px; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.visual-caption { position: absolute; top: 26px; left: 36px; font-size: 12px; letter-spacing: .01em; }
.visual-footnote { position: absolute; left: 36px; bottom: 26px; font-size: 12px; }
.asmeda-visual { background: #070b09; color: #e6efe9; }
.asmeda-visual .visual-caption,.asmeda-visual .visual-footnote { color: #9fb7a9; }
.asmeda-display { font-size: clamp(40px,4.25vw,62px); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.asmeda-display > span { display: block; color: #9fb7a9; font-size: 14px; letter-spacing: 0; font-weight: 400; margin-top: 12px; }
.asmeda-map { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 32px; }
.asmeda-map > span { border-top: 1px solid #2e4e3c; font-size: 12px; color: #addec0; padding-block: 12px; position: relative; }
.asmeda-map > span::after { content: ''; position: absolute; top: -2px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #2fbf71; }
.project-story-copy { align-self: center; padding-block: 28px; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; font-size: 12px; color: var(--muted); margin-top: 14px; margin-bottom: 0; }
.stage-label { display: inline-flex; align-items: center; gap: 8px; color: var(--deep); }
.stage-label::before { content: ''; display: inline-block; height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
.project-story-copy h3 { font-size: 48px; line-height: 1.1; font-weight: 450; }
.project-story-copy .project-lead { font-size: 22px; line-height: 1.45; color: var(--ink); margin-top: 20px; letter-spacing: -.025em; }
.project-story-copy > p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 18px; }
.project-story-copy .project-honesty { font-size: 12px; max-width: 410px; }
.project-story-copy > .text-link { margin-top: 18px; }
.project-scope { grid-column: 1 / -1; margin-top: 28px; border-top: 1px solid #c9d8dd; border-bottom: 1px solid #c9d8dd; }
.project-scope > summary { list-style: none; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; }
.project-scope > summary::-webkit-details-marker { display: none; }
.project-scope > summary > span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--deep); transition: transform .24s var(--ease); }
.project-scope[open] > summary > span { transform: rotate(45deg); }
.scope-content { padding-bottom: 28px; }
.scope-content dl { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin: 0; }
.scope-content dt { font-size: 15px; font-weight: 500; line-height: 1.5; }
.scope-content dd { margin: 10px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.scope-content > p { margin-top: 24px; color: var(--muted); font-size: 12px; max-width: 90ch; line-height: 1.8; }
.tazkeer-visual { background: #dcece9; color: var(--ink); }
.tazkeer-visual .visual-caption,.tazkeer-visual .visual-footnote { color: #465f64; }
.tazkeer-display { font-size: clamp(50px,6vw,88px); line-height: 1.1; font-weight: 450; letter-spacing: -.04em; }
.tazkeer-display > span { display: block; font-size: .6em; color: var(--deep); margin-top: 4px; }
.tazkeer-sequence { display: flex; gap: 14px; align-items: center; color: var(--deep); font-size: 13px; margin-top: 30px; }
.tazkeer-sequence .icon { width: 17px; }
.tazkeer-story .project-visual { order: 2; }
.tazkeer-story .project-story-copy { order: 1; }
.about { padding-top: 40px; }
.form-row .field input { font-size: 16px; }

@media (max-width: 1100px) {
  .hero-composition { gap: 28px; }
  .hero-enhanced h1 { font-size: 62px; }
  .project-story { gap: 0 45px; }
  .project-visual { min-height: 405px; padding-inline: 26px; }
  .visual-caption,.visual-footnote { left: 26px; }
  .project-story-copy h3 { font-size: 40px; }
  .asmeda-display { font-size: 46px; }
}
@media (max-width: 820px) {
  .hero-enhanced { padding-top: 44px; }
  .hero-enhanced h1 { font-size: 54px; }
  .hero-copy > p { font-size: 15px; }
  .hero-enhanced .hero-actions { gap: 10px; }
  .flow-labels { inset-inline: 8px; font-size: 12px; gap: 4px; }
  .flow-labels > span { gap: 4px; }
  .brand-flow figcaption { padding-inline: 8px; font-size: 12px; }
  .brand-flow figcaption > span { display: none; }
  .hero-routes { gap: 32px; }
  .hero-routes strong { font-size: 14px; }
  .section-heading-row > p { font-size: 15px; }
  .project-story { gap: 0 32px; }
  .project-visual { min-height: 380px; padding-inline: 22px; }
  .visual-caption,.visual-footnote { left: 22px; font-size: 12px; }
  .asmeda-display { font-size: 35px; }
  .asmeda-display > span { font-size: 12px; }
  .asmeda-map { gap: 0 16px; }
  .asmeda-map > span { font-size: 12px; }
  .project-story-copy h3 { font-size: 36px; }
  .project-story-copy .project-lead { font-size: 19px; }
  .project-story-copy > p { font-size: 14px; }
  .project-meta { margin-top: 14px; margin-bottom: 0; font-size: 12px; }
  .scope-content dl { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tazkeer-display { font-size: 54px; }
  .tazkeer-sequence { gap: 8px; font-size: 12px; }
}
@media (max-width: 640px) {
  .hero-composition { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
  .hero-enhanced h1 { font-size: 48px; max-width: 13ch; }
  .hero-enhanced h1 > span { font-size: .67em; max-width: 19ch; margin-top: 18px; }
  .hero-copy > p { max-width: 370px; margin-top: 22px; }
  .hero-enhanced .hero-actions { gap: 8px 20px; margin-top: 24px; }
  .hero-enhanced .brand-flow { width: 100%; max-width: 440px; margin-inline: auto; }
  .brand-flow img { max-height: 330px; object-fit: contain; }
  .flow-labels { inset-inline: 8px; font-size: 12px; top: 4px; }
  .brand-flow figcaption { justify-content: space-between; font-size: 12px; padding-inline: 8px; }
  .brand-flow figcaption > span { display: block; font-size: 12px; }
  .hero-routes { grid-template-columns: 1fr; gap: 0; }
  .hero-routes > a { padding-block: 20px; }
  .hero-routes > a + a { border-top: 1px solid var(--dark-line); }
  .hero-routes strong { font-size: 14px; }
  .solutions { padding-bottom: 64px; }
  .project-portfolio .section-heading-row { margin-bottom: 36px; }
  .project-story { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .project-story + .project-story { padding-top: 40px; margin-top: 40px; }
  .project-visual { min-height: 340px; padding: 28px; }
  .visual-caption,.visual-footnote { left: 28px; font-size: 12px; }
  .asmeda-display { font-size: 45px; }
  .asmeda-display > span { font-size: 13px; }
  .asmeda-map > span { font-size: 12px; }
  .project-story-copy { padding: 30px 0 0; }
  .project-meta { font-size: 12px; }
  .project-story-copy h3 { font-size: 38px; }
  .project-story-copy .project-lead { font-size: 22px; max-width: 26ch; }
  .project-story-copy > p { font-size: 14px; }
  .project-story-copy .project-honesty { font-size: 12px; }
  .project-scope { margin-top: 20px; }
  .scope-content dl { gap: 24px 18px; }
  .scope-content dt { font-size: 14px; }
  .scope-content dd { font-size: 12px; }
  .tazkeer-story .project-visual,.tazkeer-story .project-story-copy { order: initial; }
  .tazkeer-display { font-size: 68px; }
  .tazkeer-sequence { gap: 12px; font-size: 12px; }
}
@media (max-width: 360px) {
  .hero-enhanced h1 { font-size: 42px; }
  .hero-enhanced h1 > span { font-size: .68em; }
  .asmeda-display { font-size: 36px; }
  .project-visual { padding-inline: 22px; }
  .visual-caption,.visual-footnote { left: 22px; }
  .asmeda-map { gap: 0 14px; }
  .asmeda-map > span { font-size: 12px; }
  .tazkeer-display { font-size: 58px; }
  .tazkeer-sequence { gap: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-routes .icon,.project-scope > summary > span { transition: none; }
}

.contact-product-note .inline-button { display: flex; }
