/* Homepage composition: quiet surfaces, purposeful colour, readable content. */
body:has(.home-page) .aurora { opacity: .3; }
body:has(.home-page) .noise { opacity: .025; }
body:has(.home-page) .grid-lines { opacity: .2; }
.home-page { --home-line: var(--border-color); }
.home-page a:focus-visible { outline: 2px solid var(--volt-400); outline-offset: 5px; }
.home-page .hero { padding-block: calc(var(--header-h) + clamp(3.5rem, 7vw, 6rem)) clamp(3rem, 6vw, 5rem); }
.home-page .hero__inner { gap: 3rem; }
.home-page .hero__copy { min-width: 0; }
.home-page .hero h1 { font-size: clamp(2.8rem, 5.2vw, 4.75rem); line-height: 1.06; letter-spacing: -.055em; margin-block: 1.4rem; text-wrap: balance; }
.home-page .hero .gradient-text { background-image: linear-gradient(100deg, var(--volt-500), var(--cyan-400)); }
.home-page .hero__lede { max-width: 43ch; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.8; }
.home-page .hero__cta { align-items: center; gap: 1.5rem; margin-top: 2rem; }
.hero__secondary { display: inline-flex; align-items: center; gap: .65rem; font-size: .875rem; font-weight: 500; color: var(--text); padding-block: .7rem; }
.hero__secondary:hover { color: var(--volt-500); }
.hero__secondary svg, .hero__secondary i { flex: none; }
.hero__note { display: flex; gap: .85rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--home-line); max-width: 420px; }
.hero__note-icon { color: var(--cyan-400); }
.hero__note p { font-size: .8rem; color: var(--text-mute); line-height: 1.75; }
.hero__note strong { color: var(--text-soft); font-weight: 500; }
.home-page .terminal { border-radius: 16px; border-color: #2b3045; box-shadow: 0 25px 65px -35px rgba(35, 18, 89, .55); }
.home-page .terminal__body { font-size: clamp(.75rem, .95vw, .84rem); line-height: 1.95; padding: 1.6rem 1.6rem 2.5rem; }
.home-page .terminal__body .c-com { color: #8c9ab3; }
.home-page .terminal__bar { padding: 1rem 1.25rem; }
.home-page .terminal__title { font-size: .7rem; }
.home-page .float-chip { font-size: .72rem; right: 1.5rem; }
.home-page .capability-band { padding-block: 1.6rem; background: var(--bg-raised); }
.home-page .capability-band__inner { grid-template-columns: 190px minmax(0, 1fr); }
.home-page .capability-band h2 { font-size: 1.2rem; }
.home-page .capability-band__list li { font-size: .8rem; }
.home-page .capability-band__icon { border: 0; background: transparent; flex-basis: 24px; }
.home-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.home-section--tinted { border-block: 1px solid var(--home-line); background: var(--bg-raised); }
.home-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.home-section h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); line-height: 1.17; letter-spacing: -.045em; margin-top: 1rem; }
.home-section__head > p { max-width: 31ch; color: var(--text-soft); font-size: .95rem; line-height: 1.8; }
.home-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-service { display: flex; flex-direction: column; padding: 1.7rem; border: 1px solid var(--home-line); border-radius: 16px; background: var(--surface-card); transition: border-color .2s, transform .2s, box-shadow .2s; }
.home-service:hover { border-color: var(--volt-400); transform: translateY(-3px); box-shadow: var(--shadow); }
.home-service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.home-service__icon { display: grid; place-items: center; color: var(--volt-500); width: 44px; height: 44px; border-radius: 12px; background: rgba(124, 92, 255, .08); }
.home-service__number { font: .75rem var(--font-mono); color: var(--text-mute); }
.home-service h3 { font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: .75rem; }
.home-service > p { font-size: .875rem; line-height: 1.8; color: var(--text-soft); margin-bottom: 1.75rem; }
.home-service__link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--home-line); font-size: .8rem; font-weight: 500; color: var(--text); }
.home-service__link svg, .home-service__link i { color: var(--volt-500); }
.home-approach { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.home-approach__intro > p { margin-block: 1.3rem .8rem; color: var(--text-soft); max-width: 32ch; line-height: 1.8; }
.home-principle { display: flex; gap: 1.25rem; padding-block: 1.5rem; border-bottom: 1px solid var(--home-line); }
.home-principle:first-child { padding-top: 0; }
.home-principle:last-child { border: 0; padding-bottom: 0; }
.home-principle__icon { padding-top: .2rem; color: var(--cyan-400); flex: none; }
.home-principle h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.home-principle p { font-size: .9rem; color: var(--text-soft); line-height: 1.8; }
.home-page .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.home-page .work-card { box-shadow: none; }
.home-page .work-card__media { aspect-ratio: 2 / 1; }
.home-page .work-card__fallback { font-size: 4rem; color: #b8b5e4; }
.home-page .work-card h3 { font-size: 1.3rem; }
.home-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 2rem; padding: 0; margin: 0; }
.home-process li { display: flex; flex-direction: column; border-top: 1px solid var(--home-line); padding-top: 1.25rem; }
.home-process__number { font: .8rem var(--font-mono); color: var(--volt-500); margin-bottom: 1.5rem; }
.home-process h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.home-process p { color: var(--text-soft); font-size: .875rem; line-height: 1.8; margin-bottom: 1.5rem; }
.home-process__output { display: flex; gap: .4rem; align-items: center; margin-top: auto; font-size: .75rem; color: var(--text-mute); }
.home-process__output svg, .home-process__output i { color: var(--cyan-400); flex: none; }
.home-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--home-line); }
.home-note { display: flex; flex-direction: column; padding: 1.6rem 1.5rem; border-bottom: 1px solid var(--home-line); }
.home-note + .home-note { border-left: 1px solid var(--home-line); }
.home-note:hover { background: var(--surface-hover); }
.home-note__label { display: flex; justify-content: space-between; gap: 1rem; font: .7rem var(--font-mono); color: var(--text-mute); margin-bottom: 1.5rem; }
.home-note h3 { font-size: 1.15rem; line-height: 1.5; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.home-note__read { font-size: .8rem; color: var(--cyan-400); margin-top: auto; }
.home-closing { padding-top: 0; }
.home-closing__panel { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid rgba(124, 92, 255, .25); border-radius: 24px; background: linear-gradient(115deg, rgba(124, 92, 255, .09), rgba(34, 211, 238, .045)); }
.home-closing__panel h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.home-closing__panel p { color: var(--text-soft); font-size: .95rem; margin-top: 1.25rem; max-width: 35ch; }
.home-closing__actions { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
[data-theme='dark'] .home-page .home-service__icon,
[data-theme='dark'] .home-page .home-service__link svg,
[data-theme='dark'] .home-page .home-service__link i,
[data-theme='dark'] .home-page .home-process__number { color: var(--volt-300); }
@media (min-width: 1020px) { .home-page .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 3.5rem; } }
@media (max-width: 1100px) {
  .home-page .capability-band__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-page .capability-band__inner { grid-template-columns: 1fr; gap: 1rem; }
  .home-page .capability-band__intro { display: none; }
}
@media (max-width: 1019px) {
  .home-page .hero__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .home-page .hero h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
  .home-page .terminal__body { padding-inline: 1rem; }
  .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-approach { gap: 2rem; }
}
@media (max-width: 760px) {
  .home-page .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .home-page .hero h1 { max-width: 13ch; font-size: clamp(2.7rem, 9vw, 4rem); }
  .home-page .hero__visual { max-width: 560px; width: 100%; }
  .home-section__head { align-items: flex-start; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
  .home-section__head > p { max-width: 48ch; }
  .home-approach { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .home-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-notes { grid-template-columns: minmax(0, 1fr); }
  .home-note { padding-inline: 0; }
  .home-note + .home-note { border-left: 0; }
  .home-closing__panel { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .home-closing__actions { align-items: flex-start; }
  .home-page .capability-band__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .home-services, .home-page .work-grid { grid-template-columns: minmax(0, 1fr); }
  .home-service { padding: 1.4rem; }
  .home-service__top { margin-bottom: 1.25rem; }
  .home-page .hero__cta { gap: .6rem 1.1rem; }
  .home-closing__actions, .home-closing__actions > .btn { width: 100%; }
  .home-closing__panel h2 { font-size: 2rem; }
  .home-closing__panel h2 br { display: none; }
  .home-closing__actions > .btn { font-size: .8rem; padding-inline: .85rem; }
  .home-process { gap: 1.5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .home-service { transition: none; } .home-service:hover { transform: none; } }
