/* ==========================================================================
   ilmuihya.guru — Design System
   Ihya Ulumuddin • Guru SMK TKJ • Desainer Grafis • Ink & Pen • Watercolor

   Dua mode visual (diatur lewat atribut data-theme pada <html>):
   - "color" : Watercolor — kertas hangat, sapuan warna cat air
   - "ink"   : Pen & Ink   — hitam-putih murni, arsiran, garis pena tegas
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root,
[data-theme="color"] {
  --paper: #FAF7F2;
  --paper-2: #F3EEE6;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-soft: #44403C;
  --muted: #78716C;
  --line: #E7E0D5;
  --line-strong: #D6CCBD;

  --teal: #0D9488;
  --teal-soft: #CCFBF1;
  --cyan: #0891B2;
  --navy: #0F172A;
  --terra: #C2410C;
  --terra-soft: #FFEDD5;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --plum: #7C3AED;

  --wash-1: rgba(13, 148, 136, .22);
  --wash-2: rgba(217, 119, 6, .20);
  --wash-3: rgba(8, 145, 178, .18);
  --wash-4: rgba(194, 65, 12, .16);

  --accent: var(--teal);
  --accent-2: var(--terra);
  --accent-ink: #FFFFFF;

  --border-w: 1px;
  --shadow-1: 0 1px 2px rgba(28, 25, 23, .05), 0 2px 8px rgba(28, 25, 23, .04);
  --shadow-2: 0 10px 30px -12px rgba(28, 25, 23, .25);
  --shadow-hover: 0 18px 40px -16px rgba(28, 25, 23, .35);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  --art-filter: none;
  color-scheme: light;
}

[data-theme="ink"] {
  --paper: #FFFFFF;
  --paper-2: #F5F5F5;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-soft: #1F1F1F;
  --muted: #4A4A4A;
  --line: #0A0A0A;
  --line-strong: #0A0A0A;

  --teal: #0A0A0A;
  --teal-soft: #FFFFFF;
  --cyan: #0A0A0A;
  --navy: #0A0A0A;
  --terra: #0A0A0A;
  --terra-soft: #FFFFFF;
  --amber: #0A0A0A;
  --amber-soft: #FFFFFF;
  --plum: #0A0A0A;

  --wash-1: transparent;
  --wash-2: transparent;
  --wash-3: transparent;
  --wash-4: transparent;

  --accent: #0A0A0A;
  --accent-2: #0A0A0A;
  --accent-ink: #FFFFFF;

  --border-w: 1.5px;
  --shadow-1: 3px 3px 0 #0A0A0A;
  --shadow-2: 5px 5px 0 #0A0A0A;
  --shadow-hover: 7px 7px 0 #0A0A0A;

  --font-display: 'Fraunces', Georgia, serif;

  --art-filter: grayscale(1) contrast(1.25);
}

/* -------------------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
  overflow-x: hidden;
}

/* Tekstur kertas halus (SVG noise) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="ink"] body::before { opacity: .5; }

main, header, footer { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 3000;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Hand-written annotation */
.hand {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--accent-2);
}

/* Scroll progress */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--terra));
  z-index: 2000; transition: width .1s linear;
}
[data-theme="ink"] .progress-bar { background: var(--ink); }

/* -------------------------------------------------------------------------
   3. BUTTONS & CHIPS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: var(--border-w) solid transparent;
  font-weight: 700; font-size: .93rem; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-hover); }
[data-theme="ink"] .btn-primary:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); box-shadow: var(--shadow-1); }

.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--surface);
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  transition: all .2s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .2rem .6rem; border-radius: 6px;
  background: var(--teal-soft); color: var(--teal);
}
.tag.terra { background: var(--terra-soft); color: var(--terra); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
[data-theme="ink"] .tag { border: 1.5px solid var(--ink); }

/* -------------------------------------------------------------------------
   4. NAVBAR
   ------------------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-w) solid transparent;
  transition: border-color .3s ease, background .4s ease;
}
.navbar.is-scrolled { border-bottom-color: var(--line); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  position: relative; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

/* Theme switch (Watercolor ⇄ Ink) */
.theme-switch {
  display: inline-flex; align-items: center;
  padding: 3px; border-radius: 999px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--surface);
}
.theme-switch button {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 0; background: transparent;
  padding: .38rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: all .25s ease;
}
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.theme-switch .dot-color {
  width: 12px; height: 12px; border-radius: 50%;
  background: conic-gradient(#0D9488, #D97706, #C2410C, #0891B2, #0D9488);
}
.theme-switch .dot-ink {
  width: 12px; height: 12px; border-radius: 50%;
  background: repeating-linear-gradient(45deg, currentColor 0 1.5px, transparent 1.5px 3.5px);
  border: 1.5px solid currentColor;
}

.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: var(--border-w) solid var(--line-strong); background: var(--surface);
  align-items: center; justify-content: center;
}

/* -------------------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------------------- */
.hero { position: relative; padding: 4.5rem 0 4rem; overflow: hidden; }

/* Watercolor washes */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none;
  transition: opacity .5s ease;
}
.hero::before { width: 520px; height: 420px; top: -120px; right: -80px;
  background: radial-gradient(circle at 40% 40%, var(--wash-1), transparent 65%), radial-gradient(circle at 70% 70%, var(--wash-2), transparent 60%); }
.hero::after { width: 460px; height: 380px; bottom: -160px; left: -120px;
  background: radial-gradient(circle, var(--wash-3), transparent 65%); }

/* Ink hatching in place of washes */
[data-theme="ink"] .hero::before,
[data-theme="ink"] .hero::after { filter: none; border-radius: 0; opacity: .12; }
[data-theme="ink"] .hero::before { background: repeating-linear-gradient(-45deg, #000 0 1px, transparent 1px 7px);
  clip-path: polygon(30% 0, 100% 0, 100% 80%, 60% 100%, 10% 60%); }
[data-theme="ink"] .hero::after { background: repeating-linear-gradient(45deg, #000 0 1px, transparent 1px 6px);
  clip-path: polygon(0 20%, 70% 0, 100% 60%, 40% 100%, 0 90%); }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 999px;
  border: var(--border-w) solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(13,148,136,.5); } 70% { box-shadow: 0 0 0 10px rgba(13,148,136,0); } 100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.2vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.035em;
  margin: 1.25rem 0 1.25rem;
}
[data-theme="ink"] .hero h1 { font-weight: 700; letter-spacing: -.02em; }

.hl-tech, .hl-art { position: relative; white-space: nowrap; }
.hl-tech { color: var(--teal); }
.hl-art { color: var(--terra); }
/* Coretan pena di bawah kata */
.hl-art svg { position: absolute; left: -2%; bottom: -.22em; width: 104%; height: .35em; overflow: visible; }
.hl-art svg path { fill: none; stroke: var(--amber); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s .6s ease forwards; }
[data-theme="ink"] .hl-tech, [data-theme="ink"] .hl-art { color: var(--ink); }
[data-theme="ink"] .hl-tech { text-decoration: underline; text-decoration-style: wavy; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
[data-theme="ink"] .hl-art svg path { stroke: var(--ink); }

@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 36rem; margin-bottom: 1.75rem; }
.hero-lead strong { color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

.hero-roles { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hero-roles .label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: .25rem; }

.social-link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .85rem; border-radius: 999px;
  border: var(--border-w) solid var(--line-strong); background: var(--surface);
  font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  transition: all .2s ease;
}
.social-link svg { width: 15px; height: 15px; }
.social-link:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-1); }
[data-theme="color"] .social-link.yt:hover { color: #DC2626; border-color: #DC2626; }
[data-theme="color"] .social-link.ig:hover { color: #DB2777; border-color: #DB2777; }

/* Hero artwork: kartu sketsa topologi + wash */
.hero-art {
  position: relative;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: var(--shadow-2);
  transform: rotate(1.2deg);
  transition: transform .4s ease, box-shadow .4s ease;
}
.hero-art:hover { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-hover); }
[data-theme="ink"] .hero-art { border-radius: 4px; }

.hero-art-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.hero-art-head .dots { display: flex; gap: 6px; }
.hero-art-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.hero-art-head .file { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }

.hero-canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--paper); overflow: hidden; }
.hero-canvas .wc { transition: opacity .5s ease; }
[data-theme="ink"] .hero-canvas .wc { opacity: 0; }
.hero-canvas .hatch { opacity: 0; transition: opacity .5s ease; }
[data-theme="ink"] .hero-canvas .hatch { opacity: 1; }
.hero-canvas .stroke { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .3s ease forwards; }
.hero-canvas .node { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.hero-canvas .node-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-soft); }
.hero-canvas .packet { fill: var(--terra); }
[data-theme="ink"] .hero-canvas .packet { fill: var(--ink); }

.hero-art-note { position: absolute; left: -1.75rem; bottom: -1.5rem; transform: rotate(-6deg);
  background: var(--amber-soft); border: var(--border-w) solid var(--line); padding: .5rem .9rem; border-radius: 6px; box-shadow: var(--shadow-1); }
[data-theme="ink"] .hero-art-note { background: var(--surface); }

.hero-art-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .85rem; font-size: .8rem; color: var(--muted); }
.hero-art-foot code { font-family: var(--font-mono); color: var(--teal); }

/* -------------------------------------------------------------------------
   6. STATS STRIP
   ------------------------------------------------------------------------- */
.stats { border-block: var(--border-w) solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.75rem 1rem; text-align: center; border-left: var(--border-w) solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat:nth-child(odd) .stat-num { color: var(--teal); }
.stat:nth-child(even) .stat-num { color: var(--terra); }
.stat-label { margin-top: .4rem; font-size: .86rem; color: var(--muted); font-weight: 500; }

/* -------------------------------------------------------------------------
   7. SECTION SHELL
   ------------------------------------------------------------------------- */
.section { padding: 5.5rem 0; position: relative; }
.section.alt { background: var(--paper-2); }
[data-theme="ink"] .section.alt { background: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(0,0,0,.06) 31px 32px); }

.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; margin-bottom: 2.75rem; }
.section-head.center { grid-template-columns: 1fr; text-align: center; max-width: 720px; margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-head.center .kicker::before { display: none; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
[data-theme="ink"] .section-title { font-weight: 700; }
.section-desc { color: var(--ink-soft); font-size: 1.04rem; margin-top: .75rem; max-width: 640px; }
.section-head.center .section-desc { margin-inline: auto; }

/* Card base */
.card {
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
[data-theme="ink"] .card { border-radius: 6px; }

/* -------------------------------------------------------------------------
   8. TENTANG / PROFIL
   ------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }

.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  border: var(--border-w) solid var(--line); background: var(--surface); box-shadow: var(--shadow-2);
}
[data-theme="ink"] .portrait { border-radius: 6px; }
.portrait svg { width: 100%; height: 100%; }
.portrait .wc { transition: opacity .5s ease; }
[data-theme="ink"] .portrait .wc { opacity: 0; }
.portrait .hatch { opacity: 0; transition: opacity .5s ease; }
[data-theme="ink"] .portrait .hatch { opacity: 1; }
.portrait .ln { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.portrait-caption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: var(--border-w) solid var(--line);
  border-radius: 12px; padding: .75rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.portrait-caption strong { font-family: var(--font-display); font-size: 1.05rem; }
.portrait-caption span { font-size: .8rem; color: var(--muted); }

.about-text p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.04rem; }
.about-text p strong { color: var(--ink); }

.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.75rem; }
.role { padding: 1.25rem; display: flex; gap: .9rem; align-items: flex-start; }
.role-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--teal-soft); color: var(--teal); }
.role:nth-child(2) .role-icon { background: var(--amber-soft); color: var(--amber); }
.role:nth-child(3) .role-icon { background: var(--paper-2); color: var(--ink); }
.role:nth-child(4) .role-icon { background: var(--terra-soft); color: var(--terra); }
[data-theme="ink"] .role-icon { border: 1.5px solid var(--ink); border-radius: 4px; }
.role-icon svg { width: 22px; height: 22px; }
.role h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.role p { font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* -------------------------------------------------------------------------
   9. RUANG KELAS — BANK MODUL
   ------------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.search {
  flex: 1 1 280px; display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; border-radius: 12px; border: var(--border-w) solid var(--line-strong); background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: .95rem; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

.select {
  padding: .7rem 2.2rem .7rem 1rem; border-radius: 12px; border: var(--border-w) solid var(--line-strong);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center;
  appearance: none; font-weight: 600; font-size: .9rem;
}

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.result-meta { font-size: .87rem; color: var(--muted); margin-bottom: 1rem; }
.result-meta strong { color: var(--ink); }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.module { padding: 1.4rem; display: flex; flex-direction: column; gap: .75rem; position: relative; overflow: hidden; }
.module::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal); }
.module[data-kelas="XI"]::before { background: var(--amber); }
.module[data-kelas="XII"]::before { background: var(--terra); }
[data-theme="ink"] .module::before { background: var(--ink); }
[data-theme="ink"] .module[data-kelas="XI"]::before { background: repeating-linear-gradient(0deg, var(--ink) 0 4px, transparent 4px 7px); }
[data-theme="ink"] .module[data-kelas="XII"]::before { background: repeating-linear-gradient(0deg, var(--ink) 0 1.5px, transparent 1.5px 4px); }

.module-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.kelas-badge { font-family: var(--font-mono); font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; border: var(--border-w) solid var(--line-strong); }
.module h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.module p { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.module-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--line-strong); }
.module-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.module-meta svg { width: 14px; height: 14px; }
.module-link { font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .35rem; }
.module-link:hover { color: var(--accent); }
.module-link.is-soon { color: var(--muted); pointer-events: none; font-weight: 600; }
.module mark { background: var(--amber-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
[data-theme="ink"] .module mark { background: var(--ink); color: var(--paper); }

.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line-strong); border-radius: 18px; color: var(--muted); }
.empty .hand { display: block; margin-bottom: .4rem; }

/* -------------------------------------------------------------------------
   10. LAB INTERAKTIF — SUBNET & KUIS
   ------------------------------------------------------------------------- */
.lab-tabs { display: inline-flex; gap: .25rem; padding: 4px; border-radius: 14px; border: var(--border-w) solid var(--line-strong); background: var(--surface); margin-bottom: 1.5rem; }
.lab-tabs button { border: 0; background: transparent; padding: .6rem 1.1rem; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); display: inline-flex; gap: .45rem; align-items: center; }
.lab-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.lab-tabs svg { width: 16px; height: 16px; }

.lab-panel[hidden] { display: none; }

.lab-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; }
.lab-card { padding: 1.75rem; }
.lab-card:hover { transform: none; }
.lab-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; }
.lab-card > p { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.input {
  padding: .75rem 1rem; border-radius: 10px; border: var(--border-w) solid var(--line-strong); background: var(--paper);
  font-family: var(--font-mono); font-size: .95rem; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
textarea.input { font-family: var(--font-body); resize: vertical; min-height: 120px; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.input[aria-invalid="true"] { border-color: #DC2626; }
.field-error { font-size: .8rem; color: #DC2626; min-height: 1.1em; }
[data-theme="ink"] .field-error { color: var(--ink); font-weight: 700; }

.cidr-row { display: grid; grid-template-columns: 1fr 110px; gap: .75rem; }
.range { width: 100%; accent-color: var(--accent); margin-top: .5rem; }
.presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.presets button { font-family: var(--font-mono); font-size: .75rem; padding: .3rem .6rem; border-radius: 6px; border: var(--border-w) solid var(--line-strong); background: var(--surface); }
.presets button:hover { border-color: var(--ink); }

.terminal {
  background: #0F172A; color: #E2E8F0; border-radius: 14px; padding: 1.25rem 1.4rem; font-family: var(--font-mono); font-size: .85rem;
  box-shadow: var(--shadow-2); min-height: 100%; overflow-x: auto;
}
[data-theme="ink"] .terminal { background: #FFFFFF; color: #0A0A0A; border: 1.5px solid #0A0A0A; border-radius: 4px; }
.terminal-head { display: flex; gap: 6px; margin-bottom: 1rem; align-items: center; }
.terminal-head i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-head i:nth-child(1) { background: #F87171; } .terminal-head i:nth-child(2) { background: #FBBF24; } .terminal-head i:nth-child(3) { background: #34D399; }
[data-theme="ink"] .terminal-head i { background: transparent !important; border: 1.5px solid #0A0A0A; }
.terminal-head span { margin-left: auto; font-size: .72rem; color: #94A3B8; }
[data-theme="ink"] .terminal-head span { color: #4A4A4A; }
.prompt { color: #5EEAD4; }
[data-theme="ink"] .prompt { color: #0A0A0A; font-weight: 700; }
.result-table { width: 100%; border-collapse: collapse; margin-top: .75rem; }
.result-table th, .result-table td { text-align: left; padding: .42rem .25rem; border-bottom: 1px dashed rgba(148, 163, 184, .25); vertical-align: top; }
[data-theme="ink"] .result-table th, [data-theme="ink"] .result-table td { border-bottom-color: rgba(0,0,0,.25); }
.result-table th { color: #94A3B8; font-weight: 500; width: 42%; }
[data-theme="ink"] .result-table th { color: #4A4A4A; }
.result-table td { color: #F8FAFC; font-weight: 700; word-break: break-all; }
[data-theme="ink"] .result-table td { color: #0A0A0A; }
.result-table td.hl { color: #FCD34D; }
[data-theme="ink"] .result-table td.hl { text-decoration: underline; }
.binary { font-size: .74rem; color: #94A3B8; letter-spacing: .02em; }
.binary b { color: #5EEAD4; font-weight: 700; }
[data-theme="ink"] .binary b { color: #0A0A0A; }
.copy-btn { margin-top: 1rem; border: 1px solid rgba(148,163,184,.4); background: transparent; color: inherit; padding: .45rem .85rem; border-radius: 8px; font-family: var(--font-mono); font-size: .78rem; }
[data-theme="ink"] .copy-btn { border-color: #0A0A0A; }

/* Kuis */
.quiz { max-width: 760px; margin-inline: auto; padding: 2rem; }
.quiz:hover { transform: none; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.quiz-progress { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-bottom: 1.5rem; }
[data-theme="ink"] .quiz-progress { border: 1.5px solid var(--ink); height: 10px; background: var(--surface); }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width .35s ease; }
[data-theme="ink"] .quiz-progress span { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 5px); }
.quiz h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; line-height: 1.4; }
.quiz-options { display: grid; gap: .6rem; list-style: none; }
.quiz-option {
  width: 100%; text-align: left; display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1rem; border-radius: 12px; border: var(--border-w) solid var(--line-strong); background: var(--surface);
  font-size: .95rem; font-weight: 500; transition: all .2s ease;
}
.quiz-option:hover:not(:disabled) { border-color: var(--ink); transform: translateX(3px); }
.quiz-option .key { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 700; background: var(--paper-2); }
.quiz-option.is-correct { border-color: #059669; background: #ECFDF5; }
.quiz-option.is-correct .key { background: #059669; color: #FFF; }
.quiz-option.is-wrong { border-color: #DC2626; background: #FEF2F2; }
.quiz-option.is-wrong .key { background: #DC2626; color: #FFF; }
[data-theme="ink"] .quiz-option.is-correct { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="ink"] .quiz-option.is-correct .key { background: var(--paper); color: var(--ink); }
[data-theme="ink"] .quiz-option.is-wrong { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,.12) 6px 7px); border-style: dashed; }
[data-theme="ink"] .quiz-option.is-wrong .key { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); text-decoration: line-through; }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--paper-2); font-size: .92rem; border-left: 4px solid var(--teal); }
[data-theme="ink"] .quiz-feedback { border: 1.5px solid var(--ink); border-left-width: 5px; background: var(--surface); }
.quiz-feedback code { font-family: var(--font-mono); font-size: .85em; background: var(--surface); padding: .1rem .3rem; border-radius: 4px; }
.quiz-actions { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.quiz-score { text-align: center; padding: 1rem 0; }
.quiz-score .big { font-family: var(--font-display); font-size: 4rem; font-weight: 800; line-height: 1; color: var(--teal); }
.quiz-score .hand { display: block; margin: .5rem 0 1.25rem; font-size: 1.7rem; }

/* -------------------------------------------------------------------------
   11. ARTIKEL, TUTORIAL & BERITA
   ------------------------------------------------------------------------- */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.article-card { padding: 1.6rem; display: flex; flex-direction: column; gap: .75rem; text-decoration: none; position: relative; overflow: hidden; }
.article-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .8rem; color: var(--muted); }
.article-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); transition: color .2s ease; }
.article-card:hover h3 { color: var(--accent); }
.article-desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.6; }
.article-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .75rem; }
.article-tag { font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line-strong); }
.article-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--line-strong); font-size: .82rem; color: var(--muted); }
.article-author { display: flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink-soft); }
.article-read-link { font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: .3rem; }

/* Modal Pembaca Artikel */
.article-reader-modal { position: fixed; inset: 0; z-index: 2600; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(12, 10, 9, .88); backdrop-filter: blur(8px); }
[data-theme="ink"] .article-reader-modal { background: rgba(255,255,255,.96); }
.article-reader-modal.is-open { display: flex; }
.article-reader-box { max-width: 820px; width: 100%; max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 20px; border: var(--border-w) solid var(--line); box-shadow: var(--shadow-2); padding: 2.75rem; position: relative; animation: pop .25s ease; }
[data-theme="ink"] .article-reader-box { border-radius: 6px; box-shadow: 8px 8px 0 var(--ink); }
.article-reader-head { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.article-reader-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; line-height: 1.25; margin: .75rem 0 .5rem; }
.article-reader-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--muted); }
.article-reader-content { font-size: 1.05rem; line-height: 1.8; color: var(--ink); }
.article-reader-content h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; margin: 1.75rem 0 .75rem; }
.article-reader-content p { margin-bottom: 1.25rem; }
.article-reader-content blockquote { border-left: 4px solid var(--accent); background: var(--paper-2); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; font-style: italic; }
[data-theme="ink"] .article-reader-content blockquote { border-left-width: 5px; border-left-color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink); border-left-width: 6px; }
.article-reader-content pre { background: var(--navy); color: #F8FAFC; padding: 1.25rem; border-radius: 12px; overflow-x: auto; font-family: var(--font-mono); font-size: .88rem; margin: 1.5rem 0; }
[data-theme="ink"] .article-reader-content pre { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.article-reader-content code { font-family: var(--font-mono); font-size: .9em; background: var(--paper-2); padding: .15rem .35rem; border-radius: 4px; }
.article-reader-content ul, .article-reader-content ol { margin-left: 1.5rem; margin-bottom: 1.25rem; }
.article-reader-content li { margin-bottom: .4rem; }

/* -------------------------------------------------------------------------
   12. GALERI SENI
   ------------------------------------------------------------------------- */
.gallery { columns: 3 300px; column-gap: 1.25rem; }
.art {
  break-inside: avoid; margin-bottom: 1.25rem; overflow: hidden; display: block; width: 100%;
  text-align: left; padding: 0; border: var(--border-w) solid var(--line); cursor: zoom-in;
}
.art-canvas { position: relative; overflow: hidden; background: var(--paper); }
.art-canvas svg, .art-canvas img { width: 100%; height: auto; filter: var(--art-filter); transition: transform .6s ease, filter .5s ease; }
.art:hover .art-canvas svg, .art:hover .art-canvas img { transform: scale(1.04); }
.art-type { position: absolute; top: .8rem; left: .8rem; }
.art-body { padding: 1rem 1.15rem 1.15rem; }
.art-body h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin-bottom: .2rem; }
.art-body p { font-size: .82rem; color: var(--muted); }
.art.is-hidden { display: none; }

/* Proses kreatif */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; counter-reset: step; }
.step { padding: 1.4rem; position: relative; }
.step:hover { transform: none; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--accent-2); }
.step h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: .35rem 0 .3rem; }
.step p { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.step-swatch { display: flex; gap: 4px; margin-top: .85rem; }
.step-swatch i { flex: 1; height: 8px; border-radius: 4px; display: block; }
[data-theme="ink"] .step-swatch i { background: var(--ink) !important; border-radius: 0; }
[data-theme="ink"] .step-swatch i:nth-child(2) { opacity: .6; } [data-theme="ink"] .step-swatch i:nth-child(3) { opacity: .3; }

/* -------------------------------------------------------------------------
   12. KANAL
   ------------------------------------------------------------------------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.channel { padding: 1.75rem; display: flex; flex-direction: column; text-decoration: none; position: relative; overflow: hidden; }
.channel-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.channel-icon svg { width: 26px; height: 26px; }
.channel.yt .channel-icon { background: #FEE2E2; color: #DC2626; }
.channel.ig .channel-icon { background: #FCE7F3; color: #DB2777; }
.channel.tt .channel-icon { background: #E2E8F0; color: #0F172A; }
[data-theme="ink"] .channel .channel-icon { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px; }
.channel h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.channel .handle { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
.channel p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.channel .go { margin-top: auto; font-weight: 700; font-size: .88rem; display: inline-flex; gap: .4rem; align-items: center; }
.channel .go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.channel:hover .go svg { transform: translate(3px, -3px); }
.channel ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.25rem; }
.channel li { font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; background: var(--paper-2); color: var(--ink-soft); }
[data-theme="ink"] .channel li { border: 1px solid var(--ink); background: var(--surface); }

/* -------------------------------------------------------------------------
   13. FILOSOFI
   ------------------------------------------------------------------------- */
.philosophy { background: var(--navy); color: #F8FAFC; border-radius: 26px; padding: 3.5rem; position: relative; overflow: hidden; }
[data-theme="ink"] .philosophy { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow-2); }
.philosophy::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,.35), transparent 65%); filter: blur(30px); }
[data-theme="ink"] .philosophy::after { filter: none; border-radius: 0; background: repeating-linear-gradient(45deg, #000 0 1px, transparent 1px 6px); opacity: .15; clip-path: circle(50%); }
.philosophy blockquote { position: relative; z-index: 1; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.45; max-width: 820px; letter-spacing: -.01em; }
.philosophy cite { position: relative; z-index: 1; display: block; margin-top: 1.5rem; font-style: normal; }
.philosophy cite .hand { color: #FCD34D; font-size: 1.9rem; }
[data-theme="ink"] .philosophy cite .hand { color: var(--ink); }
.philosophy cite span { display: block; font-size: .85rem; opacity: .7; margin-top: .25rem; }
.principles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); }
[data-theme="ink"] .principles { border-top-color: var(--ink); }
.principles h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: .3rem; color: #5EEAD4; }
[data-theme="ink"] .principles h4 { color: var(--ink); }
.principles p { font-size: .88rem; opacity: .8; }

/* -------------------------------------------------------------------------
   14. KONTAK
   ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 1rem; }
.contact-info p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.contact-list { list-style: none; display: grid; gap: .75rem; }
.contact-list li { display: flex; gap: .75rem; align-items: center; font-size: .92rem; }
.contact-list svg { width: 18px; height: 18px; color: var(--accent); }
.contact-form { padding: 2rem; }
.contact-form:hover { transform: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .75rem; }

/* -------------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------------- */
.footer { background: var(--navy); color: #CBD5E1; padding: 4rem 0 2rem; }
[data-theme="ink"] .footer { background: var(--surface); color: var(--ink); border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer h4 { font-family: var(--font-display); color: #FFF; font-size: 1.3rem; margin-bottom: .75rem; }
.footer h5 { color: #FFF; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
[data-theme="ink"] .footer h4, [data-theme="ink"] .footer h5 { color: var(--ink); }
.footer p { font-size: .9rem; line-height: 1.6; max-width: 360px; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { text-decoration: none; font-size: .9rem; color: inherit; opacity: .85; transition: opacity .2s ease, color .2s ease; }
.footer a:hover { opacity: 1; color: #5EEAD4; }
[data-theme="ink"] .footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; opacity: .8; }
[data-theme="ink"] .footer-bottom { border-top-color: var(--ink); }

/* -------------------------------------------------------------------------
   16. LIGHTBOX
   ------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(12, 10, 9, .88); backdrop-filter: blur(6px); }
[data-theme="ink"] .lightbox { background: rgba(255,255,255,.96); }
.lightbox.is-open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner { display: grid; grid-template-columns: 1.4fr 1fr; max-width: 1080px; width: 100%; max-height: 90vh;
  background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: pop .25s ease; }
[data-theme="ink"] .lightbox-inner { border: 2px solid var(--ink); border-radius: 4px; box-shadow: 8px 8px 0 var(--ink); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-media { background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.lightbox-media svg, .lightbox-media img { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; filter: var(--art-filter); }
.lightbox-info { padding: 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: .9rem; }
.lightbox-info h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.lightbox-info p { color: var(--ink-soft); font-size: .95rem; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .87rem; padding: 1rem 0; border-block: 1px dashed var(--line-strong); }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 600; }
.lightbox-nav { display: flex; gap: .5rem; align-items: center; margin-top: auto; padding-top: 1rem; }
.lightbox-nav .count { margin-left: auto; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: var(--border-w) solid var(--line-strong); background: var(--surface); transition: all .2s ease; }
.icon-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.icon-btn svg { width: 18px; height: 18px; }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.25rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); z-index: 3000;
  background: var(--ink); color: var(--paper); padding: .75rem 1.2rem; border-radius: 12px; font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-2); transition: transform .3s ease; }
.toast.is-show { transform: translate(-50%, 0); }

/* Back to top */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900; opacity: 0; pointer-events: none; transition: opacity .3s ease; box-shadow: var(--shadow-1); }
.to-top.is-show { opacity: 1; pointer-events: auto; }

/* -------------------------------------------------------------------------
   17. REVEAL ANIMATION
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-canvas .stroke, .hl-art svg path { stroke-dashoffset: 0; }
}

/* -------------------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links a { padding: .5rem .55rem; font-size: .85rem; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: var(--border-w) solid var(--line); padding: .75rem 1.5rem 1.25rem;
    box-shadow: var(--shadow-2); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .hero-grid, .about-grid, .lab-grid, .contact-grid, .article-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: var(--border-w) solid var(--line); }
  .channels, .principles { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .lightbox-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox-media svg, .lightbox-media img { max-height: 50vh; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .brand-sub { display: none; }
  .theme-switch button span.txt { display: none; }
  .module-grid, .roles, .form-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .philosophy { padding: 2rem 1.5rem; }
  .quiz, .contact-form, .lab-card { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-art-note { left: .5rem; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .nav-inner { height: 64px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.05rem; }
  .hero { padding: 3rem 0 2.25rem; }
  .hero h1 { font-size: clamp(1.75rem, 7.5vw, 2.35rem); }
  .hero-lead { font-size: .98rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-roles { gap: .4rem; }
  .social-link { padding: .38rem .7rem; font-size: .78rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.15rem .4rem; }
  .stat-num { font-size: 1.75rem; }
  .stat-label { font-size: .76rem; }
  .cidr-row { grid-template-columns: 1fr; gap: .5rem; }
  .toolbar { gap: .5rem; }
  .toolbar .search { flex: 1 1 100%; }
  .toolbar .select { width: 100%; }
  .lab-tabs { width: 100%; display: flex; }
  .lab-tabs button { flex: 1; justify-content: center; padding: .55rem .6rem; font-size: .8rem; }
  .quiz-option { padding: .75rem .85rem; font-size: .88rem; }
  .quiz-top { font-size: .78rem; }
  .terminal { padding: 1rem .85rem; font-size: .78rem; }
  .result-table th, .result-table td { font-size: .76rem; padding: .35rem .15rem; }
  .lightbox { padding: .75rem; }
  .lightbox-info { padding: 1.25rem; }
  .lightbox-info h3 { font-size: 1.25rem; }
  .step { padding: 1.15rem; }
}

/* Print: mode tinta otomatis */
@media print {
  .navbar, .to-top, .progress-bar, .lightbox, .toast, .contact-form { display: none !important; }
  body { background: #FFF; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
