/* ==========================================================================
   Tema TPM — "Blueprint Presisi"
   Warna utama bisa ditimpa dari admin (Identitas situs) lewat --brand / --accent.
   ========================================================================== */
@font-face {
    font-family: "Jakarta";
    src: url("../fonts/jakarta-latin.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Jakarta";
    src: url("../fonts/jakarta-latin-ext.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --brand: #1d4ed8;
    --accent: #15803d;
    --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
    --brand-line: color-mix(in srgb, var(--brand) 22%, #fff);
    --brand-dark: color-mix(in srgb, var(--brand) 70%, #000);
    --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
    --ink-950: #060b1a;
    --ink-900: #0b1530;
    --ink-800: #13214a;
    --ink: #0d1630;
    --muted: #4f5d78;
    --line: #e2e8f2;
    --steel: #f3f6fb;
    --on-dark: #e8eeff;
    --on-dark-muted: #a9b6d6;
    --cyan: #8fd3ff;
    --radius: 20px;
    --shadow-sm: 0 1px 2px rgb(13 22 48 / .05);
    --shadow: 0 1px 2px rgb(13 22 48 / .04), 0 12px 32px -14px rgb(13 22 48 / .18);
    --shadow-lg: 0 2px 4px rgb(13 22 48 / .05), 0 24px 48px -20px rgb(13 22 48 / .28);
    --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.65; background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; word-spacing: .06em; font-weight: 800; }
p { margin: 0 0 1rem; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, #fff); outline-offset: 3px; border-radius: 6px; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; background: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Bilah atas & navigasi ---------- */
.topbar { background: var(--accent); color: #fff; font-size: .8rem; }
.topbar__row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { color: #fff; opacity: .9; }
.topbar__dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #bbf7d0; margin-right: .5rem; vertical-align: middle; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--ink-900); color: var(--on-dark); border-bottom: 1px solid rgb(255 255 255 / .06); transition: background .3s, color .3s, box-shadow .3s, border-color .3s; }
.nav.is-scrolled { background: rgb(255 255 255 / .86); color: var(--ink); border-color: var(--line); box-shadow: 0 8px 24px -18px rgb(13 22 48 / .35); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); }
.nav__row { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand__mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, #9cb6ff), var(--brand-dark)); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .04em; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.brand__logo { height: 2.6rem; width: auto; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .25)); }
.foot__logo { width: 3.5rem; height: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; color: var(--on-dark-muted); }
.crumbs a { color: #b9f5cf; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.related .sec__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.brand__text { display: grid; line-height: 1.2; }
.brand__text small { opacity: .7; font-size: .76rem; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a { color: inherit; text-decoration: none; font-weight: 600; font-size: .93rem; opacity: .85; transition: opacity .2s; }
.nav__menu a:hover, .nav__menu a[aria-current] { opacity: 1; }
.nav__menu a[aria-current]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__menu .btn { opacity: 1; }
.nav__search { display: inline-flex; align-items: center; gap: .35rem; }
.nav__search-label { display: none; }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: inherit; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand); color: #fff !important; padding: .85rem 1.35rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .97rem; border: 0; font-family: inherit; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); }
.btn:hover { transform: translateY(-2px); background: var(--brand-dark); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--small { padding: .55rem 1rem; font-size: .88rem; border-radius: 10px; }
.btn--glow { box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 14px 32px -12px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn--glass { background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgb(255 255 255 / .14); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
    background:
        radial-gradient(900px 520px at 78% 38%, color-mix(in srgb, var(--brand) 42%, transparent), transparent 62%),
        radial-gradient(700px 420px at 4% 96%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%),
        var(--ink-900); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgb(143 211 255 / .07) 1px, transparent 1px),
        linear-gradient(90deg, rgb(143 211 255 / .07) 1px, transparent 1px),
        linear-gradient(rgb(143 211 255 / .05) 1px, transparent 1px),
        linear-gradient(90deg, rgb(143 211 255 / .05) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 40%, transparent 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; min-height: min(86vh, 760px); padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; }
.eyebrow--light { color: #b9f5cf; padding: .4rem .8rem; border-radius: 99px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.eyebrow__dot { width: .5rem; height: .5rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgb(74 222 128 / .2); }
.hero__title { font-size: clamp(2.5rem, 5.8vw, 4.7rem); letter-spacing: -.035em; word-spacing: .1em; line-height: 1.02; margin-bottom: 1.4rem; color: #fff; text-wrap: balance; }
.hl { background: linear-gradient(100deg, #a9c1ff 0%, #7fd8ff 45%, #86efac 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-dark-muted); max-width: 33rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.2rem; margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgb(255 255 255 / .1); }
.hero__facts dt { font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -.02em; }
.hero__facts dd { margin: .1rem 0 0; color: var(--on-dark-muted); font-size: .86rem; }
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .06s; }
.hero__copy > :nth-child(3) { animation-delay: .12s; }
.hero__copy > :nth-child(4) { animation-delay: .18s; }
.hero__copy > :nth-child(5) { animation-delay: .24s; }
.hero__ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; opacity: .5;
    background: repeating-linear-gradient(90deg, rgb(143 211 255 / .5) 0 1px, transparent 1px 12px) bottom / 100% 8px no-repeat,
                repeating-linear-gradient(90deg, rgb(143 211 255 / .7) 0 1px, transparent 1px 60px) bottom / 100% 16px no-repeat; }

/* ---------- Roda gigi 3D di hero (CSS 3D murni, tanpa WebGL) ---------- */
.hero__stage { perspective: 1300px; perspective-origin: 50% 40%; }
.stage { --rx: 26deg; --ry: -32deg; --turn: 0deg; width: min(470px, 100%); aspect-ratio: 1; margin-inline: auto; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.assembly { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.assembly::before { content: ""; position: absolute; inset: 12% 6% 4% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .45), transparent); transform: translateZ(-26px); filter: blur(6px); }
.gear { position: absolute; aspect-ratio: 1; transform-style: preserve-3d; }
.gear--big { width: 52.17%; left: 15.22%; top: 28.26%; transform: rotateZ(var(--turn)); }
.gear--small { width: 36.09%; left: 55.1%; top: 14%; transform: rotateZ(calc(var(--turn) * -1.5)); }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(calc(var(--i) * 2.2px)); backface-visibility: visible; }
.gear--big .layer { fill: color-mix(in srgb, #4d72e6 calc(var(--i) * 8%), #0c1a4d); }
.gear--small .layer { fill: color-mix(in srgb, #3aa864 calc(var(--i) * 9%), #0a3019); }
.gear--big .layer--face { fill: url(#face-blue); stroke: rgb(255 255 255 / .45); stroke-width: .8; }
.gear--small .layer--face { fill: url(#face-green); stroke: rgb(255 255 255 / .45); stroke-width: .8; }
.gear__hub { position: absolute; width: 16%; height: 16%; left: 42%; top: 42%; border-radius: 50%; transform: translateZ(30px);
    background: radial-gradient(circle at 35% 30%, #f1f5ff, #8aa2d8 45%, #34477e 80%); box-shadow: 0 0 0 3px rgb(11 21 48 / .6); }
.gear__shaft { position: absolute; width: 7%; height: 7%; left: 46.5%; top: 46.5%; border-radius: 50%; transform: translateZ(31px); background: #0b1530; box-shadow: inset 0 0 0 2px #5b75b8; }
@media (prefers-reduced-motion: no-preference) {
    .layer { animation: stack 1.1s var(--ease) both; animation-delay: calc(.25s + var(--i) * 35ms); }
    .gear__hub, .gear__shaft { animation: fade .8s ease both; animation-delay: .9s; }
}
@keyframes stack { from { transform: translateZ(0); opacity: 0; } to { transform: translateZ(calc(var(--i) * 2.2px)); opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Bagian umum ---------- */
.sec { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.sec--steel { background: var(--steel); }
.sec__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.label { display: inline-flex; align-items: center; gap: .6rem; font: 700 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.label::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.label--light { color: var(--cyan); }
.sec__title { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.03em; word-spacing: .08em; text-wrap: balance; }
.sec__lede { color: var(--muted); font-size: 1.1rem; margin: 1rem 0 0; max-width: 38rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.empty { color: var(--muted); border: 1.5px dashed var(--brand-line); border-radius: var(--radius); padding: 2.4rem; text-align: center; background: #fff; }

/* ---------- Teaching Factory ---------- */
.sec--dark { background: radial-gradient(800px 400px at 90% 0%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 65%), var(--ink-900); color: var(--on-dark); }
.sec--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(143 211 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(143 211 255 / .05) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.sec--dark .wrap { position: relative; }
.sec--dark .sec__title { color: #fff; }
.sec--dark .sec__lede { color: var(--on-dark-muted); }
.tefa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.unit { display: flex; flex-direction: column; padding: 1.6rem; border-radius: 22px; color: inherit; text-decoration: none; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); transition: transform .35s var(--ease), background .35s, box-shadow .35s; }
.unit:hover { transform: translateY(-6px); background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(143 211 255 / .35), 0 24px 40px -24px rgb(0 0 0 / .6); }
.unit__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.unit__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: rgb(143 211 255 / .12); color: var(--cyan); }
.unit__icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.unit__no { font: 600 .8rem var(--mono); color: var(--on-dark-muted); letter-spacing: .1em; }
.unit h3 { font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.unit p { color: var(--on-dark-muted); font-size: .95rem; margin: 0 0 1.4rem; }
.unit__more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--cyan); }
.unit__more::after { content: " →"; transition: margin .2s; }
.unit:hover .unit__more::after { margin-left: 4px; }

/* ---------- Mitra industri ---------- */
.partner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.partner__text { color: var(--muted); margin: 1rem 0 1.8rem; max-width: 38rem; }
.partner__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.partner__logo { margin: 0; padding: 2.4rem; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: center; position: relative; }
.partner__logo::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--brand-line), transparent 40%, color-mix(in srgb, var(--accent) 30%, #fff)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.partner__logo img { margin: 0 auto; max-width: 280px; width: 100%; height: auto; }
.partner__logo figcaption { margin-top: 1.2rem; font: 600 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Bento kompetensi ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile { --mx: 50%; --my: 50%; grid-column: span 2; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.tile--wide { grid-column: span 4; }
.tile--half { grid-column: span 3; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: inherit; background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 9%, transparent), transparent 45%); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.tile:hover::after { opacity: 1; }
.tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 1.6rem 1.7rem 1.7rem; }
.tile__no { font: 600 .74rem var(--mono); letter-spacing: .14em; color: var(--brand); margin-bottom: .8rem; display: inline-flex; align-items: center; gap: .5rem; }
.tile__no::after { content: ""; width: 1.4rem; height: 1px; background: currentColor; opacity: .5; }
.tile h3 { font-size: 1.4rem; margin-bottom: .55rem; }
.tile p { color: var(--muted); margin: 0; }

/* Foto berbingkai dengan label spesifikasi bergaya gambar kerja */
.tile__media { position: relative; margin: .55rem; border-radius: 20px; overflow: hidden; min-height: 190px; flex: 1; background: var(--brand-soft); }
.tile__media--top { flex: 0 0 auto; aspect-ratio: 16 / 10; min-height: 0; margin-bottom: 0; }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(6 11 26 / .35)); }

/* Kartu lebar: teks dan foto berdampingan */
.tile--split { display: grid; grid-template-columns: 1fr 1fr; }
.tile--split .tile__media { margin: .55rem .55rem .55rem 0; }
.tile--half.tile--split { grid-template-columns: 1.15fr .85fr; }
.tile__tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.tile__tags li { padding: .25rem .7rem; border-radius: 99px; font-size: .8rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); }

/* Kartu gelap CNC: foto mesin di balik program */
.tile--dark { background: var(--ink-900); border-color: var(--ink-800); color: var(--on-dark); }
.tile--dark .tile__no { color: var(--cyan); }
.tile--dark p { color: var(--on-dark-muted); }
.tile__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__bg { transform: scale(1.04); }
.tile--cnc .tile__bg { left: 38%; width: 62%; }
.tile--cnc::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, var(--ink-900) 36%, rgb(11 21 48 / .82) 52%, rgb(11 21 48 / .15) 100%), linear-gradient(rgb(143 211 255 / .05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgb(143 211 255 / .05) 1px, transparent 1px) 0 0 / 22px 22px; }
.tile--cnc .tile__body { max-width: 62%; }
.gcode { margin: 1.4rem 0 0; padding: 1rem 1.2rem; border-radius: 14px; background: rgb(3 7 18 / .72); box-shadow: inset 0 0 0 1px rgb(143 211 255 / .15); backdrop-filter: blur(4px); font: 500 .84rem/1.75 var(--mono); color: #c9d6f5; overflow-x: auto; }
.gcode span { color: var(--cyan); font-weight: 700; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: .2em; vertical-align: -.15em; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Kartu foto K3 */
.tile--photo { color: #fff; border-color: transparent; justify-content: flex-end; min-height: 320px; }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgb(6 11 26 / .1) 0%, rgb(6 11 26 / .55) 45%, rgb(6 11 26 / .92) 100%); }
.tile--photo .tile__no { color: #fcd34d; }
.tile--photo p { color: rgb(255 255 255 / .82); }
.apd { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.apd li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 99px; font-size: .82rem; font-weight: 600; background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.apd li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #4ade80; }

/* ---------- Linimasa ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 2rem; right: 2rem; top: 2.6rem; height: 2px; background: var(--line); }
.timeline::after { background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; }
.step { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.step__num { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; margin-bottom: 1.2rem; font: 800 .82rem var(--mono); color: #fff; background: var(--brand); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); }
.step:nth-child(2) .step__num { background: var(--accent); }
.step:nth-child(3) .step__num { background: var(--ink-900); }
.step__kelas { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .3rem; }
.step h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.step p:last-child { margin: 0; color: var(--muted); }

/* ---------- Kartu berita ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--brand-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__ph { display: block; width: 100%; height: 100%; background:
    radial-gradient(circle at 70% 40%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 55%),
    linear-gradient(var(--brand-line) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--brand-line) 1px, transparent 1px) 0 0 / 20px 20px, var(--brand-soft); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; }
.card time { display: block; font: 600 .78rem var(--mono); letter-spacing: .06em; color: var(--accent); margin-bottom: .5rem; text-transform: uppercase; }
.card h3, .card h2 { font-size: 1.18rem; margin: 0 0 .5rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--brand-soft); }
.is-home .gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .9rem; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgb(6 11 26 / .8)); }

/* ---------- Kontak ---------- */
.sec--cta { padding-top: 0; background: linear-gradient(var(--steel) 50%, #fff 50%); }
.cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: clamp(2.2rem, 5vw, 4rem); border-radius: 32px; color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate;
    background: radial-gradient(600px 360px at 90% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 65%), radial-gradient(500px 300px at 0% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), var(--ink-900);
    box-shadow: var(--shadow-lg); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(143 211 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(143 211 255 / .06) 1px, transparent 1px); background-size: 28px 28px; }
.cta .sec__title { color: #fff; margin-bottom: .8rem; }
.cta__copy p:not(.label) { color: var(--on-dark-muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.cta__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cta__list li { padding: 1rem 1.2rem; border-radius: 14px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); }
.cta__list span { display: block; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin-bottom: .2rem; }
.cta__list a { color: #fff; }

/* ---------- Kaki halaman ---------- */
.foot { background: var(--ink-950); color: var(--on-dark-muted); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .94rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.foot__brand p { margin: 1rem 0 0; }
.foot__brand strong { color: #fff; }
.foot__muted { color: #7f8bab; }
.foot__col { display: grid; align-content: start; gap: .55rem; }
.foot__col h2 { font: 700 .74rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: .5rem; }
.foot a { color: var(--on-dark-muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; border-top: 1px solid rgb(255 255 255 / .08); font-size: .85rem; }
.foot__menu { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Halaman dalam ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
    background: radial-gradient(700px 360px at 85% 0%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 65%), var(--ink-900); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(143 211 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(143 211 255 / .06) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: #fff; letter-spacing: -.03em; word-spacing: .08em; text-wrap: balance; }
.page-head__lede { max-width: 40rem; margin: 1rem 0 0; color: var(--on-dark-muted); font-size: 1.08rem; }
.page-head .eyebrow { color: #b9f5cf; margin-bottom: 1rem; }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head time { display: block; margin-top: .9rem; color: var(--on-dark-muted); font: 600 .85rem var(--mono); letter-spacing: .05em; }
.page-head .post-terms { margin-top: 1.2rem; }
.page-head .term { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .14); color: var(--on-dark); }
.page-head .term--cat { background: var(--brand); border-color: var(--brand); color: #fff; }
.narrow { width: min(760px, 100% - 2.5rem); }
.page-head + .sec { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: -4.5rem 0 2.5rem; position: relative; box-shadow: var(--shadow-lg); }
.prose { font-size: 1.08rem; line-height: 1.8; }
.prose h2, .prose h3 { margin: 2.2rem 0 .8rem; letter-spacing: -.02em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img { border-radius: 14px; }
.prose a { font-weight: 600; }
.prose blockquote { margin: 1.8rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; color: var(--ink); }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: .55rem .7rem; }
.prose pre { background: var(--ink-900); color: #dbe6ff; padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; font: .9rem/1.6 var(--mono); }
.search { display: flex; gap: .5rem; margin-top: 1.6rem; max-width: 560px; }
.search input { flex: 1; padding: .85rem 1.1rem; border: 0; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); box-shadow: 0 10px 30px -14px rgb(0 0 0 / .5); }
.more { margin-top: 2rem; font-weight: 700; }
.pager { margin-top: 2.5rem; }
.pager nav > div:first-child { display: none; }
.pager svg { width: 1rem; height: 1rem; }
.pager span, .pager a { padding: .4rem .7rem; }
.post-terms { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.term { font-size: .82rem; font-weight: 600; padding: .25rem .75rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.term--cat { background: var(--brand); border-color: var(--brand); color: #fff; }
.crumb { margin-bottom: 1rem; font-weight: 700; }
.subpages { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: .7rem; }
.subpages a { display: flex; justify-content: space-between; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 700; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s var(--ease); }
.subpages a::after { content: "→"; }
.subpages a:hover { border-color: var(--brand); transform: translateX(4px); }

/* ---------- Komentar ---------- */
.comments { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.45rem; margin-bottom: 1.2rem; }
.comment { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.comment--reply { margin: .9rem 0 0 1.4rem; padding: .9rem 0 0 1.1rem; border-bottom: 0; border-left: 3px solid var(--brand-line); }
.comment__meta { margin-bottom: .3rem; color: var(--muted); font-size: .9rem; }
.comment__meta strong { color: var(--ink); }
.comment__badge { display: inline-block; margin-left: .3rem; padding: .05rem .55rem; border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; }
.comment__reply { font-size: .88rem; font-weight: 700; text-decoration: none; }
.comment__notice { background: var(--accent-soft); color: var(--accent); padding: .95rem 1.1rem; border-radius: 12px; margin: 1rem 0; font-weight: 600; }
.comment-form { display: grid; gap: .3rem; margin-top: 1rem; }
.comment-form label { font-weight: 700; margin-top: .7rem; font-size: .95rem; }
.comment-form small { font-weight: 500; color: var(--muted); }
.comment-form input, .comment-form textarea { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; width: 100%; background: #fff; transition: border-color .2s, box-shadow .2s; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.comment-form .btn { justify-self: start; margin-top: .9rem; }
.comment__hint { color: var(--muted); font-size: .88rem; margin: .4rem 0 0; }
.field-error { color: #b91c1c; font-size: .88rem; margin: 0; }

/* ---------- Animasi muncul saat scroll ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    @supports (animation-timeline: view()) {
        .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
        .timeline::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
    }
    @supports not (animation-timeline: view()) {
        .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
        .js .reveal.is-in { opacity: 1; transform: none; }
        .js .timeline::after { transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
        .js .timeline.is-in::after { transform: scaleX(1); }
    }
}

/* ---------- Responsif ---------- */
@media (max-width: 1020px) {
    .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 2.5rem; }
    .hero__stage { max-width: 400px; width: 100%; margin: 0 auto; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tefa { grid-template-columns: repeat(2, 1fr); }
    .partner { grid-template-columns: 1fr; }
    .tile, .tile--half { grid-column: span 1; }
    .tile--wide { grid-column: span 2; }
    .tile--half.tile--split { grid-template-columns: 1fr; }
    .tile--half.tile--split .tile__media { margin: 0 .55rem .55rem; min-height: 180px; }
    .cta { grid-template-columns: 1fr; }
    .foot__grid { grid-template-columns: 1fr 1fr; }
    .foot__brand { grid-column: span 2; }
}
@media (max-width: 860px) {
    .nav__toggle { display: block; }
    .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; background: var(--ink-900); border-bottom: 1px solid rgb(255 255 255 / .08); }
    .nav.is-scrolled .nav__menu { background: #fff; border-color: var(--line); }
    .nav__menu a { padding: .8rem 0; }
    .nav__menu .btn { margin-top: .5rem; justify-content: center; }
    .nav__search-label { display: inline; }
    .nav.is-open .nav__menu { display: flex; }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .timeline { grid-template-columns: 1fr; }
    .timeline::before, .timeline::after { left: 2.9rem; right: auto; top: 2rem; bottom: 2rem; width: 2px; height: auto; }
    .timeline::after { transform-origin: top; }
    .news { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}
@media (max-width: 600px) {
    .wrap { width: min(1180px, 100% - 2rem); }
    .topbar { font-size: .72rem; }
    .hero__facts { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .hero__facts dt { font-size: 1.05rem; }
    .hero__stage { max-width: 320px; }
    .bento, .tefa { grid-template-columns: 1fr; }
    .tile, .tile--wide, .tile--half { grid-column: span 1; }
    .tile--split { grid-template-columns: 1fr; }
    .tile--split .tile__media { margin: 0 .55rem .55rem; min-height: 200px; }
    .tile--cnc .tile__bg { left: 0; width: 100%; opacity: .35; }
    .tile--cnc .tile__body { max-width: none; }
    .news { grid-template-columns: 1fr; }
    .is-home .gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
    .foot__grid { grid-template-columns: 1fr; }
    .foot__brand { grid-column: auto; }
    .cover { margin-top: -3rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Halaman galat */
.error-head { padding-block: clamp(4rem, 12vw, 8rem); }
.error-head__text { color: var(--on-dark-muted); font-size: 1.15rem; max-width: 34rem; margin-top: 1rem; }

/* Guru & teknisi */
.staff__group { font-size: 1.3rem; margin: 2.5rem 0 1.2rem; }
.staff__group:first-child { margin-top: 0; }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1.3rem; box-shadow: var(--shadow); }
.person__photo { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; margin-bottom: 1rem; display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-soft), color-mix(in srgb, var(--accent) 10%, #fff)); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo span { font-size: 2.4rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.person h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.person__role { color: var(--brand); font-weight: 600; font-size: .9rem; margin: .25rem 0 0; }
.person__bio { color: var(--muted); font-size: .9rem; margin: .6rem 0 0; }

/* Album & lightbox */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip-link { padding: .4rem .9rem; border-radius: 99px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--on-dark); background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.chip-link.is-active, .chip-link:hover { background: var(--brand); box-shadow: none; color: #fff; }
.gallery figure a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.lightbox { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgb(6 11 26 / .94); color: #fff; }
.lightbox::backdrop { background: rgb(6 11 26 / .6); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 4rem 1.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lightbox__caption { margin-top: 1rem; color: var(--on-dark-muted); text-align: center; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .1); color: #fff; border: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .2); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; }
.lightbox__next { right: 1rem; top: 50%; }

/* Daftar isi & bagikan */
.toc { margin: 0 0 2rem; padding: 1.2rem 1.4rem; border-radius: 16px; background: var(--steel); border: 1px solid var(--line); }
.toc__title { font: 700 .76rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.toc a { text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }
.toc__l3 { margin-left: 1rem; list-style: circle; font-size: .95rem; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 6rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share__label { font: 700 .76rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-right: .3rem; }
.share__btn { padding: .45rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .88rem var(--font); text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s; }
.share__btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.share__btn--wa { background: #25d366; border-color: #25d366; color: #063; }
.share__btn.is-copied { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) { .lightbox__inner { padding: 3.5rem .75rem 1rem; } .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; } }
.preview-bar { position: sticky; top: 4.4rem; z-index: 40; padding: .7rem 1.25rem; background: #fef3c7; color: #78350f; font-weight: 600; text-align: center; border-bottom: 1px solid #fcd34d; }
.preview-bar a { color: inherit; }

/* ---------- Bengkel kami ---------- */
.workshop__grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; height: clamp(360px, 42vw, 520px); }
.workshop__photo { margin: 0; position: relative; overflow: hidden; border-radius: 24px; background: var(--brand-soft); }
.workshop__photo--main { grid-row: span 2; }
.workshop__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.workshop__photo:hover img { transform: scale(1.04); }
.workshop__photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .75rem; border-radius: 10px; font-weight: 700; font-size: .85rem; color: #fff; background: rgb(11 21 48 / .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0 0; }
.stats div { padding: 1.3rem 1.4rem; border-radius: 20px; background: var(--steel); border: 1px solid var(--line); }
.stats dt { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--brand); }
.stats dd { margin: .4rem 0 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.labs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.labs li { padding: .45rem .95rem; border-radius: 99px; font-weight: 600; font-size: .88rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.motto { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 2.5rem 0 0; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.motto span:nth-child(1) { color: var(--brand); }
.motto span:nth-child(2) { color: var(--accent); }
.motto span:nth-child(3) { color: var(--ink); }
.motto span:not(:last-child)::after { content: "·"; margin-left: 1.2rem; color: var(--line); }

/* ---------- Kartu mitra ---------- */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.partner-card { display: flex; flex-direction: column; padding: 1.6rem; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.partner-card__logo { display: grid; place-items: center; height: 150px; border-radius: 18px; background: var(--steel); margin-bottom: 1.4rem; }
.partner-card__logo img { max-height: 110px; width: auto; mix-blend-mode: multiply; }
.partner-card__logo--text { background: linear-gradient(135deg, #0f3d7a, #1d4ed8); color: #fff; text-align: center; }
.partner-card__logo--text span { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.partner-card__logo--text small { display: block; margin-top: .35rem; font: 600 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.partner-card__tag { font: 700 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.partner-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.partner-card > p:not(.partner-card__tag) { color: var(--muted); }
.partner-card__links { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: 1.2rem; }
@media (max-width: 860px) {
    .workshop__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
    .workshop__photo--main { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
    .workshop__photo:not(.workshop__photo--main) { aspect-ratio: 4 / 3; }
    .stats { grid-template-columns: 1fr 1fr; }
    .partners { grid-template-columns: 1fr; }
}

/* ---------- Slider berita ---------- */
.slider { position: relative; }
.slider__track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: .25rem 0 1.25rem; outline: none; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 4px; border-radius: 28px; }
.slide { flex: 0 0 min(88%, 1000px); scroll-snap-align: start; }
.slide__link { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .35s, transform .35s var(--ease); }
.slide__link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.slide__media { position: relative; overflow: hidden; background: var(--brand-soft); aspect-ratio: 1200 / 630; margin: .7rem 0 .7rem .7rem; border-radius: 20px; }
.slide__media img, .slide__media .card__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.slide__link:hover .slide__media img { transform: scale(1.04); }
.slide__body { display: flex; flex-direction: column; justify-content: center; gap: .9rem; padding: clamp(1.6rem, 3vw, 2.6rem); }
.slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font: 600 .8rem var(--mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.slide__cat { padding: .25rem .65rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.slide__title { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide__excerpt { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide__cta { margin-top: .4rem; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: .4rem; }
.slide__cta::after { content: "→"; transition: transform .2s var(--ease); }
.slide__link:hover .slide__cta::after { transform: translateX(4px); }
.slider__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .4rem; }
.slider__dots { display: flex; gap: .5rem; }
.slider__dot { position: relative; width: 2.2rem; height: .45rem; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; overflow: hidden; }
.slider__dot span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--brand); border-radius: inherit; }
.slider__dot.is-active span { transform: scaleX(1); }
.slider.is-playing .slider__dot.is-active span { animation: dotfill var(--slide-ms, 6000ms) linear both; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider__nav { display: flex; gap: .5rem; }
.slider__btn { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, color .2s, transform .2s var(--ease); }
.slider__btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }
.slider__btn:disabled { opacity: .4; cursor: default; transform: none; background: #fff; color: var(--ink); border-color: var(--line); }

/* ---------- Halaman berita ---------- */
.search--inline { margin-top: 1.4rem; }
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter__chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 99px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: border-color .2s, background .2s, color .2s; }
.filter__chip span { font: 600 .75rem var(--mono); color: var(--muted); }
.filter__chip:hover { border-color: var(--brand); }
.filter__chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.filter__chip.is-active span { color: var(--cyan); }
.news-toolbar__right { display: flex; align-items: center; gap: 1rem; }
.news-count { font: 600 .82rem var(--mono); color: var(--muted); }
.segmented { display: inline-flex; padding: .25rem; border-radius: 12px; background: var(--steel); border: 1px solid var(--line); }
.segmented__opt { padding: .45rem .95rem; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.segmented__opt.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; margin-bottom: 1.5rem; border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit; background: var(--ink-900); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.feature__media { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--ink-800); }
.feature__media img, .feature__media .card__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__body { display: flex; flex-direction: column; justify-content: center; gap: .9rem; padding: clamp(1.6rem, 3vw, 2.6rem); position: relative; }
.feature__badge { align-self: flex-start; padding: .3rem .7rem; border-radius: 8px; font: 700 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-900); background: #86efac; }
.feature .slide__meta { color: var(--on-dark-muted); }
.feature .slide__cat { background: rgb(143 211 255 / .14); color: var(--cyan); }
.feature__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.feature__excerpt { color: var(--on-dark-muted); }
.feature .slide__cta { color: var(--cyan); }
.card__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.card__meta span { color: var(--accent); }
.card__meta span + time::before { content: "·"; margin-right: .5rem; color: var(--line); }
.card h2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card { height: 100%; }
.card__body { flex: 1; }

/* Penomoran halaman */
.pages { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pages__list { display: flex; gap: .35rem; }
.pages__num, .pages__gap { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem; border-radius: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.pages__num { border: 1px solid var(--line); background: #fff; transition: border-color .2s; }
.pages__num:hover { border-color: var(--brand); }
.pages__num.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pages__btn { padding: .65rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; color: var(--brand); border: 1px solid var(--line); background: #fff; }
.pages__btn:hover { border-color: var(--brand); }
.pages__btn.is-disabled { color: var(--muted); opacity: .5; }

@media (max-width: 860px) {
    .slide { flex-basis: 88%; }
    .slide__link { grid-template-columns: 1fr; min-height: 0; }
    .slide__media { aspect-ratio: 1200 / 630; margin: .6rem .6rem 0; }
    .slide__body { padding: 1.3rem 1.4rem 1.6rem; }
    .feature { grid-template-columns: 1fr; }
    .feature__media { min-height: 0; aspect-ratio: 1200 / 630; }
    .news-toolbar__right { width: 100%; justify-content: space-between; }
    .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; }
    .filter__chip { white-space: nowrap; }
    .pages__list { order: -1; width: 100%; justify-content: center; }
    .pages__btn { flex: 1; text-align: center; }
}

/* Foto potret di kartu atas: fokus ke bagian atas */
.tile__media img.pos-top { object-position: 50% 30%; }
/* Foto tegak ditampilkan utuh (4:5) agar mesin dan siswanya tidak terpotong */
.tile__media--portrait { aspect-ratio: 4 / 5; }
.tile__media--portrait img { object-position: 50% 50%; }
.tile:hover .tile__media--portrait img { transform: none; }

/* ---------- Video profil (facade: iframe dimuat setelah diklik) ---------- */
.cta--video { grid-template-columns: .9fr 1.1fr; align-items: center; }
.cta--video .cta__list { margin-top: 1.6rem; }
.video { margin: 0; }
.video__facade, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7), inset 0 0 0 1px rgb(255 255 255 / .1); }
.video__facade { cursor: pointer; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: brightness(.82); }
.video__facade:hover img { transform: scale(1.03); filter: brightness(.95); }
.video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); transition: transform .3s var(--ease), background .3s; }
.video__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); }
.video__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.video__facade:hover .video__play { transform: scale(1.08); background: #ef4444; }
.video__facade:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.video__tag { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .7rem; border-radius: 8px; font: 600 .78rem var(--mono); color: #fff; background: rgb(0 0 0 / .55); }
.video figcaption { margin-top: .8rem; font-size: .85rem; color: var(--on-dark-muted); }
.video figcaption a { color: var(--cyan); }
@media (prefers-reduced-motion: no-preference) {
    .video__play::before { animation: ping 2.2s var(--ease) infinite; }
}
@keyframes ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

@media (max-width: 1020px) {
    .cta--video { grid-template-columns: 1fr; }
}
.tile--photo .tile__bg { object-position: 75% 20%; }

/* ---------- Logo jurusan di footer ---------- */
.foot__dept-logo { display: inline-flex; justify-self: start; align-self: start; padding: .55rem .75rem; margin-bottom: .9rem; border-radius: 14px; background: #fff; }
.foot__dept-logo img { height: 3.4rem; width: auto; display: block; }

/* Fokus potongan sampul ke sepertiga atas: gambar tegak (poster, foto juara) tetap memperlihatkan wajah. */
.slide__media img, .feature__media img, .card__media img, .cover { object-position: 50% 22%; }

/* ---------- Hero ---------- */
.hero__kicker { font: 600 .8rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9fb6e8; margin: 0 0 1.2rem; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.04em; word-spacing: .06em; margin: 0 0 1.4rem; color: #fff; }
.hero__title span { display: block; margin-top: .55rem; font-size: .42em; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: #a9c1ff; }
.hero__facts dd { max-width: 12rem; }
.btn--start { gap: .65rem; padding-left: 1.1rem; }
.btn__led { position: relative; width: .75rem; height: .75rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgb(74 222 128 / .25); }
.btn--start:hover .btn__led, .btn--start:focus-visible .btn__led, .hero.is-running .btn--start .btn__led { box-shadow: 0 0 0 3px rgb(74 222 128 / .35), 0 0 12px 2px #4ade80; }

/* ---------- Mesin CNC milling (VMC) dari CSS 3D, di bagian TEFA ---------- */
.tefa-head { display: grid; grid-template-columns: 1fr 460px; gap: 2rem; align-items: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.tefa-head .sec__head { margin-bottom: 0; }
.cnc-stage { position: relative; height: 400px; perspective: 1500px; perspective-origin: 50% 35%; }
.cnc { --rx: -20deg; --ry: -34deg; --s: .86; position: absolute; left: 50%; top: 50%; width: 440px; height: 360px; margin: -180px 0 0 -220px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s)); transition: transform 1.2s var(--ease); }
.cnc-stage:hover .cnc { --rx: -15deg; --ry: -24deg; }
.cnc__shadow { position: absolute; left: -10px; top: 330px; width: 460px; height: 300px; transform-origin: top; transform: translateZ(-150px) rotateX(90deg); background: radial-gradient(closest-side, rgb(0 0 0 / .55), transparent 75%); }
.cnc__table, .cnc__head { position: absolute; inset: 0; transform-style: preserve-3d; }
.cube { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: translate3d(var(--x), var(--y), var(--z)); --front: #e7ecf3; --side: #b4bfd0; --top: #f6f8fb; --bottom: #6b7891; }
.cube > i { position: absolute; display: block; }
.cube .f-front, .cube .f-back { width: var(--w); height: var(--h); }
.cube .f-front { background: var(--front); transform: translateZ(calc(var(--d) / 2)); }
.cube .f-back { background: var(--side); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.cube .f-right, .cube .f-left { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); background: var(--side); }
.cube .f-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.cube .f-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.85); }
.cube .f-top, .cube .f-bottom { width: var(--w); height: var(--d); top: calc((var(--h) - var(--d)) / 2); }
.cube .f-top { background: var(--top); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.cube .f-bottom { background: var(--bottom); transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

.cnc-plinth { --front: #2f3d58; --side: #222d43; --top: #3a4a68; }
.cnc-plinth .f-front { background: repeating-linear-gradient(90deg, #2f3d58 0 26px, #2a374f 26px 28px); }
.cnc-col { --front: #cfd7e3; --side: #a7b3c6; --top: #e2e8f0; }
.cnc-hood { --front: #dfe5ee; --side: #b4bfd0; --top: #edf1f6; }
/* Kabin: sisi kaca tembus pandang, rangka pintu biru seperti VMC di lab sekolah */
.cnc-cabin { --front: transparent; --side: #c7d0de; --top: #e9eef5; }
.cnc-cabin .f-front { border: 12px solid #e7ecf3; border-top-width: 44px; border-bottom-width: 54px;
    background: linear-gradient(90deg, transparent calc(50% - 5px), #e7ecf3 calc(50% - 5px) calc(50% + 5px), transparent calc(50% + 5px)),
                linear-gradient(115deg, rgb(255 255 255 / .16) 0 18%, transparent 18% 30%, rgb(255 255 255 / .08) 30% 34%, transparent 34%),
                rgb(150 190 235 / .16);
    box-shadow: inset 0 0 0 3px #2f6fe0; }
.cnc-cabin .f-front::before { content: "SMEKISA · VMC"; position: absolute; left: 0; right: 0; top: -34px; text-align: center; font: 800 12px var(--mono); letter-spacing: .18em; color: #2f6fe0; }
.cnc-cabin .f-front::after { content: ""; position: absolute; left: calc(50% - 22px); bottom: -40px; width: 44px; height: 8px; border-radius: 4px; background: #9aa7bc; box-shadow: -96px 0 0 #9aa7bc, 96px 0 0 #9aa7bc; }
.cnc-cabin .f-back { background: linear-gradient(180deg, #f1f5fb, #c9d3e2); }
.cnc-cabin .f-right { background: linear-gradient(90deg, #c7d0de, #b7c2d3); box-shadow: inset 0 0 0 10px #d5dce7; }
.cnc-cabin .f-bottom { background: #8a96aa; }
.cnc-head { --front: #2f6fe0; --side: #1f4fb0; --top: #5b8ff0; }
.cnc-head .f-front { background: linear-gradient(180deg, #4a85ee, #2459c9); }
.cnc-holder { --front: #9aa6b8; --side: #6f7c92; --top: #b5bfce; }
.cnc-tool { --front: #d5dce6; --side: #a1acbd; --bottom: #ffd27a; }
.cnc-tool .f-front, .cnc-tool .f-right { background: repeating-linear-gradient(160deg, #e8edf4 0 3px, #8e9bb0 3px 6px); background-size: 100% 12px; }
.cnc-table { --front: #7d8aa1; --side: #5d6a80; --top: #97a4b9; }
.cnc-table .f-top { background: repeating-linear-gradient(90deg, #97a4b9 0 16px, #7a879e 16px 20px); }
.cnc-vise { --front: #3c4a66; --side: #2c3850; --top: #55647f; }
.cnc-work { --front: #cfd6e0; --side: #aab4c4; --top: #eef1f6; }
.cnc-work .f-top { background: linear-gradient(90deg, #eef1f6 30%, #c9d1dd 30% 70%, #eef1f6 70%); }
.cnc-pole { --front: #9aa7bc; --side: #7d8aa1; }
.cnc-lamp { --side: #333; --top: #555; }
.cnc-lamp--red { --front: #7f1d1d; --side: #6b1717; }
.cnc-lamp--amber { --front: #92400e; --side: #7a350c; }
.cnc-lamp--green { --front: #166534; --side: #125428; }
.cnc-panel { --front: #1a2236; --side: #2c374f; --top: #3a4763; }
.cnc-panel .f-front { box-shadow: inset 0 0 0 4px #2c374f; }
.cnc-panel .f-front::before { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 56px; border-radius: 3px;
    background: linear-gradient(transparent 0 0) , repeating-linear-gradient(180deg, rgb(143 211 255 / .85) 0 2px, transparent 2px 8px) 5px 6px / 62% 44px no-repeat, #06233f; }
.cnc-panel .f-front::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 10px; height: 46px;
    background: radial-gradient(circle, #22c55e 0 6px, transparent 7px) 0 100% / 16px 16px no-repeat, radial-gradient(circle, #ef4444 0 6px, transparent 7px) 22px 100% / 16px 16px no-repeat,
                repeating-linear-gradient(90deg, #4b5a78 0 7px, transparent 7px 10px) 0 0 / 100% 8px no-repeat, repeating-linear-gradient(90deg, #4b5a78 0 7px, transparent 7px 10px) 0 13px / 100% 8px no-repeat; }
.cnc__coolant { position: absolute; left: 214px; top: 200px; width: 4px; height: 40px; transform: translateZ(14px) rotate(-28deg); transform-origin: top; border-radius: 2px; background: linear-gradient(rgb(125 211 252 / .0), rgb(125 211 252 / .75)); opacity: 0; transition: opacity .4s; }
.cnc__chips { position: absolute; left: 208px; top: 232px; transform: translateZ(4px); }
.cnc__chips i { position: absolute; width: 4px; height: 4px; border-radius: 1px; background: #ffd27a; box-shadow: 0 0 6px #ffb84d; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .cnc__table { animation: cnc-x 8s ease-in-out infinite; }
    .cnc__head { animation: cnc-z 8s ease-in-out infinite; }
    .cnc-tool .f-front, .cnc-tool .f-right { animation: spin-tool .25s linear infinite; }
    .cnc-lamp--green { animation: lamp-green 8s steps(1) infinite; }
    .cnc-lamp--amber { animation: lamp-amber 8s steps(1) infinite; }
    .cnc__chips i { animation: chip 8s linear infinite; }
    .cnc__chips i:nth-child(2) { animation-delay: .35s; --cx: -18px; }
    .cnc__chips i:nth-child(3) { animation-delay: .7s; --cx: 14px; }
    .cnc__chips i:nth-child(4) { animation-delay: 1.05s; --cx: -8px; }
    .cnc-panel .f-front::before { animation: screen 2s steps(5) infinite; }
    .cnc-stage.is-paused * { animation-play-state: paused !important; }
    /* Kartu unit TEFA disorot: mesin bekerja penuh (pendingin menyala, spindel lebih cepat) */
    .sec:has([data-cnc-trigger]:is(:hover, :focus-visible)) .cnc__coolant { opacity: 1; }
    .sec:has([data-cnc-trigger]:is(:hover, :focus-visible)) .cnc-tool .f-front,
    .sec:has([data-cnc-trigger]:is(:hover, :focus-visible)) .cnc-tool .f-right { animation-duration: .08s; }
    .sec:has([data-cnc-trigger]:is(:hover, :focus-visible)) .cnc-lamp--green { animation: none; --front: #4ade80; box-shadow: 0 0 18px #4ade80; }
}
@keyframes cnc-x { 0%, 15% { transform: translateX(0); } 45%, 55% { transform: translateX(-52px); } 85%, 100% { transform: translateX(0); } }
@keyframes cnc-z { 0%, 8% { transform: translateY(0); } 15%, 85% { transform: translateY(14px); } 92%, 100% { transform: translateY(0); } }
@keyframes spin-tool { to { background-position: 0 12px; } }
@keyframes lamp-green { 0%, 8% { --front: #166534; } 9%, 90% { --front: #4ade80; } 91%, 100% { --front: #166534; } }
@keyframes lamp-amber { 0%, 8% { --front: #fbbf24; } 9%, 90% { --front: #92400e; } 91%, 100% { --front: #fbbf24; } }
@keyframes chip { 0%, 16% { opacity: 0; transform: translate(0, 0); } 17% { opacity: 1; } 22% { opacity: 0; transform: translate(var(--cx, 20px), -26px); } 23%, 100% { opacity: 0; } }
@keyframes screen { to { background-position: 5px 6px, 5px 6px; } }

@media (max-width: 1020px) {
    .tefa-head { grid-template-columns: 1fr; }
    .cnc-stage { height: 340px; max-width: 460px; width: 100%; margin: 0 auto; }
    .cnc { --s: .74; }
}
@media (max-width: 600px) {
    .cnc-stage { height: 270px; }
    .cnc { --s: .58; }
}
.hero__grid > * { min-width: 0; }
@media (max-width: 600px) {
    .hero__kicker { font-size: .7rem; letter-spacing: .1em; }
    .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
