/* Altalus: industrial engineering with an editorial technology-company presence. */
:root {
  --hero-light: #164969;
  --control-light: linear-gradient(180deg, rgb(10 32 54 / 0.08), rgb(10 32 54 / 0.025));
  --control-dark: linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.035));
  --row-hover: rgb(255 255 255 / 0.32);
}
.glass-site { background-attachment: scroll; }
.glass-site .section { padding-block: clamp(3.5rem, 6.5vw, 6rem); }
.glass-site .section + .section:not(.stage):not(.section--cta) { padding-top: clamp(1.5rem, 3vw, 3rem); }
.hero3d__stage { background: radial-gradient(ellipse at 73% 47%, var(--hero-light), var(--hero-2) 50%, var(--hero-3) 85%); }
.hero3d__stage::after { background: linear-gradient(90deg, rgb(6 22 38 / 0.94), rgb(6 22 38 / 0.76) 30%, rgb(6 22 38 / 0.05) 60%, transparent); }
.hero3d h1 { font-weight: 640; font-size: clamp(2.6rem, 4.2vw, 4rem); letter-spacing: -0.045em; line-height: 1.07; max-width: 15ch; }
.hero3d__copy { max-width: min(44%, 34rem); animation: hero-enter 850ms var(--ease-out) both; }
.hero3d .lead { font-size: clamp(1.04rem, 1.15vw, 1.14rem); max-width: 35ch; }
.hero3d .hero__actions .btn { font-size: 0.92rem; padding: 0.85rem 1.15rem; min-height: 3.2rem; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 1; transform: none; transition: none; }
.js .reveal.is-in { animation: content-enter var(--dur-reveal) var(--ease-out); }
@keyframes content-enter { from { opacity: 0.65; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-index { max-width: 54rem; }
.hero-index a { font-size: 0.78rem; }
.activity-icon { display: inline-flex; width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; color: var(--brand); }
.activity-icon svg { width: 100%; height: 100%; }
.hero-index .activity-icon { color: var(--accent); }
.statement { box-shadow: var(--shadow-sm); border-radius: var(--radius-md); }
.statement__text { font-weight: 470; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.section-head h2 { font-weight: 600; letter-spacing: -0.035em; }

/* Four disciplines and workstreams always fill complete rows. */
.discipline-list { border-top: 1px solid var(--border-strong); }
.discipline-row { display: grid; grid-template-columns: 2rem minmax(0, 0.92fr) minmax(0, 1.08fr) 1.2rem; align-items: start; gap: var(--space-5); padding: clamp(1.5rem, 3.5vw, 2.5rem) 0; border-bottom: 1px solid var(--border-strong); text-decoration: none; color: var(--fg); transition: background-color var(--dur-fast) var(--ease-out); }
.discipline-row__number { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--brand); padding-top: 0.45rem; }
.discipline-row--activity { grid-template-columns: 5.5rem minmax(0, 0.92fr) minmax(0, 1.08fr) 1.2rem; align-items: center; }
.activity-mark { position: relative; display: block; flex: 0 0 auto; width: 5.5rem; height: 5.5rem; overflow: hidden; border-radius: 1.35rem; border: 1px solid rgb(255 255 255 / 0.7); color: var(--brand); background: linear-gradient(135deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.08)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 8px 24px rgb(13 59 86 / 0.04); }
.activity-mark svg { position: absolute; width: 8.75rem; height: 8.75rem; max-width: none; max-height: none; top: -0.5rem; left: -0.125rem; opacity: 0.75; stroke-width: 1.25; }
.activity-mark--small { width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; margin-bottom: var(--space-3); }
.activity-mark--small svg { width: 3.25rem; height: 3.25rem; top: -0.125rem; left: -0.125rem; stroke-width: 1.3; }
.mega__links .activity-mark { color: var(--brand); }
.discipline-row h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.25; font-weight: 560; margin: 0; max-width: 23ch; letter-spacing: -0.025em; }
.discipline-row p { color: var(--fg-muted); max-width: 44ch; line-height: 1.65; margin: 0; font-size: var(--step-0); }
.discipline-row > .arrow { align-self: center; color: var(--brand); transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.discipline-row:hover { background: var(--row-hover); color: var(--fg); } a.discipline-row:hover > .arrow { transform: translateX(4px); } }
.cap__body { background: var(--glass-bg); box-shadow: var(--shadow-sm); border-radius: var(--radius-md); }
.cap__text { font-size: var(--step-0); }
.cap__scope { display: grid; gap: 0; margin-block: var(--space-6); border-top: 1px solid var(--border-strong); }
.cap__scope li { padding-block: var(--space-3); border-bottom: 1px solid var(--border-strong); display: flex; align-items: baseline; gap: var(--space-3); font-size: 0.94rem; }
.cap__scope li::before { content: ''; width: 0.3rem; height: 0.3rem; flex: 0 0 auto; background: var(--accent); border-radius: 50%; }
.keypoint { margin-top: var(--space-5); border-top: 0; padding-top: 0; }
.keypoint__label { font-size: 0.7rem; }
.process-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.process { --marker-size: 0.625rem; --number-width: 2rem; --rail-gap: var(--space-5); grid-template-columns: 1fr; gap: 0; }
.process li { display: grid; grid-template-columns: var(--number-width) var(--marker-size) minmax(0, 1fr); align-items: center; gap: var(--rail-gap); min-height: 4.75rem; padding-block: var(--space-4); min-width: 0; }
.process__dot { width: var(--marker-size); height: var(--marker-size); }
.process li::after { left: calc(var(--number-width) + var(--rail-gap) + var(--marker-size) / 2); right: auto; top: calc(50% + var(--marker-size) / 2 + 0.35rem); bottom: calc(-50% + var(--marker-size) / 2 + 0.35rem); width: 1px; height: auto; transform: translateX(-50%); }
.process li:last-child::after { display: none; }
.process b { font-weight: 500; }
.lifecycle { --cycle-label-bg: rgb(232 244 249 / 0.9); --cycle-label-stroke: rgb(255 255 255 / 0.7); width: 100%; max-width: 31rem; margin: 0 auto; color: var(--fg); background: radial-gradient(ellipse, rgb(59 203 187 / 0.045), transparent 68%); }
.lifecycle h3 { font-size: 1.05rem; font-weight: 500; text-align: center; margin-bottom: var(--space-4); }
.lifecycle svg { width: 100%; height: auto; display: block; overflow: visible; }
.lifecycle__ribbon { stroke: var(--brand); opacity: 0.075; }
.lifecycle__edge { opacity: 0.65; }
.lifecycle__flow { stroke: var(--accent); opacity: 0.75; stroke-dasharray: 65 935; animation: lifecycle-flow 24s linear infinite; }
.lifecycle__labels rect { fill: var(--cycle-label-bg); stroke: var(--cycle-label-stroke); stroke-width: 1; }
.lifecycle__labels text { fill: currentColor; font-family: var(--font-sans); font-size: 15px; font-weight: 500; opacity: 0.85; }
.lifecycle figcaption { text-align: center; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.stage .lifecycle { --cycle-label-bg: rgb(13 48 73 / 0.9); --cycle-label-stroke: rgb(160 223 237 / 0.15); color: var(--fg-inverse); }
.stage .lifecycle__ribbon { stroke: var(--accent); opacity: 0.075; }
@keyframes lifecycle-flow { to { stroke-dashoffset: -1000; } }
.delivery-aside { display: grid; align-content: start; gap: var(--space-7); }
.delivery-aside .lifecycle__labels text { font-size: 17px; }
.delivery-aside .aside-note { position: static; }
@media (min-width: 62rem) and (min-height: 50rem) { .delivery-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.steps-v h3 { font-weight: 550; }
.logo-plate { box-shadow: none; }
.glass-site .cta { background: radial-gradient(ellipse at 90% 0, var(--hero-1), var(--hero-2) 70%); }
.cta h2 { font-weight: 580; letter-spacing: -0.035em; }

/* A circular glass control follows the pill-shaped banner and language selector. */
.glass-site .nav-toggle { flex: 0 0 2.9rem; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--control-light); border-color: var(--border-strong); box-shadow: inset 0 1px 0 var(--glass-bd); padding: 0; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.glass-site .site-header[data-over="dark"] .nav-toggle { background: var(--control-dark); border-color: var(--glass-dark-bd); }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__menu { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav__summary { display: none; }
.mega--technologies { width: min(56rem, calc(100vw - 4rem)); grid-template-columns: 0.8fr 1.2fr; gap: var(--space-5); padding: var(--space-5); }
.glass-site .mega--technologies { background: var(--surface); box-shadow: var(--shadow-lg); }
.mega__intro { padding: var(--space-4); border-right: 1px solid var(--border-strong); }
.mega__intro h2 { font-size: 1.55rem; max-width: 17ch; font-weight: 560; margin-bottom: var(--space-4); }
.mega__intro > p:last-of-type { font-size: 0.88rem; color: var(--fg-muted); max-width: 29ch; }
.mega__intro .eyebrow { font-size: 0.65rem; }
.mega__intro a.mega__all { display: inline-flex; align-items: center; gap: var(--space-3); padding: 0; margin-top: var(--space-4); color: var(--brand); font-size: 0.8rem; }
.mega__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.nav .mega__links a { padding: var(--space-4); border-radius: 0.6rem; }
.nav .mega__links a:focus-visible { background: var(--brand-soft); color: var(--brand-strong); }
.mega__links .mega__n { font-size: 0.65rem; color: var(--brand); margin-bottom: var(--space-2); }
.mega__links a strong { font-size: 0.96rem; font-weight: 580; line-height: 1.35; margin-bottom: var(--space-2); }
.mega__links a > span:last-child { font-size: 0.79rem; font-weight: 400; line-height: 1.55; }
@media (max-width: 72rem) {
  .mega--technologies { grid-template-columns: 1fr; width: auto; padding: 0; gap: var(--space-4); }
  .mega__intro { border-right: 0; border-bottom: 1px solid var(--border-strong); padding: var(--space-4); }
  .mega__intro h2 { max-width: none; font-size: 1.25rem; }
  .mega__intro > p:last-of-type { max-width: 40ch; }
  .mega__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__item:not(.has-menu) .nav__link { display: grid; gap: var(--space-2); white-space: normal; border-radius: var(--radius-md); }
  .nav__summary { display: block; font-size: 0.8rem; color: var(--fg-muted); font-weight: 400; line-height: 1.5; }
  .glass-site .nav { max-height: calc(100svh - 6rem); background: var(--surface); overflow-x: hidden; }
}
@media (max-width: 60rem) {
  .hero3d__copy { max-width: 36rem; }
  .hero3d h1 { font-size: clamp(2.5rem, 6vw, 3.55rem); max-width: 17ch; }
  .hero3d__stage::after { background: linear-gradient(to bottom, rgb(6 22 38 / 0.7), rgb(6 22 38 / 0.55) 35%, transparent 56%); }
  .discipline-row { grid-template-columns: 1.5rem minmax(0, 1fr) 1rem; column-gap: var(--space-4); row-gap: var(--space-3); }
  .discipline-row--activity { grid-template-columns: 4rem minmax(0, 1fr) 1rem; align-items: start; }
  .discipline-row--activity .activity-mark { width: 4rem; height: 4rem; border-radius: 1rem; grid-row: 1 / 3; }
  .discipline-row--activity .activity-mark svg { width: 6.375rem; height: 6.375rem; top: -0.375rem; left: -0.125rem; }
  .discipline-row h3 { max-width: none; }
  .discipline-row p { grid-column: 2; max-width: 55ch; }
  .discipline-row > .arrow { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 44rem) { .process-layout { grid-template-columns: 1fr; gap: var(--space-7); } .lifecycle { max-width: 23rem; } }
@media (max-width: 40rem) {
  .nav__end { display: grid; grid-template-columns: 1fr; justify-items: start; gap: var(--space-4); }
  .nav__end .btn { width: 100%; max-width: 100%; white-space: normal; margin: 0; }
  .hero3d h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .mega__links { grid-template-columns: 1fr; }
  .nav .mega__links a { padding: var(--space-3) var(--space-4); }
}
@media (prefers-reduced-motion: reduce) { .hero3d__copy, .js .reveal.is-in { animation: none; } }
@media (prefers-reduced-motion: reduce) { .lifecycle__flow { animation: none; } }
