/* ==========================================================================
   Powerflow Commodities — Design System
   Light, airy, brand teal #073334. Glass is reserved for the floating top bar;
   everything else is a solid surface with a soft shadow.
   ========================================================================== */

:root {
  --brand: #073334;

  --ink:   #062627;
  --ink-2: #3d5f5e;
  --ink-3: #74918f;

  --bg:      #dae7e5;
  --surface: #ffffff;
  --surface-2: #f4f8f8;

  --line:   rgba(7, 51, 52, 0.12);
  --line-2: rgba(7, 51, 52, 0.2);

  --buy:    #0a9d6e;
  --sell:   #d9483a;
  --sky:    #1f74c8;
  --violet: #6d4de0;
  --amber:  #b07d09;

  --accent: var(--brand);

  --shadow-sm: 0 1px 2px rgba(8, 41, 42, 0.05), 0 1px 1px rgba(8, 41, 42, 0.04);
  --shadow-md: 0 4px 18px -8px rgba(8, 41, 42, 0.16), 0 1px 3px rgba(8, 41, 42, 0.05);
  --shadow-lg: 0 22px 54px -28px rgba(8, 41, 42, 0.26), 0 2px 6px rgba(8, 41, 42, 0.04);

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --maxw: 1120px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* Each page tints the same canvas with its own accent — one system,
     five moods. Overridden by [data-theme] below. */
  --tint: 10, 157, 110;
  --page: var(--buy);

  margin: 0;
  padding-top: 124px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(860px 480px at 8% -4%, rgba(var(--tint), 0.20), transparent 64%),
    radial-gradient(720px 460px at 94% 2%, rgba(7, 51, 52, 0.12), transparent 64%),
    linear-gradient(180deg, #edf4f3 0%, #dbe8e6 52%, #c9dcd9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body[data-theme="trading"] { --tint: 31, 116, 200;  --page: var(--sky); }
body[data-theme="about"]   { --tint: 109, 77, 224;  --page: var(--violet); }
body[data-theme="careers"] { --tint: 176, 125, 9;   --page: var(--amber); }
body[data-theme="contact"] { --tint: 10, 157, 110;  --page: var(--buy); }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::selection { background: rgba(10, 157, 110, 0.18); }

:focus-visible { outline: 2px solid var(--buy); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------- Layout ------------------------------- */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 92px 0; }
.section--tight { padding: 56px 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page);
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.heading { max-width: 620px; margin-bottom: 44px; }
.heading h2 { font-size: clamp(24px, 2.7vw, 34px); margin-bottom: 14px; }
.heading p { font-size: 16.5px; color: var(--ink-2); }

.lead { font-size: 17px; color: var(--ink-2); }

.prose { max-width: 620px; }
.prose p { font-size: 16.5px; }
.prose p + p { margin-top: 16px; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Figures stay modest — they punctuate the page, they don't take it over. */
.figure { max-width: 720px; margin-left: auto; margin-right: auto; }
.figure--wide { max-width: 860px; }
.figure--narrow { max-width: 600px; }
.figure--full { max-width: none; }

/* ------------------------------- Surfaces ------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.card--pad { padding: 30px; }

a.card { transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

.a-buy    { --accent: var(--buy); }
.a-sky    { --accent: var(--sky); }
.a-violet { --accent: var(--violet); }
.a-amber  { --accent: var(--amber); }
.a-sell   { --accent: var(--sell); }

/* ------------------------------- Buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #0b4a4b; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(7, 51, 52, 0.04); }

.arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent); transition: gap var(--ease); }
a:hover .arrow, .arrow:hover { gap: 11px; }

/* ------------------------------- Floating top bar -------------------------------
   Not a full-width bar: a cluster of glass elements pinned to the top-left. */

.topbar {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 48px);
}

.pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.pill--logo { gap: 15px; padding: 14px 28px 14px 22px; }
.pill--logo img { height: 32px; width: auto; }
.pill--logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.pill--nav { padding: 7px; gap: 3px; }

.pill--nav a {
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}

.pill--nav a:hover { color: var(--ink); background: rgba(7, 51, 52, 0.05); }
.pill--nav a[aria-current="page"] { color: #fff; background: var(--brand); }

.topbar__toggle {
  display: none;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.topbar__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform var(--ease), opacity var(--ease);
}

.is-open .topbar__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.is-open .topbar__toggle span:nth-child(2) { opacity: 0; }
.is-open .topbar__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 820px) {
  body { padding-top: 100px; }
  .pill--nav {
    position: fixed;
    top: 86px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  .pill--nav a { padding: 13px 16px; border-radius: 12px; }
  .is-open .pill--nav { opacity: 1; transform: none; pointer-events: auto; }
  .topbar__toggle { display: block; }
  .pill--logo span { font-size: 16px; }
}

@media (max-width: 400px) {
  .pill--logo span { display: none; }
}

/* ------------------------------- Hero ------------------------------- */

.hero { padding: 56px 0 40px; }

.hero h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 15ch;
}

/* No ch cap here — it was forcing short page titles to wrap mid-sentence. */
.hero--page h1 { font-size: clamp(30px, 3.6vw, 44px); max-width: none; }

.hero__lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.tagpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 24px;
  transition: border-color var(--ease);
}

a.tagpill:hover { border-color: var(--line-2); }

.tagpill b {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(10, 157, 110, 0.12);
  color: var(--buy);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
}

/* ------------------------------- Zone strip ------------------------------- */

.strip {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.strip__track { display: flex; width: max-content; gap: 34px; animation: strip 44s linear infinite; }
.strip__half { display: flex; gap: 34px; }

.strip__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  white-space: nowrap;
}

.strip__logo { height: 13px; width: auto; opacity: 0.55; }

@keyframes strip { to { transform: translateX(-50%); } }

/* ------------------------------- Code stream ------------------------------- */

.code { padding: 0; overflow: hidden; }

.code__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.code__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(7, 51, 52, 0.14); }

.code__file {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 8px;
}

.code__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--buy);
}

.code__status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--buy);
  animation: codePulse 1.9s ease-out infinite;
}

@keyframes codePulse {
  0%   { box-shadow: 0 0 0 0 rgba(10, 157, 110, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(10, 157, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 157, 110, 0); }
}

.code__body { display: grid; grid-template-columns: 1.15fr 0.85fr; }

/* Height is reserved up front — the panel must not grow as the last lines
   are typed. */
.code__pre {
  margin: 0;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: pre-wrap;
  min-height: 302px;
  tab-size: 4;
}

.tk-kw  { color: var(--violet); }
.tk-fn  { color: var(--sky); }
.tk-str { color: var(--amber); }
.tk-num { color: var(--sell); }
.tk-com { color: var(--ink-3); font-style: italic; }
.tk-op  { color: var(--ink-3); }

.code__caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--buy);
  vertical-align: -2px;
  animation: caret 1.05s steps(1) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.code__feed {
  border-left: 1px solid var(--line);
  background: var(--surface-2);
  padding: 22px;
  min-height: 302px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  overflow: hidden;
}

.code__line {
  display: flex;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  animation: feedIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.code__line b { font-weight: 500; }
.code__line--in  { color: var(--sky); }
.code__line--out { color: var(--buy); }
.code__line--ok  { color: var(--ink-3); }

@keyframes feedIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .code__body { grid-template-columns: 1fr; }
  .code__feed { border-left: 0; border-top: 1px solid var(--line); min-height: 150px; }
  .code__pre { min-height: 268px; font-size: 11.5px; }
}

/* ------------------------------- Day counter ------------------------------- */

.tape { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.tape__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tape__cell {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(10, 157, 110, 0.12);
  border: 1px solid rgba(10, 157, 110, 0.28);
  transition: background 90ms linear, box-shadow 90ms linear, transform 90ms linear;
  animation: cellIdle 3.4s ease-in-out infinite;
}

/* Trades land roughly every 90s, so a slow idle breath keeps the cell alive
   between the real blinks. */
@keyframes cellIdle {
  0%, 100% { border-color: rgba(10, 157, 110, 0.28); }
  50%      { border-color: rgba(10, 157, 110, 0.6); }
}

.tape__cell.on {
  background: var(--buy);
  box-shadow: 0 0 0 6px rgba(10, 157, 110, 0.16);
  transform: scale(1.12);
}

.tape__cap {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 14px;
}

/* ------------------------------- Depth ladder ------------------------------- */

.book { display: grid; gap: 3px; }
.book--asks { display: flex; flex-direction: column-reverse; }

.book__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.book__fill { position: absolute; top: 0; bottom: 0; right: 0; transition: width 640ms cubic-bezier(0.22, 1, 0.36, 1); }
.book__row > *:not(.book__fill) { position: relative; z-index: 1; }

.book__row--ask .book__fill { background: rgba(217, 72, 58, 0.10); }
.book__row--bid .book__fill { background: rgba(10, 157, 110, 0.10); }
.book__row--ask .book__tag { color: var(--sell); }
.book__row--bid .book__tag { color: var(--buy); }
.book__size { color: var(--ink-2); }

.book__mid {
  display: flex;
  justify-content: center;
  padding: 9px;
  margin: 5px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ------------------------------- Data stream ------------------------------- */

.stream {
  position: relative;
  height: 260px;
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.stream__lane { display: flex; width: max-content; gap: 12px; margin-bottom: 9px; will-change: transform; }

.stream__tok {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  white-space: nowrap;
}

.stream__tok--hot { color: var(--buy); border-color: rgba(10, 157, 110, 0.3); background: rgba(10, 157, 110, 0.07); }
.stream__tok--cool { color: var(--sky); border-color: rgba(31, 116, 200, 0.3); background: rgba(31, 116, 200, 0.06); }
.stream__tok--warn { color: var(--sell); border-color: rgba(217, 72, 58, 0.28); background: rgba(217, 72, 58, 0.06); }

/* Each lane holds two identical halves, so -50% wraps seamlessly. */
@keyframes streamL { to { transform: translateX(-50%); } }
@keyframes streamR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ------------------------------- Text patterns -------------------------------
   Deliberately varied — not every block of copy belongs in a box. */

.statement { max-width: 880px; }

.statement p {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 29px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.statement p + p { margin-top: 20px; }
.statement em { font-style: normal; color: var(--page); }

/* Numbered rows separated by hairlines */
.numlist { border-top: 1px solid var(--line); }

.numlist > li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.numlist__n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--page);
  padding-top: 4px;
}

.numlist h3 { font-size: 18px; margin-bottom: 6px; }
.numlist p { font-size: 15px; max-width: 62ch; }

/* Role rows */
.roles { border-top: 1px solid var(--line); }

.roles > li { border-bottom: 1px solid var(--line); }

/* Native <details> so it works keyboard-first and without JS. */
.role { display: block; }

.role__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}

.role__head::-webkit-details-marker { display: none; }
.role__head:hover .roles__t { color: var(--page); }
.roles__t { transition: color var(--ease); }

.role__meta { display: inline-flex; align-items: center; gap: 18px; }

.role__chev {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 1.8px solid var(--ink-3);
  border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform var(--ease), margin-top var(--ease), border-color var(--ease);
}

.role[open] .role__chev { transform: rotate(-135deg); margin-top: 3px; }
.role__head:hover .role__chev { border-color: var(--page); }

.role__body { padding-bottom: 28px; }
.role__body p { font-size: 15.5px; max-width: 68ch; }

.role[open] .role__body { animation: roleIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes roleIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.roles__mail {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-2);
}

.roles__mail a {
  color: var(--page);
  border-bottom: 1px solid color-mix(in srgb, var(--page) 40%, transparent);
  padding-bottom: 1px;
}

.roles__mail a:hover { border-bottom-color: currentColor; }

.roles__t {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.roles__m {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .numlist > li { grid-template-columns: 38px 1fr; gap: 14px; }
  .role__head { gap: 14px; padding: 22px 0; }
  .role__meta { gap: 12px; }
}

/* ------------------------------- Decorative renewables -------------------------------
   Pure ornament in otherwise empty space. */

.deco { position: relative; overflow: hidden; }

.turbine-bg {
  position: absolute;
  right: 4%;
  bottom: -40px;
  width: 300px;
  height: 300px;
  color: var(--brand);
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.sun-bg {
  position: absolute;
  top: 46px;
  right: 54px;
  width: 210px;
  height: 210px;
  color: var(--amber);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.deco > .container { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .turbine-bg { width: 190px; height: 190px; opacity: 0.07; }
  .sun-bg { width: 130px; height: 130px; top: 28px; right: 18px; }
}

/* ------------------------------- Hero scene -------------------------------
   Line-art trader wired to the wind and the sun. Ornament only. */

/* Anchored to the container, not the viewport edge: 50% - 560px lands on the
   container edge, the rest pulls it into the empty space beside the copy. */
.scene {
  position: absolute;
  top: 34px;
  right: max(16px, calc(50% - 430px));
  width: 340px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.scene svg { width: 100%; height: auto; overflow: visible; }

.scene__desk { stroke: var(--brand); }
.scene__wind { stroke: var(--sky); }
.scene__sun  { stroke: var(--amber); }

.scene__rotor { transform-origin: 66px 52px; animation: spin 8s linear infinite; }
.scene__rays  { transform-origin: 268px 48px; animation: spin 30s linear infinite; }

.scene__signal {
  stroke-dasharray: 3 9;
  animation: signalFlow 2.2s linear infinite;
}

.scene__signal--b { animation-duration: 2.9s; animation-delay: -0.7s; }

@keyframes signalFlow { to { stroke-dashoffset: -72; } }

@media (max-width: 1180px) { .scene { display: none; } }

/* ------------------------------- Signal pipeline ------------------------------- */

.pipe {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  min-height: 302px;
  border-left: 1px solid var(--line);
  background: var(--surface-2);
}

.pipe__row { display: flex; align-items: center; gap: 12px; }

.pipe__zone {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  width: 44px;
  flex-shrink: 0;
}

.pipe__track {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(7, 51, 52, 0.1);
}

.pipe__dot {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pipe__dot--buy  { background: var(--buy); box-shadow: 0 0 0 3px rgba(10, 157, 110, 0.18); }
.pipe__dot--sell { background: var(--sell); box-shadow: 0 0 0 3px rgba(217, 72, 58, 0.18); }

.pipe__chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  white-space: nowrap;
  min-width: 132px;
  text-align: center;
  flex-shrink: 0;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.pipe__chip.buy  { color: var(--buy);  border-color: rgba(10, 157, 110, 0.5); }
.pipe__chip.sell { color: var(--sell); border-color: rgba(217, 72, 58, 0.5); }
.pipe__chip.hit  { transform: scale(1.06); }

@media (max-width: 760px) {
  .pipe { border-left: 0; border-top: 1px solid var(--line); min-height: 200px; }
  .pipe__chip { min-width: 118px; font-size: 11px; }
}

/* ------------------------------- Wind layer -------------------------------
   Fixed behind the page; streaks drift and gust with scroll velocity. */

.wind {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

body > main, body > footer, body > .strip { position: relative; z-index: 1; }

/* ------------------------------- Renewables icons ------------------------------- */

.turbine__rotor {
  transform-origin: 24px 20px;
  animation: spin 7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.sun__rays { transform-origin: 24px 24px; animation: spin 26s linear infinite; }

.legend-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legend-row svg { width: 22px; height: 22px; }
.legend-row .w { color: var(--sky); }
.legend-row .s { color: var(--amber); }
.legend-row .m { color: var(--buy); }

/* ------------------------------- Headquarter map -------------------------------
   Europe as a dot matrix in the brand colour, one pin on Aarhus, and a light
   cloud lattice around it. */

.map { position: relative; }
.map svg { width: 100%; height: auto; display: block; }

.map__dot { fill: rgba(7, 51, 52, 0.24); }

.map__pin { fill: var(--brand); }

.map__ripple {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 4.2s ease-out infinite;
}

.map__ripple:nth-of-type(2) { animation-delay: 1.4s; }
.map__ripple:nth-of-type(3) { animation-delay: 2.8s; }

@keyframes ripple {
  0%   { r: 5;  opacity: 0.5; }
  100% { r: 46; opacity: 0; }
}

.map__pin-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  fill: var(--brand);
  letter-spacing: -0.01em;
}

/* Server racks, not fluffy clouds — this is infrastructure, not weather.
   Nothing moves position; only the status LEDs blink, so nothing blurs. */
.map__server {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0.5;
  shape-rendering: geometricPrecision;
}

.map__led {
  fill: var(--brand);
  stroke: none;
  animation: led 2.8s ease-in-out infinite;
}

@keyframes led {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.95; }
}

.map__wire {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1;
  opacity: 0.24;
  stroke-dasharray: 2 10;
  animation: wireFlow 6s linear infinite;
}

.map__wire--b { animation-duration: 7.2s; animation-delay: -1.8s; }
.map__wire--c { animation-duration: 6.6s; animation-delay: -3.4s; }
.map__wire--d { animation-duration: 7.8s; animation-delay: -1s; }

@keyframes wireFlow { to { stroke-dashoffset: -72; } }

.map__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .map__ripple, .map__wire, .map__led { animation: none !important; }
  .map__ripple { opacity: 0.25; }
  .map__led { opacity: 0.7; }
}

/* ------------------------------- Small components ------------------------------- */

.num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px; }

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; }

.icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  margin-bottom: 18px;
}

.fact { padding: 20px 22px; }
.fact__v { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 3px; }
.fact__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.zones { display: flex; flex-wrap: wrap; gap: 8px; }

.zone {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}

.zone i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 24px 28px;
}

.row__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.row__v { font-family: var(--font-display); font-size: clamp(17px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

.callout { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 30px 34px; }
.callout h3 { font-size: 20px; margin-bottom: 6px; }
.callout p { font-size: 14.5px; max-width: 480px; }

/* ------------------------------- CTA ------------------------------- */

.cta { text-align: center; padding: 92px 0; }
.cta h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 14px; letter-spacing: -0.03em; }
.cta p { font-size: 16.5px; max-width: 46ch; margin: 0 auto 28px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------- Footer ------------------------------- */

.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 40px; }

.footer__top { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; padding-bottom: 36px; }

.footer__brand { max-width: 300px; }
.footer__brand img { height: 18px; width: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 13.5px; color: var(--ink-3); }

.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 12px; font-weight: 500; }
.footer__col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color var(--ease); }
.footer__col a:hover { color: var(--brand); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* ------------------------------- Motion ------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 560ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip__track, .stream__lane, .tape__cell,
  .turbine__rotor, .sun__rays,
  .scene__rotor, .scene__rays, .scene__signal { animation: none !important; }
  .wind { display: none; }
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .cta { padding: 64px 0; }
  .hero { padding: 40px 0 32px; }
  .container { padding: 0 20px; }
  .callout { padding: 26px; }
  .stream { height: 220px; }
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__cols { gap: 40px; }
}

@media (max-width: 520px) {
  .footer__cols { flex-direction: column; gap: 24px; }
  .row { padding: 20px 22px; }
  .tape__num { font-size: 44px; }
}
