/* Self-hosted fonts (latin subset) — generated from Google Fonts. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(../fonts/bricolage-grotesque.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/caveat.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/caveat.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/caveat.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/figtree.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/figtree.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/figtree.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/figtree.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif.woff2) format('woff2'); }

/* ==========================================================================
   CADMinds — "drafting studio" theme
   Light = drafting paper. Dark = studio at night.
   Tokens → base → layout → components → pages → responsive
   ========================================================================== */

:root,
:root[data-theme="light"] {
  --bg: #f5f2ea;
  --bg-2: #ede8dc;
  --panel: #fbf9f4;
  --panel-2: #f1ece1;
  --panel-3: #e7e0d1;
  --line: rgba(40, 52, 45, 0.12);
  --line-2: rgba(40, 52, 45, 0.22);
  --grid: rgba(31, 111, 140, 0.07);
  --grid-2: rgba(31, 111, 140, 0.035);
  --text: #18211c;
  --text-2: #46524b;
  --muted: #76807a;
  --brand: #1f8a45;
  --brand-hover: #18763a;
  --brand-deep: #135e2e;
  --brand-ink: #ffffff;
  --brand-soft: rgba(31, 138, 69, 0.1);
  --accent: #0f7480;
  --accent-soft: rgba(15, 116, 128, 0.1);
  --pen: #c8432b;
  --note: #ffe79a;
  --note-ink: #3b3216;
  --tape: rgba(255, 236, 170, 0.75);
  --header-bg: rgba(245, 242, 234, 0.82);
  --ink-bg: #18211c;
  --ink-fg: #f5f2ea;
  --scrim: rgba(24, 33, 28, 0.55);
  --shadow: 0 1px 2px rgba(40, 40, 30, 0.06), 0 18px 40px -22px rgba(40, 40, 30, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(40, 40, 30, 0.45);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111412;
  --bg-2: #161a17;
  --panel: #1a1f1c;
  --panel-2: #20261f;
  --panel-3: #283029;
  --line: rgba(232, 226, 210, 0.1);
  --line-2: rgba(232, 226, 210, 0.18);
  --grid: rgba(120, 200, 170, 0.06);
  --grid-2: rgba(120, 200, 170, 0.03);
  --text: #ece8de;
  --text-2: #bdb8ab;
  --muted: #8b877c;
  --brand: #4cc477;
  --brand-hover: #63d189;
  --brand-deep: #2b8a4c;
  --brand-ink: #0c1a10;
  --brand-soft: rgba(76, 196, 119, 0.12);
  --accent: #5cc3cc;
  --accent-soft: rgba(92, 195, 204, 0.12);
  --pen: #ff8466;
  --note: #e8cf72;
  --note-ink: #2c2510;
  --tape: rgba(240, 225, 170, 0.35);
  --header-bg: rgba(17, 20, 18, 0.82);
  --ink-bg: #232b25;
  --ink-fg: #ece8de;
  --scrim: rgba(0, 0, 0, 0.65);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #111412; --bg-2: #161a17; --panel: #1a1f1c; --panel-2: #20261f; --panel-3: #283029;
    --line: rgba(232, 226, 210, 0.1); --line-2: rgba(232, 226, 210, 0.18); --grid: rgba(120, 200, 170, 0.06); --grid-2: rgba(120, 200, 170, 0.03);
    --text: #ece8de; --text-2: #bdb8ab; --muted: #8b877c; --brand: #4cc477; --brand-hover: #63d189; --brand-deep: #2b8a4c; --brand-ink: #0c1a10;
    --brand-soft: rgba(76, 196, 119, 0.12); --accent: #5cc3cc; --accent-soft: rgba(92, 195, 204, 0.12); --pen: #ff8466; --note: #e8cf72; --note-ink: #2c2510;
    --tape: rgba(240, 225, 170, 0.35); --header-bg: rgba(17, 20, 18, 0.82); --ink-bg: #232b25; --ink-fg: #ece8de; --scrim: rgba(0, 0, 0, 0.65);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.7); --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root {
  /* fixed colours for content that always sits on photos or on the CAD "screen" */
  --on-photo: #f6f3ec;
  --on-photo-2: rgba(246, 243, 236, 0.82);
  --photo-shade: 12, 14, 12;
  --screen: #0d1110;
  --screen-line: rgba(160, 220, 190, 0.12);
  --screen-text: #c9d6cf;
  --screen-green: #4cc477;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1220px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s, color 0.35s;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; margin: 0 0 0.5em; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; font-variation-settings: "wdth" 96; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--note); color: var(--note-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; padding: 10px 16px; background: var(--brand); color: var(--brand-ink); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
/* emphasis inside headings: a calm serif italic instead of gradient text */
.grad-text, .h-dim, .em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variation-settings: normal;
}
.grad-text { color: var(--brand); }
.h-dim { color: var(--text-2); }
.hand { font-family: var(--font-hand); font-weight: 600; }
.underline-scribble { position: relative; white-space: nowrap; }
.underline-scribble::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.12em; height: 0.32em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c30-5 60-6 95-3s70 2 101-4' fill='none' stroke='%23c8432b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; pointer-events: none; }

/* Drafting grid background */
.bp-grid {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

.progress-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Top announcement ---------- */
.topbar { background: var(--ink-bg); color: var(--ink-fg); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__offer { display: flex; align-items: center; gap: 10px; margin: 0; }
.topbar__offer b { color: var(--note); font-weight: 600; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--note); flex: none; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; opacity: 0.85; transition: opacity 0.2s; }
.topbar__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.topbar svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 4px; font-family: "Poppins", var(--font-display); font-style: italic; font-weight: 800; font-size: 25px; letter-spacing: -0.02em; line-height: 1; flex: none; }
.logo__cap { width: 34px; height: 30px; margin-right: 2px; transform: translateY(-6px); }
.logo__cap .cap-top { fill: var(--text); }
.logo__cap .cap-base { fill: var(--muted); }
.logo__cap .cap-cord { stroke: var(--text); }
.logo__cad { color: #2eaa4f; }
.logo__minds { color: var(--text); }
.logo small { display: block; font-family: var(--font-mono); font-style: normal; font-weight: 500; font-size: 9px; letter-spacing: 0.16em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav__trigger { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.nav > a:hover, .nav__trigger:hover { color: var(--text); background: var(--panel-2); }
.nav > a.is-active, .nav__item.is-active > .nav__trigger { color: var(--text); }
.nav > a.is-active::after, .nav__item.is-active > .nav__trigger::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c25-3 50-4 96-1' fill='none' stroke='%232eaa4f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.nav__trigger svg { width: 15px; height: 15px; transition: transform 0.25s; }
.nav__item { position: relative; }
.nav__item:hover .nav__trigger svg, .nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }

/* Mega menu — anchored to the header container, full width */
.header-inner { position: relative; }
.nav__item { position: static; }
.mega { position: absolute; top: calc(100% - 6px); left: 0; right: 0; transform: translateY(8px); opacity: 0; visibility: hidden; transition: opacity 0.22s, transform 0.22s, visibility 0.22s; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 120; }
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__item:hover .mega, .nav__item.is-open .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: 1fr 2fr 290px; }
.mega__col { padding: 22px 18px 18px; }
.mega__col + .mega__col { border-left: 1px dashed var(--line-2); }
.mega__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mega__head span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); font-weight: 500; }
.mega__head span svg { width: 15px; height: 15px; color: var(--brand); }
.mega .mega__head a { font-size: 13px; font-weight: 600; color: var(--brand); padding: 0; background: none; display: inline-flex; align-items: center; gap: 4px; }
.mega .mega__head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__head a svg { width: 14px; height: 14px; }
.mega__list { display: grid; gap: 2px; }
.mega__list--2 { grid-template-columns: 1fr 1fr; column-gap: 8px; }
.mega__link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; transition: background 0.18s; position: relative; }
.mega__link:hover, .mega__link:focus-visible { background: var(--panel-2); }
.mega__ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); color: var(--brand); flex: none; transition: background 0.18s, color 0.18s, border-color 0.18s; }
.mega__ico svg { width: 18px; height: 18px; }
.mega__link:hover .mega__ico { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.mega__txt { min-width: 0; flex: 1; }
.mega__txt strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega__txt small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; }
.mega__go { width: 16px; height: 16px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: all 0.18s; flex: none; }
.mega__link:hover .mega__go { opacity: 1; transform: none; color: var(--brand); }
.mega__aside { margin: 14px; border-radius: 12px; background: var(--ink-bg); color: var(--ink-fg); padding: 22px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.mega__aside .bp-grid { position: absolute; inset: 0; opacity: 0.6; --grid: color-mix(in srgb, var(--ink-fg) 8%, transparent); --grid-2: color-mix(in srgb, var(--ink-fg) 4%, transparent); }
.mega__aside > * { position: relative; }
.mega__aside .hand { font-size: 22px; color: var(--note); transform: rotate(-3deg); transform-origin: left; display: block; margin-bottom: 4px; }
.mega__aside b { font-family: var(--font-display); font-size: 21px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.mega__aside p { font-size: 13.5px; color: color-mix(in srgb, var(--ink-fg) 72%, transparent); margin: 8px 0 16px; line-height: 1.5; }
.mega .mega__aside .btn { padding: 10px 14px; font-size: 14px; align-self: flex-start; display: inline-flex; color: var(--brand-ink); }
.mega .mega__aside .btn:hover { background: var(--brand-hover); }
.mega .mega__aside .mega__all { margin-top: auto; padding: 14px 0 0; border-top: 1px dashed color-mix(in srgb, var(--ink-fg) 20%, transparent); display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink-fg); background: none; border-radius: 0; }
.mega .mega__aside .mega__all:hover { color: var(--note); }
.mega__all svg { width: 16px; height: 16px; }
.mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; background: var(--panel-2); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.mega__foot > span, .nav__offer { display: none !important; }
.mega__foot { justify-content: flex-end; }
.mega__foot > span { display: inline-flex; align-items: center; gap: 8px; }
.mega__foot > span svg { width: 16px; height: 16px; color: var(--brand); }
.mega__foot b { color: var(--text); }
.mega__foot button { font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.mega__foot button:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__foot button svg { width: 15px; height: 15px; }

.header-cta { display: flex; align-items: center; gap: 8px; }
.nav__mobile-cta { display: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: border-color 0.2s, background 0.2s, transform 0.3s; flex: none; }
.icon-btn:hover { border-color: var(--text-2); background: var(--panel-2); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

/* Theme toggle */
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg { position: absolute; transition: transform 0.45s cubic-bezier(.3, 1.4, .5, 1), opacity 0.3s; }
.theme-toggle .i-sun { transform: translateY(0) rotate(0); }
.theme-toggle .i-moon { transform: translateY(120%) rotate(-40deg); opacity: 0; }
[data-theme="light"] .theme-toggle .i-sun { transform: translateY(-120%) rotate(40deg); opacity: 0; }
[data-theme="light"] .theme-toggle .i-moon { transform: none; opacity: 1; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15.5px; line-height: 1.2; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s, background 0.2s, border-color 0.2s, color 0.2s; position: relative; }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 3px 0 var(--brand-deep); }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 4px 0 var(--brand-deep); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-deep); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 10px 16px; font-size: 14.5px; border-radius: 9px; }
.btn--lg { padding: 15px 26px; font-size: 16.5px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.25s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(52px, 6vw, 80px) 0; }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 760px; margin-inline: auto; }
.section-head h2 { font-size: clamp(34px, 4.8vw, 56px); margin: 0; }
.section-head p { color: var(--text-2); font-size: 17.5px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.eyebrow--cyan { color: var(--accent); }

/* CAD corner marks */
.corners { position: relative; }
.corners::before, .corners::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--brand); pointer-events: none; z-index: 2; }
.corners::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.corners::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }

/* ---------- Human touches ---------- */
.sticky-note { position: relative; background: var(--note); color: var(--note-ink); padding: 22px 22px 18px; font-family: var(--font-hand); font-size: 23px; line-height: 1.2; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.45); transform: rotate(-2.5deg); max-width: 270px; }
.sticky-note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%) rotate(2deg); background: var(--tape); border-left: 1px dashed rgba(0, 0, 0, 0.08); border-right: 1px dashed rgba(0, 0, 0, 0.08); }
.sticky-note small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; margin-bottom: 6px; }
.taped { position: relative; background: var(--panel); padding: 10px 10px 0; box-shadow: var(--shadow); transform: rotate(var(--r, -1.5deg)); transition: transform 0.4s; margin: 0; }
.taped:hover { transform: rotate(0deg) scale(1.01); }
.taped::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: var(--tape); z-index: 2; }
.taped img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.taped figcaption { font-family: var(--font-hand); font-size: 21px; color: var(--text-2); padding: 8px 4px 10px; text-align: center; }
.annot { position: absolute; font-family: var(--font-hand); font-size: 24px; line-height: 1.1; color: var(--pen); pointer-events: none; z-index: 4; }
.annot svg { width: 70px; height: 54px; color: var(--pen); }
.ruled { background-image: repeating-linear-gradient(transparent 0 37px, var(--line) 37px 38px); background-color: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: relative; box-shadow: var(--shadow); }
.ruled::before { content: ""; position: absolute; top: 0; bottom: 0; left: 56px; width: 1.5px; background: color-mix(in srgb, var(--pen) 40%, transparent); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   HOME — Hero
   ========================================================================== */
.hero { position: relative; padding: 60px 0 64px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; mask-image: radial-gradient(ellipse 85% 75% at 65% 40%, #000 35%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 85% 75% at 65% 40%, #000 35%, transparent 78%); }
.hero__layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; color: var(--text-2); margin-bottom: 26px; }
.hero__badge b { background: var(--brand-soft); color: var(--brand); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hero h1 { font-size: clamp(44px, 6.2vw, 82px); line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero h1 .em { font-size: 1.06em; color: var(--brand); }
.hero__lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--text-2); max-width: 540px; margin-bottom: 26px; }
.cmdline { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13.5px; color: var(--screen-text); background: var(--screen); border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 14px; margin-bottom: 30px; max-width: 520px; min-height: 46px; }
.cmdline__prompt { color: var(--screen-green); flex: none; }
.cmdline__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdline__caret { width: 8px; height: 16px; background: var(--screen-green); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 14px 26px; padding-top: 24px; border-top: 1px dashed var(--line-2); }
.hero__trust div { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.hero__trust svg { width: 19px; height: 19px; color: var(--brand); }
.hero__visual { position: relative; }
.hero__note { position: absolute; z-index: 5; right: -18px; bottom: -40px; }
.hero__annot { top: -56px; left: 6%; display: flex; align-items: flex-end; gap: 2px; transform: rotate(-4deg); }
.hero__annot svg { transform: translateY(24px) rotate(8deg); }

/* CAD viewport — always a dark "screen" */
.viewport { position: relative; border-radius: 14px; background: var(--screen); border: 1px solid rgba(0, 0, 0, 0.25); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--screen-text); }
.viewport__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--screen-line); background: rgba(255, 255, 255, 0.02); font-family: var(--font-mono); font-size: 11px; color: #8a9790; letter-spacing: 0.04em; }
.viewport__dots { display: flex; gap: 6px; }
.viewport__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b3530; }
.viewport__dots i:first-child { background: #ff5f57; }
.viewport__dots i:nth-child(2) { background: #febc2e; }
.viewport__dots i:nth-child(3) { background: #28c840; }
.viewport__file { display: flex; align-items: center; gap: 8px; }
.viewport__file svg { width: 13px; height: 13px; color: #5cc3cc; }
.viewport__tools { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px; border-bottom: 1px solid var(--screen-line); }
.vp-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 7px; font-family: var(--font-mono); font-size: 11px; color: #aab6af; border: 1px solid transparent; transition: all 0.2s; flex: none; }
.vp-btn svg { width: 14px; height: 14px; }
.vp-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.vp-btn.is-active { color: var(--screen-green); border-color: rgba(76, 196, 119, 0.45); background: rgba(76, 196, 119, 0.1); }
.vp-sep { width: 1px; background: var(--screen-line); margin: 4px; flex: none; }
.viewport__stage { position: relative; aspect-ratio: 5 / 4; cursor: grab; touch-action: pan-y; }
.viewport__stage:active { cursor: grabbing; }
.viewport__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewport__stage .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--screen-line) 1px, transparent 1px), linear-gradient(90deg, var(--screen-line) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.55; }
.viewport__side { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 5px; border-radius: 10px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--screen-line); }
.viewport__side .vp-btn { justify-content: center; min-width: 44px; padding: 7px 6px; }
.vp-hr { height: 1px; background: var(--screen-line); margin: 3px 4px; }
.hud { position: absolute; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: #7f8c85; pointer-events: none; line-height: 1.6; }
.hud b { color: #c9d6cf; font-weight: 500; }
.hud--tl { top: 12px; left: 14px; }
.hud--tr { top: 12px; right: 14px; text-align: right; }
.hud--br { bottom: 12px; right: 14px; text-align: right; }
.hud .tag { display: inline-block; padding: 2px 7px; border-radius: 4px; background: rgba(76, 196, 119, 0.12); color: var(--screen-green); border: 1px solid rgba(76, 196, 119, 0.3); margin-bottom: 4px; }
.viewport__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: #c9d6cf; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--screen-line); padding: 6px 12px; border-radius: 999px; pointer-events: none; transition: opacity 0.5s; white-space: nowrap; }
.viewport__hint svg { width: 14px; height: 14px; color: var(--screen-green); }
.viewport__status { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--screen-line); font-family: var(--font-mono); font-size: 10.5px; color: #7f8c85; }
.viewport__status span:first-child { color: var(--screen-green); }

/* Software marquee */
.marquee { border-block: 1px solid var(--line); background: var(--panel); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.marquee__item svg { width: 21px; height: 21px; color: var(--brand); }
.marquee__item i { font-style: normal; font-family: var(--font-serif); color: var(--muted); font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1.5px solid var(--text); }
.stat { padding: 28px 26px 26px; border-right: 1px dashed var(--line-2); position: relative; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(42px, 5vw, 62px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 4px; }
.stat__num sup { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 0.45em; color: var(--brand); top: 0; letter-spacing: 0; }
.stat p { margin: 10px 0 0; color: var(--text-2); font-size: 14.5px; max-width: 230px; }
.stat svg { position: absolute; top: 26px; right: 22px; width: 20px; height: 20px; color: var(--muted); }

/* Disciplines split */
.disciplines { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.discipline { position: relative; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; isolation: isolate; color: var(--on-photo); }
.discipline > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.discipline::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--photo-shade), 0.1) 0%, rgba(var(--photo-shade), 0.65) 45%, rgba(var(--photo-shade), 0.94) 100%); }
.discipline:hover > img { transform: scale(1.05); }
.discipline__tag { position: absolute; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(var(--photo-shade), 0.65); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; backdrop-filter: blur(6px); }
.discipline__tag svg { width: 14px; height: 14px; color: var(--note); }
.discipline h3 { font-size: clamp(30px, 3.3vw, 42px); margin-bottom: 10px; }
.discipline > p { color: var(--on-photo-2); max-width: 460px; }
.discipline__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.discipline__list a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 14px; font-weight: 500; transition: all 0.2s; backdrop-filter: blur(6px); }
.discipline__list a:hover { background: var(--on-photo); color: #111; }
.discipline__list svg { width: 15px; height: 15px; }
.discipline .link-arrow { color: var(--note); }

/* Filters + course cards */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: all 0.2s; background: var(--panel); }
.chip svg { width: 16px; height: 16px; }
.chip span { font-family: var(--font-mono); font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--panel-3); }
.chip:hover { color: var(--text); border-color: var(--text-2); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.is-active span { background: color-mix(in srgb, var(--bg) 20%, transparent); }
.search { position: relative; margin-left: auto; min-width: 260px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; padding: 10px 14px 10px 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s, transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s; will-change: transform; }
.course-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.course-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.course-card:hover .course-card__media img { transform: scale(1.06); }
.course-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 1; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.course-card__badges .badge { background: rgba(var(--photo-shade), 0.7); color: var(--on-photo); border-color: transparent; backdrop-filter: blur(6px); }
.badge svg { width: 12px; height: 12px; }
.badge--green { color: var(--brand); }
.badge--cyan { color: var(--accent); }
.course-card__badges .badge--green, .course-card__badges .badge--cyan { color: var(--note); }
.course-card__ico { position: relative; margin: -24px 0 0 22px; z-index: 2; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); color: var(--brand); box-shadow: var(--shadow); }
.course-card__ico svg { width: 23px; height: 23px; }
.course-card__body { padding: 16px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course-card__body h3 { font-size: 22px; margin-bottom: 8px; }
.course-card__body p { color: var(--text-2); font-size: 15px; margin-bottom: 16px; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta svg { width: 15px; height: 15px; color: var(--accent); }
.course-card__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.course-card__skills span { font-size: 12.5px; padding: 3px 9px; border-radius: 6px; background: var(--panel-2); color: var(--text-2); }
.course-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.course-card__code { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.course-card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.course-card__download { position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.course-card__download:hover { color: var(--brand); }
.course-card__download svg { width: 14px; height: 14px; }
.empty-state { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--text-2); }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--muted); }

/* Team note */
.letter { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.letter__photos { position: relative; padding: 20px 30px 80px 0; }
.letter__photos .taped:nth-child(2) { position: absolute; width: 55%; right: 0; bottom: 0; --r: 4deg; }
.letter__body h2 { font-size: clamp(32px, 4.2vw, 50px); }
.letter__body p { font-size: 18px; color: var(--text-2); }
.letter__body p.lede::first-letter { font-family: var(--font-serif); font-size: 3.6em; float: left; line-height: 0.8; margin: 6px 10px 0 0; color: var(--brand); }
.signoff { font-family: var(--font-hand); font-size: 36px; color: var(--text); margin-top: 18px; line-height: 1; }
.signoff small { display: block; font-family: var(--font-body); font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Class timeline */
.class-day { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.class-day h2 { font-size: clamp(32px, 4.2vw, 50px); }
.class-day > div:first-child p { color: var(--text-2); font-size: 17.5px; }
.timeline { position: relative; border-left: 1.5px dashed var(--line-2); margin-left: 76px; }
.tl-item { position: relative; padding: 0 0 30px 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }
.tl-item time { position: absolute; left: -88px; top: 2px; width: 66px; text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.tl-item h3 { font-size: 20px; margin-bottom: 4px; }
.tl-item p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.tl-item .hand { color: var(--pen); font-size: 22px; display: block; margin-top: 4px; transform: rotate(-1deg); transform-origin: left; }

/* House rules */
.rules { padding: 30px 30px 26px 84px; }
.rules h3 { font-family: var(--font-hand); font-size: 38px; font-weight: 700; margin: 0 0 2px; color: var(--text); letter-spacing: 0; line-height: 38px; }
.rules ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rules li { counter-increment: r; position: relative; font-family: var(--font-hand); font-size: 25px; line-height: 38px; color: var(--text-2); }
.rules li::before { content: counter(r) "."; position: absolute; left: -44px; width: 30px; text-align: right; color: var(--pen); font-weight: 700; }
.rules li s { text-decoration-color: var(--pen); text-decoration-thickness: 2px; }

/* Course finder quiz */
.finder { display: grid; grid-template-columns: 0.85fr 1.15fr; border-radius: var(--radius-lg); border: 1px solid var(--line-2); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.finder__intro { padding: 42px; background: var(--panel-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.finder__intro h2 { font-size: clamp(30px, 3.4vw, 42px); }
.finder__intro p { color: var(--text-2); }
.finder__steps { display: flex; gap: 8px; margin-top: auto; padding-top: 28px; }
.finder__steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); transition: background 0.4s; }
.finder__steps i.is-done { background: var(--brand); }
.finder__body { padding: 42px; min-height: 420px; display: flex; flex-direction: column; }
.finder__q { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 10px; }
.finder__body h3 { font-size: 26px; margin-bottom: 22px; }
.finder__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { text-align: left; display: flex; align-items: flex-start; gap: 14px; padding: 17px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); transition: all 0.2s; }
.opt:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.opt svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.opt strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.opt span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.finder__result { display: flex; flex-direction: column; gap: 18px; animation: fadeUp 0.5s both; }
.finder__result-card { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--brand); background: var(--brand-soft); }
.finder__result-card img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; }
.finder__result-card h4 { font-size: 20px; margin-bottom: 4px; }
.finder__result-card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.finder__path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.finder__path a { padding: 6px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); }
.finder__path a:hover { border-color: var(--brand); }
.finder__path svg { width: 14px; height: 14px; color: var(--muted); }
.finder__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.finder__anim { animation: fadeUp 0.45s both; }
.checklist { display: grid; gap: 12px; margin: 22px 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }

/* Journey timeline (horizontal) */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.journey__line { position: absolute; top: 33px; left: 6%; right: 6%; height: 2px; background: var(--line-2); overflow: hidden; }
.journey__line i { position: absolute; inset: 0; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.journey.is-in .journey__line i { transform: scaleX(1); }
.jstep { position: relative; text-align: center; padding: 0 8px; }
.jstep__ico { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); color: var(--brand); position: relative; z-index: 1; transition: all 0.3s; }
.jstep:hover .jstep__ico { background: var(--brand); color: var(--brand-ink); transform: translateY(-4px) rotate(-4deg); }
.jstep__ico svg { width: 27px; height: 27px; }
.jstep__num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.jstep h3 { font-size: 19px; margin: 6px 0 8px; }
.jstep p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* Before / after compare — always a dark drawing surface */
.compare-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.compare-wrap h2 { font-size: clamp(32px, 4.2vw, 50px); }
.compare-wrap > div > p { color: var(--text-2); font-size: 17.5px; }
.compare { position: relative; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; user-select: none; touch-action: pan-y; --pos: 50%; background: #071018; box-shadow: var(--shadow-lg); }
.compare__layer { position: absolute; inset: 0; }
.compare__layer svg { width: 100%; height: 100%; }
.compare__layer--top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #f6f3ec; transform: translateX(-1px); pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: #f6f3ec; color: #111; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.compare__knob svg { width: 22px; height: 22px; }
.compare__label { position: absolute; top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #f6f3ec; pointer-events: none; }
.compare__label--l { left: 14px; }
.compare__label--r { right: 14px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-col .annot { position: relative; display: block; text-align: right; margin: 10px 12px 0 0; transform: rotate(-2deg); }

/* Projects showcase */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; padding: 26px; isolation: isolate; color: var(--on-photo); background: #222; }
.project:nth-child(1) { grid-column: span 7; }
.project:nth-child(2) { grid-column: span 5; }
.project:nth-child(3) { grid-column: span 5; }
.project:nth-child(4) { grid-column: span 7; }
.project > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.project::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--photo-shade), 0.15) 0%, rgba(var(--photo-shade), 0.75) 50%, rgba(var(--photo-shade), 0.95) 100%); }
.project:hover > img { transform: scale(1.05); }
.project__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--note); text-transform: uppercase; }
.project h3 { font-size: 26px; margin: 8px 0 6px; }
.project p { margin: 0; color: var(--on-photo-2); font-size: 15px; max-width: 460px; }
.project__tools { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.project__tools span { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--panel); padding: 32px 28px; position: relative; transition: background 0.3s; }
.feature:hover { background: var(--panel-2); }
.feature__ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 20px; transition: transform 0.3s; }
.feature:hover .feature__ico { transform: rotate(-6deg); }
.feature__ico svg { width: 23px; height: 23px; }
.feature:nth-child(even) .feature__ico { background: var(--accent-soft); color: var(--accent); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; margin: 0; }
.feature__num { position: absolute; top: 28px; right: 26px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.industry { text-align: center; padding: 24px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: all 0.3s; }
.industry:hover { border-color: var(--accent); transform: translateY(-4px); }
.industry svg { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--accent); }
.industry strong { display: block; font-size: 15px; font-weight: 600; }
.industry span { font-size: 12.5px; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; border-radius: 22px; overflow: hidden; padding: clamp(36px, 6vw, 68px); background: var(--ink-bg); color: var(--ink-fg); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; isolation: isolate; }
.cta-band .bp-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.5; --grid: color-mix(in srgb, var(--ink-fg) 9%, transparent); --grid-2: color-mix(in srgb, var(--ink-fg) 4%, transparent); mask-image: linear-gradient(90deg, #000, transparent); -webkit-mask-image: linear-gradient(90deg, #000, transparent); }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 14px; }
.cta-band .grad-text { color: var(--note); }
.cta-band p { color: color-mix(in srgb, var(--ink-fg) 75%, transparent); font-size: 17.5px; margin: 0; max-width: 560px; }
.cta-band .eyebrow { color: var(--note); }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn--ghost { color: var(--ink-fg); border-color: color-mix(in srgb, var(--ink-fg) 35%, transparent); }
.cta-band .btn--ghost:hover { border-color: var(--ink-fg); }
.cta-band__note { font-family: var(--font-hand); font-size: 22px; color: var(--note); text-align: center; margin: 4px 0 0; transform: rotate(-1.5deg); }

/* FAQ / accordion */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.faq-layout h2 { font-size: clamp(32px, 4.2vw, 50px); }
.faq-layout > div:first-child p { color: var(--text-2); }
.accordion { display: grid; gap: 0; border-top: 1.5px solid var(--text); }
.acc { border-bottom: 1px solid var(--line-2); }
.acc__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 4px; text-align: left; font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.acc__head .acc__n { font-family: var(--font-mono); font-size: 12px; color: var(--brand); flex: none; }
.acc__q { flex: 1; }
.acc__head .acc__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); flex: none; font-weight: 400; }
.acc__icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform 0.3s, background 0.3s; }
.acc__icon svg { width: 16px; height: 16px; }
.acc.is-open .acc__icon { transform: rotate(45deg); background: var(--text); color: var(--bg); border-color: var(--text); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(.2, .7, .2, 1); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__content { padding: 0 4px 22px; color: var(--text-2); }
.acc__content p:last-child { margin: 0; }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 4px; }
.topic-list li { display: flex; gap: 10px; font-size: 15.5px; }
.topic-list svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 5px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; padding: 70px 0 62px; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.page-hero__img { position: absolute; top: 0; bottom: 0; right: 0; width: 46%; z-index: -2; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 40%, color-mix(in srgb, var(--bg) 10%, transparent) 100%); }
.page-hero .bp-grid { position: absolute; inset: 0; z-index: -3; mask-image: linear-gradient(90deg, #000 30%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 70%); }
.page-hero h1 { font-size: clamp(42px, 6vw, 74px); max-width: 820px; letter-spacing: -0.04em; }
.page-hero__lead { font-size: 19px; color: var(--text-2); max-width: 640px; margin-bottom: 0; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 24px; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 13px; height: 13px; }
.crumbs span:last-child { color: var(--text-2); }

/* Course detail */
.course-hero { padding: 54px 0 0; }
.course-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; padding-bottom: 46px; }
.course-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.course-hero h1 { font-size: clamp(40px, 5.4vw, 66px); }
.course-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; position: relative; box-shadow: var(--shadow-lg); }
.course-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.course-hero__media .hud { color: var(--on-photo); text-shadow: 0 1px 6px #000; }
.course-hero__media .hud .tag { background: rgba(0, 0, 0, 0.55); color: var(--note); border-color: transparent; }
.factbar { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1.5px solid var(--text); }
.fact { padding: 20px 22px; border-right: 1px dashed var(--line-2); display: flex; gap: 14px; align-items: center; }
.fact:last-child { border-right: 0; }
.fact svg { width: 24px; height: 24px; color: var(--brand); flex: none; }
.fact small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.fact strong { font-size: 15.5px; font-weight: 600; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; align-items: start; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 34px; position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; overflow-x: auto; scrollbar-width: none; box-shadow: var(--shadow); }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: all 0.2s; }
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--text); color: var(--bg); }
.tabpanel { animation: fadeUp 0.4s both; }
.tabpanel h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.tabpanel h3 { font-size: 22px; margin: 36px 0 16px; }
.tabpanel > p, .overview-top p { color: var(--text-2); font-size: 17.5px; }
.overview-top { display: grid; grid-template-columns: 1fr 230px; gap: 34px; align-items: start; }
.overview-top .sticky-note { margin-top: 24px; transform: rotate(2deg); }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.outcome { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.outcome svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.outcome strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.outcome span { font-size: 14.5px; color: var(--muted); }
.audience { display: flex; flex-wrap: wrap; gap: 10px; }
.audience span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; }
.audience svg { width: 16px; height: 16px; color: var(--accent); }
.curr-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.curr-tools p { margin: 0; color: var(--muted); font-size: 13.5px; font-family: var(--font-mono); }
.hours-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; gap: 2px; margin-bottom: 24px; }
.hours-bar i { display: block; background: var(--brand); }
.hours-bar i:nth-child(even) { background: var(--accent); }
.proj-list { display: grid; gap: 14px; }
.proj-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.proj-item__ico { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.proj-item__ico svg { width: 26px; height: 26px; }
.proj-item h4 { font-size: 18px; margin-bottom: 6px; }
.proj-item p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.role h4 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.role h4 svg { width: 18px; height: 18px; color: var(--brand); }
.role p { margin: 0; font-size: 14.5px; color: var(--muted); }
.req-table { width: 100%; border-collapse: collapse; font-size: 15.5px; border-top: 1.5px solid var(--text); }
.req-table th, .req-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.req-table th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; width: 32%; }
.req-table td { color: var(--text-2); }

.enroll { position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.enroll__top { padding: 22px 24px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.enroll__offer { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--note-ink); background: var(--note); padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; transform: rotate(-1.5deg); }
.enroll__offer svg { width: 15px; height: 15px; }
.enroll__top h3 { font-size: 22px; margin-bottom: 4px; }
.enroll__top p { margin: 0; color: var(--muted); font-size: 14.5px; }
.enroll__body { padding: 20px 24px 24px; display: grid; gap: 10px; }
.enroll__list { display: grid; gap: 10px; margin-bottom: 10px; }
.enroll__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.enroll__list svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
.enroll__foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.enroll__foot svg { width: 20px; height: 20px; color: var(--accent); }
.enroll__foot a { font-weight: 600; }
.enroll__foot small { display: block; color: var(--muted); font-size: 12.5px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Roadmap */
.roadmap { display: grid; gap: 20px; }
.track { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: var(--panel); }
.track__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.track__head .feature__ico { margin: 0; }
.track__head h3 { margin: 0; font-size: 22px; }
.track__head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.track__steps { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 6px; }
.tnode { flex: 1; min-width: 170px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); transition: all 0.3s; }
.tnode:hover { border-color: var(--brand); transform: translateY(-3px); }
.tnode small { font-family: var(--font-mono); font-size: 10.5px; color: var(--brand); letter-spacing: 0.08em; }
.tnode strong { display: block; font-size: 16.5px; margin: 4px 0; font-family: var(--font-display); }
.tnode span { font-size: 13.5px; color: var(--muted); }
.tarrow { display: grid; place-items: center; width: 34px; flex: none; color: var(--muted); }
.tarrow svg { width: 18px; height: 18px; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-top: 1.5px solid var(--text); }
.cmp { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 15px 16px; border-bottom: 1px solid var(--line-2); text-align: left; }
.cmp thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cmp tbody tr { transition: background 0.2s; }
.cmp tbody tr:hover { background: var(--panel); }
.cmp td:first-child a { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cmp td:first-child svg { width: 18px; height: 18px; color: var(--brand); }
.cmp td { color: var(--text-2); }
.level { display: inline-flex; gap: 3px; }
.level i { width: 16px; height: 6px; border-radius: 3px; background: var(--line-2); }
.level i.on { background: var(--brand); }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(32px, 4.2vw, 50px); }
.split p { color: var(--text-2); font-size: 17.5px; }
.img-frame { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
.img-frame__cap { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--on-photo); text-shadow: 0 1px 6px #000; }
.mv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mv-card { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; }
.mv-card::after { content: attr(data-k); position: absolute; right: 10px; bottom: -34px; font-family: var(--font-serif); font-style: italic; font-size: 150px; line-height: 1; color: var(--line); }
.mv-card h3 { font-size: 24px; }
.mv-card p { color: var(--text-2); margin: 0; position: relative; z-index: 1; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.values .feature { border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* Placements */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: p; }
.pstep { padding: 26px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); position: relative; }
.pstep::before { counter-increment: p; content: "0" counter(p); font-family: var(--font-serif); font-style: italic; font-size: 32px; color: var(--brand); line-height: 1; }
.pstep svg { width: 28px; height: 28px; color: var(--accent); margin: 14px 0; }
.pstep h3 { font-size: 19px; }
.pstep p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.explorer { display: grid; grid-template-columns: 290px 1fr; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.explorer__list { border-right: 1px solid var(--line); padding: 12px; display: grid; gap: 4px; align-content: start; background: var(--panel-2); }
.explorer__btn { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; text-align: left; font-size: 15px; font-weight: 500; color: var(--text-2); transition: all 0.2s; }
.explorer__btn svg { width: 18px; height: 18px; }
.explorer__btn:hover { background: var(--panel); color: var(--text); }
.explorer__btn.is-active { background: var(--panel); color: var(--brand); box-shadow: inset 3px 0 0 var(--brand), var(--shadow); }
.explorer__panel { padding: 34px; }
.explorer__panel h3 { font-size: 28px; }

/* Certification */
.cert-intro { max-width: 760px; margin-inline: auto; text-align: center; }
.cert-intro .checklist { text-align: left; width: fit-content; margin-inline: auto; }
.cert-gallery-section { background: var(--panel-2); }
.cert-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.cert-option { min-width: 0; }
.certificate { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.414 / 1; padding: 6.2% 7%; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cert-option:hover .certificate { transform: translateY(-5px) rotate(0.3deg); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.45); }
.certificate__logo { position: absolute; z-index: 1; top: 12%; right: 8%; width: 23%; height: auto; object-fit: contain; }
.certificate--edition .certificate__logo { right: auto; left: 5%; width: 21%; }
.certificate__index, .certificate__eyebrow, .certificate__footer, .certificate__brand small { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.certificate__index { font-size: clamp(6px, .65vw, 9px); }
.certificate__brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: clamp(10px, 1.2vw, 16px); font-weight: 700; letter-spacing: .04em; }
.certificate__brand small { display: block; margin-top: 3px; font-size: clamp(5px, .48vw, 7px); font-weight: 500; }
.certificate__body { margin: auto 0; }
.certificate__eyebrow { display: block; font-size: clamp(6px, .62vw, 9px); }
.certificate__body h3 { margin: 9px 0; font-size: clamp(23px, 3vw, 40px); line-height: .98; }
.certificate__body h3 em { font-family: var(--font-serif); font-weight: 400; }
.certificate__body p { margin: 5px 0; font-size: clamp(7px, .83vw, 11px); line-height: 1.4; }
.certificate__name { display: block; margin: 4px 0; font-family: var(--font-serif); font-size: clamp(14px, 1.8vw, 24px); font-weight: 400; }
.certificate__course { display: block; margin-top: 6px; font-size: clamp(9px, 1.15vw, 15px); line-height: 1.2; }
.certificate__footer { display: flex; align-items: end; justify-content: space-between; gap: 8px; font-size: clamp(5px, .57vw, 8px); line-height: 1.6; }
.certificate__monogram { display: grid; place-items: center; width: 30px; aspect-ratio: 1; border: 1px solid currentColor; font-family: var(--font-serif); font-size: 13px; }
.certificate__rule { display: block; width: 70%; height: 1px; margin: 5px 0; }
.certificate__seal { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; text-align: center; font-family: var(--font-mono); font-size: 12px; line-height: 1; }
.certificate__seal small { font-size: 5px; letter-spacing: .1em; }
.certificate--blueprint { color: #e8f1ed; background-color: #102b34; background-image: linear-gradient(rgba(134, 209, 182, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(134, 209, 182, .075) 1px, transparent 1px); background-size: 18px 18px; border: 1px solid #63917f; }
.certificate--blueprint::before { content: ""; position: absolute; z-index: -1; inset: 3.5%; border: 1px solid rgba(170, 226, 204, .55); }
.certificate--blueprint::after { content: "CM"; position: absolute; z-index: -1; right: 3%; top: 24%; color: rgba(213, 239, 227, .045); font: 700 clamp(80px, 13vw, 180px)/1 var(--font-display); }
.certificate--blueprint .certificate__brand { margin: 9px 0 0 4px; }
.certificate--blueprint .certificate__eyebrow { color: #96ccb5; }
.certificate--blueprint .certificate__body h3 { font-weight: 500; }
.certificate--blueprint .certificate__body h3 em { color: #9bdbba; }
.certificate--blueprint .certificate__name { color: #bce2d0; }
.certificate--blueprint .certificate__rule { background: #5c9a7e; }
.certificate--blueprint .certificate__seal { border: 1px dashed #9bdbba; color: #bce2d0; }
.certificate--studio { color: #26342d; background: #f7f4e9; border: 1px solid #d8d1bd; }
.certificate--studio::before { content: ""; position: absolute; z-index: -1; inset: 4%; border: 1px solid #8ca18c; }
.certificate--studio::after { content: ""; position: absolute; z-index: -1; width: 30%; aspect-ratio: 1; right: -4%; bottom: -17%; border: 1px solid rgba(31, 138, 69, .2); border-radius: 50%; box-shadow: 0 0 0 10px rgba(31, 138, 69, .035), 0 0 0 22px rgba(31, 138, 69, .03); }
.certificate--studio .certificate__brand { color: #31533f; margin: 9px 0 0 4px; }
.certificate__mark { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #76917b; border-radius: 50%; }
.certificate__mark svg { width: 16px; height: 16px; }
.certificate--studio .certificate__body { text-align: center; }
.certificate--studio .certificate__eyebrow { color: #7c8478; }
.certificate--studio .certificate__body h3 { font-family: var(--font-serif); font-size: clamp(23px, 3.1vw, 42px); font-weight: 400; }
.certificate--studio .certificate__course { color: #31533f; font-family: var(--font-display); }
.certificate--studio .certificate__footer { color: #737a6f; }
.certificate__signature { font-family: var(--font-hand); font-size: clamp(15px, 2vw, 27px); text-transform: none; letter-spacing: 0; color: #31533f; transform: rotate(-5deg); }
.certificate--studio .certificate__seal { color: #718b72; border: 1px solid #a7b39e; font-size: 22px; }
.certificate--edition { color: #253544; background: #efe5d2; border: 1px solid #c8b999; }
.certificate--edition::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 31%; height: 100%; background: #b85f43; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.certificate--edition::after { content: "03"; position: absolute; z-index: -1; right: 3.5%; top: 5%; color: rgba(255, 247, 229, .8); font: 500 clamp(30px, 5vw, 68px)/1 var(--font-serif); }
.certificate--edition .certificate__index { position: absolute; top: 7%; right: 7%; width: 64%; text-align: right; }
.certificate__edition-mark { position: absolute; top: 28%; left: 5%; color: #fff3df; font: 500 clamp(8px, 1vw, 13px)/1 var(--font-mono); }
.certificate--edition .certificate__body { max-width: 76%; }
.certificate--edition .certificate__eyebrow { color: #a44c36; }
.certificate--edition .certificate__body h3 { font-size: clamp(25px, 3.4vw, 46px); }
.certificate--edition .certificate__body h3 em { color: #a44c36; }
.certificate--edition .certificate__course { max-width: 80%; color: #a44c36; }
.certificate--edition .certificate__footer { max-width: 80%; }
.certificate--edition .certificate__signature { color: #a44c36; }
.cert-option__caption { display: flex; gap: 12px; align-items: baseline; padding: 15px 4px 0; }
.cert-option__caption > span { font-family: var(--font-mono); font-size: 11px; color: var(--brand); }
.cert-option__caption h3 { margin: 0 0 3px; font-size: 18px; }
.cert-option__caption p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.cert-option__download { display: flex; width: fit-content; margin: 12px 4px 0; padding: 10px 14px; font-size: 13px; }
.cert-gallery__note { margin: 30px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.certificate { aspect-ratio: 1.414 / 1; padding: 5%; color: #263640; background: #fff; border: 1px solid #9ca9ae; border-radius: 2px; box-shadow: 0 16px 35px -22px rgba(22, 39, 46, .65); }
.certificate::before { content: ""; position: absolute; z-index: -1; inset: 2.8%; border: 1px solid rgba(38, 54, 64, .28); pointer-events: none; }
.certificate__top { display: flex; align-items: center; justify-content: space-between; min-height: 19%; padding-bottom: 4%; border-bottom: 1px solid currentColor; }
.certificate__top > span { text-align: right; font: 500 clamp(5px, .54vw, 8px)/1.7 var(--font-mono); letter-spacing: .08em; }
.certificate__logo { position: static; display: block; width: 29%; height: auto; object-fit: contain; }
.certificate__body { position: relative; z-index: 1; margin: auto 0; max-width: 69%; }
.certificate__eyebrow { display: block; margin-bottom: 4%; color: #259c4a; font: 500 clamp(6px, .62vw, 9px)/1.3 var(--font-mono); letter-spacing: .12em; }
.certificate__body h3 { margin: 0 0 3%; color: inherit; font: 600 clamp(19px, 2.25vw, 31px)/1.04 var(--font-display); text-transform: uppercase; letter-spacing: -.035em; }
.certificate__body p { margin: 2% 0; color: #74838a; font: 400 clamp(7px, .74vw, 10px)/1.4 var(--font-body); }
.certificate__name { display: block; margin: 2% 0; color: inherit; font: 500 clamp(14px, 1.6vw, 22px)/1.15 var(--font-display); letter-spacing: .01em; }
.certificate__course { display: block; margin-top: 3%; color: inherit; font: 600 clamp(8px, .91vw, 12px)/1.2 var(--font-display); }
.certificate__titleblock { display: grid; grid-template-columns: 1.5fr 1.4fr 1fr 1fr; min-height: 22%; border: 1px solid currentColor; }
.certificate__titleblock > div { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 4% 5%; border-left: 1px solid currentColor; }
.certificate__titleblock > div:first-child { border-left: 0; }
.certificate__titleblock small { color: #819097; font: 500 clamp(5px, .5vw, 7px)/1.2 var(--font-mono); letter-spacing: .07em; }
.certificate__titleblock b { overflow-wrap: anywhere; color: inherit; font: 500 clamp(5.5px, .62vw, 8px)/1.3 var(--font-mono); }
.certificate__measure { position: absolute; top: 20%; left: 5%; right: 5%; height: 7px; border-top: 1px solid #9ca9ae; background: repeating-linear-gradient(90deg, transparent 0 18px, #9ca9ae 18px 19px, transparent 19px 23px); opacity: .7; }
.certificate__drawing { position: absolute; z-index: 0; right: 5%; top: 28%; width: 28%; color: #53656e; }
.certificate__drawing svg, .certificate__assembly svg { width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.certificate__drawing small, .certificate__assembly small { display: block; margin-top: 2%; color: #7c8b91; font: 500 clamp(5px, .49vw, 7px)/1.3 var(--font-mono); letter-spacing: .04em; }
.certificate__drawing small { text-align: center; }
.certificate__technical { align-self: center; margin-top: 7%; padding: 2% 3%; color: #276b91; border-block: 1px solid #c6d2d7; font: 500 clamp(5px, .59vw, 8px)/1.2 var(--font-mono); letter-spacing: .07em; white-space: nowrap; }
.certificate--blueprint { color: #263640; background: #fff; background-image: linear-gradient(rgba(52, 85, 98, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 85, 98, .035) 1px, transparent 1px); background-size: 16px 16px; border-color: #53666d; }
.certificate--blueprint::before { inset: 2.5%; border: 1px solid #263640; }
.certificate--blueprint::after { content: none; }
.certificate--blueprint .certificate__body { max-width: 68%; }
.certificate--blueprint .certificate__body h3 { font-size: clamp(20px, 2.55vw, 35px); }
.certificate--blueprint .certificate__titleblock { min-height: 25%; background: rgba(255,255,255,.91); }
.certificate--blueprint .certificate__titleblock > div:first-child { background: #eef2f3; }
.certificate--blueprint .certificate__drawing { top: 31%; width: 27%; }
.certificate--studio { color: #233942; background: #f4f7f8; background-image: radial-gradient(#cbd6da .7px, transparent .8px); background-size: 13px 13px; border-color: #aab8be; }
.certificate--studio::before { inset: 3%; border-color: #aab8be; }
.certificate--studio::after { content: ""; position: absolute; top: 18%; left: 5%; right: 5%; height: 1px; background: #276b91; }
.certificate--studio .certificate__top { border-bottom: 0; }
.certificate--studio .certificate__body { max-width: 100%; text-align: center; }
.certificate--studio .certificate__body h3 { color: #233942; }
.certificate--studio .certificate__name { color: #276b91; }
.certificate--studio .certificate__course { display: inline-block; margin: 2% 0; padding: 2% 5%; color: #233942; background: #e4ecef; border: 1px solid #bfccd1; }
.certificate--studio .certificate__titleblock { grid-template-columns: repeat(4, 1fr); background: #fff; }
.certificate--studio .certificate__titleblock > div { text-align: center; }
.certificate--studio .certificate__titleblock > div:first-child { background: #276b91; }
.certificate--studio .certificate__titleblock > div:first-child small,
.certificate--studio .certificate__titleblock > div:first-child b { color: #fff; }
.certificate--edition { display: block; color: #f0f3f1; background: #202d35; border-color: #62737a; }
.certificate--edition::before, .certificate--edition::after { content: none; }
.certificate--edition::before { left: 4%; right: 4%; top: 5%; bottom: 5%; border-color: #6a7b80; }
.certificate--edition > aside { position: absolute; inset: 0 auto 0 0; width: 26%; display: flex; flex-direction: column; justify-content: space-between; padding: 8% 5%; background: #172329; border-right: 1px solid #51636a; }
.certificate--edition > aside::after { content: ""; position: absolute; left: 14%; top: 41%; width: 70%; aspect-ratio: 1; border: 1px solid #47605d; transform: rotate(45deg); box-shadow: inset 0 0 0 9px #172329, inset 0 0 0 10px #30423f; }
.certificate--edition > aside .certificate__logo { width: 100%; }
.certificate--edition > aside span, .certificate--edition > aside small { position: relative; z-index: 1; color: #bcc8c7; font: 500 clamp(5px, .55vw, 7px)/1.6 var(--font-mono); letter-spacing: .08em; }
.certificate--edition > aside b { position: relative; z-index: 1; color: #f3f5f2; font: 600 clamp(14px, 1.8vw, 24px)/1.12 var(--font-display); letter-spacing: .04em; }
.certificate--edition > aside small { color: #8e9e9f; }
.certificate--edition .certificate__body { position: absolute; left: 32%; top: 31%; width: 43%; max-width: none; }
.certificate--edition .certificate__body h3 { color: #f0f3f1; font-size: clamp(20px, 2.5vw, 34px); }
.certificate--edition .certificate__body p { color: #aebbbd; }
.certificate--edition .certificate__name { color: #fff; }
.certificate--edition .certificate__course { color: #8fd5a4; }
.certificate--edition .certificate__titleblock { position: absolute; left: 31%; right: 5%; bottom: 9%; min-height: 18%; grid-template-columns: 1.35fr 1fr 1fr 1fr; border-color: #66767b; }
.certificate--edition .certificate__titleblock > div { border-color: #526269; }
.certificate--edition .certificate__titleblock small { color: #91a2a5; }
.certificate--edition .certificate__titleblock b { color: #e4e9e7; }
.certificate__assembly { position: absolute; top: 20%; right: 7%; width: 27%; color: #87c99a; }
.certificate__assembly small { color: #a3b4b3; text-align: center; }
@media (max-width: 720px) {
  .certificate .certificate__body { max-width: 66%; }
  .certificate .certificate__body h3 { margin: 2px 0; font-size: clamp(13px, 4.8vw, 17px) !important; line-height: 1.05; }
  .certificate .certificate__body p { margin: 2px 0; font-size: 7px; line-height: 1.2; }
  .certificate .certificate__name { margin: 2px 0; font-size: 12px; }
  .certificate .certificate__course { margin-top: 2px; font-size: 8px; line-height: 1.1; }
  .certificate__titleblock > div { gap: 2px; padding: 3%; }
  .certificate__titleblock small { font-size: 4.5px; }
  .certificate__titleblock b { font-size: 5px; }
  .certificate__top > span { font-size: 5px; }
  .certificate--studio .certificate__body { max-width: 100%; }
  .certificate--studio .certificate__technical { font-size: 5px; }
  .certificate--edition .certificate__body { left: 32%; top: 32%; width: 42%; }
  .certificate--edition > aside b { font-size: 13px; }
  .certificate--edition > aside span, .certificate--edition > aside small { font-size: 5px; }
  .certificate--assembly { width: 25%; top: 20%; right: 6%; }
}
@media (max-width: 920px) {
  .cert-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-option:last-child { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
  .certificate__index { font-size: 8px; }
  .certificate__brand { font-size: 14px; }
  .certificate__brand small { font-size: 6px; }
  .certificate__eyebrow { font-size: 8px; }
  .certificate__body h3 { font-size: 34px; }
  .certificate__body p { font-size: 9px; }
  .certificate__name { font-size: 20px; }
  .certificate__course { font-size: 13px; }
  .certificate__footer { font-size: 7px; }
}
@media (max-width: 600px) {
  .cert-gallery { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cert-option:last-child { grid-column: auto; width: 100%; }
  .certificate { padding: 6.2% 7%; }
  .certificate__body h3 { font-size: clamp(32px, 9vw, 40px); }
  .certificate__body p { font-size: clamp(9px, 2.5vw, 11px); }
  .certificate__name { font-size: clamp(20px, 5.2vw, 24px); }
  .certificate__course { font-size: clamp(13px, 3.4vw, 15px); }
  .certificate__footer { font-size: 7px; }
  .cert-intro .checklist { width: 100%; }
}
.exam-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; position: relative; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post__media { aspect-ratio: 16 / 9; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.post__meta b { color: var(--brand); font-weight: 500; }
.post h3 { font-size: 21px; line-height: 1.22; margin-bottom: 10px; }
.post p { color: var(--text-2); font-size: 15.5px; }
.post .link-arrow { margin-top: auto; }
.post .link-arrow::after { content: ""; position: absolute; inset: 0; }
.post--featured { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.post--featured .post__media { aspect-ratio: auto; min-height: 340px; }
.post--featured .post__body { padding: 32px; justify-content: center; }
.post--featured h3 { font-size: clamp(24px, 2.4vw, 30px); }

.article { max-width: 740px; margin-inline: auto; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 44px; aspect-ratio: 16 / 8; box-shadow: var(--shadow-lg); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18.5px; color: var(--text-2); line-height: 1.8; }
.prose h2 { font-size: 30px; color: var(--text); margin: 48px 0 16px; }
.prose h3 { font-size: 22px; color: var(--text); margin: 32px 0 12px; }
.prose p { margin-bottom: 1.3em; }
.prose strong { color: var(--text); }
.prose em { font-family: var(--font-serif); font-size: 1.08em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 2px; background: var(--brand); }
.prose ol { counter-reset: ol; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: ol; }
.prose ol li::before { content: counter(ol); position: absolute; left: 4px; top: -2px; font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--brand); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.callout { display: flex; gap: 16px; padding: 22px; border-radius: 4px; background: var(--note); color: var(--note-ink); margin: 32px 0; font-size: 16.5px; transform: rotate(-0.4deg); box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.4); }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 4px; }
.callout strong { color: inherit; }
.callout a, .callout .link-arrow { color: inherit !important; }
.callout p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 0 0 1.6em; border-top: 1.5px solid var(--text); }
.prose th, .prose td { padding: 12px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.article__meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-top: 22px; }
.article__meta span { display: inline-flex; align-items: center; gap: 7px; }
.article__meta svg { width: 15px; height: 15px; color: var(--brand); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.form-card { padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow); }
.form-card h2 { font-size: 30px; }
.form-card > p { color: var(--text-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376807a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input:user-invalid { border-color: var(--pen); }
.download-phone-fields { display: grid; grid-template-columns: minmax(140px, 0.8fr) 1.2fr; gap: 8px; }
.download-contact { min-width: 0; margin: 0; padding: 0; border: 0; }
.download-contact legend { margin-bottom: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.download-contact__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.download-contact__options label { position: relative; cursor: pointer; }
.download-contact__options input { position: absolute; opacity: 0; pointer-events: none; }
.download-contact__options label > span { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--text-2); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.download-contact__options label > span > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.download-contact__options label strong, .download-contact__options label small { display: block; }
.download-contact__options label strong { color: var(--text); font-size: 14px; }
.download-contact__options label small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.download-contact__options input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.download-contact__options input:checked + span > svg { color: var(--brand); }
.download-contact__options input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--text-2); transition: all 0.2s; }
.seg span svg { width: 16px; height: 16px; }
.seg input:checked + span { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-note { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 14px 0 0; }
.form-note svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.info-stack { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color 0.3s; }
a.info-card:hover { border-color: var(--brand); }
.info-card__ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.info-card__ico svg { width: 21px; height: 21px; }
.info-card small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.info-card strong { font-size: 16px; font-weight: 600; line-height: 1.45; display: block; }
.info-stack .sticky-note { margin: 22px 0 0 24px; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 7; background: var(--panel); }
.map iframe { width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.5) contrast(0.95); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity 0.3s, visibility 0.3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow-lg); transform: translateY(20px) scale(0.98); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1); }
.modal.is-open .modal__dialog { transform: none; }
.modal__head { padding: 26px 28px 20px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.modal__head h2 { font-size: 27px; margin-bottom: 4px; }
.modal__head p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.modal__body { padding: 24px 28px 28px; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all 0.2s; }
.modal__close:hover { border-color: var(--text); }
.modal__close svg { width: 18px; height: 18px; }
body.modal-open { overflow: hidden; }

/* Floating WhatsApp, back-to-top, toast */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 999px; background: #25d366; color: #063016; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45); transition: transform 0.25s, padding 0.25s; }
.fab svg { width: 26px; height: 26px; }
.fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.35s; font-size: 15px; }
.fab:hover span { max-width: 180px; }
.fab:hover { transform: translateY(-3px); padding-right: 20px; }
.to-top { position: fixed; right: 26px; bottom: 90px; z-index: 89; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--text); }
.to-top svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 12px; background: var(--ink-bg); color: var(--ink-fg); box-shadow: var(--shadow-lg); transition: all 0.35s; font-size: 15px; max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: var(--note); flex: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 70px 0 0; position: relative; overflow: hidden; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-2); font-size: 15px; margin: 18px 0 18px; max-width: 300px; }
.footer-tagline { font-family: var(--font-hand); font-size: 26px; color: var(--brand); display: inline-block; transform: rotate(-2deg); }
.site-footer h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col a { font-size: 15px; color: var(--text-2); transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: var(--brand); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact a, .footer-contact p { display: flex; gap: 10px; font-size: 15px; color: var(--text-2); margin: 0; }
.footer-contact svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: var(--brand); }
.footer-sign { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 26px 0 32px; border-top: 1px dashed var(--line-2); font-family: var(--font-hand); font-size: clamp(28px, 4vw, 42px); color: var(--text-2); text-align: center; }
.footer-sign svg { width: 44px; height: 44px; color: var(--pen); flex: none; }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-bottom a:hover { color: var(--brand); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
.hero__layout > *, .compare-wrap > *, .faq-layout > *, .split > *, .contact-grid > *, .course-hero__grid > *, .finder > *, .detail-layout > *, .section-head > *, .cta-band > *, .explorer > *, .letter > *, .class-day > *, .overview-top > * { min-width: 0; }

@media (max-width: 1180px) {
  .nav > a, .nav__trigger { padding: 9px 9px; font-size: 14.5px; }
  .header-cta .call-btn { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero__note { right: 8px; }
}
@media (max-width: 1024px) {
  .menu-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .header-cta { margin-left: auto; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav { position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 16px 40px; background: var(--bg); overflow-y: auto; transform: translateX(100%); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1); margin: 0; }
  .nav.is-open { transform: none; }
  .nav > a, .nav__trigger { padding: 15px 12px; font-size: 18px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--font-display); }
  .nav > a.is-active::after, .nav__item.is-active > .nav__trigger::after { display: none; }
  .nav > a.is-active, .nav__item.is-active > .nav__trigger { color: var(--brand); }
  .mega { position: static; transform: none; width: 100%; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; background: transparent; border-radius: 0; }
  .mega__grid { grid-template-columns: 1fr; }
  .mega__col { padding: 12px 0 4px; }
  .mega__col + .mega__col { border-left: 0; }
  .mega__list--2 { grid-template-columns: 1fr; }
  .mega__aside, .mega__foot { display: none; }
  .nav__item { position: relative; }
  .nav__item:hover .mega { transform: none; }
  .nav__item.is-open .mega { display: block; transform: none; }
  .nav__mobile-cta { display: grid; gap: 10px; margin-top: 18px; }
  .hero__layout, .compare-wrap, .faq-layout, .split, .contact-grid, .course-hero__grid, .finder, .letter, .class-day { grid-template-columns: 1fr; }
  .hero__visual { max-width: 680px; margin-top: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .course-grid, .related, .blog-grid { grid-template-columns: 1fr 1fr; }
  .post--featured { grid-column: span 2; }
  .features { grid-template-columns: 1fr 1fr; }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey__line { left: 33px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .journey__line i { transform-origin: 50% 0; transform: scaleY(0); }
  .journey.is-in .journey__line i { transform: scaleY(1); }
  .jstep { display: grid; grid-template-columns: 66px 1fr; gap: 0 20px; text-align: left; padding: 0 0 28px; }
  .jstep__ico { grid-row: span 3; margin: 0; }
  .detail-layout { grid-template-columns: 1fr; }
  .enroll { position: static; }
  .factbar { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-right: 0; }
  .fact:nth-child(n + 4) { border-top: 1px dashed var(--line-2); }
  .cta-band { grid-template-columns: 1fr; }
  .mv, .exam-cards { grid-template-columns: 1fr; }
  .values, .process { grid-template-columns: 1fr 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .explorer__list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .finder__intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .page-hero__img { width: 100%; opacity: 0.35; }
  .page-hero__img::after { background: linear-gradient(90deg, var(--bg) 10%, color-mix(in srgb, var(--bg) 60%, transparent)); }
  .letter__photos { max-width: 520px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar__links { display: none; }
  .hero { padding-top: 36px; }
  .hero__annot { display: none; }
  .hero__note { position: relative; right: auto; bottom: auto; margin: 30px auto 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px dashed var(--line-2); }
  .disciplines, .course-grid, .related, .blog-grid, .features, .outcomes, .roles, .topic-list, .form-grid, .values, .process { grid-template-columns: 1fr; }
  .post--featured { grid-column: auto; grid-template-columns: 1fr; }
  .post--featured .post__media { min-height: 220px; }
  .post--featured .post__body { padding: 24px; }
  .discipline { min-height: 460px; padding: 24px; }
  .projects { grid-template-columns: 1fr; }
  .project:nth-child(n) { grid-column: auto; min-height: 280px; }
  .industries { grid-template-columns: 1fr 1fr; }
  .finder__opts { grid-template-columns: 1fr; }
  .finder__intro, .finder__body { padding: 28px 22px; }
  .finder__result-card { flex-direction: column; align-items: flex-start; }
  .finder__result-card img { width: 100%; height: 140px; }
  .search { margin-left: 0; width: 100%; min-width: 0; }
  .factbar { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0 !important; border-top: 1px dashed var(--line-2); }
  .fact:nth-child(-n + 2) { border-top: 0; }
  .fact:nth-child(odd) { border-right: 1px dashed var(--line-2) !important; }
  .fact:last-child { grid-column: 1 / -1; border-right: 0 !important; }
  .form-card { padding: 26px 20px; }
  .acc__head { font-size: 17px; }
  .acc__head .acc__meta { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .fab span { display: none; }
  .tnode { min-width: 150px; }
  .viewport__stage { aspect-ratio: 1 / 1; }
  .viewport__side { right: 8px; }
  .viewport__side .vp-btn { min-width: 38px; padding: 6px 4px; }
  .hud--tr { display: none; }
  .map { aspect-ratio: 4 / 3; }
  .cmdline { font-size: 12.5px; }
  .proj-item { grid-template-columns: 1fr; }
  .overview-top { grid-template-columns: 1fr; }
  .overview-top .sticky-note { margin: 0 auto 10px; }
  .letter__photos { padding: 10px 0 0; }
  .letter__photos .taped:nth-child(2) { display: none; }
  .timeline { margin-left: 70px; }
  .rules { padding: 26px 18px 22px 70px; }
  .rules li { font-size: 22px; }
  .ruled::before { left: 46px; }
}
@media (max-width: 480px) {
  .download-contact__options { grid-template-columns: 1fr; }
  .download-contact__options label > span { min-height: 58px; }
  .download-phone-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.letter__body .signoff, .split .signoff { font-size: 38px; color: var(--text); }
.rules.ruled::before { left: 76px; }
@media (max-width: 720px) { .rules.ruled::before { left: 62px; } }

/* Lead forms */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; padding: 12px 14px; border-radius: 9px; font-size: 14.5px; line-height: 1.5; }
.form-status.is-ok { background: var(--brand-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.form-status.is-error { background: color-mix(in srgb, var(--pen) 10%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--pen) 40%, transparent); }
.form-status a, .form-note a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
button[disabled] { opacity: 0.7; cursor: progress; }

/* Official logo image */
.logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.logo__img { height: 58px; width: auto; }
.logo__img--dark { display: none; }
[data-theme="dark"] .logo__img--light { display: none; }
[data-theme="dark"] .logo__img--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo__img--light { display: none; }
  :root:not([data-theme]) .logo__img--dark { display: block; }
}
.footer-brand .logo__img { height: 64px; }
@media (max-width: 720px) { .logo__img { height: 42px; } }

/* ==========================================================================
   Floating pill header
   ========================================================================== */
.site-header { position: sticky; top: 12px; z-index: 100; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; padding: 12px 0 0; margin-bottom: -4px; pointer-events: none; }
.site-header.is-scrolled { border: 0; }
.site-header .header-inner {
  pointer-events: auto;
  width: min(100% - 32px, 1280px);
  height: 66px;
  padding: 0 9px 0 22px;
  gap: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 40%, transparent) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.35);
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
.site-header.is-scrolled .header-inner { background: color-mix(in srgb, var(--panel) 88%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, #fff 30%, transparent) inset, 0 16px 40px -18px rgba(0, 0, 0, 0.45); height: 60px; }
[data-theme="dark"] .site-header .header-inner { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 40px -18px rgba(0, 0, 0, 0.8); }
.site-header .logo__img { height: 42px; }
.site-header .nav { margin-inline: auto; gap: 0; }
.site-header .nav > a, .site-header .nav__trigger { border-radius: 999px; padding: 9px 14px; }
.site-header .nav > a:hover, .site-header .nav__trigger:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.site-header .icon-btn { border-radius: 50%; width: 44px; height: 44px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.header-cta__btn { border-radius: 999px; padding: 12px 20px; box-shadow: none; }
.header-cta__btn:hover { box-shadow: none; }
.header-cta__btn svg { width: 16px; height: 16px; }
.mega { top: calc(100% + 10px); border-radius: 22px; }
.mega::before { inset: -12px 0 auto; height: 12px; }
main > section:first-child, main > .page-hero:first-child { margin-top: -78px; padding-top: calc(78px + 56px); }
main > .hero:first-child { padding-top: calc(78px + 60px); }
@media (max-width: 1180px) {
  .site-header .nav > a, .site-header .nav__trigger { padding: 9px 10px; }
}
@media (max-width: 1024px) {
  .site-header { top: 8px; padding-top: 8px; }
  .site-header .header-inner { height: 60px; padding: 0 8px 0 16px; background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.is-scrolled .header-inner { height: 60px; background: var(--panel); }
  .site-header .nav { position: fixed; top: var(--nav-top, 84px); left: 12px; right: 12px; bottom: 12px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow-lg); margin: 0; transform: translateY(-12px) scale(0.98); opacity: 0; visibility: hidden; transition: transform 0.3s, opacity 0.25s, visibility 0.25s; }
  .site-header .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-header .nav > a, .site-header .nav__trigger { border-radius: 0; padding: 15px 12px; }
  .site-header .logo__img { height: 36px; }
  .mega { border-radius: 0; }
  main > section:first-child, main > .page-hero:first-child { margin-top: -72px; padding-top: calc(72px + 40px); }
  main > .hero:first-child { padding-top: calc(72px + 36px); }
}
@media (max-width: 420px) { .site-header .icon-btn { width: 40px; height: 40px; } .site-header .call-btn { display: none; } }

/* ==========================================================================
   Official software logos
   ========================================================================== */
.sw-logo { display: block; width: auto; height: 28px; }
.sw-logo--solidworks { height: 17px; }
.sw-logo--sketchup { height: 25px; }
.sw-logo--lumion { height: 22px; }

.sw-wall { padding: 30px 0 34px; border-block: 1px solid var(--line); background: var(--panel); }
.sw-wall__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.sw-wall__head p { margin: 0; color: var(--text-2); font-size: 16px; }
.sw-wall__head b { color: var(--text); font-weight: 600; }
.sw-wall__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sw-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 16px 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(20, 30, 25, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; min-height: 118px; }
.sw-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.35); border-color: rgba(31, 138, 69, 0.45); }
.sw-tile__logo { flex: 1; display: grid; place-items: center; }
.sw-tile .sw-logo { height: 34px; max-width: 100%; }
.sw-tile .sw-logo--solidworks { height: 20px; }
.sw-tile .sw-logo--sketchup { height: 30px; }
.sw-tile .sw-logo--lumion { height: 27px; }
.sw-tile__meta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: #5d6862; }
.sw-tile__meta svg { width: 13px; height: 13px; transition: transform 0.2s; }
.sw-tile:hover .sw-tile__meta { color: #1f8a45; }
.sw-tile:hover .sw-tile__meta svg { transform: translate(2px, -2px); }
[data-theme="dark"] .sw-tile { border-color: transparent; }

.course-card__logo { position: relative; z-index: 2; align-self: flex-start; margin: -24px 0 0 20px; height: 48px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 12px; background: #fff; border: 1px solid rgba(20, 30, 25, 0.1); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.45); }
.course-card__logo .sw-logo { height: 24px; }
.course-card__logo .sw-logo--solidworks { height: 14px; }
.course-card__logo .sw-logo--sketchup { height: 21px; }
.course-card__logo .sw-logo--lumion { height: 19px; }

.course-hero__sw { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sw-chip { display: inline-flex; align-items: center; height: 54px; padding: 0 18px; border-radius: 14px; background: #fff; border: 1px solid rgba(20, 30, 25, 0.1); box-shadow: var(--shadow); }
.sw-chip .sw-logo { height: 28px; }
.sw-chip .sw-logo--solidworks { height: 16px; }
.course-hero__sw small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }

.footer-bottom .container { align-items: center; }
.tm-note { flex-basis: 100%; order: 3; font-size: 11.5px; line-height: 1.5; color: var(--muted); opacity: 0.85; }

@media (max-width: 1024px) { .sw-wall__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .sw-wall__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sw-tile { min-height: 96px; padding: 20px 10px 12px; }
  .sw-tile .sw-logo { height: 26px; }
  .sw-tile .sw-logo--solidworks { height: 14px; }
  .sw-tile .sw-logo--lumion { height: 21px; }
  .sw-tile:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Mobile menu (redesigned) — desktop hides the mobile-only parts
   ========================================================================== */
.nav__quick, .nav__label, .nav__foot, .nav__ico, .nav__chev, .nav__count, .nav-scrim { display: none; }
.nav__trigger .nav__caret { width: 15px; height: 15px; transition: transform 0.25s; }

/* hamburger → X */
.burger { position: relative; width: 18px; height: 14px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s cubic-bezier(.3, 1.3, .5, 1), opacity 0.2s, top 0.3s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; right: 5px; }
.burger i:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: translateX(6px); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

@media (max-width: 1024px) {
  .nav-scrim { display: block; position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; pointer-events: auto; z-index: 0; }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
  .site-header .header-inner { z-index: 1; }

  .site-header .nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 12px 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform-origin: top right; }
  .nav__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
  .nav__tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text); transition: transform 0.15s, background 0.2s; }
  .nav__tile svg { width: 21px; height: 21px; color: var(--brand); }
  .nav__tile:active { transform: scale(0.97); }
  .nav__tile--main { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 3px 0 var(--brand-deep); }
  .nav__tile--main svg { color: var(--brand-ink); }
  .nav__label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 14px 10px 4px; }

  .site-header .nav > a, .site-header .nav__trigger { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--text); }
  .site-header .nav > a:hover, .site-header .nav__trigger:hover { background: var(--panel-2); }
  .nav__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); color: var(--brand); flex: none; }
  .nav__ico svg { width: 18px; height: 18px; }
  .nav__txt { flex: 1; text-align: left; }
  .nav__chev { display: block; width: 18px; height: 18px; color: var(--muted); }
  .nav__count { display: inline-block; font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
  .site-header .nav > a.is-active, .nav__item.is-active > .nav__trigger { background: var(--brand-soft); color: var(--text); }
  .site-header .nav > a.is-active .nav__ico, .nav__item.is-active > .nav__trigger .nav__ico { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
  .nav__item.is-open > .nav__trigger .nav__caret { transform: rotate(180deg); }
  .nav__item:hover .nav__trigger svg.nav__caret { transform: none; }
  .nav__item.is-open:hover .nav__trigger svg.nav__caret { transform: rotate(180deg); }

  /* courses accordion inside the sheet */
  .nav__item.is-open .mega { display: block; margin: 4px 0 6px; padding: 6px 6px 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); animation: fadeUp 0.3s both; }
  .mega__col { padding: 8px 4px 2px; }
  .mega__head { padding: 0 6px 8px; margin-bottom: 2px; }
  .mega__link { padding: 8px 6px; }
  .mega__ico { width: 32px; height: 32px; }
  .mega__txt strong { font-size: 14.5px; white-space: normal; }
  .mega__go { display: none; }

  /* sheet footer */
  .nav__foot { display: grid; gap: 10px; margin-top: auto; padding: 14px 4px 14px; border-top: 1px dashed var(--line-2); position: sticky; bottom: 0; background: var(--panel); }
  .nav__offer { display: none !important; }
  .nav__offer svg { width: 17px; height: 17px; flex: none; }
  .nav__theme { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
  .nav__theme > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
  .nav__theme > span:first-child svg { width: 17px; height: 17px; color: var(--accent); }
  .switch { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background 0.25s; flex: none; }
  .switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.25s cubic-bezier(.3, 1.3, .5, 1); }
  [data-theme="dark"] .switch { background: var(--brand); }
  [data-theme="dark"] .switch i { transform: translateX(18px); }
  .nav__addr { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); padding: 0 6px; line-height: 1.45; }
  .nav__addr svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand); }

  /* staggered entrance */
  .site-header .nav.is-open > * { animation: navIn 0.38s cubic-bezier(.2, .8, .2, 1) both; }
  .site-header .nav.is-open > :nth-child(2) { animation-delay: 0.03s; }
  .site-header .nav.is-open > :nth-child(3) { animation-delay: 0.06s; }
  .site-header .nav.is-open > :nth-child(4) { animation-delay: 0.09s; }
  .site-header .nav.is-open > :nth-child(5) { animation-delay: 0.12s; }
  .site-header .nav.is-open > :nth-child(6) { animation-delay: 0.15s; }
  .site-header .nav.is-open > :nth-child(7) { animation-delay: 0.18s; }
  .site-header .nav.is-open > :nth-child(8) { animation-delay: 0.21s; }
  .site-header .nav.is-open > :nth-child(9) { animation-delay: 0.24s; }
  .site-header .nav.is-open > :nth-child(n + 10) { animation-delay: 0.27s; }
  @keyframes navIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 420px) { .site-header .nav > a, .site-header .nav__trigger { font-size: 16.5px; } }

/* ==========================================================================
   Session clock (home)
   ========================================================================== */
.session { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(28px, 4.5vw, 56px); background: var(--panel); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.session > .bp-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.55; --grid: color-mix(in srgb, var(--text) 7%, transparent); --grid-2: color-mix(in srgb, var(--text) 3%, transparent); mask-image: radial-gradient(ellipse 70% 80% at 25% 55%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 55%, #000 20%, transparent 75%); }
.session::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%); }
.session .eyebrow { color: var(--brand); }
.session__head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.session__head h2 { font-size: clamp(32px, 4.4vw, 54px); margin: 0; }
.session__head .grad-text { color: var(--brand); }
.session__head p { margin: 0; color: var(--text-2); font-size: 17px; }

.session__body { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.dial { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-inline: auto; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial__track { fill: none; stroke: color-mix(in srgb, var(--text) 12%, transparent); stroke-width: 30; }
.dial__arc { fill: none; stroke: color-mix(in srgb, var(--text) 24%, transparent); stroke-width: 24; cursor: pointer; transition: stroke 0.35s, stroke-width 0.35s, filter 0.35s; }
.dial__arc:hover { stroke: color-mix(in srgb, var(--text) 42%, transparent); }
.dial__arc.is-active { stroke: var(--brand); stroke-width: 34; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brand) 45%, transparent)); }
.dial__ticks line { stroke: color-mix(in srgb, var(--text) 38%, transparent); stroke-width: 1.4; }
.dial__labels text { font: 500 10px var(--font-mono); fill: var(--muted); text-anchor: middle; }
.dial__center { position: absolute; inset: 27%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 10px; background: color-mix(in srgb, var(--panel-2) 82%, transparent); border: 1px dashed var(--line-2); }
.dial__time { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--brand); }
.dial__center strong { font-family: var(--font-display); font-size: clamp(18px, 2vw, 23px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.dial__mins { font-size: 13px; color: var(--text-2); }
.dial__mins b { color: var(--text); font-weight: 600; }
.dial__center.is-swapping > * { animation: fadeUp 0.35s both; }
.dial__note { position: absolute; right: -18px; bottom: 2%; margin: 0; font-family: var(--font-hand); font-size: 22px; line-height: 1.05; color: var(--pen); transform: rotate(-6deg); text-align: right; pointer-events: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.step { position: relative; width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; overflow: hidden; transition: background 0.3s, border-color 0.3s, transform 0.2s; }
.step:hover { background: var(--panel-3); }
.step.is-active { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 58%, var(--line-2)); }
.step__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--panel-3); color: var(--text-2); transition: background 0.3s, color 0.3s, transform 0.3s; }
.step__ico svg { width: 20px; height: 20px; }
.step.is-active .step__ico { background: var(--brand); color: var(--brand-ink); transform: rotate(-6deg); }
.step__main { flex: 1; min-width: 0; padding-top: 2px; }
.step__top { display: flex; align-items: baseline; gap: 12px; }
.step__time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); width: 34px; flex: none; }
.step__top strong { flex: 1; font-family: var(--font-display); font-size: 18.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.step.is-active .step__top strong { font-weight: 600; }
.step__mins { font-family: var(--font-mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--panel-3); color: var(--text-2); flex: none; }
.step.is-active .step__mins { background: var(--brand-soft); color: var(--brand); }
.step__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(.2, .7, .2, 1); }
.step.is-active .step__more { grid-template-rows: 1fr; }
.step__inner { overflow: hidden; padding-left: 46px; }
.step__text { display: block; padding-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.step__note { display: inline-block; margin-top: 8px; font-family: var(--font-hand); font-size: 21px; color: var(--pen); transform: rotate(-1.5deg); }
.step__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.step__bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.step.is-active.is-playing .step__bar i { animation: stepFill var(--step-dur, 5s) linear forwards; }
.session.is-paused .step__bar i { animation-play-state: paused; }
@keyframes stepFill { to { width: 100%; } }

.session__rules { display: flex; align-items: center; gap: 18px; margin-top: 44px; padding-top: 26px; border-top: 1px dashed var(--line-2); }
.session__rules-title { font-family: var(--font-hand); font-size: 30px; font-weight: 700; color: var(--text); flex: none; transform: rotate(-3deg); }
.session__rules ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.session__rules li { font-family: var(--font-hand); font-size: 20px; line-height: 1; padding: 9px 13px 8px; background: var(--note); color: var(--note-ink); border-radius: 3px; box-shadow: 0 8px 14px -10px rgba(0, 0, 0, 0.6); transform: rotate(-1.5deg); transition: transform 0.2s; }
.session__rules li:nth-child(even) { transform: rotate(1.4deg); background: var(--panel-2); color: var(--text); }
.session__rules li:nth-child(3n) { transform: rotate(-0.6deg); }
.session__rules li:hover { transform: rotate(0) translateY(-3px); }
.session__rules s { text-decoration-color: #c8432b; text-decoration-thickness: 2px; }

@media (max-width: 1024px) {
  .session__head, .session__body { grid-template-columns: 1fr; }
  .session__head { gap: 14px; margin-bottom: 30px; }
  .dial { width: min(100%, 340px); }
  .session__rules { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .session { border-radius: 20px; padding: 26px 16px; }
  .dial__note { display: none; }
  .step { padding: 12px; gap: 12px; }
  .step__ico { width: 38px; height: 38px; }
  .step__inner { padding-left: 0; }
  .step__top { flex-wrap: wrap; gap: 4px 10px; }
  .step__top strong { font-size: 17px; flex-basis: 100%; order: 3; }
  .session__rules li { font-size: 18px; }
}

/* Session footer: facts + CTA (replaces lab-rule chips) */
.session__foot { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.session__facts { display: flex; gap: clamp(20px, 4vw, 48px); margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.session__facts li { display: flex; align-items: center; gap: 12px; }
.session__facts b { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--brand); }
.session__facts span { font-size: 13.5px; line-height: 1.35; color: var(--text-2); }
.session__cta { display: flex; align-items: center; gap: 16px; }
.session__cta p { margin: 0; font-size: 15px; color: var(--text-2); }
@media (max-width: 720px) {
  .session__facts { flex-direction: column; gap: 14px; }
  .session__cta { flex-direction: column; align-items: stretch; width: 100%; text-align: center; }
  .session__cta .btn { width: 100%; }
}

/* Footer lead bar (replaces the handwritten sign-off) */
.site-footer { padding-top: 40px; }
.footer-lead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; margin-bottom: 52px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.footer-lead__text { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 420px; }
.footer-lead__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.footer-lead__ico svg { width: 22px; height: 22px; }
.footer-lead strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.footer-lead__text span:not(.footer-lead__ico) { display: block; font-size: 14.5px; color: var(--text-2); margin-top: 3px; }
.footer-lead__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--wa { background: #25d366; color: #063016; box-shadow: 0 3px 0 #1a9e4b; }
.btn--wa:hover { background: #3be07a; transform: translateY(-1px); }
.btn--wa svg { width: 18px; height: 18px; }
.btn--wa:hover svg { transform: none; }
@media (max-width: 720px) {
  .footer-lead { padding: 20px 18px; }
  .footer-lead__text { flex-basis: 100%; align-items: flex-start; }
  .footer-lead__actions { width: 100%; }
  .footer-lead__actions .btn { flex: 1 1 100%; }
}
@media (min-width: 1025px) {
  .session__foot { flex-wrap: nowrap; }
  .session__facts { flex-wrap: nowrap; gap: 32px; }
  .session__cta { flex: none; }
}
.footer-lead .btn--wa { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); box-shadow: none; }
.footer-lead .btn--wa svg { color: #25d366; }
.footer-lead .btn--wa:hover { border-color: #25d366; background: rgba(37, 211, 102, 0.08); transform: none; }
.site-footer { margin-top: 0; }

/* ==========================================================================
   Realistic, theme-aware CAD window (hero)
   ========================================================================== */
.viewport {
  --vp-chrome: #eceef1; --vp-chrome-2: #f7f8fa; --vp-line: #d3d8de; --vp-text: #2a3036; --vp-muted: #6b747d;
  --vp-btn-hover: rgba(0, 0, 0, 0.05); --vp-active: #1f8a45; --vp-active-bg: rgba(31, 138, 69, 0.12);
  --vp-g1: #ffffff; --vp-g2: #d3dbe2; --vp-tree: #fafbfc; --vp-hot: rgba(64, 140, 245, 0.14); --vp-hot-text: #1d5fd6;
  border-radius: 12px; border: 1px solid var(--vp-line); background: var(--vp-chrome); color: var(--vp-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 40px 80px -40px rgba(20, 30, 40, 0.45), 0 10px 24px -14px rgba(20, 30, 40, 0.25);
}
[data-theme="dark"] .viewport {
  --vp-chrome: #23272b; --vp-chrome-2: #1b1f22; --vp-line: #353b41; --vp-text: #dfe3e7; --vp-muted: #8b949c;
  --vp-btn-hover: rgba(255, 255, 255, 0.06); --vp-active: #63d189; --vp-active-bg: rgba(76, 196, 119, 0.14);
  --vp-g1: #3a4046; --vp-g2: #15181b; --vp-tree: #1e2225; --vp-hot: rgba(90, 160, 255, 0.16); --vp-hot-text: #8ab8ff;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}
.vp-title { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; background: var(--vp-chrome); border-bottom: 1px solid var(--vp-line); font-size: 12px; }
.vp-title .viewport__dots i { width: 11px; height: 11px; }
.vp-title__app { font-weight: 700; font-size: 11.5px; letter-spacing: 0.02em; color: #c4262e; font-style: italic; }
.viewport[data-app="revit"] .vp-title__app { color: #1f6fd1; font-style: normal; }
.vp-title__file { text-align: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--vp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-title__fps { font-family: var(--font-mono); font-size: 11px; color: var(--vp-muted); }
.vp-ribbon { background: var(--vp-chrome-2); border-bottom: 1px solid var(--vp-line); }
.vp-tabs { display: flex; gap: 2px; padding: 6px 10px 0; font-size: 12px; color: var(--vp-muted); }
.vp-tabs span { padding: 5px 11px 6px; border-radius: 6px 6px 0 0; }
.vp-tabs .is-active { background: var(--vp-chrome); color: var(--vp-text); font-weight: 600; box-shadow: inset 0 2px 0 var(--vp-active); }
.viewport .viewport__tools { background: var(--vp-chrome); border-bottom: 0; padding: 7px 8px; }
.viewport .vp-btn { color: var(--vp-text); font-family: var(--font-body); font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 7px; }
.viewport .vp-btn svg { color: var(--vp-muted); }
.viewport .vp-btn:hover { background: var(--vp-btn-hover); color: var(--vp-text); }
.viewport .vp-btn.is-active { color: var(--vp-active); background: var(--vp-active-bg); border-color: transparent; }
.viewport .vp-btn.is-active svg { color: var(--vp-active); }
.viewport .vp-sep { background: var(--vp-line); }

.vp-body { display: grid; grid-template-columns: 188px 1fr; }
.vp-tree { background: var(--vp-tree); border-right: 1px solid var(--vp-line); padding: 8px 0; overflow: hidden; font-size: 12px; }
.vp-tree__head { padding: 2px 12px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--vp-line); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vp-muted); }
.vp-tree__list { list-style: none; margin: 0; padding: 0; }
.vp-tree__item { display: flex; align-items: center; gap: 7px; padding: 3px 10px 3px calc(10px + var(--lvl, 0) * 13px); white-space: nowrap; color: var(--vp-text); border-radius: 0; transition: background 0.15s, color 0.15s; animation: treeIn 0.35s both; animation-delay: calc(var(--i) * 25ms); }
.vp-tree__item.lvl-1 { --lvl: 1; }
.vp-tree__item.lvl-2 { --lvl: 2; }
.vp-tree__item svg { width: 14px; height: 14px; flex: none; color: var(--vp-muted); }
.vp-tree__item span { overflow: hidden; text-overflow: ellipsis; }
.vp-tree__item.is-root { font-weight: 600; }
.vp-tree__item.is-root svg { color: #c4262e; }
.viewport[data-app="revit"] .vp-tree__item.is-root svg { color: #1f6fd1; }
.vp-tree__item[data-feat] svg { color: #c98a1b; }
.vp-tree__item.is-sel, .vp-tree__item.is-hot { background: var(--vp-hot); color: var(--vp-hot-text); }
.vp-tree__item.is-hot svg { color: var(--vp-hot-text); }
@keyframes treeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.viewport .viewport__stage { aspect-ratio: auto; height: clamp(360px, 34vw, 470px); background: linear-gradient(180deg, var(--vp-g1) 0%, var(--vp-g2) 100%); }
.vp-hud-bar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 1px; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--vp-chrome) 82%, transparent); border: 1px solid var(--vp-line); box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.3); backdrop-filter: blur(6px); }
.vp-hud-bar .vp-btn { font-family: var(--font-mono); font-size: 11px; padding: 5px 8px; }
.vp-hud-bar .vp-sep { width: 1px; height: 18px; margin: 0 3px; }
.viewport .hud { color: var(--vp-muted); font-size: 10.5px; }
.viewport .hud--tl { top: 12px; left: 12px; }
.viewport .hud .tag { background: var(--vp-active-bg); color: var(--vp-active); border-color: transparent; }
.viewport .hud--br { bottom: 10px; right: 12px; }
.viewport .viewport__hint { background: color-mix(in srgb, var(--vp-chrome) 85%, transparent); color: var(--vp-text); border-color: var(--vp-line); bottom: 12px; }
.viewport .viewport__hint svg { color: var(--vp-active); }
.viewport .viewport__status { background: var(--vp-chrome); border-top: 1px solid var(--vp-line); color: var(--vp-muted); font-family: var(--font-body); font-size: 11.5px; padding: 6px 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; }
.viewport .viewport__status span:first-child { color: var(--vp-text); font-weight: 500; }
.vp-pre { color: var(--vp-hot-text); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__annot { top: -50px; }
@media (max-width: 1180px) { .vp-body { grid-template-columns: 160px 1fr; } }
@media (max-width: 720px) {
  .vp-body { grid-template-columns: 1fr; }
  .vp-tree, .vp-hide-sm, .viewport .hud--tl { display: none; }
  .viewport .viewport__stage { height: 320px; }
  .vp-hud-bar { top: 8px; }
  .viewport .vp-btn { font-size: 12px; padding: 6px 8px; }
}
.viewport .viewport__status span:last-child { font-family: var(--font-mono); font-size: 11px; }
.viewport .viewport__tools .vp-btn { padding: 6px 8px; gap: 5px; }

@media (max-width: 720px) {
  body { font-size: 15.5px; line-height: 1.6; }
  h1 { font-size: clamp(30px, 8vw, 38px) !important; line-height: 1.08; }
  h2 { font-size: clamp(25px, 6.8vw, 32px) !important; line-height: 1.12; }
  h3 { font-size: clamp(18px, 5vw, 22px) !important; line-height: 1.18; }
  .hero__annot, .dial__note, .session__rules-title, .session__rules li,
  .footer-sign, .footer-tagline, .letter__body .signoff, .split .signoff {
    font-size: clamp(18px, 5vw, 25px);
  }
  .session__head p { font-size: 15px; }
  .step__top strong { font-size: 16px; }
  .step__note { font-size: 18px; }
  .nav__theme { font-size: 14px; }
  .nav__addr { font-size: 12px; }
  .site-footer { padding-top: 44px; }
  .footer-top { gap: 24px 18px; padding-bottom: 28px; }
  .footer-brand p { font-size: 14px; margin: 12px 0; }
  .site-footer h4 { font-size: 10.5px; margin-bottom: 11px; }
  .footer-col { gap: 8px; }
  .footer-col a, .footer-contact a, .footer-contact p { font-size: 14px; }
  .footer-contact { gap: 11px; }
  .footer-sign { gap: 10px; padding: 20px 0 24px; }
  .footer-sign svg { width: 34px; height: 34px; }
  .footer-bottom { padding: 16px 0; font-size: 12px; }
  .footer-bottom nav { gap: 12px; }
  .mega__foot { font-size: 12.5px; }
  .certificate .certificate__body { max-width: 66%; }
  .certificate .certificate__body h3 { margin: 2px 0; font-size: clamp(13px, 4.8vw, 17px) !important; line-height: 1.05; }
  .certificate .certificate__body p { margin: 2px 0; font-size: 7px; line-height: 1.2; }
  .certificate .certificate__name { margin: 2px 0; font-size: 12px; }
  .certificate .certificate__course { margin-top: 2px; font-size: 8px; line-height: 1.1; }
  .certificate__titleblock > div { gap: 2px; padding: 3%; }
  .certificate__titleblock small { font-size: 4.5px; }
  .certificate__titleblock b { font-size: 5px; }
  .certificate__top > span { font-size: 5px; }
  .certificate--studio .certificate__body { max-width: 100%; }
  .certificate--studio .certificate__technical { font-size: 5px; }
  .certificate--edition .certificate__body { left: 32%; top: 32%; width: 42%; }
  .certificate--edition > aside b { font-size: 13px; }
  .certificate--edition > aside span, .certificate--edition > aside small { font-size: 5px; }
  .certificate--assembly { width: 25%; top: 20%; right: 6%; }
}
@media (max-width: 420px) {
  .site-header .nav > a, .site-header .nav__trigger { font-size: 15px; }
  .nav__tile { font-size: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .certificate__index { font-size: 8px; }
  .certificate__brand { font-size: 12px; }
  .certificate__brand small, .certificate__eyebrow { font-size: 7px; }
  .certificate .certificate__body h3 { margin: 3px 0; font-size: 22px !important; line-height: .98; }
  .certificate .certificate__body p { margin: 2px 0; font-size: 8px; line-height: 1.15; }
  .certificate .certificate__name { margin: 2px 0; font-size: 15px; line-height: 1; }
  .certificate .certificate__rule { margin: 2px 0; }
  .certificate .certificate__course { margin-top: 2px; font-size: 10px; line-height: 1; }
  .certificate__footer { font-size: 6px; line-height: 1.2; }
  .certificate__seal { width: 28px; height: 28px; }
  .certificate__monogram { width: 24px; }
  .certificate--blueprint .certificate__brand { margin-top: 4px; }
  .certificate--studio .certificate__mark { width: 24px; height: 24px; }
}
