﻿:root {
    --bg: #071313;
    --panel: #0d2020;
    --line: #d6a533;
    --line2: #89a9a9;
    --text: #f4f0e7;
    --muted: #91a3a3;
    --glow: rgba(214,165,51,.28);
    color-scheme: dark;
  }

  html[data-theme="light"] {
    --bg: #f4f4f4;
    --panel: #ffffff;
    --line: #013f7d;
    --line2: #b8860b;
    --text: #333333;
    --muted: #6c757d;
    --glow: rgba(1,63,125,.16);
    color-scheme: light;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background:
      radial-gradient(circle at 15% 10%, rgba(214,165,51,.15), transparent 28rem),
      radial-gradient(circle at 80% 35%, rgba(137,169,169,.12), transparent 30rem),
      var(--bg);
    color: var(--text);
    overflow-x: hidden;
  }
  html[data-theme="light"] body {
    background:
      radial-gradient(circle at 15% 10%, rgba(45,45,45,.14), transparent 28rem),
      radial-gradient(circle at 80% 35%, rgba(1,63,125,.1), transparent 30rem),
      linear-gradient(to bottom, #faf9f5 0%, #f4f4f4 42%, #f0f0f0 100%);
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 5rem) 7vw 7.5rem;
    position: relative;
  }
  .brand { text-align: center; transform: translateY(-3.5rem); }
  .brand h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: .12em;
    margin: 0;
    color: var(--line);
    font-weight: 800;
    line-height: .9;
	text-shadow: -4px 1px 1px black;
  }
  html[data-theme="light"] .brand h1 {
    text-shadow: 0 2px 0 rgba(255,255,255,.9), 0 14px 34px rgba(1,63,125,.14);
  }
  .brand p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: .35em;
    text-transform: uppercase;
  }
  html[data-theme="light"] .hero-eyebrow {
    color: #013f7d !important;
  }
  .brand img {
    height: 150px;
    /* margin-bottom: 1rem; */
    filter: drop-shadow(0 0 24px rgba(214,165,51,.3));
    animation: logoGlow 3s ease-in-out infinite;
  }
  html[data-theme="light"] .brand img {
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.32));
    animation-name: logoGlowLight;
  }
  .hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.75rem;
  }
  .hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .8rem 1.1rem;
    border: 1px solid rgba(214,165,51,.38);
    border-radius: 999px;
    background: rgba(13,32,32,.72);
    color: var(--text);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font: inherit;
    box-shadow: 0 12px 34px rgba(0,0,0,.25);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
  }
  .hero-action.theme-action {
    cursor: pointer;
  }
  html[data-theme="light"] .hero-action {
    background: rgba(255,255,255,.86);
    border-color: rgba(1,63,125,.18);
    box-shadow: 0 12px 34px rgba(20,20,20,.08);
  }
  html[data-theme="light"] .hero-action:hover,
  html[data-theme="light"] .hero-action.primary {
    background: #fdf4dc;
    border-color: rgba(184,134,11,.5);
  }
  .hero-action:hover {
    transform: translateY(-3px);
    border-color: var(--line);
    background: rgba(214,165,51,.12);
  }
  .hero-action.primary {
    background: rgba(214,165,51,.18);
    border-color: rgba(214,165,51,.62);
  }
  .hero-action i {
    color: var(--line);
    font-size: 1rem;
    line-height: 1;
  }
  .scroll-hint {
    bottom: 1rem;
    gap: .45rem;
    overflow: hidden;
    width: min(92vw, 520px);
  }
  .scroll-hint .hero-eyebrow-2 {
    margin: 0 0 .55rem;
    color: rgba(244,240,231,.78) !important;
    font-size: clamp(.72rem, 1.3vw, .95rem) !important;
    letter-spacing: .12em !important;
    line-height: 1.2;
    white-space: nowrap;
    animation: fadeRight 5s ease both infinite !important;
  }
  @keyframes logoGlow {
    0%,100% { filter: drop-shadow(0 0 16px rgba(214,165,51,.25)); }
    50%      { filter: drop-shadow(0 0 40px rgba(214,165,51,.55)); }
  }
  @keyframes logoGlowLight {
    0%,100% { filter: drop-shadow(0 12px 22px rgba(0,0,0,.28)); }
    50%      { filter: drop-shadow(0 18px 32px rgba(0,0,0,.38)); }
  }
  .scroll-cue {
    position: absolute;
    bottom: 1rem; left: 50%;
    transform: translateX(-50%);
    color: var(--line2);
    font-size: .75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
  }
  .scroll-cue::after {
    content: "";
    display: block;
    width: 2px; 
	height: 5.5rem;
    background: linear-gradient(var(--line), transparent);
    margin: .8rem auto 0;
    animation: drop 1.8s infinite;
  }
  @keyframes drop {
    0%   { transform: scaleY(.15); opacity: .25; }
    50%  { transform: scaleY(1);   opacity: 1;   }
    100% { transform: scaleY(.15); opacity: .25; }
  }

  /* WORKFLOW */
  .workflow {
    width: min(1180px, 94vw);
    margin: 0 auto;
    padding: 0;
    position: relative;
  }
  .track {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(transparent, var(--line), var(--line2), transparent);
    opacity: .45;
  }

  /* STEP */
  .step {
    min-height: clamp(520px, 62vh, 680px);
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    align-items: center;
    gap: 2rem;
    opacity: .2;
    transform: translateY(80px) scale(.96);
    transition: opacity .9s ease, transform .9s ease;
  }
  .step.visible { opacity: 1; transform: translateY(0) scale(1); }
  .step:nth-child(even) .card  { grid-column: 3; }
  .step:nth-child(even) .stage { grid-column: 1; grid-row: 1; }

  .node {
    grid-column: 2;
    width: 90px; 
	height: 90px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg);
    box-shadow: 0 0 35px var(--glow);
    z-index: 2;
	cursor: pointer;
  }

  .node i {
    color: var(--line);
    font-size: 30px;
    line-height: 1;
    transform-style: preserve-3d;
  }
  .node:hover i {
    animation: nodeIconSpinY .75s ease-in-out;
  }
  @keyframes nodeIconSpinY {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
  }

  /* CARD */
  .card, .stage {
    min-height: 320px;
    border: 1px solid rgba(214,165,51,.28);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(13,32,32,.92), rgba(10,21,21,.75));
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  }
  html[data-theme="light"] .card,
  html[data-theme="light"] .stage,
  html[data-theme="light"] .fin-card,
  html[data-theme="light"] .tech-card,
  html[data-theme="light"] .contact-panel {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,247,243,.88));
    border-color: rgba(1,63,125,.14);
    box-shadow: 0 18px 48px rgba(20,20,20,.08);
  }
  html[data-theme="light"] .card:hover,
  html[data-theme="light"] .stage:hover,
  html[data-theme="light"] .fin-card:hover,
  html[data-theme="light"] .tech-card:hover,
  html[data-theme="light"] .contact-panel:hover {
    border-color: var(--line);
    box-shadow: 0 24px 64px rgba(20,20,20,.11), 0 0 30px rgba(1,63,125,.08);
  }
  .card:hover, .stage:hover {
    transform: translateY(-10px);
    border-color: var(--line);
    box-shadow: 0 35px 90px rgba(0,0,0,.4), 0 0 40px var(--glow);
  }
  .card {
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    counter-reset: cardLine;
  }
  .card h2 {
    margin: 0;
    color: var(--line);
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: .95;
  }
  .card .step-sub {
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
  }
  .card .step-desc {
    margin: 1rem 0 0;
    color: rgba(244,240,231,.65);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 50ch;
    border-left: 2px solid rgba(214,165,51,.3);
    padding-left: 1rem;
  }
  html[data-theme="light"] .card .step-desc,
  html[data-theme="light"] .card .card-text,
  html[data-theme="light"] .contact-copy p {
    color: #4D4D4D;
  }
  .card .card-text {
    margin: .6rem 0 0;
    color: rgba(244,240,231,.65);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 50ch;
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    border-left: 0;
    padding-left: 0;
    opacity: 0;
    transform: translateX(42px);
  }
  .card .card-text::before {
    content: counter(cardLine);
    counter-increment: cardLine;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 1.65rem;
    background: rgba(214,165,51,.15);
    border: 1px solid rgba(214,165,51,.5);
    color: var(--line);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 18px rgba(214,165,51,.12);
    margin-top: .05rem;
  }
  .step.visible .card .card-text {
    animation: cardTextSlide 1.5s ease forwards;
  }
  .step.visible .card .card-text:nth-of-type(2) { animation-delay: .10s; }
  .step.visible .card .card-text:nth-of-type(3) { animation-delay: .80s; }
  .step.visible .card .card-text:nth-of-type(4) { animation-delay: 1.60s; }
  @keyframes cardTextSlide {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* ARRIVAL MODAL */
  .arrival-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7,19,19,.78);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  html[data-theme="light"] .arrival-overlay {
    background: rgba(0,0,0,.7);
  }
  .arrival-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  .arrival-modal {
    width: min(820px, 94vw);
    border: 1px solid rgba(214,165,51,.38);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(13,32,32,.98), rgba(7,19,19,.96));
    box-shadow: 0 48px 120px rgba(0,0,0,.65), 0 0 70px rgba(214,165,51,.07);
    overflow: hidden;
    padding: 2.5rem 0 1.5rem;
    position: relative;
    transform: translateY(64px) scale(.95);
    transition: transform .5s cubic-bezier(.16,1,.3,1);
  }
  html[data-theme="light"] .arrival-modal {
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(240,238,230,.96));
    box-shadow: 0 38px 100px rgba(20,20,20,.18), 0 0 70px rgba(1,63,125,.06);
	border: 1px solid gray !important;
  }
  html[data-theme="light"] .arrival-modal-close,
  html[data-theme="light"] .am-icon-wrap,
  html[data-theme="light"] .node {
    background: #ffffff;
  }
  html[data-theme="light"] .arrival-modal-close:hover {
    background: rgba(1,63,125,.08);
  }
  .arrival-overlay.open .arrival-modal {
    transform: translateY(0) scale(1);
  }
  .am-header {
    padding: 0 2.5rem 2rem;
    position: relative;
  }
  .arrival-modal-close {
    position: absolute;
    top: 0; right: 2rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(214,165,51,.28);
    background: rgba(7,19,19,.85);
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color .2s, color .2s, background .2s;
    z-index: 2;
  }
  .arrival-modal-close:hover {
    border-color: var(--line);
    color: var(--line);
    background: rgba(214,165,51,.1);
  }
  .arrival-modal-eyebrow {
    font-size: .7rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--line2);
    margin: 0 0 .5rem;
  }
  .arrival-modal-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--line);
    margin: 0 0 .4rem;
    line-height: .95;
  }
  .arrival-modal-sub {
    color: var(--muted);
    font-size: .88rem;
    margin: 0;
    line-height: 1.55;
    max-width: 44ch;
  }

  /* Horizontal step track */
  .am-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto;
    touch-action: pan-x;
    will-change: scroll-position;
  }
  .am-track::-webkit-scrollbar { display: none; }
  .am-track.am-scrolling {
    scroll-snap-type: none;
  }

  .am-nav {
    position: absolute;
    top: 58%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(214,165,51,.18);
    border-radius: 50%;
    background: rgba(7,19,19,.34);
    color: rgba(244,240,231,.42);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: .46;
    transform: translateY(-50%);
    transition: opacity .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
  }
  .am-nav:hover,
  .am-nav:focus-visible {
    opacity: .9;
    color: var(--line);
    border-color: rgba(214,165,51,.5);
    background: rgba(214,165,51,.1);
    outline: none;
  }
  .am-nav:disabled {
    opacity: .14;
    cursor: default;
    pointer-events: none;
  }
  .am-nav i {
    font-size: 1.6rem;
    line-height: 1;
  }
  .am-prev { left: .9rem; }
  .am-next { right: .9rem; }

  .am-step {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.2rem;
    padding: 2rem 3.5rem 2.2rem;
    min-height: 310px;
    opacity: 0;
    transform: translateX(52px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .am-step.am-visible {
    opacity: 1;
    transform: translateX(0);
  }
  .am-icon-wrap {
    width: 90px; height: 90px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 35px var(--glow);
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
  }
  .am-icon-wrap i {
    color: var(--line);
    font-size: 30px;
    line-height: 1;
  }
  .am-step-num {
    position: absolute;
    top: -8px; right: -8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--line);
    color: var(--bg);
    font-size: .62rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 12px rgba(214,165,51,.5);
  }
  .am-step h4 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
  }
  .am-step p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
    max-width: 32ch;
  }

  /* Progress dots */
  .am-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .7rem;
    padding: .9rem 0 .5rem;
  }
  .am-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(214,165,51,.2);
    border: 1px solid rgba(214,165,51,.38);
    transition: background .35s, transform .35s, box-shadow .35s;
    cursor: pointer;
  }
  .am-dot.am-active {
    background: var(--line);
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(214,165,51,.5);
  }
  /* scroll hint */
  .am-scroll-hint {
    text-align: center;
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 .2rem;
    animation: am-hint-pulse 2.4s ease-in-out infinite;
  }
  @keyframes am-hint-pulse {
    0%,100% { opacity: .3; }
    50%      { opacity: .7; }
  }
  /* all step cards, nodes + stages are clickable */
  .step .card, .step .stage { cursor: pointer; }
  .step .card:active, .step .node:active { transform: translateY(-8px) scale(.98); }
  #financials .section-heading, #labour .section-heading {
    cursor: pointer;
    transition: opacity .2s;
  }
  #financials .section-heading:hover, #labour .section-heading:hover { opacity: .75; }

  /* STAGE / MORPH */
  .stage {
    padding: 2rem;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
  }
  .dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(214,165,51,.18) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(circle, black, transparent 70%);
  }
  .line-art {
    position: absolute;
    inset: auto 12% 12% 12%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
    opacity: .55;
  }

  /* Morph container */
  .morph-wrap {
    position: relative;
    width: min(280px, 90%);
    aspect-ratio: 1 / 1;
  }
  .morph-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease;
    filter: drop-shadow(0 0 18px rgba(137,169,169,.3));
  }
  .morph-img.a {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  .morph-img.b {
    opacity: 0;
    transform: scale(.10) rotate(0deg);
    filter: drop-shadow(0 0 28px rgba(214,165,51,.4));
  }
  html[data-theme="light"] .morph-img {
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.22));
  }
  html[data-theme="light"] .morph-img.b {
    filter: drop-shadow(0 14px 26px rgba(1,63,125,.2));
  }
  /* When swapped */
  .morph-wrap.swapped .morph-img.a {
    opacity: 0;
    transform: scale(.10) rotate(0deg);
  }
  .morph-wrap.swapped .morph-img.b {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  /* Pulse ring behind icons */
  .morph-ring {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 1px solid rgba(214,165,51,.18);
    animation: ringPulse 3s ease-in-out infinite;
  }
  .morph-ring:nth-child(2) { inset: 20%; animation-delay: .5s; opacity: .6; }
  .morph-ring:nth-child(3) { inset: 30%; animation-delay: 1s;  opacity: .3; }
  @keyframes ringPulse {
    0%,100% { transform: scale(1);   opacity: .25; }
    50%      { transform: scale(1.06); opacity: .55; }
  }

  /*
     FINANCIAL SECTION
  */
  .fin-section {
    width: min(1180px, 94vw);
    margin: 0 auto;
    padding: 8rem 0 6rem;
  }
  .section-eyebrow {
    text-align: center;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--line2);
    margin-bottom: .8rem;
  }
  .section-heading {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--line);
    margin: 0 0 .6rem;
  }
  .section-sub {
    text-align: center;
    font-size: .95rem;
    color: var(--muted);
    margin: 0 auto 4rem;
    max-width: 44ch;
    line-height: 1.6;
  }
  .section-intro-card {
    width: min(760px, 100%);
    margin: 0 auto 4rem;
    padding: 2rem clamp(1.4rem, 4vw, 3rem);
    border: 1px solid rgba(214,165,51,.22);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(13,32,32,.9), rgba(10,21,21,.72));
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
    cursor: pointer;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .section-intro-card:hover,
  .section-intro-card:focus-visible {
    transform: translateY(-6px);
    border-color: var(--line);
    box-shadow: 0 28px 76px rgba(0,0,0,.34), 0 0 32px var(--glow);
    outline: none;
  }
  .section-intro-card .section-sub {
    margin-bottom: 0;
  }
  html[data-theme="light"] .section-intro-card {
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,247,243,.9));
    border-color: rgba(1,63,125,.14);
    box-shadow: 0 18px 48px rgba(20,20,20,.08);
  }
  html[data-theme="light"] .section-intro-card:hover,
  html[data-theme="light"] .section-intro-card:focus-visible {
    border-color: var(--line);
    box-shadow: 0 24px 64px rgba(20,20,20,.11), 0 0 30px rgba(1,63,125,.08);
  }

  /* Fin grid */
  .fin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
  }
  .fin-card {
    border: 1px solid rgba(214,165,51,.22);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(13,32,32,.95), rgba(10,21,21,.8));
    backdrop-filter: blur(14px);
    padding: 2rem 2.2rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s ease, transform .8s ease, border-color .3s, box-shadow .3s;
    cursor: pointer;
  }
  .fin-card.visible { opacity: 1; transform: translateY(0); }
  .fin-card:hover {
    border-color: var(--line);
    box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 36px var(--glow);
  }
  .fin-card.wide { grid-column: 1 / -1; }

  .fin-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(214,165,51,.1) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(ellipse at top right, black, transparent 65%);
    pointer-events: none;
  }

  .fin-label {
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--line2);
    margin-bottom: .5rem;
  }
  .fin-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.6rem;
  }

  /* P&L animated bars */
  .pl-rows { display: flex; flex-direction: column; gap: .75rem; }
  .pl-row { display: flex; flex-direction: column; gap: .3rem; }
  .pl-row-header { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
  .pl-row-header span:last-child { color: var(--text); font-weight: 600; }
  .pl-bar-track {
    height: 6px; border-radius: 3px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
  }
  html[data-theme="light"] .pl-bar-track,
  html[data-theme="light"] .tech-bar-track,
  html[data-theme="light"] .gantt-track {
    background: rgba(1,63,125,.07);
  }
  .pl-bar-fill {
    height: 100%; border-radius: 3px;
    width: 0%;
    transition: width 1.4s cubic-bezier(.16,1,.3,1);
  }
  .pl-bar-fill.revenue  { background: linear-gradient(90deg, #d6a533, #f5c842); }
  .pl-bar-fill.cogs     { background: linear-gradient(90deg, #89a9a9, #a8c5c5); }
  .pl-bar-fill.gross    { background: linear-gradient(90deg, #4a6446, #6ab865); }
  .pl-bar-fill.expense  { background: linear-gradient(90deg, #89a9a9, #6f8f8f); }
  .pl-bar-fill.net      { background: linear-gradient(90deg, #d6a533, #f0e040); box-shadow: 0 0 12px rgba(214,165,51,.5); }

  .pl-divider { height: 1px; background: rgba(255,255,255,.07); margin: .4rem 0; }
  html[data-theme="light"] .pl-divider,
  html[data-theme="light"] .cf-zero {
    background: rgba(1,63,125,.1);
    stroke: rgba(1,63,125,.1);
  }

  /* Balance sheet */
  .bs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .bs-col-title { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--line); margin-bottom: 1rem; }
  .bs-rows { display: flex; flex-direction: column; gap: .5rem; }
  .bs-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem .8rem;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    font-size: .82rem;
    opacity: 0; transform: translateX(-12px);
    transition: opacity .5s ease, transform .5s ease;
  }
  html[data-theme="light"] .bs-row,
  html[data-theme="light"] .timer-cell {
    background: rgba(255,255,255,.74);
    border-color: #e0e0e0;
  }
  .bs-row.right-in { transform: translateX(12px); }
  .bs-row.visible  { opacity: 1; transform: translateX(0); }
  .bs-row-val { font-weight: 700; color: var(--line); }
  .bs-row-val.neg { color: #89a9a9; }
  .bs-total {
    display: flex; justify-content: space-between;
    padding: .6rem .8rem 0;
    border-top: 1px solid rgba(214,165,51,.25);
    font-size: .88rem; font-weight: 700; color: var(--text);
    margin-top: .3rem;
  }
  .bs-total span:last-child { color: var(--line); font-size: 1rem; }

  /* Cashflow sparkline */
  .cf-wrap { position: relative; height: 140px; margin-top: .5rem; }
  .cf-svg { width: 100%; height: 100%; overflow: visible; }
  .cf-area { fill: url(#cfGrad); opacity: .35; }
  .cf-line { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset 2s cubic-bezier(.16,1,.3,1); }
  .cf-line.drawn { stroke-dashoffset: 0; }
  .cf-dot { fill: var(--line); filter: drop-shadow(0 0 6px var(--line)); }
  .cf-month { font-size: 9px; fill: var(--muted); text-anchor: middle; }
  .cf-zero  { stroke: rgba(255,255,255,.08); stroke-width: 1; }

  /* KPI row */
  .kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: .5rem;
  }
  .kpi-cell { text-align: center; }
  .kpi-val {
    font-size: 2rem; font-weight: 800; color: var(--line);
    line-height: 1;
    counter-reset: val var(--target);
  }
  .kpi-lbl { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
  .kpi-delta {
    font-size: .75rem; margin-top: .25rem;
    color: #6ab865;
  }
  .kpi-delta.neg { color: #e57373; }

  .accounting-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .accounting-flow-item {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    min-height: 92px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
  }
  .accounting-flow-item i {
    color: var(--line);
    font-size: 1.35rem;
    line-height: 1;
    flex: 0 0 auto;
    margin-top: .1rem;
  }
  html[data-theme="light"] .accounting-flow-item {
    background: rgba(255,255,255,.78);
    border-color: #dee2e6;
    color: #4D4D4D;
  }

  /*
     TECHNICIAN LABOUR SECTION
  */
  .labour-section {
    width: min(1180px, 94vw);
    margin: 0 auto;
    padding: 6rem 0 10rem;
  }

  .tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .tech-card {
    border: 1px solid rgba(137,169,169,.2);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(13,32,32,.95), rgba(10,21,21,.8));
    backdrop-filter: blur(14px);
    padding: 2rem 2.2rem;
    position: relative;
    overflow: hidden;
    opacity: 0; transform: translateY(36px);
    transition: opacity .8s ease, transform .8s ease, border-color .3s;
    cursor: pointer;
  }
  .tech-card.visible { opacity: 1; transform: translateY(0); }
  .tech-card:hover { border-color: var(--line2); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
  .tech-card.wide { grid-column: 1 / -1; }

  .tech-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(137,169,169,.1) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(ellipse at bottom left, black, transparent 65%);
    pointer-events: none;
  }

  /* Technician rows */
  .tech-rows { display: flex; flex-direction: column; gap: 1rem; }
  .tech-row {
    opacity: 0; transform: translateX(-16px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .tech-row.visible { opacity: 1; transform: translateX(0); }
  .tech-row-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .45rem; }
  .tech-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; flex-shrink: 0;
    border: 1.5px solid rgba(214,165,51,.4);
  }
  .tech-name { font-size: .88rem; font-weight: 600; color: var(--text); flex: 1; }
  .tech-hours { font-size: .8rem; color: var(--line); font-weight: 700; }
  .tech-util  { font-size: .72rem; color: var(--muted); }

  .tech-bar-track {
    height: 8px; border-radius: 4px;
    background: rgba(255,255,255,.06);
    overflow: hidden; position: relative;
  }
  .tech-bar-fill {
    height: 100%; border-radius: 4px;
    width: 0%;
    transition: width 1.4s cubic-bezier(.16,1,.3,1);
    position: relative;
  }
  .tech-bar-fill::after {
    content: '';
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 20px;
    background: rgba(255,255,255,.25);
    border-radius: 4px;
    filter: blur(4px);
  }

  /* Gantt / timeline */
  .gantt-wrap { overflow-x: auto; }
  .gantt { min-width: 600px; }
  .gantt-header {
    display: grid;
    padding-left: 110px;
    grid-template-columns: repeat(9, 1fr);
    margin-bottom: .5rem;
  }
  .gantt-hour { font-size: .65rem; color: var(--muted); text-align: center; letter-spacing: .06em; }
  .gantt-row {
    display: flex; align-items: center;
    gap: .75rem; margin-bottom: .6rem;
    opacity: 0; transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .gantt-row.visible { opacity: 1; transform: translateY(0); }
  .gantt-name { width: 100px; font-size: .78rem; color: var(--muted); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gantt-track {
    flex: 1; height: 28px; border-radius: 6px;
    background: rgba(255,255,255,.04);
    position: relative; overflow: hidden;
  }
  .gantt-block {
    position: absolute; top: 4px; height: 20px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 700; letter-spacing: .06em;
    white-space: nowrap; overflow: hidden;
    width: 0%; transition: width 1.2s cubic-bezier(.16,1,.3,1);
    color: rgba(0,0,0,.7);
  }

  /* Timer / clock widget */
  .timer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .timer-cell {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px; padding: 1.2rem 1rem;
    text-align: center;
    opacity: 0; transform: scale(.92);
    transition: opacity .5s ease, transform .5s ease;
  }
  .timer-cell.visible { opacity: 1 !important; transform: scale(1) !important; }
  .timer-clock {
    font-size: 2rem; font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    color: var(--line);
    line-height: 1;
    margin-bottom: .3rem;
  }
  .timer-clock.teal { color: var(--line2); }
  .timer-clock.green { color: #6ab865; }
  .timer-name { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .timer-job  {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    font-size: .78rem;
    color: rgba(244,240,231,.5);
    margin-top: .2rem;
  }
  .timer-job span:last-child {
    color: var(--line2);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
  }
  html[data-theme="light"] .timer-job { color: #6c757d; }

  /* Efficiency donut */
  .donut-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 2rem; flex-wrap: wrap; margin-top: .5rem;
  }
  .donut-svg { width: 140px; height: 140px; flex-shrink: 0; }
  .donut-bg  { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 14; }
  html[data-theme="light"] .donut-bg { stroke: rgba(1,63,125,.1); }
  .donut-fill {
    fill: none; stroke: var(--line); stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 352;
    stroke-dashoffset: 352;
    transition: stroke-dashoffset 1.8s cubic-bezier(.16,1,.3,1);
    transform: rotate(-90deg); transform-origin: 50% 50%;
  }
  .donut-fill.teal  { stroke: var(--line2); }
  .donut-fill.green { stroke: #6ab865; }
  .donut-label { text-anchor: middle; dominant-baseline: middle; }
  .donut-pct   { font-size: 22px; font-weight: 800; fill: var(--text); }
  .donut-sub   { font-size: 9px; fill: var(--muted); }

  .donut-legend { display: flex; flex-direction: column; gap: .75rem; }
  .donut-legend-row { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
  .legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

  /* CONTACT */
  .contact-section {
    background: linear-gradient(to bottom, var(--bg), rgba(13,32,32,.9));
    padding: 2rem 0 9rem;
  }
  .contact-wrap {
    width: min(1180px, 94vw);
    margin: 0 auto;
  }
  .contact-panel {
    border: 1px solid rgba(214,165,51,.28);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(13,32,32,.95), rgba(10,21,21,.82));
    box-shadow: 0 30px 80px rgba(0,0,0,.32);
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s ease, transform .8s ease, border-color .3s, box-shadow .3s;
  }
  .contact-panel.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .contact-panel:hover {
    border-color: var(--line);
    box-shadow: 0 35px 90px rgba(0,0,0,.42), 0 0 36px var(--glow);
  }
  .contact-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(214,165,51,.1) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(ellipse at top right, black, transparent 66%);
    pointer-events: none;
  }
  .contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: center;
  }
  .contact-copy h2 {
    color: var(--line);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    margin: 0 0 1rem;
  }
  .contact-copy p {
    color: rgba(244,240,231,.68);
    line-height: 1.7;
    margin: 0;
    max-width: 54ch;
  }
  .contact-actions {
    display: grid;
    gap: .85rem;
  }
  .contact-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 58px;
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    color: var(--text);
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
  }
  html[data-theme="light"] .contact-link {
    background: rgba(255,255,255,.8);
    border-color: #dee2e6;
  }
  .contact-link:hover {
    border-color: var(--line);
    background: rgba(214,165,51,.08);
    transform: translateY(-2px);
  }
  .contact-link.primary {
    background: rgba(214,165,51,.14);
    border-color: rgba(214,165,51,.45);
  }
  .contact-link i {
    color: var(--line);
    font-size: 1.3rem;
    flex: 0 0 auto;
  }
  .contact-label {
    display: block;
    color: var(--line2);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: .15rem;
  }
  .contact-value {
    display: block;
    color: var(--text);
    font-weight: 700;
  }

  /* DOCK NAV */
  .dock {
    position: fixed;
    left: 50%; bottom: 1.2rem;
    transform: translateX(-50%);
    display: flex;
    gap: .6rem;
    padding: .7rem;
    border: 1px solid rgba(214,165,51,.28);
    border-radius: 999px;
    background: rgba(33,33,33,.8);
    backdrop-filter: blur(14px);
    z-index: 10;
  }
  .theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--line2);
    border: 1px solid transparent;
    background: transparent;
    transition: .25s ease;
    cursor: pointer;
    padding: 0;
  }
  .theme-toggle::before {
    content: none;
  }
  .theme-toggle i { font-size: 20px; line-height: 1; }
  .theme-toggle:hover {
    color: var(--line);
    border-color: var(--line);
    transform: translateY(-5px);
  }
  html[data-theme="light"] .dock {
    background: rgba(255,255,255,.86);
    border-color: rgba(1,63,125,.16);
    box-shadow: 0 12px 34px rgba(20,20,20,.1);
  }
  html[data-theme="light"] #financials,
  html[data-theme="light"] #labour,
  html[data-theme="light"] .contact-section {
    background: linear-gradient(to bottom, #f4f4f4, #f0f0f0) !important;
  }
  html[data-theme="light"] .scroll-hint .hero-eyebrow-2,
  html[data-theme="light"] .scroll-hint {
    color: #4D4D4D !important;
  }
  html[data-theme="light"] .scroll-dot {
    border-color: rgba(1,63,125,.22);
  }
  html[data-theme="light"] .scroll-dot::after {
    background: var(--line);
  }
  html[data-theme="light"] .morph-ring {
    border-color: rgba(1,63,125,.16);
  }
  html[data-theme="light"] .node,
  html[data-theme="light"] .am-icon-wrap {
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(1,63,125,.12);
  }
  html[data-theme="light"] .am-step-num {
    box-shadow: 0 6px 14px rgba(1,63,125,.22);
  }
  html[data-theme="light"] .fin-card,
  html[data-theme="light"] .tech-card,
  html[data-theme="light"] .contact-panel,
  html[data-theme="light"] .arrival-modal {
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,247,243,.9));
    border-color: rgba(1,63,125,.14);
    box-shadow: 0 18px 48px rgba(20,20,20,.08);
  }
  html[data-theme="light"] .am-nav {
    background: rgba(255,255,255,.52);
    border-color: rgba(1,63,125,.12);
    color: rgba(1,63,125,.38);
  }
  html[data-theme="light"] .am-nav:hover,
  html[data-theme="light"] .am-nav:focus-visible {
    color: var(--line);
    border-color: rgba(1,63,125,.32);
    background: rgba(1,63,125,.08);
  }
  html[data-theme="light"] .fin-dots,
  html[data-theme="light"] .tech-dots,
  html[data-theme="light"] .contact-dots,
  html[data-theme="light"] .dots {
    background-image: radial-gradient(rgba(1,63,125,.1) 1px, transparent 1px);
  }
  html[data-theme="light"] .bs-row,
  html[data-theme="light"] .timer-cell,
  html[data-theme="light"] .contact-link {
    background: rgba(255,255,255,.78);
    border-color: #dee2e6;
  }
  html[data-theme="light"] .card .card-text::before,
  html[data-theme="light"] .am-dot {
    background: rgba(1,63,125,.08);
    border-color: rgba(1,63,125,.32);
    color: var(--line);
  }
  html[data-theme="light"] .am-dot.am-active {
    background: var(--line);
    border-color: var(--line);
    box-shadow: 0 0 10px rgba(1,63,125,.28);
  }
  .dock a {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--line2);
    border: 1px solid transparent;
    transition: .25s ease;
    text-decoration: none;
  }
  .dock a:hover { color: var(--line); border-color: var(--line); transform: translateY(-5px); }
  .dock i { font-size: 21px; line-height: 1; }

  /* RESPONSIVE */
  @media (max-width: 800px) {
    body { padding-bottom: 7.5rem; }
    .workflow { padding: 4rem 0 0rem; }
    .track { left: 32px; }
    .step, .step:nth-child(even) {
      grid-template-columns: 64px 1fr;
      min-height: auto;
      gap: 1rem;
      margin: 0 0 4rem;
    }
    .node { grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 56px; }
    .card, .stage,
    .step:nth-child(even) .card,
    .step:nth-child(even) .stage { grid-column: 2; grid-row: auto; }
    .card, .stage { min-height: 230px; border-radius: 24px; }
    .card .step-desc, .card .card-text { max-width: 100%; }
    .hero-actions { margin-top: 1rem; }
    .hero-action { min-height: 42px; padding: .7rem .9rem; font-size: .7rem; }
    .am-nav {
      top: 60%;
      width: 36px;
      height: 36px;
    }
    .am-nav i {
      font-size: 1.35rem;
    }
    .am-prev { left: .45rem; }
    .am-next { right: .45rem; }
    .fin-section { padding: 5rem 0 4rem; }
    .labour-section { padding: 4rem 0 7rem; }
    .section-intro-card {
      margin-bottom: 1.5rem;
      padding: 1.5rem 1.2rem;
      border-radius: 22px;
    }
    .section-heading {
      font-size: clamp(1.8rem, 9vw, 2.5rem);
      line-height: 1.05;
    }
    .section-sub {
      max-width: 32rem;
      margin-bottom: 2rem;
    }
    .fin-grid,
    .tech-grid,
    .bs-cols,
    .timer-grid {
      grid-template-columns: 1fr;
    }
    .fin-grid,
    .tech-grid {
      gap: 1rem;
    }
    .fin-card,
    .tech-card {
      padding: 1.4rem 1rem;
      border-radius: 22px;
    }
    .fin-card.wide,
    .tech-card.wide {
      grid-column: auto;
    }
    .fin-title {
      font-size: 1.08rem;
      margin-bottom: 1.1rem;
    }
    .bs-cols {
      gap: 1rem;
    }
    .bs-row,
    .bs-total {
      gap: .75rem;
    }
    .kpi-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.25rem .8rem;
    }
    .kpi-val {
      font-size: 1.55rem;
    }
    .timer-grid {
      gap: .75rem;
    }
    .timer-cell {
      padding: 1rem;
    }
    .timer-clock {
      font-size: 1.6rem;
    }
    .tech-row-header {
      display: grid;
      grid-template-columns: 32px minmax(0, 1fr) auto;
      gap: .45rem .65rem;
    }
    .tech-util {
      grid-column: 2 / -1;
    }
    .gantt {
      min-width: 540px;
    }
    .donut-wrap {
      gap: 1.25rem;
    }
    .contact-section { padding: 1rem 0 9.5rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-panel { border-radius: 24px; }
    .accounting-flow { grid-template-columns: 1fr; }
    .accounting-flow-item { min-height: auto; }
    .dock {
      left: .75rem;
      right: .75rem;
      bottom: calc(.75rem + env(safe-area-inset-bottom));
      transform: none;
      max-width: none;
      display: flex;
      flex-wrap: wrap;
      overflow: visible;
      justify-content: center;
      gap: .38rem;
      padding: .5rem;
      border-radius: 22px;
    }
    .dock a {
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
    }
    .theme-toggle {
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
    }
    .dock a:hover { transform: none; }
    .theme-toggle:hover { transform: none; }
    .dock i { font-size: 19px; }
  }

  @media (max-width: 420px) {
    .fin-section,
    .labour-section {
      width: calc(100% - 1rem);
      max-width: 1180px;
    }
    .section-eyebrow,
    .fin-label,
    .kpi-lbl {
      letter-spacing: .14em;
    }
    .section-intro-card,
    .fin-card,
    .tech-card {
      padding-left: .85rem;
      padding-right: .85rem;
    }
    .pl-row-header,
    .bs-row,
    .bs-total {
      font-size: .76rem;
    }
    .kpi-row {
      grid-template-columns: 1fr;
    }
    .tech-row-header {
      grid-template-columns: 32px minmax(0, 1fr);
    }
    .tech-hours {
      grid-column: 2;
    }
    .dock {
      left: .5rem;
      right: .5rem;
      padding: .45rem;
      gap: .3rem;
    }
    .dock a {
      width: 38px;
      height: 38px;
      flex-basis: 38px;
    }
    .theme-toggle {
      width: 38px;
      height: 38px;
      flex-basis: 38px;
    }
    .dock i { font-size: 18px; }
  }

