/* Homepage only. Personal portfolios and the studio keep their own styles. */
body[data-view="homepage"] {
  --home-text: #b5bbce;
  font-family: Golos, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  background: #0d0f16;

  .wrap { width: min(1200px, calc(100% - 96px)); }
  :is(a, button, input, textarea):focus-visible { outline: 2px solid #aec0ff; outline-offset: 5px; }
  :is(h1, h2, h3, p) { overflow-wrap: break-word; }
  :is(h1, h2, h3) { font-weight: 400; letter-spacing: -.025em; }
  .eyebrow { font: 13px/1.6 'Courier New', monospace; letter-spacing: .02em; color: #9eadd2; }

  /* Both translations occupy the same grid cell, including their reserved height. */
  .copy-pair { display: inline-grid; vertical-align: top; max-width: 100%; min-width: 0; overflow-anchor: none; font: inherit !important; letter-spacing: inherit !important; }
  .copy-pair > span { font: inherit !important; letter-spacing: inherit !important; grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s ease, visibility 0s .14s; }
  #app[data-language="ru"] .copy-pair > [lang="ru"],
  #app[data-language="en"] .copy-pair > [lang="en"] { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .24s ease .12s, visibility 0s .12s; }
  :is(p, h1, h2, h3) > .copy-pair { display: grid; }

  .header { height: 88px; position: sticky; top: 0; background: #0d0f16ed; backdrop-filter: blur(16px); border-bottom: 1px solid #252a39; }
  .header-inner { width: min(1320px, calc(100% - 80px)); gap: 32px; }
  .home-brand { gap: 4px; align-items: baseline; line-height: 1; padding-block: 10px; }
  .home-brand-number { font: italic 500 30px/1 Golos, sans-serif; letter-spacing: -.07em; color: #adbef6; }
  .home-brand-word { font: 22px/1.3 'Segoe Print', 'Bradley Hand', cursive; letter-spacing: -.045em; color: #e2e7fa; }
  .home-brand-point { align-self: center; width: 5px; height: 5px; margin: 12px 0 0 1px; background: #a7b8f0; border-radius: 50%; }
  .main-nav { font: 14px/1.5 Golos, sans-serif; gap: 26px; }
  .main-nav a { min-height: 44px; display: flex; align-items: center; color: #bec4d6; }
  .main-nav a:hover { color: #fff; }
  .header-actions { gap: 22px; }
  .account-link, .logout-button { font: 13px/1.5 Golos, sans-serif; min-height: 44px; }
  .logout-button { color: #aab2ca; }
  .header-contact { display: none; }
  .home-language { display: flex; align-items: center; gap: 3px; font: 13px/1 'Courier New', monospace; flex-shrink: 0; }
  .home-language > span { color: #41495f; }
  .home-language button { position: relative; min-width: 38px; min-height: 44px; padding: 12px 6px; color: #909ab5; transition: color .2s; }
  .home-language button::after { content: ''; position: absolute; inset: auto 7px 5px; height: 2px; background: #a7b8f0; transform: scaleX(0); transition: transform .28s ease; }
  .home-language button[aria-pressed="true"] { color: #eef1ff; }
  .home-language button[aria-pressed="true"]::after { transform: scaleX(1); }
  .home-language button:hover { color: #eef1ff; }

  .home-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 100px; min-height: 0; padding-block: 68px 78px; }
  .home-hero::before { inset: 0; opacity: .65; }
  .hero-copy { min-width: 0; padding: 0; }
  .hero-copy .eyebrow { font-size: 13px; margin-bottom: 24px; color: #9eadd2; }
  .home-wordmark { display: flex; align-items: baseline; gap: 5px; width: max-content; max-width: 100%; position: relative; font-size: clamp(50px, 6.4vw, 82px); line-height: 1.35; margin: 0 0 25px -3px; color: #c0cdf9; }
  .wordmark-number { font: italic 400 1.2em/1 Golos, sans-serif; letter-spacing: -.075em; margin-right: .025em; }
  .wordmark-word { font-family: 'Segoe Print', 'Bradley Hand', cursive; font-weight: 400; letter-spacing: -.065em; }
  .home-wordmark > i { height: .075em; width: .075em; border-radius: 50%; background: #a7b8f0; margin-left: .015em; }
  .home-wordmark > svg { position: absolute; height: 11px; width: 75%; bottom: 0; right: 0; overflow: visible; fill: none; stroke: #91a9ef; stroke-width: 1.6; opacity: .5; }
  .hero-copy .hero-title { font: 400 clamp(29px, 2.6vw, 36px)/1.28 Golos, sans-serif; letter-spacing: -.025em; max-width: 520px; }
  .hero-description { font: 400 17px/1.75 Golos, sans-serif; color: var(--home-text); max-width: 510px; margin-top: 24px; }
  .hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; margin-top: 30px; }
  .button { font: 500 15px/1.4 Golos, sans-serif; letter-spacing: 0; min-height: 54px; border-radius: 7px; padding: 15px 24px; gap: 24px; }
  .button:hover { transform: none; }
  .primary { background: #a7b8f0; color: #111728; border-color: #a7b8f0; }
  .primary:hover { background: #bfcbf6; border-color: #bfcbf6; box-shadow: 0 0 25px #94adff16; }
  .text-link { font: 400 14px/1.55 Golos, sans-serif; min-height: 44px; letter-spacing: 0; gap: 15px; }
  .hero-buttons .text-link { font-size: 15px; max-width: none; color: #d0d8ef; white-space: nowrap; }
  .hero-buttons .copy-pair { justify-items: center; }
  .hero-buttons .button { font: 500 15px/1.4 Golos, sans-serif; }

  .home-index { min-width: 0; border-left: 1px solid #3a4664; padding-left: 32px; margin-top: 16px; }
  .home-index-top { display: flex; justify-content: space-between; gap: 12px; font: 12px/1.6 'Courier New', monospace; color: #929fbe; }
  .home-index h2 { font-size: 27px; line-height: 1.3; margin-top: 26px; }
  .home-index-intro { font-size: 15px; line-height: 1.75; color: var(--home-text); margin-top: 13px; max-width: 380px; }
  .home-index-list { margin-top: 27px; }
  .home-index-project { display: grid; grid-template-columns: 22px minmax(0,1fr) 22px; align-items: start; gap: 14px; border-top: 1px solid #2b3348; padding-block: 23px; }
  .home-index-project:hover h3 { color: #b9c9ff; }
  .home-index-project:hover > .icon { transform: translate(2px,-2px); }
  .home-index-number { font: 12px/1.8 'Courier New', monospace; color: #8b9dc6; padding-top: 4px; }
  .home-index-project h3 { font-size: 21px; line-height: 1.4; letter-spacing: -.015em; transition: color .2s; }
  .home-index-project p { font-size: 14px; line-height: 1.65; color: #aeb8d1; margin-top: 6px; }
  .home-index-tags { display: block; font: 12px/1.6 'Courier New', monospace; color: #98a6c7; margin-top: 11px; }
  .home-index-project > .icon { height: 19px; width: 19px; margin-top: 5px; color: #a8b9ec; transition: transform .2s; }
  .home-index-team { display: flex; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid #2b3348; }
  .home-index-team > span { font-size: 13px; line-height: 1.65; color: #b7c2df; }
  .home-index-team small { display: block; font-size: 12px; color: #8f9dbf; margin-top: 2px; }
  .home-index-team > .icon { width: 18px; margin-left: auto; }
  .home-index-team .avatar-stack img { width: 29px; height: 29px; }

  .capabilities-band { background: #10141f; }
  .capabilities-band > .wrap { padding-block: 20px; gap: 30px; }
  .capabilities-band > .wrap > span { font: 12px/1.6 'Courier New', monospace; color: #92a1c4; }
  .capabilities-band p { font: 14px/1.6 Golos, sans-serif; gap: 12px 18px; }
  .capabilities-band .capability-item { font: inherit; color: #c4cde4; letter-spacing: 0; }
  .capabilities-band i { font-size: 16px; color: #8496c3; }
  .section { padding-block: 78px; }
  .section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); align-items: end; gap: 64px; margin-bottom: 42px; }
  .section-heading h2 { font: 400 clamp(31px,3vw,40px)/1.25 Golos,sans-serif; letter-spacing: -.025em; margin-top: 16px; }
  .section-heading > p, .section-heading > div > p { font: 16px/1.75 Golos,sans-serif; color: var(--home-text); max-width: 470px; }
  .section-heading .eyebrow { font-size: 13px; }
  .projects-list { gap: 52px; }
  .project-card, .project-card.reverse { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 44px; }
  .project-card.reverse .project-image-link, .project-card.reverse .project-info { order: initial; }
  .project-image-link { border-radius: 8px; }
  .project-info h3 { font-size: 30px; line-height: 1.3; margin-top: 20px; }
  .project-info > p { font: 16px/1.75 Golos,sans-serif; color: var(--home-text); margin-top: 16px; }
  .project-index { font: 12px/1.6 'Courier New',monospace; letter-spacing: 0; gap: 14px; }
  .status-dot { font-size: 12px; }
  .tags > span { font: 12px/1.5 Golos,sans-serif; border-radius: 4px; padding: 5px 9px; }
  .project-bottom .text-link { font-size: 14px; }
  .all-projects-link { font: 15px/1.6 Golos,sans-serif; min-height: 55px; padding-block: 18px; }
  .service-rows > article { gap: 28px; padding-block: 30px; grid-template-columns: 35px minmax(180px,.9fr) minmax(0,1.15fr); }
  .service-rows h3 { font: 400 23px/1.4 Golos,sans-serif; letter-spacing: -.015em; }
  .service-rows article > div > p { font: 16px/1.75 Golos,sans-serif; color: var(--home-text); }
  .service-rows .text-link { font-size: 14px; margin-top: 11px; }
  .existing-project { border-radius: 7px; padding: 30px; }
  .existing-project p { font-size: 16px; line-height: 1.75; }
  .approach { padding-block: 68px; }
  .steps { gap: 32px; }
  .steps h3 { font: 400 22px/1.4 Golos,sans-serif; margin-block: 22px 14px; }
  .steps p { font: 16px/1.75 Golos,sans-serif; color: var(--home-text); max-width: none; }
  .person-caption h3 { font: 400 16px/1.5 Golos,sans-serif; letter-spacing: 0; }
  .person-caption p { font: 13px/1.6 Golos,sans-serif !important; color: #a7b2cd; }
  .people-foot > span { font: 13px/1.6 Golos,sans-serif !important; }
  .footer { padding-top: 62px; }
  .footer h2 { font: 400 43px/1.25 Golos,sans-serif; letter-spacing: -.025em; margin-top: 18px; }
  .footer-message p { font: 16px/1.8 Golos,sans-serif; color: #b8c3de; }
  .footer-top { gap: 70px; padding-bottom: 54px; }
  .footer-bottom { gap: 24px; padding-block: 27px; }
  .footer-bottom > span { font-size: 13px; }
  .footer-bottom a:not(.brand), .footer-bottom small { font-size: 12px; }

  @media (max-width: 1100px) {
    .home-hero { gap: 52px; }
    .home-wordmark { font-size: 65px; }
    .home-index { padding-left: 25px; }
    .home-index-team { flex-wrap: wrap; }
    .section-heading { gap: 42px; }
    .capabilities-band > .wrap { align-items: start; }
  }
  @media (max-width: 1050px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex !important; border-radius: 5px; }
    .logout-button { display: none; }
    .mobile-nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; position: absolute; inset: 100% 0 auto; background: #101622; border-bottom: 1px solid #35425f; padding: 20px 40px 26px; box-shadow: 0 25px 40px #0004; }
    .mobile-nav :is(a,button) { min-height: 46px; padding: 10px 0; font: 15px/1.6 Golos,sans-serif; text-align: left; }
  }
  @media (max-width: 900px) {
    .wrap { width: calc(100% - 64px); }
    .home-hero { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 55px; }
    .home-wordmark { font-size: 76px; }
    .hero-copy .hero-title { font-size: 34px; max-width: none; }
    .hero-title br { display: none; }
    .hero-title br::after { content: ' '; }
    .hero-description { max-width: 610px; }
    .home-index { margin: 0; padding-left: 26px; }
    .home-index h2 { margin-top: 18px; }
    .home-index-intro { max-width: 580px; }
    .home-index-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .home-index-project { padding-block: 20px 24px; }
    .home-index-team { flex-wrap: nowrap; }
    .section-heading { gap: 30px; grid-template-columns: 1fr 1fr; }
    .project-card, .project-card.reverse { display: flex; flex-direction: column; gap: 26px; align-items: stretch; }
    .project-info h3 { font-size: 28px; }
    .service-rows > article { grid-template-columns: 25px minmax(0,1fr); gap: 14px 24px; }
    .service-rows article > div { grid-column: 2; }
    .capabilities-band > .wrap { display: block; }
    .capabilities-band p { margin-top: 12px; }
    .people-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
    .footer-top { gap: 35px; }
  }
  @media (max-width: 640px) {
    .wrap { width: calc(100% - 40px); }
    .header { height: 76px; }
    .header-inner { width: calc(100% - 40px); gap: 16px; }
    .header-actions { gap: 12px; }
    .home-brand-number { font-size: 28px; }
    .home-brand-word { font-size: 20px; }
    .home-language button { min-width: 34px; }
    .home-hero { padding-block: 32px 44px; gap: 40px; }
    .hero-copy .eyebrow { font-size: 12px; margin-bottom: 22px; max-width: none; }
    .home-wordmark { font-size: clamp(48px,10.5vw,65px); margin-bottom: 25px; }
    .hero-copy .hero-title { font-size: 29px; line-height: 1.35; }
    .hero-description { font-size: 16px; line-height: 1.75; margin-top: 20px; }
    .hero-buttons { flex-direction: row; gap: 15px; margin-top: 25px; }
    .hero-buttons .button { flex: 1; padding-inline: 18px; justify-content: space-between; min-width: 180px; }
    .hero-buttons > .text-link { flex: 1; font-size: 14px; min-width: 125px; justify-content: center; }
    .home-index { padding-left: 20px; }
    .home-index h2 { font-size: 25px; }
    .home-index-list { grid-template-columns: 1fr; gap: 0; }
    .home-index-project { padding-block: 20px; }
    .home-index-project h3 { font-size: 22px; }
    .home-index-team { gap: 12px; align-items: start; padding-top: 20px; }
    .home-index-team > span { font-size: 13px; }
    .home-index-team .avatar-stack img { width: 26px; height: 26px; }
    .home-index-team > .icon { display: none; }
    .capabilities-band p { font-size: 14px; gap: 8px 12px; }
    .section { padding-block: 52px; }
    .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
    .section-heading h2 { font-size: 32px; }
    .section-heading > p, .section-heading > div > p { font-size: 16px; margin: 0; max-width: none; }
    .project-card, .project-card.reverse { display: flex; flex-direction: column; gap: 25px; }
    .project-info h3 { font-size: 28px; }
    .project-info > p { font-size: 16px; }
    .project-index { font-size: 11px; }
    .project-bottom .text-link { font-size: 13px; }
    .project-bottom .avatar-stack img { width: 25px; height: 25px; }
    .service-rows > article { gap: 12px 18px; padding-block: 25px; }
    .service-rows h3 { font-size: 23px; }
    .service-rows article > div > p { font-size: 16px; }
    .existing-project { padding: 24px; }
    .approach { padding-block: 52px; }
    .steps { gap: 28px; }
    .steps h3 { font-size: 22px; margin: 0; }
    .steps p { font-size: 16px; }
    .people-grid { gap: 28px 14px; }
    .person-caption h3 { font-size: 14px; }
    .person-caption p { font-size: 12px; }
    .footer { padding-top: 47px; }
    .footer h2 { font-size: 36px; }
    .footer-message { margin-top: 25px; }
    .footer-message p { font-size: 16px; }
    .footer-bottom > span { font-size: 12px; }
    .mobile-nav.open { padding: 16px 20px 22px; gap: 4px 20px; }
  }
  @media (max-width: 480px) {
    .header-inner { gap: 10px; }
    .header-actions { gap: 8px; }
    .header-actions > .account-link { display: none; }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-buttons .button { width: 100%; }
    .hero-buttons > .text-link { width: 100%; justify-content: space-between; }
  }
  @media (prefers-reduced-motion: reduce) {
    .copy-pair > span { transition: none !important; }
    .home-language button::after, .home-index-project > .icon { transition: none; }
  }
}
