/*
 * Custom steel fabrication pages (CustomFab module). Loaded after ms.css and
 * lw.css, whose heading, card, note and table styles the reused blocks keep.
 * Logical properties only (RTL for ar and he). Button labels never wrap.
 * Motion runs only under .cf-motion (set by cf.js when the visitor has not
 * asked for reduced motion); without it every element is in its final state.
 * Section headings follow the site token --fs-h2 (Admin → Appearance →
 * Typography); nothing here sets their size.
 */

.lp-sec.cf-sec .ctas .btn { white-space: nowrap; }
.lp-sec.cf-sec :where(.ms-note, .lw-note) + .ctas { margin-block-start: var(--flow-gap); }

/* ------------------------------------------------------------------ */
/* Ecosystem: shared node                                               */
/* ------------------------------------------------------------------ */
.cf-eco { position: relative; overflow: hidden; }
.cf-eco::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgba(165, 0, 0, .22), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(212, 161, 46, .08), transparent 50%); pointer-events: none; }
.cf-eco > .wrap { position: relative; }
.cf-eco .lp-lede { color: var(--mist); }
.cf-eco-stage { margin-block-start: var(--space-6, 40px); }

.cf-node { position: relative; display: flex; align-items: flex-start; gap: var(--space-2, 12px); color: var(--white); text-decoration: none; }
a.cf-node:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cf-node-no { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--gold); }
.cf-node-ico { display: inline-grid; place-items: center; flex: none; inline-size: 40px; block-size: 40px; background: var(--navy-700); color: #FF8A8A; transition: background .25s ease, color .25s ease; }
.cf-node-ico .ico { inline-size: 22px; block-size: 22px; }
.cf-node-body { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.cf-node-title { font-family: var(--f-card-title); font-size: var(--fs-card-title-sm, 17px); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); line-height: 1.15; text-transform: var(--tt-card-title); color: var(--white); }
.cf-node-text { font-size: 14px; line-height: 1.5; color: var(--mist); }
.cf-node-go { margin-inline-start: auto; flex: none; color: #FF8A8A; transition: transform .2s ease; }
[dir="rtl"] .cf-node-go { transform: scaleX(-1); }
a.cf-node:is(:hover, :focus-visible) .cf-node-ico, .cf-node.is-hot .cf-node-ico { background: var(--red); color: var(--white); }
a.cf-node:is(:hover, :focus-visible) .cf-node-go { transform: translateX(4px); }
[dir="rtl"] a.cf-node:is(:hover, :focus-visible) .cf-node-go { transform: scaleX(-1) translateX(4px); }

/* Numbered list beside a drawing (wingdock, matchmark) */
.cf-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--navy-700); }
.cf-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4, 24px); }
.cf-list > li { border-block-end: 1px solid var(--navy-700); }
.cf-node.is-row { align-items: center; padding: 14px 10px; transition: background .25s ease; }
.cf-node.is-row .cf-node-ico { inline-size: 36px; block-size: 36px; }
.cf-node.is-row .cf-node-ico .ico { inline-size: 20px; block-size: 20px; }
.cf-node.is-row .cf-node-title { font-size: 15px; }
.cf-node.is-row .cf-node-text { font-size: 13.5px; line-height: 1.45; }
a.cf-node.is-row:is(:hover, :focus-visible), .cf-node.is-row.is-hot { background: var(--navy-800); }
.cf-node.is-row.is-hot .cf-node-no { color: var(--white); }
.cf-motion .cf-list > li { opacity: 0; transform: translateY(10px); transition: opacity .45s ease calc(500ms + var(--i) * 70ms), transform .45s ease calc(500ms + var(--i) * 70ms); }
.cf-motion .is-in .cf-list > li { opacity: 1; transform: none; }


/* ------------------------------------------------------------------ */
/* Style 1 · traveller (custom steel fabrication hub)                   */
/* ------------------------------------------------------------------ */
.cf-tv { position: relative; }
.cf-tv-sheet { position: relative; max-inline-size: 1040px; margin-inline: auto; padding: clamp(18px, 3vw, 34px); color: var(--navy-900, #0A1A30); background: linear-gradient(rgba(10, 26, 48, .06) 1px, transparent 1px) 0 0 / 100% 32px, #F3F0E6; box-shadow: 0 28px 60px rgba(0, 0, 0, .4); }
.cf-tv-sheet::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: clamp(70px, 9vw, 104px); inline-size: 1px; background: rgba(165, 0, 0, .35); }
.cf-tv-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding-block-end: 14px; margin-block-end: 6px; border-block-end: 2px solid var(--navy-900, #0A1A30); }
.cf-tv-doc { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.cf-tv-head strong { flex: 1 1 auto; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.cf-tv-piece { font-size: 12px; letter-spacing: 1px; color: #5A6B80; white-space: nowrap; }
.cf-tv-route { position: relative; margin: 0; padding: 0; list-style: none; }
.cf-tv-route::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: calc(clamp(70px, 9vw, 104px) - clamp(18px, 3vw, 34px) - 1px); inline-size: 3px; background: var(--red); transform-origin: top; }
.cf-tv-op { position: relative; display: grid; grid-template-columns: calc(clamp(70px, 9vw, 104px) - clamp(18px, 3vw, 34px) - 12px) minmax(0, 1fr) 96px; align-items: center; gap: 12px 24px; padding-block: 12px; border-block-end: 1px dashed rgba(10, 26, 48, .22); }
.cf-tv-opno { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #5A6B80; white-space: nowrap; }
.cf-tv-op::before { content: ""; position: absolute; inset-inline-start: calc(clamp(70px, 9vw, 104px) - clamp(18px, 3vw, 34px) - 6px); inset-block-start: 50%; inline-size: 13px; block-size: 13px; margin-block-start: -6px; border-radius: 50%; background: #F3F0E6; border: 3px solid var(--red); }
.cf-node.is-op { align-items: center; padding: 6px 10px; color: var(--navy-900, #0A1A30); transition: background .25s ease; }
.cf-node.is-op .cf-node-no { min-inline-size: 26px; padding: 3px 5px; text-align: center; background: var(--navy-900, #0A1A30); color: var(--gold); font-size: 11px; }
.cf-node.is-op .cf-node-ico { inline-size: 36px; block-size: 36px; background: rgba(10, 26, 48, .08); color: var(--red); }
.cf-node.is-op .cf-node-title { color: var(--navy-900, #0A1A30); font-size: 16px; }
.cf-node.is-op .cf-node-text { color: #4A5B70; font-size: 14px; }
.cf-node.is-op .cf-node-go { color: var(--red); }
a.cf-node.is-op:is(:hover, :focus-visible), .cf-node.is-op.is-hot { background: rgba(165, 0, 0, .07); }
a.cf-node.is-op:focus-visible { outline-color: var(--red); }
.cf-tv-stamp { justify-self: end; display: grid; place-items: center; inline-size: 84px; block-size: 84px; border: 3px double var(--red); border-radius: 50%; color: var(--red); transform: rotate(-14deg); opacity: .85; transition: transform .25s ease, opacity .25s ease, background .25s ease; }
.cf-tv-stamp > span { font-family: var(--f-display); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-align: center; line-height: 1.05; padding: 4px; }
.cf-tv-stamp.is-hot { background: rgba(165, 0, 0, .08); opacity: 1; transform: rotate(-14deg) scale(1.08); }
.cf-tv-caption { position: relative; margin: 18px 0 0 !important; padding-inline-start: calc(clamp(70px, 9vw, 104px) - clamp(18px, 3vw, 34px) + 12px); color: #4A5B70; font-size: 15px; line-height: 1.6; }

.cf-motion .cf-tv-route::before { transform: scaleY(0); transition: transform 1.6s cubic-bezier(.3, .6, .2, 1) .3s; }
.cf-motion .cf-tv-op { opacity: 0; transform: translateY(10px); transition: opacity .45s ease calc(300ms + var(--i) * 150ms), transform .45s ease calc(300ms + var(--i) * 150ms); }
.cf-motion .cf-tv-stamp { opacity: 0; transform: rotate(-14deg) scale(1.9); transition: opacity .25s ease calc(650ms + var(--i) * 150ms), transform .35s cubic-bezier(.3, 1.6, .5, 1) calc(650ms + var(--i) * 150ms); }
.cf-motion .is-in .cf-tv-route::before { transform: none; }
.cf-motion .is-in .cf-tv-op { opacity: 1; transform: none; }
.cf-motion .is-in .cf-tv-stamp { opacity: .85; transform: rotate(-14deg); }
.cf-motion .is-in .cf-tv-stamp.is-hot { opacity: 1; transform: rotate(-14deg) scale(1.08); transition-delay: 0s; }

/* ------------------------------------------------------------------ */
/* Style 2 · wingdock (aircraft maintenance docks)                      */
/* ------------------------------------------------------------------ */
.cf-wd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px) minmax(0, 1fr); align-items: center; gap: var(--space-5, 32px); }
.cf-wd-plan { margin: 0; padding: 16px; background: linear-gradient(180deg, rgba(6, 17, 31, .9), rgba(10, 26, 48, .85)); border: 1px solid #2B4A73; }
.cf-wd-head { margin-block-end: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8FB3E0; }
.cf-wd-head strong { color: var(--white); letter-spacing: 1px; }
.cf-wd-plan svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.cf-wd-grid line { stroke: rgba(143, 179, 224, .08); stroke-width: 1; }
.cf-wd-plane path, .cf-wd-plane ellipse { fill: rgba(201, 214, 230, .07); stroke: #C9D6E6; stroke-width: 2; stroke-linejoin: round; }
.cf-wd-plane line { stroke: rgba(201, 214, 230, .35); stroke-width: 1; stroke-dasharray: 6 6; }
.cf-wd-pad rect { fill: rgba(212, 161, 46, .18); stroke: var(--gold); stroke-width: 2; transition: fill .25s ease, stroke .25s ease; }
.cf-wd-pad circle { fill: #0B0B0B; stroke: var(--gold); stroke-width: 2; transition: fill .25s ease; }
.cf-wd-pad text { fill: var(--gold); font-family: var(--f-mono, ui-monospace, monospace); font-size: 11px; font-weight: 700; }
.cf-wd-pad.is-hot rect { fill: rgba(165, 0, 0, .55); stroke: #FF8A8A; }
.cf-wd-pad.is-hot circle { fill: var(--red); stroke: var(--white); }
.cf-wd-pad.is-hot text { fill: var(--white); }
.cf-wd-caption { margin-block-start: 10px; font-size: 13.5px; line-height: 1.5; color: var(--mist); }
.cf-wd-list.is-end .cf-node.is-row { flex-direction: row; }

.cf-motion .cf-wd-plane path, .cf-motion .cf-wd-plane ellipse, .cf-motion .cf-wd-plane line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s cubic-bezier(.3, .6, .2, 1) .2s; }
.cf-motion .cf-wd-pad { opacity: 0; transform: translate(var(--dx), var(--dy)); transition: opacity .5s ease calc(1200ms + var(--i) * 110ms), transform .7s cubic-bezier(.2, .7, .2, 1) calc(1200ms + var(--i) * 110ms); }
.cf-motion .is-in .cf-wd-plane path, .cf-motion .is-in .cf-wd-plane ellipse { stroke-dashoffset: 0; }
.cf-motion .is-in .cf-wd-plane line { stroke-dashoffset: 0; stroke-dasharray: 6 6; }
.cf-motion .is-in .cf-wd-pad { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Style 3 · matchmark (trial assembly and dimensional control)         */
/* ------------------------------------------------------------------ */
.cf-mm { position: relative; }
.cf-mm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-block-end: 10px; }
.cf-mm-head > span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.cf-mm-head strong { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; color: var(--white); }
.cf-mm-vis { position: relative; margin-block-end: var(--space-5, 32px); padding: 18px 18px 10px; background: linear-gradient(rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 40px 40px, rgba(6, 17, 31, .8); border: 1px solid #2B4A73; direction: ltr; }
.cf-mm-vis svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.cf-mm-dim line { stroke: #8FB3E0; stroke-width: 1.5; }
.cf-mm-chord { stroke: #C9D6E6; stroke-width: 6; stroke-linecap: square; }
.cf-mm-web { stroke: #8FA6C2; stroke-width: 3; }
.cf-mm-end { stroke: #C9D6E6; stroke-width: 4; }
.cf-mm-mark { fill: rgba(201, 214, 230, .5); font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: 2px; }
.cf-mm-splices rect { fill: var(--red); stroke: #FF8A8A; stroke-width: 1; }
.cf-mm-tag line { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cf-mm-tag rect { fill: #0B0B0B; stroke: var(--gold); stroke-width: 2; transition: fill .25s ease; }
.cf-mm-tag text { fill: var(--gold); font-family: var(--f-mono, ui-monospace, monospace); font-size: 13px; font-weight: 700; }
.cf-mm-tag.is-hot rect { fill: var(--gold); }
.cf-mm-tag.is-hot text { fill: #0B0B0B; }
.cf-mm-labels { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-block-start: 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8FB3E0; }
.cf-mm-caption { margin-block-start: var(--space-4, 24px) !important; max-inline-size: 72ch; color: var(--mist); font-size: 15px; line-height: 1.6; }

.cf-motion .cf-mm-piece { transform: translateX(var(--shift)); opacity: .65; transition: transform 1.1s cubic-bezier(.6, .05, .2, 1) .5s, opacity .6s ease .5s; }
.cf-motion .cf-mm-splices { opacity: 0; transition: opacity .4s ease 1.6s; }
.cf-motion .cf-mm-dim line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s ease 1.6s; }
.cf-motion .cf-mm-tag { opacity: 0; transform: translateY(-18px); transition: opacity .35s ease calc(2000ms + var(--i) * 100ms), transform .45s cubic-bezier(.3, 1.5, .5, 1) calc(2000ms + var(--i) * 100ms); }
.cf-motion .is-in .cf-mm-piece { transform: none; opacity: 1; }
.cf-motion .is-in .cf-mm-splices, .cf-motion .is-in .cf-mm-tag { opacity: 1; transform: none; }
.cf-motion .is-in .cf-mm-dim line { stroke-dashoffset: 0; }

/* Shared drawing panel of the styles below */
:where(.cf-cl-vis, .cf-sk-vis, .cf-uf-vis, .cf-rd-vis) { margin: 0; padding: 16px; background: linear-gradient(rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 40px 40px, rgba(6, 17, 31, .8); border: 1px solid #2B4A73; }
:where(.cf-cl-vis, .cf-sk-vis, .cf-uf-vis, .cf-rd-vis) svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; direction: ltr; }
:where(.cf-cl-head, .cf-sk-head) { margin-block-end: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8FB3E0; }
:where(.cf-cl-head, .cf-sk-head) strong { color: var(--white); letter-spacing: 1px; }
:where(.cf-cl-caption, .cf-sk-caption) { margin-block-start: 10px; font-size: 13.5px; line-height: 1.5; color: var(--mist); }
:where(.cf-uf-caption, .cf-rd-caption) { margin-block-start: var(--space-4, 24px) !important; max-inline-size: 72ch; color: var(--mist); font-size: 15px; line-height: 1.6; }
:where(.cf-cl-pad, .cf-sk-mark, .cf-rd-pt) circle { fill: #0B0B0B; stroke: var(--gold); stroke-width: 2; transition: fill .25s ease, stroke .25s ease; }
:where(.cf-cl-pad, .cf-sk-mark, .cf-rd-pt, .cf-uf-part) text { fill: var(--gold); font-family: var(--f-mono, ui-monospace, monospace); font-size: 11px; font-weight: 700; }
:where(.cf-cl-pad, .cf-sk-mark, .cf-rd-pt).is-hot circle { fill: var(--red); stroke: var(--white); }
:where(.cf-cl-pad, .cf-sk-mark, .cf-rd-pt).is-hot text { fill: var(--white); }

/* ------------------------------------------------------------------ */
/* Style 4 · clearance (maintenance & access platforms)                 */
/* ------------------------------------------------------------------ */
.cf-cl { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); align-items: start; gap: var(--space-5, 32px); }
.cf-cl-ground { stroke: #8FB3E0; stroke-width: 2; }
.cf-cl-vessel path { fill: rgba(201, 214, 230, .07); stroke: #C9D6E6; stroke-width: 2.5; }
.cf-cl-vessel line { stroke: rgba(201, 214, 230, .3); stroke-width: 1; stroke-dasharray: 5 5; }
.cf-cl-cols line { stroke: #8FA6C2; stroke-width: 5; }
.cf-cl-deck rect { fill: rgba(212, 161, 46, .25); stroke: var(--gold); stroke-width: 1.5; transition: fill .25s ease; }
.cf-cl-rail, .cf-cl-post { stroke: #C9D6E6; stroke-width: 1.5; }
.cf-cl-gap line, .cf-cl-key { stroke: #FF8A8A; stroke-width: 1.5; }
.cf-cl-pad.is-hot .cf-cl-deck rect { fill: rgba(165, 0, 0, .6); }
.cf-cl-legend { display: flex; align-items: center; gap: 8px; margin-block-start: 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8FB3E0; }
.cf-cl-key { display: inline-block; inline-size: 22px; block-size: 0; border-block-start: 2px solid #FF8A8A; }
.cf-cl-deck { transform-box: fill-box; }
.cf-cl-pad.is-s .cf-cl-deck { transform-origin: left center; }
.cf-cl-pad.is-e .cf-cl-deck { transform-origin: right center; }
.cf-motion .cf-cl-deck { transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1) calc(400ms + var(--i) * 120ms); }
.cf-motion .cf-cl-gap, .cf-motion .cf-cl-pad circle, .cf-motion .cf-cl-pad text { opacity: 0; transition: opacity .35s ease calc(1000ms + var(--i) * 120ms); }
.cf-motion .is-in .cf-cl-deck { transform: none; }
.cf-motion .is-in .cf-cl-gap, .cf-motion .is-in .cf-cl-pad circle, .cf-motion .is-in .cf-cl-pad text { opacity: 1; }

/* ------------------------------------------------------------------ */
/* Style 5 · skidframe (pre-assembled modules & skids)                  */
/* ------------------------------------------------------------------ */
.cf-sk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); align-items: start; gap: var(--space-5, 32px); }
.cf-sk-base path { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; }
.cf-sk-frame path { fill: none; stroke: #C9D6E6; stroke-width: 3; stroke-linecap: round; }
.cf-sk-mark.is-lift circle { stroke: #FF8A8A; }
.cf-sk-legend { margin-block-start: 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8FB3E0; }
.cf-motion .cf-sk-base path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s cubic-bezier(.3, .6, .2, 1) .3s; }
.cf-motion .cf-sk-frame { opacity: 0; transform: translateY(-40px); transition: opacity .6s ease 1.1s, transform .9s cubic-bezier(.2, .7, .2, 1) 1.1s; }
.cf-motion .cf-sk-mark { opacity: 0; transition: opacity .35s ease calc(1900ms + var(--i) * 100ms); }
.cf-motion .is-in .cf-sk-base path { stroke-dashoffset: 0; }
.cf-motion .is-in .cf-sk-frame, .cf-motion .is-in .cf-sk-mark { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Style 6 · specimen (architectural exposed steel)                     */
/* ------------------------------------------------------------------ */
.cf-sp-board { padding: clamp(16px, 3vw, 32px); background: #1B2636; border: 1px solid #33465F; box-shadow: inset 0 0 0 6px #142030, 0 28px 60px rgba(0, 0, 0, .35); }
.cf-sp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block-end: 14px; margin-block-end: 18px; border-block-end: 1px solid #33465F; }
.cf-sp-doc { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.cf-sp-head strong { flex: 1 1 auto; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; color: var(--white); }
.cf-sp-stamp { padding: 6px 12px; border: 2px solid #FF8A8A; color: #FF8A8A; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; transform: rotate(-4deg); }
.cf-sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3, 16px); margin: 0; padding: 0; list-style: none; }
.cf-sp-chip { display: flex; flex-direction: column; background: #0F1A29; border: 1px solid #2B3D55; }
.cf-sp-swatch { position: relative; display: block; block-size: 86px; transition: box-shadow .25s ease; }
.cf-sp-swatch > span { position: absolute; inset-block-end: 8px; inset-inline-start: 10px; padding: 2px 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #0B0B0B; background: rgba(255, 255, 255, .8); }
.cf-sp-swatch.is-s1 { background: linear-gradient(135deg, #3B4654, #5D6A7A 45%, #2E3742); }
.cf-sp-swatch.is-s2 { background: linear-gradient(135deg, #8B1414, #B32424 50%, #6E0E0E); }
.cf-sp-swatch.is-s3 { background: linear-gradient(135deg, #C9CDD2, #EEF0F2 50%, #A9AFB6); }
.cf-sp-swatch.is-s4 { background: repeating-linear-gradient(100deg, #9AA3AD 0 2px, #B8BFC7 2px 5px); }
.cf-sp-swatch.is-s5 { background: linear-gradient(135deg, #1E2B3C, #34465E 50%, #172231); }
.cf-sp-swatch.is-s6 { background: radial-gradient(circle at 30% 30%, #D9DDE1, #9EA6AF 70%); }
.cf-sp-swatch.is-s7 { background: linear-gradient(135deg, #B8862A, #D9A84A 50%, #8E6620); }
.cf-sp-swatch.is-s8 { background: linear-gradient(135deg, #5A5F66, #7C838B 50%, #4A4F55); }
.cf-sp-swatch.is-hot { box-shadow: inset 0 0 0 3px var(--red); }
.cf-node.is-chip { flex: 1; flex-wrap: wrap; align-items: flex-start; padding: 14px; transition: background .25s ease; }
.cf-node.is-chip .cf-node-ico { inline-size: 34px; block-size: 34px; }
.cf-node.is-chip .cf-node-ico .ico { inline-size: 18px; block-size: 18px; }
.cf-node.is-chip .cf-node-body { flex: 1 1 140px; }
.cf-node.is-chip .cf-node-title { font-size: 15px; }
.cf-node.is-chip .cf-node-text { font-size: 13.5px; line-height: 1.45; }
a.cf-node.is-chip:is(:hover, :focus-visible), .cf-node.is-chip.is-hot { background: var(--navy-800); }
.cf-sp-caption { margin: 18px 0 0 !important; max-inline-size: 72ch; color: var(--mist); font-size: 15px; line-height: 1.6; }
.cf-motion .cf-sp-chip { opacity: 0; transform: perspective(800px) rotateX(-70deg); transform-origin: top; transition: opacity .4s ease calc(300ms + var(--i) * 110ms), transform .6s cubic-bezier(.2, .7, .2, 1) calc(300ms + var(--i) * 110ms); }
.cf-motion .cf-sp-stamp { opacity: 0; transform: rotate(-4deg) scale(1.8); transition: opacity .25s ease 1.4s, transform .35s cubic-bezier(.3, 1.6, .5, 1) 1.4s; }
.cf-motion .is-in .cf-sp-chip { opacity: 1; transform: none; }
.cf-motion .is-in .cf-sp-stamp { opacity: 1; transform: rotate(-4deg); }

/* ------------------------------------------------------------------ */
/* Style 7 · unfold (heavy plate work)                                  */
/* ------------------------------------------------------------------ */
.cf-uf-vis { margin-block-end: var(--space-5, 32px); }
.cf-uf-labels { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-block-end: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8FB3E0; direction: ltr; }
.cf-uf-labels strong { color: var(--white); letter-spacing: 1px; }
.cf-uf-box rect { fill: rgba(201, 214, 230, .12); stroke: #C9D6E6; stroke-width: 2; }
.cf-uf-box .cf-uf-dia { fill: rgba(212, 161, 46, .08); stroke-dasharray: 4 4; stroke: #8FA6C2; }
.cf-uf-arrow { fill: none; stroke: #FF8A8A; stroke-width: 2.5; }
.cf-uf-plate { fill: rgba(143, 166, 194, .08); stroke: #8FB3E0; stroke-width: 1.5; stroke-dasharray: 8 6; }
.cf-uf-part rect, .cf-uf-part path { fill: rgba(212, 161, 46, .18); stroke: var(--gold); stroke-width: 2; transition: fill .25s ease; }
.cf-uf-part circle { fill: #0B0B0B; stroke: var(--gold); stroke-width: 1.5; }
.cf-uf-part text { font-size: 13px; }
.cf-uf-part.is-hot rect, .cf-uf-part.is-hot path { fill: rgba(165, 0, 0, .65); stroke: #FF8A8A; }
.cf-uf-part.is-hot text { fill: var(--white); }
.cf-motion .cf-uf-box rect { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s ease .3s; }
.cf-motion .cf-uf-part rect, .cf-motion .cf-uf-part path { stroke-dasharray: 100; stroke-dashoffset: 100; fill-opacity: 0; transition: stroke-dashoffset .6s ease calc(1100ms + var(--i) * 140ms), fill-opacity .4s ease calc(1500ms + var(--i) * 140ms); }
.cf-motion .cf-uf-part text { opacity: 0; transition: opacity .3s ease calc(1500ms + var(--i) * 140ms); }
.cf-motion .is-in .cf-uf-box rect, .cf-motion .is-in .cf-uf-part rect, .cf-motion .is-in .cf-uf-part path { stroke-dashoffset: 0; fill-opacity: 1; }
.cf-motion .is-in .cf-uf-box .cf-uf-dia { stroke-dasharray: 4 4; }
.cf-motion .is-in .cf-uf-part text { opacity: 1; }

/* ------------------------------------------------------------------ */
/* Style 8 · radius (towers & special geometry)                         */
/* ------------------------------------------------------------------ */
.cf-rd-vis { margin-block-end: var(--space-5, 32px); }
.cf-rd-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-block-end: 6px; }
.cf-rd-head > span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.cf-rd-head strong { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; color: var(--white); }
.cf-rd-set line { stroke: #8FB3E0; stroke-width: 1.5; stroke-dasharray: 6 6; }
.cf-rd-set text { fill: #8FB3E0; font-family: var(--f-display); font-size: 28px; font-weight: 700; }
.cf-rd-member { fill: rgba(201, 214, 230, .14); stroke: #C9D6E6; stroke-width: 2.5; stroke-linejoin: round; }
.cf-rd-pt line { stroke: var(--gold); stroke-width: 1.5; }
.cf-list.is-4col { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-3, 16px); }
.cf-list.is-4col .cf-node.is-row { flex-wrap: wrap; align-items: flex-start; }
.cf-list.is-4col .cf-node.is-row .cf-node-body { flex: 1 1 120px; }
.cf-motion .cf-rd-member { stroke-dasharray: 100; stroke-dashoffset: 100; fill-opacity: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.3, .6, .2, 1) .3s, fill-opacity .6s ease 1.4s; }
.cf-motion .cf-rd-set { opacity: 0; transition: opacity .6s ease 1.2s; }
.cf-motion .cf-rd-pt { opacity: 0; transform: translateY(-12px); transition: opacity .35s ease calc(1700ms + var(--i) * 100ms), transform .45s cubic-bezier(.3, 1.5, .5, 1) calc(1700ms + var(--i) * 100ms); }
.cf-motion .is-in .cf-rd-member { stroke-dashoffset: 0; fill-opacity: 1; }
.cf-motion .is-in .cf-rd-set, .cf-motion .is-in .cf-rd-pt { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Photo record                                                         */
/* ------------------------------------------------------------------ */
.cf-ph-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3, 16px); }
.cf-ph-lead, .cf-ph-strip figure { position: relative; margin: 0; overflow: hidden; background: var(--navy-900); }
.cf-ph-lead img { display: block; inline-size: 100%; block-size: 100%; max-block-size: 640px; object-fit: cover; }
.cf-ph-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3, 16px); margin: 0; padding: 0; list-style: none; align-content: start; }
.cf-ph-strip img { display: block; inline-size: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cf-ph-strip figure:hover img { transform: scale(1.04); }
.cf-ph-lead figcaption, .cf-ph-strip figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 26px 12px 10px; font-size: 13px; line-height: 1.35; color: var(--white); background: linear-gradient(180deg, transparent, rgba(6, 17, 31, .9)); }
.cf-ph-source { display: flex; align-items: center; gap: 8px; margin-block-start: var(--space-3, 16px) !important; font-size: 12.5px; letter-spacing: .5px; color: var(--slate, #5A6B80); }
.cf-ph-source .ico { inline-size: 16px; block-size: 16px; flex: none; color: var(--red); }
.cf-motion .cf-ph-lead, .cf-motion .cf-ph-strip > li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease calc(var(--i, 0) * 70ms + 100ms), transform .5s ease calc(var(--i, 0) * 70ms + 100ms); }
.cf-motion .is-in .cf-ph-lead, .cf-motion .is-in .cf-ph-strip > li { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Related pages                                                        */
/* ------------------------------------------------------------------ */
.cf-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-3, 16px); margin: 0; padding: 0; list-style: none; }
.cf-rel-card { position: relative; display: flex; flex-direction: column; block-size: 100%; min-block-size: 210px; overflow: hidden; background: var(--navy-900); color: var(--white); text-decoration: none; isolation: isolate; }
.cf-rel-img { position: absolute; inset: 0; z-index: -2; }
.cf-rel-img img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cf-rel-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 17, 31, .15) 0%, rgba(6, 17, 31, .92) 75%); transition: background .3s ease; }
.cf-rel-card.no-img { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px), var(--navy-900); }
.cf-rel-card:is(:hover, :focus-visible)::after { background: linear-gradient(180deg, rgba(165, 0, 0, .2) 0%, rgba(6, 17, 31, .95) 70%); }
.cf-rel-card:is(:hover, :focus-visible) .cf-rel-img img { transform: scale(1.06); }
.cf-rel-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cf-rel-body { display: flex; flex-direction: column; gap: 8px; margin-block-start: auto; padding: 18px; }
.cf-rel-ico { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; background: var(--red); color: var(--white); }
.cf-rel-ico .ico { inline-size: 20px; block-size: 20px; }
.lp .lp-sec .cf-rel-body h3 { margin: 0; font-family: var(--f-card-title); font-size: var(--fs-card-title-sm, 17px); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); line-height: 1.15; text-transform: var(--tt-card-title); color: var(--white); }
.cf-rel-text { font-size: 13.5px; line-height: 1.45; color: var(--mist); }
.cf-rel-go { color: #FF8A8A; }
[dir="rtl"] .cf-rel-go { transform: scaleX(-1); }
.cf-motion .cf-rel-grid > li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease calc(var(--i) * 60ms), transform .5s ease calc(var(--i) * 60ms); }
.cf-motion .is-in.cf-rel-grid > li { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Tablets and phones                                                   */
/* ------------------------------------------------------------------ */
@media (max-width: 1099px) {
  .cf-list.is-2col { grid-template-columns: minmax(0, 1fr); }
  /* Wingdock: plan above, both lists below it */
  .cf-wd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-wd-plan { grid-column: 1 / -1; grid-row: 1; max-inline-size: 460px; justify-self: center; inline-size: 100%; }
  .cf-ph-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-sp-grid, .cf-list.is-4col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  /* Clearance and skidframe: drawing above the list */
  .cf-cl, .cf-sk { grid-template-columns: minmax(0, 1fr); }
  .cf-cl-vis, .cf-sk-vis { max-inline-size: 520px; inline-size: 100%; justify-self: center; }
  .cf-sk-vis { grid-row: 1; }
  .cf-ph-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-ph-lead img { max-block-size: 460px; }
}
@media (max-width: 719px) {
  .cf-eco-stage { margin-block-start: var(--space-5, 32px); }
  /* Traveller: operation numbers above the nodes, smaller stamps */
  .cf-tv-sheet { padding: 16px 14px; }
  .cf-tv-sheet::before, .cf-tv-route::before, .cf-tv-op::before { display: none; }
  .cf-tv-op { grid-template-columns: minmax(0, 1fr) 58px; gap: 4px 10px; }
  .cf-tv-opno { grid-column: 1 / -1; }
  .cf-tv-stamp { inline-size: 56px; block-size: 56px; border-width: 2px; }
  .cf-tv-stamp > span { font-size: 10px; letter-spacing: .5px; }
  .cf-node.is-op { padding: 4px 0; }
  .cf-node.is-op .cf-node-text { font-size: 13.5px; }
  .cf-tv-caption { padding-inline-start: 0; }
  /* Wingdock: one list */
  .cf-wd { grid-template-columns: minmax(0, 1fr); gap: var(--space-4, 24px); }
  .cf-wd-list.is-end { margin-block-start: calc(var(--space-4, 24px) * -1); border-block-start: 0; }
  /* Matchmark: fewer labels */
  .cf-mm-vis { padding: 10px 8px 8px; }
  .cf-mm-mark { display: none; }
  .cf-mm-labels { font-size: 10px; letter-spacing: 1px; }
  /* Specimen: one column, swatch beside the text */
  .cf-sp-grid, .cf-list.is-4col { grid-template-columns: minmax(0, 1fr); }
  .cf-sp-chip { flex-direction: row; }
  .cf-sp-swatch { flex: 0 0 64px; block-size: auto; min-block-size: 72px; }
  .cf-sp-swatch > span { inset-inline-start: 6px; font-size: 10px; }
  .cf-sp-stamp { transform: none; }
  /* Unfold: nest only */
  .cf-uf-vis svg { margin-inline-start: -53%; inline-size: 156%; max-inline-size: none; }
  .cf-uf-labels > span:first-child, .cf-uf-arrow { display: none; }
  .cf-uf-vis { overflow: hidden; }
  /* Photo strip: one row that swipes sideways */
  .cf-ph-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 8px; margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); scrollbar-width: thin; }
  .cf-ph-strip > li { flex: 0 0 62%; scroll-snap-align: start; }
  /* Related pages: one row that swipes sideways */
  .cf-rel-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 8px; margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); scrollbar-width: thin; }
  .cf-rel-grid > li { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-node.is-row, .cf-node.is-op, .cf-node-ico, .cf-node-go, .cf-tv-stamp, .cf-wd-pad rect, .cf-wd-pad circle, .cf-mm-tag rect,
  .cf-rel-img img, .cf-rel-card::after, .cf-ph-strip img, .cf-cl-deck rect, .cf-uf-part rect, .cf-uf-part path,
  .cf-sp-swatch, .cf-node.is-chip, :where(.cf-cl-pad, .cf-sk-mark, .cf-rd-pt) circle { transition: none; }
}
