/* Shared refinements for the existing ALYI visual system. */
img[src^="/assets/project-"] { height: auto; }
html { scroll-padding-top: 100px; }
[id] { scroll-margin-top: 100px; }
.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 32px; pointer-events: none; }
header { color: var(--ink); background: transparent; transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease; }
header.hide { transform: none; }
header .logo, header .burger { color: inherit; }
header .logo span { color: var(--gold-deep); }
body.hero-dark header:not(.scrolled) { color: #fff; }
header.scrolled { background: #fff; color: var(--ink); padding-top: 14px; padding-bottom: 14px; box-shadow: 0 4px 24px rgba(35, 17, 28, .09); }
.burger, .mobile-menu .close-m { min-height: 44px; min-width: 44px; }
.mobile-menu[inert] { visibility: hidden; }
.mobile-menu.open { visibility: visible; }
.mobile-menu .close-m { padding: 10px; }
.skip-link { position: fixed; left: 20px; top: 12px; z-index: 120; padding: 10px 20px; background: #fff; color: #542035; border: 2px solid #542035; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid #bd1d5e; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero h1 { font-size: clamp(32px, 4.7vw, 64px); text-wrap: balance; }
.page-index .hero { min-height: 100svh; }
.page-index .hero h1 { max-width: 1000px; margin-inline: auto; font-size: clamp(36px, 5.3vw, 76px); line-height: 1.12; }
.page-index .hero-sub { max-width: 590px; font-size: 11px; letter-spacing: .22em; line-height: 1.9; }
.pillar-automation, .tier-automation, .svc-automation { background: var(--ink); }
.pillar-automation::after, .svc-automation::after { background: none; }
.svc-automation { min-height: 370px; justify-content: center; }
.tiers .grid { gap: 20px; align-items: stretch; }
.tier { min-height: 610px; padding: 28px 22px; gap: 0; }
.tier::after { background: linear-gradient(180deg, rgba(18,16,20,.04) 15%, rgba(18,16,20,.9) 54%, rgba(18,16,20,.96)); }
.tier-automation::after { background: linear-gradient(180deg, rgba(18,16,20,0), rgba(18,16,20,.38)); }
.tier-copy { position: relative; z-index: 2; display: grid; grid-template-rows: 60px 50px 120px 20px 48px; gap: 14px; width: 100%; }
.tier .tier-copy h3 { font-size: 24px; line-height: 1.2; }
.tier .tier-subtitle { font-family: var(--flourish); font-size: 18px; font-style: italic; font-weight: 500; line-height: 1.3; color: var(--gold); }
.tier .tier-description { font-size: 15px; line-height: 1.7; color: rgba(253,251,252,.88); }
.tier .meta { color: var(--gold); line-height: 20px; }
.tier .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 10px !important; font-family: var(--body); font-size: 11px !important; font-weight: 500; line-height: 1.2; letter-spacing: .15em !important; white-space: nowrap; align-self: stretch; }
.tier .btn.gold { background: #8b324d; border-color: #8b324d; color: #fff; }
.port-grid { align-items: start; row-gap: 52px; }
.port-grid img, .peek img, .shine-grid img { aspect-ratio: 3 / 4; object-fit: cover; }
.project-preview { display: block; overflow: hidden; border-radius: 14px; }
.project-preview img { transition: transform .35s ease; }
.project-preview:hover img { transform: scale(1.025); }
.port-grid figcaption { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; text-align: left; letter-spacing: normal; text-transform: none; }
.project-name { font-family: var(--display); font-size: 22px; color: var(--ink); }
.project-domain { grid-row: 2; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.project-detail { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #8b324d; text-decoration: underline; text-underline-offset: 5px; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.shine-grid > a { min-width: 0; }
.legal-hero { padding-bottom: 70px; background: var(--cream); }
.legal-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.legal-hero .legal-date { font-size: 13px; font-weight: 500; color: #8b324d; }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; padding-top: 74px; padding-bottom: 100px; align-items: start; }
.legal-toc { display: flex; flex-direction: column; gap: 15px; position: sticky; top: 104px; align-items: flex-start; }
.legal-toc a { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.5; color: #70405a; }
.legal-copy { max-width: 70ch; }
.legal-section { padding: 0; margin-bottom: 44px; }
.legal-section h2 { font-size: 28px; line-height: 1.25; margin-bottom: 17px; }
.legal-section p { margin-bottom: 16px; color: var(--ink-soft); }
.legal-copy a { color: #8b324d; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .tier { min-height: 580px; } .tier-copy { grid-template-rows: 58px 40px 100px 20px 48px; } }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 48px; padding-top: 50px; } .legal-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
@media (max-width: 620px) {
  header { padding-inline: 5vw; }
  .logo { gap: 7px; font-size: 12px; letter-spacing: .16em; }
  .logo img { width: 28px; height: 28px; }
  .nav-cta { padding: 10px 14px; font-size: 10px; letter-spacing: .12em; }
  .burger { font-size: 11px; letter-spacing: .14em; }
  .page-index .hero h1 { font-size: clamp(27px, 7.7vw, 46px); line-height: 1.15; }
  .page-index .hero-sub { max-width: 340px; margin-top: 26px; font-size: 10px; letter-spacing: .16em; }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .tiers .wrap { padding-inline: 6vw; }
  .tier { min-height: 570px; padding: 30px 26px; }
  .tier-copy { grid-template-rows: 54px 44px 96px 20px 48px; }
  .tier .tier-copy h3 { font-size: 26px; }
  .legal-toc { grid-template-columns: 1fr; }
  .project-name { font-size: 20px; }
  .foot-list a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } header, .project-preview img { transition: none; } .hero .line span { transform: none; } }
