/* ---------- THEME ---------- */
:root,
[data-theme="dark"] {
  --bg: #12060a;
  --bg-rgb: 18, 6, 10;
  --bg-alt: #1a0a10;
  --surface: #221018;
  --surface-2: #2c1520;
  --ink: #f7eaee;
  --muted: #c3a4ae;
  --line: rgba(247, 234, 238, 0.1);
  --accent: #e0577f;
  --accent-2: #f2b8a2;
  --wine: #8c1c3a;
  --wine-2: #b3274f;
  --tag-bg: rgba(224, 87, 127, 0.14);
  --tag-ink: #f39ab4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(140, 28, 58, 0.55);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fbf4f3;
  --bg-rgb: 251, 244, 243;
  --bg-alt: #f5e8e9;
  --surface: #ffffff;
  --surface-2: #f8eef0;
  --ink: #2a0c16;
  --muted: #7b5963;
  --line: #ecd8dc;
  --accent: #8c1c3a;
  --accent-2: #b3274f;
  --wine: #7a1631;
  --wine-2: #a3244a;
  --tag-bg: #f6e0e5;
  --tag-ink: #8c1c3a;
  --shadow: 0 1px 2px rgba(42, 12, 22, 0.04), 0 14px 34px -18px rgba(122, 22, 49, 0.25);
  --shadow-lg: 0 2px 4px rgba(42, 12, 22, 0.05), 0 28px 56px -24px rgba(122, 22, 49, 0.4);
  color-scheme: light;
}
:root {
  --radius: 20px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--wine-2); color: #fff; }
.container { width: min(1140px, 100% - 32px); margin: 0 auto; }

em { font-style: italic; color: var(--accent); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg-rgb), 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: #fff; background: linear-gradient(135deg, var(--wine-2), var(--wine));
  box-shadow: 0 6px 16px -6px var(--wine);
}
.nav-links { display: flex; gap: 2px; font-size: 0.93rem; font-weight: 500; color: var(--muted); }
.nav-links a { padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .3s var(--ease);
}
.icon-btn:hover { transform: rotate(20deg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }
.lang-toggle {
  display: flex; padding: 3px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 0.8rem; font-weight: 600;
}
.lang-toggle span { padding: 6px 10px; border-radius: 9px; color: var(--muted); transition: all .2s; }
html[lang="tr"] .lang-toggle [data-lang="tr"],
html[lang="en"] .lang-toggle [data-lang="en"] { background: var(--wine); color: #fff; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
#lava { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--bg-rgb), 0.92) 0%, rgba(var(--bg-rgb), 0.75) 40%, rgba(var(--bg-rgb), 0.15) 70%, rgba(var(--bg-rgb), 0.05) 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  min-height: min(720px, calc(100vh - 66px));
  padding: 64px 0;
}
.greet {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  box-shadow: var(--shadow);
}
.greet-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
.greet-word { color: var(--accent); font-weight: 600; }
.greet.swap .greet-word, .greet.swap .greet-lang { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 22px;
}
h1 em { font-weight: 500; }
.role { margin-top: 14px; font-size: 1.12rem; font-weight: 600; }
.role-sep { color: var(--accent); margin: 0 4px; }
.intro { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin-top: 14px; }
.cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--wine-2), var(--wine));
  box-shadow: 0 10px 24px -10px var(--wine-2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn.secondary { background: var(--surface); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- DIGITAL BADGE (3D coin) ---------- */
.badge {
  --size: min(330px, 70vw);
  position: relative;
  justify-self: center;
  width: calc(var(--size) + 120px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 1100px;
}
.badge-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 30s linear infinite;
}
.badge-ring text {
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.1em;
  fill: var(--ink); opacity: 0.8;
}
@keyframes spin { to { transform: rotate(360deg); } }
.badge-timer {
  position: absolute;
  width: calc(var(--size) + 22px);
  height: calc(var(--size) + 22px);
  transform: rotate(-90deg);
}
.timer-track { fill: none; stroke: var(--line); stroke-width: 1.2; }
.timer-bar {
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.coin {
  position: relative;
  width: var(--size);
  height: var(--size);
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}
.coin-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.5, -0.25, 0.25, 1.3);
}
.coin.flipped .coin-inner { transform: rotateY(180deg); }
.coin-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 6px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from 200deg, var(--wine), var(--accent-2), var(--wine-2), #f7d5c6, var(--wine)) border-box;
  box-shadow: 0 30px 60px -20px rgba(140, 28, 58, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.coin-face.back { transform: rotateY(180deg); }
.coin-face img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.shine {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: shine 6s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.verified {
  position: absolute;
  right: 16%;
  bottom: 16%;
  width: 52px; height: 52px;
  transform: translateZ(40px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  animation: pop 3s ease-in-out infinite;
}
.verified svg { width: 100%; height: 100%; }
.verified path:first-child { fill: var(--wine-2); stroke: #fff; stroke-width: 1.2; }
.verified .tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { 50% { transform: translateZ(40px) scale(1.08); } }
.badge-hint {
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  white-space: nowrap;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; max-width: 620px; }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h2 em { font-weight: 500; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.lead { font-size: 1.08rem; margin-top: 18px; }
.muted { color: var(--muted); margin-top: 12px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tilt { transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s; will-change: transform; }

.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.facts { padding: 8px 26px; }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: none; }
.fact dt { color: var(--muted); font-size: 0.9rem; }
.fact dd { font-weight: 500; overflow-wrap: anywhere; }
.fact a { color: var(--accent); }

/* skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { padding: 20px 24px 26px; }
.skill-card:hover { box-shadow: var(--shadow-lg); }
.skill-3d { display: block; width: 100%; height: 150px; margin-bottom: 8px; transform: translateZ(30px); }
.skill-card h3 { transform: translateZ(20px); }
.skill-card p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

/* projects */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-shot { aspect-ratio: 16 / 9.5; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s var(--ease); }
.project-card:hover .project-shot img { transform: scale(1.04); }
.project-body { padding: 22px 24px 26px; }
.project-body h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-top: 10px; }
.project-body p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }
.project-link { display: inline-flex; gap: 6px; margin-top: 14px; color: var(--accent); font-weight: 600; }
.project-link span { transition: transform .2s; }
.project-card:hover .project-link span { transform: translateX(4px); }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--tag-bg); color: var(--tag-ink);
}

/* ---------- PLAY ---------- */
.play-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.tab {
  border: none; background: none; cursor: pointer;
  padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 0.93rem; color: var(--muted);
  transition: background .2s, color .2s;
}
.tab.active { background: var(--wine); color: #fff; }

.panel[hidden] { display: none !important; }
.chat { display: flex; flex-direction: column; max-width: 760px; overflow: hidden; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.chat-head strong { display: block; font-size: 0.98rem; }
.online { font-size: 0.8rem; color: var(--muted); }
.chat-log {
  height: 320px; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  animation: msgIn .35s var(--ease);
  white-space: pre-line;
}
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--wine-2), var(--wine)); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--accent); text-decoration: underline; }
.msg.typing { display: inline-flex; gap: 4px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .3; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 14px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-alt); cursor: pointer;
  padding: 7px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  transition: border-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chat-form { display: flex; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit;
}
.chat-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.quiz-stage { perspective: 1200px; max-width: 640px; }
.quiz-card { padding: 26px; transform-style: preserve-3d; }
.quiz-card.flip-out { animation: flipOut .35s ease-in forwards; }
.quiz-card.flip-in { animation: flipIn .45s var(--ease); }
@keyframes flipOut { to { transform: rotateY(90deg); opacity: .4; } }
@keyframes flipIn { from { transform: rotateY(-90deg); opacity: .4; } to { transform: none; opacity: 1; } }
.quiz-top { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.quiz-score { color: var(--accent); }
.quiz-bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 12px 0 20px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--wine-2), var(--accent)); transition: width .5s var(--ease); }
.quiz-q { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.opt {
  text-align: left; cursor: pointer;
  padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-alt);
  font-weight: 500;
  transition: border-color .2s, background .2s, transform .2s;
}
.opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.opt.correct { background: rgba(52, 211, 153, 0.16); border-color: #34d399; }
.opt.wrong { background: rgba(239, 68, 68, 0.14); border-color: #ef4444; animation: shake .35s; }
.opt:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.quiz-feedback { min-height: 1.6em; margin-top: 14px; font-weight: 600; }
.quiz-result { text-align: center; padding: 10px 0; }
.quiz-result .big { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--accent); line-height: 1; }
.quiz-result p { color: var(--muted); margin: 10px 0 18px; }

/* timeline */
.timeline { list-style: none; display: grid; gap: 16px; }
.tl-item { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.tl-icon {
  flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; background: var(--tag-bg); font-size: 1.3rem;
}
.tl-item h3 { font-family: var(--serif); font-size: 1.35rem; margin-top: 8px; }
.tl-role { color: var(--accent); font-weight: 500; margin-top: 2px; }
.tl-item .muted { margin-top: 8px; }

/* languages: 3D flip cards */
.lang-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flip { border: none; background: none; cursor: pointer; perspective: 800px; height: 150px; padding: 0; }
.flip-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}
.flip:hover .flip-inner, .flip.on .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-face.front { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flip-face.back {
  transform: rotateY(180deg);
  justify-content: center; align-items: center;
  color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.7rem; font-weight: 500;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(242, 184, 162, 0.45), transparent 60%),
    linear-gradient(135deg, var(--wine-2), var(--wine));
  box-shadow: var(--shadow-lg);
}
.lc-code { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--wine); color: #fff; }
.lc-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }

/* contact */
.contact-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  padding: 48px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(242, 184, 162, 0.35), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(224, 87, 127, 0.35), transparent 60%),
    linear-gradient(135deg, #a3244a, #5c0f25);
  box-shadow: var(--shadow-lg);
}
.contact-card h2 em { color: #f7d5c6; }
.contact-card p { opacity: 0.9; margin-top: 10px; max-width: 460px; }
.eyebrow.light { color: rgba(255, 255, 255, 0.75); }
.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-row .btn { flex: 1; }
.btn.light { background: #fff; color: #7a1631; overflow-wrap: anywhere; }
.btn.ghost-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; background: transparent; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a:hover { color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 36px 0 52px; min-height: 0; }
  .badge { order: -1; --size: min(240px, 62vw); }
  .hero-veil { background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.1) 0%, rgba(var(--bg-rgb), 0.45) 38%, rgba(var(--bg-rgb), 0.9) 58%, rgba(var(--bg-rgb), 0.94) 100%); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .logo-name { display: none; }
  .verified { width: 42px; height: 42px; }
}
@media (max-width: 520px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .flip { height: 130px; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .contact-card { padding: 26px 20px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-card { padding: 20px; }
  .chat-log { height: 300px; padding: 16px; }
  .chips, .chat-form { padding-left: 14px; padding-right: 14px; }
  .tl-item { padding: 20px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; translate: 0 0; }
}
