/* /fde page. Layout after the course examples (Strat, LOGOSM), step tabs after Ankar, colours from the Forward Deployment Approach deck. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); }
:root {
  --ink: #101828;
  --navy: #1c2a66;
  --blue: #2b5bff;
  --paper: #f4f6fb;
  --text: #475467;
  --line: rgba(16, 24, 40, .14);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 48px, 1160px); margin: 0 auto; }
.tag, .label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; color: var(--blue); }

/* Hero: one centred stack, then the diagram in a frame */
.hero { background: radial-gradient(ellipse 70% 55% at 50% 42%, #e4e9fb 0%, var(--paper) 72%); text-align: center; }
.island { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100% - 48px, 1160px); margin: 0 auto; padding: 16px 0; color: var(--ink); text-align: left; }
.logo { font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.island nav { display: flex; gap: 32px; font-size: 14px; color: var(--text); }
.island nav a, .foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.island nav a { display: inline-block; overflow: hidden; line-height: 1.6; }
.island nav span { position: relative; display: inline-block; transition: transform .22s ease; }
.island nav span::after { content: attr(data-t); position: absolute; top: 160%; left: 0; color: var(--blue); white-space: nowrap; }
.island nav a:hover span, .island nav a:focus-visible span { transform: translateY(-160%); }
.pill { display: inline-block; border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; transition: transform .2s ease; }
.pill:hover { transform: translateY(-1px); }
.pill.dark { background: var(--navy); color: #fff; }
.pill.line { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pill[href^="mailto"]::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hero-body { padding: 28px 0 40px; }
.badge { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; }
h1 { max-width: 900px; margin: 18px auto 0; color: var(--navy); font-size: clamp(50px, 6vw, 80px); line-height: 1.03; }
.hero-sub { margin-top: 16px; color: var(--text); font-size: 20px; }

/* Hero diagram */
.turn { display: grid; grid-template-columns: minmax(0, 1.25fr) 50px 170px 50px minmax(0, 1fr); align-items: center; margin-top: 40px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 24px 60px -30px rgba(28, 42, 102, .35); text-align: left; }
.mess { position: relative; align-self: stretch; min-height: 262px; }
.turn .label { margin-bottom: 12px; }
.mess .label { position: absolute; top: -4px; left: 0; }
.mess svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mess path { fill: none; stroke: #98a2b3; stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; animation: dash 24s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.mess i { position: absolute; padding: 6px 12px; border: 1px solid #d0d5dd; background: #fff; color: var(--ink); font-size: 14px; font-style: normal; white-space: nowrap; animation: drift 7s ease-in-out infinite alternate; }
.mess i:nth-of-type(2n) { animation-delay: -2s; animation-duration: 9s; }
.mess i:nth-of-type(3n) { animation-delay: -4s; animation-duration: 8s; }
@keyframes drift { to { transform: translate(4px, -5px); } }
.arrow { position: relative; height: 1px; margin: 0 8px; background: var(--ink); }
.arrow::after { content: ""; position: absolute; top: -4px; right: 0; border-width: 4.5px 0 4.5px 8px; border-style: solid; border-color: transparent transparent transparent var(--ink); }
.fde { display: grid; place-content: center; gap: 6px; height: 150px; background: var(--blue); color: #fff; text-align: center; }
.fde b { font-size: 42px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.fde span { font-family: var(--mono); font-size: 10px; }
.trust { display: grid; gap: 8px; }
.trust li { padding: 12px 14px; border-top: 3px solid var(--blue); background: var(--paper); font-size: 15px; font-weight: 600; line-height: 1.25; animation: settle 1s cubic-bezier(.2, .7, .2, 1) both; }
.trust li:nth-child(2) { animation-delay: .25s; } .trust li:nth-child(3) { animation-delay: .5s; } .trust li:nth-child(4) { animation-delay: .75s; }
@keyframes settle { from { opacity: 0; transform: translateX(-16px); } }

/* Sections */
.band { padding: clamp(72px, 9vw, 120px) 0 0; }
.head { max-width: 760px; }
h2 { margin-top: 12px; color: var(--navy); font-size: clamp(40px, 5vw, 62px); line-height: 1.05; }

/* Three parts: numbered columns, no cards */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.parts li { padding-top: 18px; border-top: 2px solid var(--navy); }
.num { display: block; color: var(--blue); font-family: var(--mono); font-size: 13px; }
.parts b { display: block; margin-top: 26px; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 42px); font-weight: 400; line-height: 1.08; }
.parts p { margin-top: 12px; color: var(--text); }
.after { margin-top: 36px; color: var(--navy); font-size: 18px; font-weight: 500; }

/* Five steps: readable tabs over one panel */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.tabs button { all: unset; box-sizing: border-box; cursor: pointer; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; }
.tabs button:hover { border-color: var(--navy); }
.tabs button[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.deck { margin-top: 14px; }
.pane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 470px; align-content: space-between; padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.pane h3 { margin: 0 0 10px; color: var(--navy); font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.pane-text p { max-width: 720px; color: var(--text); }
.pane span, .pane b { display: block; }
.mapping .label { margin-bottom: 8px; }
.paper, .practice { display: grid; gap: 6px; }
.paper { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.practice { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.paper > div { padding: 12px 14px; border-top: 3px solid var(--navy); background: var(--paper); font-size: 15px; font-weight: 600; }
.practice > div { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 124px; padding: 12px 14px; border-top: 3px solid var(--blue); background: var(--paper); }
.practice b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.practice span { color: var(--blue); font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.questions { display: grid; gap: 8px; }
.questions > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; background: var(--paper); }
.questions span { font-size: 17px; font-weight: 500; }
.questions b { flex: none; color: var(--blue); font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1; }
.loop-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.loop-flow > div { position: relative; min-height: 118px; padding: 14px; border: 1px solid var(--navy); background: #fff; }
.loop-flow .hot { border-color: var(--blue); background: var(--blue); color: #fff; }
.loop-flow b { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }
.loop-flow span { margin-top: 8px; font-size: 13px; line-height: 1.25; }
.loop-flow > div:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -17px; color: var(--ink); transform: translateY(-50%); }
.loop-note { margin-top: 16px; color: var(--navy); font-weight: 500; }
.loop-log { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: 12px; }
.twelve { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.twelve > div { padding: 16px; border-top: 3px solid var(--navy); background: var(--paper); }
.twelve span { margin-bottom: 14px; color: var(--blue); font-family: var(--mono); font-size: 12px; }
.twelve b { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.2; }
.stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
.stairs > div { padding: 14px; color: var(--ink); }
.stairs > div:nth-child(1) { min-height: 80px; background: #e4e9fb; }
.stairs > div:nth-child(2) { min-height: 130px; background: #b4c3fb; }
.stairs > div:nth-child(3) { min-height: 180px; background: #7a95ff; }
.stairs > div:nth-child(4) { min-height: 230px; background: var(--blue); color: #fff; }
.stairs b { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }
.stairs span { margin-top: 6px; font-size: 13px; line-height: 1.25; }

/* Track record: one navy band for contrast */
.record-band { margin-top: clamp(72px, 9vw, 120px); padding: clamp(64px, 8vw, 96px) 0; background: var(--navy); color: #fff; }
.record-band .tag, .record-band .label { color: rgba(255, 255, 255, .7); }
.record-band h2 { color: #fff; }
.record { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.record > div { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .3); }
.record dt { font-size: clamp(28px, 2.5vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.record dd { margin-top: 12px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.keeps { margin-top: 44px; }
.keeps ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.keeps li { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); font-size: 14px; font-weight: 500; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.projects a { display: block; text-decoration: none; }
.projects img { width: 100%; height: 220px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; object-fit: cover; object-position: top; transition: transform .3s ease; }
.projects a:hover img { transform: translateY(-4px); }
.projects a:hover h3 { text-decoration: underline; }
.projects h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; }
.projects p { color: var(--text); font-size: 16px; }

/* Closing */
.closing { padding: clamp(88px, 12vw, 150px) 0; text-align: center; }
.closing h2 { max-width: 860px; margin: 0 auto 16px; }
.closing p { color: var(--text); font-size: 18px; }
.foot { padding: 28px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; }
.foot .logo { color: var(--ink); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* Tablet and phone only. Desktop rules above stay as they are. */
@media (max-width: 960px) {
  .island nav { display: none; }
  .turn { grid-template-columns: 1fr; padding: 20px; border-bottom: 1px solid var(--line); border-radius: 18px; }
  .mess { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; min-height: 0; padding-top: 26px; }
  .mess svg { display: none; }
  .mess i { position: static; animation: none; font-size: 13px; }
  .arrow { justify-self: center; width: 1px; height: 28px; margin: 10px 0; }
  .arrow::after { top: auto; right: -4px; bottom: 0; border-width: 8px 4.5px 0; border-color: var(--ink) transparent transparent; }
  .fde { height: 90px; }
  .fde b { font-size: 32px; }
  .parts, .projects { grid-template-columns: 1fr; }
  .parts { gap: 28px; }
  .parts b { margin-top: 12px; }
  .record { grid-template-columns: 1fr 1fr; }
  .projects { gap: 32px; }
  .pane { min-height: 0; }
  .practice, .loop-flow, .twelve { grid-template-columns: 1fr 1fr; }
  .practice > div:last-child, .loop-flow > div:last-child, .twelve > div:last-child { grid-column: 1 / -1; }
  .loop-flow { gap: 8px; }
  .loop-flow > div { min-height: 96px; }
  .loop-flow > div:not(:last-child)::after { display: none; }
  .questions > div { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  .wrap, .island { width: calc(100% - 32px); }
  body { font-size: 16px; }
  h1 { font-size: 46px; }
  .hero-sub { font-size: 18px; }
  .paper { grid-template-columns: 1fr; }
  .record { grid-template-columns: 1fr; }
  .stairs { grid-template-columns: 1fr; }
  .stairs > div:nth-child(n) { min-height: 0; }
  .tabs button { padding: 9px 14px; font-size: 14px; }
  .foot .wrap { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mess path, .mess i, .trust li { animation: none; }
  .pill, .projects img, .island nav span { transition: none; }
}
