/* BlueDesk. An office after hours: charcoal like a dimmed room, warm gray paper for reading,
   brand blue for action, and lamp-warm light only where the desk's lights switch on.
   Every color is a token here; nothing raw below. */
:root {
  --bd-night: #18191B;
  --bd-panel: #222326;
  --bd-line: #34363A;
  --bd-text: #F2F1EF;
  --bd-mist: #AAACB0;
  --bd-paper: #F4F3F1;
  --bd-gray: #E7E5E5;
  --bd-white: #FFFFFF;
  --bd-ink: #1A1B1D;
  --bd-soft: #545454;
  --bd-rule: #D9D7D4;
  --bd-blue: #009DDC;
  --bd-blue-ink: #00719E;
  --bd-alu: #C9CBCF;
  --bd-walnut: #6E4B33;
  --bd-glow: #F6D9A8;
  --bd-rec: #E5484D;
  --bd-sil: #474A50;
  --bd-sans: 'Montserrat', system-ui, sans-serif;
  --bd-mono: 'DM Mono', ui-monospace, monospace;
  --bd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 72px; }
body { font-family: var(--bd-sans); font-size: 1.04rem; line-height: 1.65; color: var(--bd-ink); background: var(--bd-paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bd-blue); outline-offset: 3px; border-radius: 4px; }

.bd-wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.bd-narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.bd-section { padding-block: clamp(4rem, 9vw, 7rem); }
.bd-dark { background: var(--bd-night); color: var(--bd-text); }
.bd-paper { background: var(--bd-paper); }
.bd-white { background: var(--bd-white); }

.bd-h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.03; font-weight: 800; letter-spacing: -0.035em; }
.bd-h1 span, .bd-h2 span { color: var(--bd-blue); }
.bd-h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.bd-h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.bd-lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.6; color: var(--bd-soft); max-width: 40rem; margin-top: 1.1rem; }
.bd-dark .bd-lede { color: var(--bd-mist); }
.bd-small { font-size: 0.9rem; color: var(--bd-soft); }
.bd-dark .bd-small { color: var(--bd-mist); }
.bd-mono { font-family: var(--bd-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.bd-eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--bd-blue-ink); }
.bd-dark .bd-eyebrow { color: var(--bd-blue); }
.bd-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bd-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--bd-blue); }
.bd-link:hover { color: var(--bd-blue-ink); }
.bd-dark .bd-link:hover { color: var(--bd-blue); }

.bd-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.bd-btn { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 8px; background: var(--bd-blue); color: var(--bd-night); font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 1.5px solid var(--bd-blue); transition: transform 0.25s var(--bd-ease), background 0.25s, color 0.25s, border-color 0.25s; }
.bd-btn:hover { transform: translateY(-2px); background: var(--bd-text); border-color: var(--bd-text); }
.bd-btn-line { background: transparent; color: inherit; border-color: var(--bd-line); }
.bd-btn-line:hover { background: transparent; color: var(--bd-blue); border-color: var(--bd-blue); }
.bd-btn svg { width: 1.1rem; height: 1.1rem; }

/* top bar */
.bd-top { position: sticky; top: 0; z-index: 20; background: rgb(24 25 27 / 0.92); backdrop-filter: blur(10px); color: var(--bd-text); border-bottom: 1px solid var(--bd-line); }
.bd-top .bd-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.bd-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; text-decoration: none; }
.bd-brand svg { width: 30px; height: 30px; }
.bd-top nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.92rem; font-weight: 500; }
.bd-top nav a { text-decoration: none; color: var(--bd-mist); }
.bd-top nav a:hover { color: var(--bd-text); }
.bd-top nav .bd-btn { min-height: 40px; padding: 0.45rem 1rem; color: var(--bd-night); }
@media (max-width: 820px) { .bd-top nav a:not(.bd-btn) { display: none; } }

/* hero */
.bd-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.bd-hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bd-hero .bd-h1 { margin-top: 1.1rem; }
.bd-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.8rem; list-style: none; font-size: 0.92rem; color: var(--bd-mist); }
.bd-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.bd-facts svg { width: 1.05rem; height: 1.05rem; color: var(--bd-blue); }
@media (max-width: 900px) { .bd-hero-grid { grid-template-columns: 1fr; } }

/* viewfinder frame around the concept image */
.bd-vf { position: relative; border-radius: 10px; overflow: hidden; background: var(--bd-panel); box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8); }
.bd-vf img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bd-vf-mark { position: absolute; width: 26px; height: 26px; border: 2px solid var(--bd-text); opacity: 0.85; }
.bd-vf-mark.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.bd-vf-mark.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.bd-vf-mark.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.bd-vf-mark.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.bd-vf-hud { position: absolute; top: 18px; left: 50px; right: 50px; display: flex; justify-content: space-between; color: var(--bd-text); text-shadow: 0 1px 6px rgb(0 0 0 / 0.6); }
.bd-rec { display: inline-flex; align-items: center; gap: 0.4rem; }
.bd-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--bd-rec); }
.bd-vf figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem 0.8rem; font-size: 0.8rem; color: var(--bd-text); background: linear-gradient(transparent, rgb(0 0 0 / 0.6)); text-align: center; }

/* the offer: full version first, then the launch offer */
.bd-offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.8rem; align-items: stretch; }
.bd-card { position: relative; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: 12px; background: var(--bd-white); border: 1px solid var(--bd-rule); }
.bd-card-launch { background: var(--bd-night); color: var(--bd-text); border: 2px solid var(--bd-blue); box-shadow: 0 30px 60px -36px rgb(0 113 158 / 0.55); }
.bd-tag { position: absolute; top: -0.85rem; left: 1.6rem; padding: 0.25rem 0.75rem; border-radius: 99px; background: var(--bd-blue); color: var(--bd-night); font-family: var(--bd-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.bd-card .bd-h3 { font-size: 1.05rem; color: var(--bd-soft); }
.bd-card-launch .bd-h3 { color: var(--bd-blue); }
.bd-price { margin-top: 0.6rem; font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bd-price small { display: block; margin-top: 0.5rem; font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--bd-soft); }
.bd-card-launch .bd-price small { color: var(--bd-mist); }
.bd-terms { margin-top: 1.6rem; border-top: 1px solid var(--bd-rule); }
.bd-card-launch .bd-terms { border-color: var(--bd-line); }
.bd-terms div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--bd-rule); font-size: 0.97rem; }
.bd-card-launch .bd-terms div { border-color: var(--bd-line); }
.bd-terms dt { font-family: var(--bd-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bd-soft); padding-top: 0.2rem; }
.bd-card-launch .bd-terms dt { color: var(--bd-mist); }
.bd-offer-note { margin-top: 1.4rem; }
@media (max-width: 820px) { .bd-offer { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 420px) { .bd-terms div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* each month */
.bd-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2.8rem; list-style: none; }
.bd-three li { padding-top: 1.4rem; border-top: 2px solid var(--bd-ink); }
.bd-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 10px; background: var(--bd-gray); color: var(--bd-blue-ink); margin-bottom: 1.1rem; }
.bd-ico svg { width: 1.45rem; height: 1.45rem; }
.bd-three p { margin-top: 0.55rem; color: var(--bd-soft); }
@media (max-width: 820px) { .bd-three { grid-template-columns: 1fr; } }

/* one interview, eight pieces */
.bd-pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2fr); grid-template-rows: auto auto; gap: 0.9rem; margin-top: 2.8rem; list-style: none; }
.bd-piece figcaption { margin-top: 0.55rem; font-size: 0.85rem; color: var(--bd-mist); display: flex; gap: 0.5rem; }
.bd-piece figcaption b { font-family: var(--bd-mono); font-weight: 500; color: var(--bd-blue); }
.bd-clip { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 70% at 50% 30%, #3A3C41 0%, var(--bd-panel) 60%); border: 1px solid var(--bd-line); }
.bd-clip::before, .bd-clip::after { content: ''; position: absolute; background: var(--bd-sil); }
.bd-clip::before { left: 50%; top: 27%; width: 30%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; }
.bd-clip::after { left: 14%; right: 14%; top: 50%; bottom: 0; border-radius: 48% 48% 0 0 / 30% 30% 0 0; }
.bd-cap { z-index: 1; }
.bd-pieces > .bd-piece:not(.bd-long) { grid-row: 1 / 3; }
.bd-cap { position: absolute; left: 12%; right: 12%; bottom: 14%; display: grid; gap: 5px; justify-items: center; }
.bd-cap i { display: block; height: 7px; width: 100%; border-radius: 3px; background: var(--bd-text); opacity: 0.9; }
.bd-cap i + i { width: 70%; }
.bd-long { grid-column: 5; grid-row: 1; }
.bd-wide { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: radial-gradient(90% 90% at 50% 40%, #3A3C41 0%, var(--bd-panel) 70%); border: 1px solid var(--bd-line); display: grid; place-items: center; }
.bd-wide svg { width: 3.2rem; height: 3.2rem; color: var(--bd-text); opacity: 0.9; }
.bd-wide .bd-bar { position: absolute; left: 6%; right: 6%; bottom: 8%; height: 4px; border-radius: 2px; background: var(--bd-line); }
.bd-wide .bd-bar::before { content: ''; position: absolute; inset: 0 62% 0 0; border-radius: 2px; background: var(--bd-blue); }
.bd-articles { grid-column: 5; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; align-self: start; }
.bd-doc { aspect-ratio: 3 / 4; border-radius: 8px; background: var(--bd-paper); padding: 14%; display: grid; align-content: start; gap: 7px; }
.bd-doc i { display: block; height: 5px; border-radius: 2px; background: var(--bd-rule); }
.bd-doc i:first-child { height: 9px; width: 80%; background: var(--bd-ink); margin-bottom: 4px; }
.bd-doc i:nth-child(4n) { width: 70%; }
.bd-pieces-note { margin-top: 1.6rem; }
@media (max-width: 980px) {
  .bd-pieces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bd-long, .bd-articles, .bd-pieces > .bd-piece:not(.bd-long) { grid-column: auto; grid-row: auto; }
  .bd-long, .bd-articles { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .bd-pieces { gap: 0.6rem; } .bd-piece figcaption { flex-wrap: wrap; gap: 0 0.4rem; font-size: 0.78rem; } }

/* how it works */
.bd-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; margin-top: 3rem; list-style: none; counter-reset: s; }
.bd-steps::before { content: ''; position: absolute; top: 1.2rem; left: 1.2rem; right: 1.2rem; height: 2px; background: var(--bd-rule); }
.bd-steps::after { content: ''; position: absolute; top: 1.2rem; left: 1.2rem; right: 1.2rem; height: 2px; background: var(--bd-blue); transform-origin: left; transform: scaleX(1); }
.bd-steps li { position: relative; counter-increment: s; }
.bd-steps li::before { content: counter(s); position: relative; z-index: 1; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--bd-ink); color: var(--bd-text); font-weight: 800; font-size: 0.95rem; box-shadow: 0 0 0 6px var(--bd-paper); }
.bd-steps .bd-mono { display: block; margin-top: 1.1rem; color: var(--bd-blue-ink); }
.bd-steps h3 { margin-top: 0.3rem; }
.bd-steps p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--bd-soft); }
@media (max-width: 900px) {
  .bd-steps { grid-template-columns: 1fr; gap: 0; }
  .bd-steps::before, .bd-steps::after { top: 1.2rem; bottom: 1.2rem; left: 1.2rem; right: auto; width: 2px; height: auto; transform-origin: top; }
  .bd-steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1.2rem; padding-bottom: 1.8rem; }
  .bd-steps li::before { grid-row: span 3; }
  .bd-steps .bd-mono { margin-top: 0.35rem; }
}

/* the desk drawing */
.bd-desk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2.8rem; }
.bd-draw { background: var(--bd-panel); border: 1px solid var(--bd-line); border-radius: 12px; padding: clamp(0.8rem, 2vw, 1.4rem); }
.bd-draw svg { width: 100%; }
.bd-draw figcaption { margin-top: 0.8rem; text-align: center; }
.bd-parts { list-style: none; counter-reset: p; border-top: 1px solid var(--bd-line); }
.bd-parts li { counter-increment: p; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--bd-line); }
.bd-parts li::before { content: counter(p); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--bd-blue); color: var(--bd-night); font-weight: 800; font-size: 0.85rem; }
.bd-parts b { font-weight: 700; }
.bd-parts span { color: var(--bd-mist); }
@media (max-width: 900px) { .bd-desk { grid-template-columns: 1fr; } }
.bd-svg-frame { fill: none; stroke: var(--bd-alu); stroke-width: 7; stroke-linecap: round; }
.bd-svg-thin { fill: none; stroke: var(--bd-alu); stroke-width: 3; stroke-linecap: round; }
.bd-svg-dark { fill: #2E3034; stroke: var(--bd-alu); stroke-width: 2; }
.bd-svg-desk { fill: var(--bd-walnut); }
.bd-svg-panel { fill: var(--bd-glow); stroke: var(--bd-alu); stroke-width: 2; }
.bd-svg-cone { fill: url(#bd-cone); }
.bd-svg-rec { fill: var(--bd-rec); }
.bd-svg-screen { fill: #1E2A36; stroke: var(--bd-alu); stroke-width: 2; }
.bd-svg-num circle { fill: var(--bd-blue); }
.bd-svg-num text { fill: var(--bd-night); font: 800 15px var(--bd-sans); text-anchor: middle; dominant-baseline: central; }

/* who is behind it */
.bd-who { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bd-photo { border-radius: 12px; overflow: hidden; }
.bd-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bd-photo-cap { margin-top: 0.7rem; }
.bd-who p + p { margin-top: 0.9rem; }
.bd-stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 1.6rem; list-style: none; }
.bd-stats b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--bd-blue-ink); line-height: 1.1; }
.bd-stats span { font-size: 0.88rem; color: var(--bd-soft); }
.bd-wide-photo { margin-top: clamp(2.6rem, 6vw, 4rem); }
.bd-wide-photo .bd-photo img { aspect-ratio: 21 / 9; }
@media (max-width: 860px) { .bd-who { grid-template-columns: 1fr; } }

/* three launch desks */
.bd-slots { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; list-style: none; }
.bd-slots li { display: grid; justify-items: center; gap: 0.5rem; width: 7.5rem; padding: 1.1rem 0.6rem 0.9rem; border: 1px solid var(--bd-line); border-radius: 12px; background: var(--bd-panel); }
.bd-slots svg { width: 3.4rem; height: 3.4rem; color: var(--bd-blue); }
.bd-slots b { font-size: 0.95rem; }
.bd-slots span { font-family: var(--bd-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bd-blue); }

/* footer */
.bd-foot { background: #111214; color: var(--bd-mist); border-top: 1px solid var(--bd-line); padding-block: 2.4rem; font-size: 0.88rem; }
.bd-foot .bd-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; }
.bd-foot a { color: var(--bd-text); }

/* motion: only when the visitor has not asked for less of it */
html.motion [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity 0.9s var(--bd-ease), translate 0.9s var(--bd-ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion [data-reveal].in { opacity: 1; translate: 0 0; }
html.motion .bd-hero-copy > * { animation: bd-rise 0.9s var(--bd-ease) both; animation-delay: calc(var(--i, 0) * 100ms); }
html.motion .bd-vf img { animation: bd-settle 1.8s var(--bd-ease) both; }
html.motion .bd-vf-mark { animation: bd-fade 0.6s ease both 0.6s; }
html.motion .bd-rec i { animation: bd-blink 1.6s steps(1) infinite 1s; }
html.motion .bd-steps::after { transform: scaleX(0); transition: transform 1.6s var(--bd-ease) 0.2s; }
html.motion .bd-steps.in::after { transform: scaleX(1); }
@media (max-width: 900px) { html.motion .bd-steps::after { transform: scaleY(0); } html.motion .bd-steps.in::after { transform: scaleY(1); } }
/* the one authored moment: the frame draws itself onto the desk, then the lights come on, then the camera starts recording */
html.motion .bd-draw .bd-svg-frame, html.motion .bd-draw .bd-svg-thin { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--bd-ease); }
html.motion .bd-draw.in .bd-svg-frame, html.motion .bd-draw.in .bd-svg-thin { stroke-dashoffset: 0; }
html.motion .bd-draw .bd-svg-panel { fill: #4A4D53; transition: fill 0.5s ease 1.3s; }
html.motion .bd-draw.in .bd-svg-panel { fill: var(--bd-glow); }
html.motion .bd-draw .bd-svg-cone { opacity: 0; transition: opacity 0.9s ease 1.4s; }
html.motion .bd-draw.in .bd-svg-cone { opacity: 1; }
html.motion .bd-draw .bd-part { opacity: 0; transition: opacity 0.6s ease calc(0.9s + var(--i, 0) * 120ms); }
html.motion .bd-draw.in .bd-part { opacity: 1; }
html.motion .bd-draw.in .bd-svg-rec { animation: bd-blink 1.6s steps(1) infinite 2s; }
html.motion .bd-draw .bd-svg-num { opacity: 0; transition: opacity 0.4s ease calc(1.8s + var(--i, 0) * 110ms); }
html.motion .bd-draw.in .bd-svg-num { opacity: 1; }
html.motion .bd-piece { opacity: 0; translate: 0 16px; transition: opacity 0.7s var(--bd-ease), translate 0.7s var(--bd-ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion .bd-pieces.in .bd-piece { opacity: 1; translate: 0 0; }
html.motion .bd-wipe img { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--bd-ease); }
html.motion .bd-wipe.in img { clip-path: inset(0 0 0 0); }
@keyframes bd-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes bd-settle { from { opacity: 0; scale: 1.07; } to { opacity: 1; scale: 1; } }
@keyframes bd-fade { from { opacity: 0; } to { opacity: 0.85; } }
@keyframes bd-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
