/* THE PLANS — The Wreck Explorer.
   A pinned, scroll-driven, multi-layer parallax scene cut from a blueprint
   artwork, a bridge whose words ink in as you scroll, and a plans library.
   Every rule is scoped under .wx-plans so it can sit inside any site. */

.wx-plans {
  --wxp-blue: #071b27;
  --wxp-line: rgb(214 240 255 / .28);
  --wxp-chalk: #e6f2ff;
  --wxp-paper: #f0efe8;
  --wxp-paper-2: #f7f6f1;
  --wxp-ink: #152021;
  --wxp-ink-dim: rgb(21 32 33 / .66);
  --wxp-ink-line: rgb(21 32 33 / .14);
  --wxp-rust: #b83c1e;
  --wxp-amber: #f2b45a;
  --wxp-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wxp-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wxp-gutter: 16px;
  --wxp-edge: 6vw;
  position: relative;
  overflow-x: clip;
  background: var(--wxp-paper);
  color: var(--wxp-ink);
  font-family: var(--wxp-sans);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 640px) { .wx-plans { --wxp-gutter: 24px; } }
.wx-plans *, .wx-plans *::before, .wx-plans *::after { box-sizing: border-box; }
.wx-plans :is(h1, h2, h3, p, ol, ul, dl, dd) { margin: 0; padding: 0; }
.wx-plans :is(ol, ul) { list-style: none; }
.wx-plans a { color: inherit; text-decoration: none; }
.wx-plans img { display: block; max-width: none; }

/* ------------------------------------------------------------ Type */
.wx-plans .wxp-label { font: 400 .6875rem/1.3 var(--wxp-mono); letter-spacing: .16em; text-transform: uppercase; }
.wx-plans .wxp-rust { color: var(--wxp-rust); }
.wx-plans .wxp-muted { color: var(--wxp-ink-dim); }
.wx-plans .wxp-display { font: 650 clamp(1.75rem, 4vw, 3.75rem)/1.02 var(--wxp-sans); letter-spacing: -.045em; color: var(--wxp-ink); }
.wx-plans .wxp-bob { display: inline-block; animation: wxp-bob 1s infinite; }
@keyframes wxp-bob {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}
.wx-plans .wxp-brackets {
  background:
    linear-gradient(currentColor, currentColor) top left / 14px 1px,
    linear-gradient(currentColor, currentColor) top left / 1px 14px,
    linear-gradient(currentColor, currentColor) top right / 14px 1px,
    linear-gradient(currentColor, currentColor) top right / 1px 14px,
    linear-gradient(currentColor, currentColor) bottom left / 14px 1px,
    linear-gradient(currentColor, currentColor) bottom left / 1px 14px,
    linear-gradient(currentColor, currentColor) bottom right / 14px 1px,
    linear-gradient(currentColor, currentColor) bottom right / 1px 14px;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------ 1. The scene */
.wx-plans .wxp-scene { position: relative; height: 460svh; }
.wx-plans .wxp-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--wxp-blue); }
.wx-plans .wxp-layer { position: absolute; inset: 0; will-change: transform; }
/* All layers share one crop, so they stay registered at every screen shape. */
.wx-plans .wxp-fit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.wx-plans .wxp-ship { will-change: transform, clip-path; }
.wx-plans .wxp-ground-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: linear-gradient(rgb(7 27 39 / 0), var(--wxp-blue)); }
/* The hand-over: the scene fades into the same blue as the bridge, so there is no seam. */
.wx-plans .wxp-fade { position: absolute; inset: 0; background: var(--wxp-blue); opacity: 0; pointer-events: none; }

/* The pen: a line of light that inks the ship in. */
.wx-plans .wxp-pen {
  position: absolute; top: 8%; bottom: 22%; left: 0; width: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(transparent, rgb(214 240 255 / .95) 20%, rgb(214 240 255 / .95) 80%, transparent);
  box-shadow: 0 0 18px 4px rgb(140 210 255 / .55), 0 0 60px 10px rgb(120 190 255 / .25);
}

.wx-plans .wxp-title { position: absolute; left: 0; right: 0; bottom: 30%; text-align: center; pointer-events: none; }
@media (min-width: 768px) { .wx-plans .wxp-title { bottom: 27%; } }
.wx-plans .wxp-title h1 { font: 650 clamp(2.25rem, 7.4vw, 7.5rem)/1 var(--wxp-sans); letter-spacing: .06em; margin-right: -.06em; color: #fff; text-shadow: 0 4px 40px rgb(0 0 0 / .5); }
.wx-plans .wxp-title .wxp-label { margin-top: 16px; color: rgb(214 230 240 / .85); }

/* Tracing paper over the view, with a faint drafting grid. */
.wx-plans .wxp-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgb(190 220 240 / .07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(190 220 240 / .07) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(70% 60% at 40% 40%, rgba(120, 160, 190, .45), transparent 70%),
    radial-gradient(80% 80% at 50% 50%, rgba(12, 36, 52, .88), rgba(5, 18, 28, .97));
}
.wx-plans .wxp-veil-copy { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 var(--wxp-gutter); color: rgb(214 230 240 / .85); }
.wx-plans .wxp-cue { margin: 12px -.3em 0 0; font: 600 .75rem/1.4 var(--wxp-sans); letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .9); }
@media (min-width: 640px) { .wx-plans .wxp-cue { margin-right: -.5em; font-size: .8125rem; letter-spacing: .5em; } }
.wx-plans .wxp-veil-copy .wxp-bob { margin-top: 24px; }
.wx-plans .wxp-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* A drawing's title block, in the corners. */
.wx-plans .wxp-hud { position: absolute; inset: 16px; pointer-events: none; font: 400 .625rem/1.3 var(--wxp-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(214 230 240 / .78); }
@media (min-width: 640px) { .wx-plans .wxp-hud { inset: 24px; } }
@media (min-width: 768px) { .wx-plans .wxp-hud { font-size: .6875rem; } }
.wx-plans .wxp-hud-frame { position: absolute; inset: 0; color: rgb(214 230 240 / .4); }
.wx-plans .wxp-hud p + p { margin-top: 4px; }
.wx-plans .wxp-faint { color: rgb(214 230 240 / .5); }
.wx-plans .wxp-accent { color: #9fdcff; }
.wx-plans .wxp-hud-tl, .wx-plans .wxp-hud-tr { position: absolute; top: 64px; }
.wx-plans .wxp-hud-tl { left: 12px; }
.wx-plans .wxp-hud-tr { right: 12px; text-align: right; }
.wx-plans .wxp-hud-bl { position: absolute; left: 12px; bottom: 12px; max-width: 60%; }
.wx-plans .wxp-hud-br { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center; }
@media (min-width: 768px) {
  .wx-plans .wxp-hud-tl, .wx-plans .wxp-hud-tr { top: 80px; }
  .wx-plans .wxp-hud-tl, .wx-plans .wxp-hud-bl { left: 16px; }
  .wx-plans .wxp-hud-tr, .wx-plans .wxp-hud-br { right: 16px; }
  .wx-plans .wxp-hud-bl, .wx-plans .wxp-hud-br { bottom: 16px; }
}

/* ------------------------------------------------------------ 2. The bridge */
.wx-plans .wxp-bridge { position: relative; height: 200svh; background: var(--wxp-blue); }
/* The bridge glides up over the last screen of the scene as it fades, so the words arrive while the drawing dissolves. */
.wx-plans .wxp-scene + .wxp-bridge { margin-top: -100svh; }
.wx-plans .wxp-bridge-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-content: center; gap: clamp(40px, 8vh, 80px);
  padding: 80px var(--wxp-gutter) 40px; color: var(--wxp-chalk);
  background:
    linear-gradient(rgb(190 220 240 / .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(190 220 240 / .05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--wxp-blue);
}
@media (min-width: 768px) { .wx-plans .wxp-bridge-stage { padding: 96px var(--wxp-edge) 56px; } }
.wx-plans .wxp-words { max-width: 22ch; font: 650 clamp(1.75rem, 4.6vw, 4rem)/1.08 var(--wxp-sans); letter-spacing: -.04em; }
@media (min-width: 768px) { .wx-plans .wxp-words { max-width: 24ch; } }
.wx-plans .wxp-words span { color: rgb(230 242 255 / .16); transition: color .35s ease; }
.wx-plans .wxp-words span.is-lit { color: var(--wxp-chalk); }
.wx-plans .wxp-scale { position: relative; height: 64px; }
.wx-plans .wxp-line { position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: rgb(214 240 255 / .12); }
.wx-plans .wxp-line span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--wxp-chalk); box-shadow: 0 0 10px rgb(160 220 255 / .6); }
.wx-plans .wxp-tick { position: absolute; top: 0; width: 0; opacity: .15; transition: opacity .3s; }
.wx-plans .wxp-tick i { position: absolute; left: 0; top: 8px; width: 1px; height: 20px; background: var(--wxp-chalk); }
.wx-plans .wxp-tick b { position: absolute; left: 0; top: 34px; transform: translateX(-50%); font: 500 10px/1 var(--wxp-mono); letter-spacing: .08em; color: var(--wxp-chalk); }
.wx-plans .wxp-tick.is-on { opacity: 1; }
@media (max-width: 640px) { .wx-plans .wxp-tick:nth-child(even of .wxp-tick) b { display: none; } }
.wx-plans .wxp-scale-caption { position: absolute; left: 0; bottom: -18px; font: 500 10px/1.3 var(--wxp-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(214 240 255 / .55); }

/* From the blueprint's blue up into the paper. */
.wx-plans .wxp-surfacing { height: 38vh; background: linear-gradient(var(--wxp-blue), #24414f 35%, #b7b9b2 75%, var(--wxp-paper)); }

/* ------------------------------------------------------------ 3. The plans library */
.wx-plans .wxp-library { padding: 112px var(--wxp-gutter) 112px; }
@media (min-width: 768px) { .wx-plans .wxp-library { padding: 160px var(--wxp-edge) 140px; } }
.wx-plans .wxp-head { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .wx-plans .wxp-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.wx-plans .wxp-head .wxp-display { margin-top: 16px; }
.wx-plans .wxp-lede { margin-top: 28px; max-width: 40rem; font-size: clamp(.9375rem, 1.05vw, 1.0625rem); line-height: 1.65; color: var(--wxp-ink-dim); }
.wx-plans .wxp-sheets { margin-top: 48px; display: grid; gap: 16px; }
@media (min-width: 640px) { .wx-plans .wxp-sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wx-plans .wxp-sheets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
/* Each record's build facts set out as the title block of a drawing. */
.wx-plans .wxp-sheet a {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px; border-radius: 6px; color: var(--wxp-chalk);
  background:
    linear-gradient(rgb(190 220 240 / .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(190 220 240 / .07) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 20% 0%, #164056, #0b2433 70%);
  box-shadow: 0 24px 50px -30px rgb(7 27 39 / .7);
  transition: transform .4s cubic-bezier(.2, .7, .1, 1), box-shadow .4s;
}
.wx-plans .wxp-sheet a::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--wxp-line); border-radius: 3px; pointer-events: none; }
.wx-plans .wxp-sheet a:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgb(7 27 39 / .8); }
.wx-plans .wxp-sheet a:focus-visible { outline: 2px solid var(--wxp-rust); outline-offset: 3px; }
.wx-plans .wxp-sheet-top { display: flex; justify-content: space-between; gap: 12px; font: 500 10px/1.3 var(--wxp-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(214 240 255 / .7); }
.wx-plans .wxp-sheet h3 { margin: 18px 0 16px; font: 700 1.5rem/1.1 var(--wxp-sans); letter-spacing: -.03em; color: #fff; }
.wx-plans .wxp-sheet dl { display: grid; border-top: 1px solid rgb(214 240 255 / .22); }
.wx-plans .wxp-sheet dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgb(214 240 255 / .22); }
.wx-plans .wxp-sheet dt { font: 500 10px/1.5 var(--wxp-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(214 240 255 / .62); }
.wx-plans .wxp-sheet dd { font-size: .875rem; line-height: 1.45; color: var(--wxp-chalk); }
.wx-plans .wxp-sheet-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wx-plans .wxp-sheet-status { font: 500 10px/1.3 var(--wxp-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--wxp-amber); }
.wx-plans .wxp-sheet-open { font: 500 10px/1.3 var(--wxp-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.wx-plans .wxp-call { margin-top: 56px; display: grid; gap: 14px; justify-items: start; padding: 32px; border-radius: 8px; background: var(--wxp-paper-2); box-shadow: inset 0 0 0 1px var(--wxp-ink-line); }
@media (min-width: 900px) { .wx-plans .wxp-call { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 32px; } }
.wx-plans .wxp-call-title { font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.45; letter-spacing: -.01em; }
.wx-plans .wxp-call-body { font-size: .9375rem; line-height: 1.65; color: var(--wxp-ink-dim); }
.wx-plans .wxp-btn { display: inline-block; border-radius: 100px; padding: 14px 22px; background: var(--wxp-ink); color: var(--wxp-paper); font: 400 .6875rem/1.3 var(--wxp-mono); letter-spacing: .16em; text-transform: uppercase; transition: background-color .2s; }
.wx-plans .wxp-btn:hover { background: var(--wxp-rust); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .wx-plans .wxp-bob { animation: none; }
  .wx-plans .wxp-words span, .wx-plans .wxp-tick { transition: none; }
}

.wx-plans .wxp-sheet{display:flex;flex-direction:column;min-width:0}.wx-plans .wxp-sheet>a{height:auto;flex:1}.wx-plans .wxp-view-plans{margin-top:8px;min-height:46px;border:1px solid #163643;border-radius:4px;background:#f7f6f1;color:#152021;font:700 11px/1.4 Manrope,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.wx-plans .wxp-view-plans:hover{background:#163643;color:#fff}.wxp-dialog{width:min(1100px,calc(100vw - 28px));max-width:none;max-height:90dvh;padding:0;border:1px solid #829d9e;background:#f0efe8;color:#152021;box-shadow:0 30px 100px #0009}.wxp-dialog::backdrop{background:#071b27de}.wxp-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px;background:#f0efe8;border-bottom:1px solid #c8ccc2}.wxp-dialog-head h2{font:600 clamp(24px,4vw,38px)/1.1 Manrope,Arial,sans-serif;letter-spacing:-.04em;margin:4px 0}.wxp-dialog-head p,.wxp-dialog-meta{font:600 11px/1.6 Manrope,Arial,sans-serif;color:#52625b}.wxp-dialog-close{border:1px solid #152021;background:transparent;border-radius:30px;padding:10px 16px;min-height:44px;cursor:pointer}.wxp-dialog-body{padding:24px;display:grid;gap:32px}.wxp-plan-figure{margin:0;min-width:0}.wxp-plan-image{display:block;background:#fff;border:1px solid #b9c4bf;text-align:center}.wxp-plan-image img{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain}.wxp-plan-figure figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;padding:10px 0;font:500 12px/1.5 Manrope,Arial,sans-serif}.wxp-plan-figure a{color:#a73b20}.wxp-dialog a:focus-visible,.wxp-dialog button:focus-visible,.wxp-view-plans:focus-visible{outline:3px solid #b83c1e;outline-offset:3px}@media(max-width:500px){.wxp-dialog-head{padding:16px}.wxp-dialog-body{padding:16px}.wxp-dialog-head h2{font-size:23px}.wxp-plan-figure figcaption{display:block}.wxp-plan-figure figcaption a{display:block;margin-top:5px}}

/* Keep pinned scenes stable and economical on touch screens. */
@media (pointer:coarse){.wx-plans .wxp-layer{will-change:auto}.wx-plans .wxp-stage{isolation:isolate}.wx-plans .wxp-title{filter:none!important}}
