:root {
  --bg: #eef9f1;
  --bg-soft: #dff4e5;
  --bg-highlight: #fff7df;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: rgba(11, 42, 28, 0.9);
  --text: #163626;
  --text-strong: #082315;
  --muted: #446756;
  --green: #21945f;
  --green-strong: #0d6f41;
  --green-deep: #0a5a35;
  --green-soft: rgba(33, 148, 95, 0.14);
  --gold: #da9d19;
  --border: rgba(24, 91, 59, 0.16);
  --shadow: 0 22px 45px rgba(14, 51, 34, 0.12);
  --shadow-soft: 0 14px 30px rgba(14, 51, 34, 0.08);
  --hero-glow: radial-gradient(circle at top, rgba(58, 190, 120, 0.28), transparent 44%);
  --hero-grid: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(220, 245, 228, 0.5));
  --btn-text: #ffffff;
  --footer-bg: #0f2d1f;
  --footer-text: #effaf3;
}

html[data-theme="dark"] {
  --bg: #07140d;
  --bg-soft: #0f2118;
  --surface: rgba(12, 29, 20, 0.84);
  --surface-strong: #11281c;
  --surface-dark: rgba(6, 16, 11, 0.92);
  --text: #edf8f1;
  --text-strong: #ffffff;
  --muted: #9dc2ad;
  --green: #4be29f;
  --green-strong: #84ffc8;
  --green-deep: #17915c;
  --green-soft: rgba(75, 226, 159, 0.16);
  --gold: #f2c85a;
  --border: rgba(132, 255, 200, 0.16);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 18px 36px rgba(0, 0, 0, 0.2);
  --hero-glow: radial-gradient(circle at top, rgba(75, 226, 159, 0.18), transparent 42%);
  --hero-grid: linear-gradient(135deg, rgba(13, 34, 23, 0.68), rgba(10, 22, 15, 0.4));
  --btn-text: #052213;
  --footer-bg: #031008;
  --footer-text: #edf8f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 236, 185, 0.26), transparent 30%),
    radial-gradient(circle at 15% 12%, rgba(40, 184, 114, 0.14), transparent 24%),
    radial-gradient(circle at 85% 0%, rgba(62, 194, 126, 0.1), transparent 26%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0;
  background: rgba(243, 251, 246, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 91, 59, 0.08);
  box-shadow: 0 10px 30px rgba(13, 63, 38, 0.08);
}

html[data-theme="dark"] .site-header {
  background: rgba(7, 20, 13, 0.72);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 68px;
  height: auto;
  object-fit: contain;
}

.brand h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 10px 22px rgba(33, 148, 95, 0.2);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--btn-text);
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 16px 30px rgba(29, 155, 95, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-strong), var(--green));
  box-shadow: 0 20px 36px rgba(29, 155, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-strong);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 148, 95, 0.26);
  box-shadow: 0 18px 30px rgba(14, 51, 34, 0.12);
}

.theme-toggle::before {
  content: "☾";
  font-size: 18px;
}

html[data-theme="dark"] .theme-toggle::before {
  content: "☀";
}

.menu-btn {
  display: none;
  font-size: 22px;
}

.mini-hero {
  position: relative;
  padding: 90px 0 54px;
}

.home-hero {
  position: relative;
  padding: 72px 0 104px;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(116, 220, 156, 0.32), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(31, 145, 93, 0.12), transparent 24%),
    linear-gradient(135deg, #f9fff9 0%, #edf9ef 38%, #e3f6ea 72%, #fff7df 100%);
  z-index: -2;
}

html[data-theme="dark"] .home-hero::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(75, 226, 159, 0.16), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(75, 226, 159, 0.08), transparent 24%),
    linear-gradient(135deg, #091710 0%, #0e2017 48%, #11281c 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 26px auto auto 50%;
  width: min(1220px, calc(100vw - 40px));
  height: 610px;
  transform: translateX(-50%);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(241, 251, 244, 0.74)),
    linear-gradient(180deg, rgba(255, 247, 223, 0.2), transparent);
  border: 1px solid rgba(33, 148, 95, 0.12);
  box-shadow: 0 28px 60px rgba(20, 78, 49, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  z-index: -1;
}

html[data-theme="dark"] .home-hero::after {
  background: linear-gradient(135deg, rgba(17, 40, 28, 0.92), rgba(9, 23, 16, 0.84));
  border-color: rgba(132, 255, 200, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 44px;
  align-items: center;
  min-height: 610px;
}

.hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

.home-title {
  margin: 0;
  color: var(--text-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home-title span {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  text-shadow: 0 10px 24px rgba(218, 157, 25, 0.18);
}

html[data-theme="dark"] .home-title span {
  color: #f2c85a;
}

.home-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-secondary {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(33, 148, 95, 0.18);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(33, 148, 95, 0.28);
}

html[data-theme="dark"] .btn-secondary {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(132, 255, 200, 0.18);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  width: min(500px, 100%);
  padding: 30px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(24, 71, 49, 0.98), rgba(8, 29, 18, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(7, 32, 20, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero-logo {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 234, 185, 0.22), transparent 24%),
    linear-gradient(145deg, #05150f, #0d261a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-logo img {
  width: 100%;
  transform-origin: center center;
  animation: logo-sway 4.8s ease-in-out infinite;
}

.home-highlight {
  padding-top: 0;
}

.mini-hero::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto;
  height: 220px;
  background: var(--hero-glow);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--text-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.section-text,
.breadcrumb {
  color: var(--muted);
}

.breadcrumb {
  margin-top: 14px;
}

.section {
  padding: 28px 0 88px;
}

.hero-card,
.course-card,
.service-card,
.about-panel,
.contact-card,
.about-image {
  background: var(--hero-grid);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.course-card,
.service-card,
.about-panel,
.contact-card,
.stat,
.about-image {
  position: relative;
  overflow: hidden;
}

.course-card::before,
.service-card::before,
.about-panel::before,
.contact-card::before,
.stat::before,
.about-image::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent);
  pointer-events: none;
}

.courses-grid,
.service-grid,
.footer-grid,
.grid-2,
.contact-grid,
.about-wrap,
.stats {
  display: grid;
}

.courses-grid,
.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.course-card,
.service-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card:hover,
.service-card:hover,
.about-panel:hover,
.contact-card:hover,
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 148, 95, 0.24);
  box-shadow: 0 24px 46px rgba(14, 51, 34, 0.14);
}

.course-card h3,
.service-card h3,
.about-panel h3,
.contact-card h3 {
  margin: 14px 0 12px;
  color: var(--text-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.course-card p,
.service-card p,
.about-text p,
.about-panel p,
.contact-card p,
.footer p,
.footer li {
  color: var(--muted);
  line-height: 1.7;
}

.course-card ul,
.footer ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.course-card li,
.footer li {
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--green-strong);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-style: normal;
  font-size: 28px;
  background: var(--green-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.about-wrap {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: stretch;
}

.about-image {
  min-height: 100%;
  padding: 34px;
  display: grid;
  place-items: center;
}

.about-image img {
  width: min(100%, 340px);
}

.brand-showcase {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 232, 174, 0.28), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(229, 247, 235, 0.72));
}

.brand-showcase img {
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 234, 185, 0.22), transparent 24%),
    linear-gradient(145deg, #082214, #123622);
  box-shadow: 0 26px 42px rgba(7, 32, 20, 0.18);
}

.about-text {
  padding: 10px 0;
}

.stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat h3 {
  margin: 0 0 8px;
  color: var(--green-strong);
  font-size: 34px;
}

.stat p {
  margin: 0;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-panel,
.contact-card {
  padding: 28px;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text-strong);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 155, 95, 0.12);
}

.footer {
  margin-top: 36px;
  padding-top: 56px;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 28px;
  padding-bottom: 28px;
}

.footer .brand h2,
.footer h3 {
  color: #ffffff;
}

.footer .brand p,
.footer p,
.footer li,
.footer a {
  color: #ffffff;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer a:hover {
  color: #d8f7e7;
}

.footer-bottom {
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.footer-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  min-width: max-content;
  padding-left: 0;
  animation: footer-marquee 10s linear infinite;
}

.footer-bottom span::after {
  content: attr(data-text);
}

main {
  width: min(1060px, 86vw);
  margin: auto;
  padding-bottom: 260px;
}

.side-nav {
  position: fixed;
  top: 34px;
  left: 34px;
  z-index: 20;
  display: grid;
  gap: 7px;
  padding: 14px 18px;
  color: var(--text-strong);
  font-size: 12px;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.side-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.side-nav a {
  opacity: 0.9;
}

.side-nav a:hover {
  color: var(--green);
}

.side-nav-toggle {
  position: fixed;
  top: 34px;
  left: 34px;
  z-index: 21;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--text-strong);
  font-size: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.side-nav-toggle:hover {
  color: var(--green);
}

.hero-theme-toggle {
  position: fixed;
  top: 34px;
  left: 92px;
  z-index: 21;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 70px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 60px 0 0;
  width: min(980px, 92vw);
  height: 540px;
  margin: 0 auto;
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 18%, rgba(102, 212, 148, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(222, 245, 230, 0.74));
  border: 1px solid rgba(33, 148, 95, 0.14);
  box-shadow: 0 28px 60px rgba(33, 96, 63, 0.12);
  z-index: -1;
}

html[data-theme="dark"] .hero::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(75, 226, 159, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(11, 29, 20, 0.92), rgba(7, 20, 13, 0.84));
  border-color: rgba(132, 255, 200, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.hero-glow,
.spotlight {
  position: absolute;
  width: 560px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 148, 95, 0.22), rgba(13, 111, 65, 0.12) 36%, transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-glow {
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  position: relative;
  z-index: 2;
  color: var(--text-strong);
  font-size: clamp(58px, 8vw, 118px);
  line-height: 0.9;
  margin-bottom: -8px;
  text-shadow: 0 10px 22px rgba(255, 255, 255, 0.22);
}

.hero h1 em {
  font-style: italic;
  color: var(--green-strong);
}

.intro {
  max-width: 560px;
  margin: 36px auto 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.4;
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.12);
}

.desk-scene {
  position: relative;
  width: min(740px, 90vw);
  height: 330px;
  margin-top: 20px;
}

.wood-shelf,
.wire-shelf {
  position: absolute;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  width: 680px;
  height: 28px;
  background: linear-gradient(90deg, #5f351f, #b57749 32%, #704124 67%, #c68a59);
  border-top: 4px solid #d5a172;
  box-shadow: 0 24px 35px rgba(0, 0, 0, 0.28);
}

.retro-tv {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: 305px;
  height: 230px;
  padding: 22px;
  background: linear-gradient(135deg, #7f8c83, #213328 48%, #0d1712);
  border: 8px solid #9aa79e;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35), 0 22px 35px rgba(0, 0, 0, 0.18);
}

.screen {
  display: grid;
  place-items: center;
  height: 160px;
  border-radius: 16px;
  background: radial-gradient(circle, #d0ffe9, #9ed1b7 68%);
  border: 5px solid #314a3e;
  color: var(--green-strong);
  font-family: "Courier New", monospace;
  font-size: 56px;
  letter-spacing: -10px;
  text-shadow: 0 0 13px rgba(75, 226, 159, 0.55);
}

html[data-theme="dark"] .screen {
  background: radial-gradient(circle, #173429, #080908 68%);
  border-color: #040404;
  color: var(--green);
}

.tv-foot {
  width: 170px;
  height: 12px;
  margin: 13px auto 0;
  background: #070707;
  border-radius: 0 0 18px 18px;
}

.camera-shape,
.tape-shape {
  position: absolute;
  bottom: 75px;
  width: 118px;
  height: 86px;
  background: linear-gradient(135deg, #3e5448, #101713);
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .camera-shape,
html[data-theme="dark"] .tape-shape {
  background: linear-gradient(135deg, #252525, #060606);
}

.camera-shape {
  left: 62px;
}

.camera-shape::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 21px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #111 35%, #5d5d5d 37%, #050505 65%);
}

.tape-shape {
  right: 55px;
  width: 125px;
  background: linear-gradient(135deg, #f2f2e8, #87877f);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.works {
  padding-top: 70px;
}

.works h2,
.about h2 {
  text-align: center;
  font-size: clamp(42px, 5vw, 74px);
  margin-bottom: 70px;
}

.project {
  position: relative;
  margin: 0 auto 155px;
}

.project-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  align-items: center;
  gap: 80px;
}

.project h3 {
  font-size: clamp(34px, 4vw, 58px);
}

.project p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.meta {
  margin: 16px 0 70px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-visual {
  position: relative;
  min-height: 350px;
}

.spotlight {
  width: 330px;
  height: 250px;
  top: 35px;
  left: 30px;
  opacity: 0.65;
}

.spotlight.blue {
  background: radial-gradient(circle, rgba(44, 168, 108, 0.34), rgba(13, 111, 65, 0.16) 38%, transparent 70%);
}

.mini-mac,
.old-computer {
  position: relative;
  width: 220px;
  height: 230px;
  margin: 20px auto 0;
  background: linear-gradient(135deg, #ddd5c2, #8e897a);
  border-radius: 12px 12px 8px 8px;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.2);
}

.mac-screen {
  position: absolute;
  left: 34px;
  top: 28px;
  width: 152px;
  height: 106px;
  display: grid;
  place-items: center;
  border: 8px solid #605d56;
  background: #d8f5ff;
  color: #375c67;
  font-family: Georgia, serif;
  font-size: 30px;
  font-style: italic;
}

.mac-slot {
  position: absolute;
  right: 36px;
  bottom: 48px;
  width: 72px;
  height: 9px;
  background: #25221f;
  border-radius: 10px;
}

.wire-shelf.small {
  bottom: -5px;
  width: 330px;
  height: 18px;
}

.book,
.film {
  position: absolute;
  bottom: 19px;
  width: 94px;
  height: 58px;
  background: #efe2b8;
  border: 4px solid #111;
}

.book {
  left: 70px;
  transform: rotate(-6deg);
}

.film {
  right: 64px;
  width: 62px;
  background: #f0bd22;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border: 2px solid var(--green-strong);
  border-radius: 5px;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 700;
  background: transparent;
}

.chip:hover {
  color: var(--btn-text);
  background: var(--green);
}

.wide {
  max-width: 820px;
  margin: auto;
}

.media-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 90px;
  align-items: center;
  margin-top: 18px;
}

.video-card {
  min-height: 260px;
  display: grid;
  place-items: end center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(220, 242, 230, 0.45));
  border: 1px solid var(--border);
  border-radius: 28px;
}

html[data-theme="dark"] .video-card {
  background: linear-gradient(145deg, #1b1b1b, #080808);
}

.old-computer {
  width: 210px;
  height: 185px;
  transform: rotate(-2deg);
}

.old-computer::before {
  content: "";
  position: absolute;
  inset: 24px 42px 58px;
  background: #bce9df;
  border: 9px solid #252525;
}

.stacked-box {
  position: relative;
  min-height: 280px;
}

.book-cover {
  width: 154px;
  height: 210px;
  margin: auto;
  padding: 18px;
  background: linear-gradient(160deg, #1d5b40 35%, #9fdb77 36% 52%, #f0c668 53%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.wire-shelf.tiny {
  width: 270px;
  height: 16px;
  bottom: 30px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.solid {
  background: var(--green);
  color: var(--btn-text);
}

.laptop {
  position: relative;
  width: 310px;
  margin: 55px auto 0;
}

.laptop-screen {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 26px;
  background: linear-gradient(145deg, #eefaf1, #d5ede0);
  border: 10px solid #7ca58f;
  border-radius: 10px 10px 3px 3px;
  color: #20432f;
  text-align: center;
  font-size: 13px;
}

html[data-theme="dark"] .laptop-screen {
  background: linear-gradient(145deg, #19191d, #070707);
  border-color: #2b2b34;
  color: #eee;
}

.laptop-base {
  height: 24px;
  background: #7a7470;
  border-radius: 4px 4px 18px 18px;
}

.app-cubes {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: -6px;
}

.app-cubes span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(220, 242, 230, 0.42));
  border: 2px solid var(--border);
  color: var(--green);
  font-weight: 800;
  font-size: 34px;
}

html[data-theme="dark"] .app-cubes span {
  background: linear-gradient(145deg, #222, #090909);
  border-color: rgba(255, 255, 255, 0.18);
}

.about {
  padding-top: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.tool-board {
  min-height: 300px;
  position: relative;
  background: radial-gradient(circle at 55% 60%, rgba(255, 255, 255, 0.35), transparent 28%), var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .tool-board {
  background: radial-gradient(circle at 55% 60%, rgba(255, 255, 255, 0.09), transparent 28%), #171717;
}

.social-keys {
  position: absolute;
  left: 22px;
  top: 25px;
  display: grid;
  gap: 10px;
}

.social-keys span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  font-weight: 800;
  color: #ddd;
}

.keyboard {
  position: absolute;
  left: 120px;
  top: 42px;
  width: 245px;
  height: 78px;
  background: repeating-linear-gradient(90deg, #d1b987 0 11px, #111 12px 18px);
  border: 10px solid #b29968;
}

.headphones {
  position: absolute;
  left: 205px;
  top: 155px;
  width: 130px;
  height: 95px;
  border: 12px solid #0b0b0b;
  border-bottom: 0;
  border-radius: 85px 85px 0 0;
}

.headphones::before,
.headphones::after {
  content: "";
  position: absolute;
  bottom: -25px;
  width: 34px;
  height: 48px;
  background: #ff8a2b;
  border-radius: 20px;
}

.headphones::before {
  left: -18px;
}

.headphones::after {
  right: -18px;
}

.notes {
  position: absolute;
  right: 34px;
  bottom: 35px;
  width: 95px;
  height: 80px;
  background: linear-gradient(135deg, #eee, #bfc6d2);
  transform: rotate(8deg);
}

.about-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.contact {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 120px;
}

.contact p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
}

.contact a {
  color: var(--green-strong);
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 72px);
}

.control-deck {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 245px 1fr 260px;
  align-items: end;
  gap: 12px;
  min-height: 170px;
  padding: 22px 22px 14px;
  background: radial-gradient(ellipse at 50% 0, rgba(29, 155, 95, 0.3), transparent 35%);
  pointer-events: none;
}

.deck-buttons,
.speaker-lines,
.oscilloscope {
  pointer-events: auto;
}

.deck-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(219, 240, 227, 0.55));
  border: 2px solid var(--border);
  transform: perspective(500px) rotateX(10deg);
}

html[data-theme="dark"] .deck-buttons {
  background: linear-gradient(145deg, #3b3b42, #09090b);
}

.deck-buttons a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  color: var(--btn-text);
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 4px 0 rgba(7, 32, 20, 0.35);
  font-weight: 800;
  font-size: 12px;
}

.deck-buttons a:nth-child(2) {
  background: linear-gradient(135deg, #29b879, #117447);
}

.deck-buttons a:nth-child(4) {
  background: linear-gradient(135deg, #0f8d55, #055430);
}

.speaker-lines {
  height: 112px;
  border-radius: 16px 16px 0 0;
  background: repeating-linear-gradient(0deg, #0c1b13 0 5px, #203428 6px 10px);
  border: 2px solid rgba(10, 50, 32, 0.8);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.35);
}

.oscilloscope {
  height: 145px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(145deg, #31553f, #12251a);
  border: 3px solid #20442f;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
}

.oscilloscope span {
  width: 160px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(75, 226, 159, 0.18), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(75, 226, 159, 0.14) 14px 15px),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(75, 226, 159, 0.14) 14px 15px),
    #081510;
  border: 7px solid #050505;
  box-shadow: 0 0 22px rgba(0, 240, 173, 0.22);
  position: relative;
}

.oscilloscope span::after {
  content: "";
  position: absolute;
  inset: 28px 22px;
  border-radius: 50%;
  border-top: 4px solid var(--green);
  transform: rotate(18deg);
  filter: drop-shadow(0 0 8px var(--green));
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logo-sway {
  0%,
  100% {
    transform: perspective(800px) rotateY(-16deg) translateX(-8px);
  }

  50% {
    transform: perspective(800px) rotateY(16deg) translateX(8px);
  }
}

@keyframes footer-marquee {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100vw);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 9px 0;
  }

  .navbar {
    position: relative;
    align-items: flex-start;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
  }

  .menu-btn {
    display: grid;
  }

  .btn-primary {
    display: none;
  }

  .side-nav {
    position: absolute;
    left: 18px;
    top: 18px;
  }

  .side-nav-toggle {
    left: 18px;
    top: 18px;
  }

  .hero-theme-toggle {
    left: 76px;
    top: 18px;
  }

  main {
    width: min(92vw, 680px);
  }

  .hero {
    min-height: 690px;
  }

  .project-split,
  .media-row,
  .about-grid,
  .about-wrap,
  .contact-grid,
  .grid-2,
  .home-hero-grid,
  .courses-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project {
    margin-bottom: 105px;
  }

  .control-deck {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 10px;
  }

  .home-hero {
    padding: 52px 0 82px;
  }

  .home-hero::after {
    height: calc(100% - 32px);
    width: min(100vw - 28px, 720px);
  }

  .hero-copy,
  .hero-visual {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-frame {
    transform: none;
  }

  .speaker-lines,
  .oscilloscope {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100vw - 28px, 520px);
  }

  .brand img {
    width: 58px;
  }

  .home-title {
    font-size: 52px;
    line-height: 1.04;
  }

  .home-lead {
    font-size: 17px;
    line-height: 1.7;
  }

  .nav-actions {
    gap: 8px;
  }

  main {
    width: min(94vw, 440px);
    padding-bottom: 180px;
  }

  .side-nav {
    max-width: calc(100vw - 36px);
  }

  .hero {
    min-height: 610px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .intro {
    font-size: 17px;
  }

  .desk-scene {
    height: 280px;
  }

  .retro-tv {
    width: 230px;
    height: 182px;
    padding: 16px;
  }

  .screen {
    height: 122px;
    font-size: 42px;
  }

  .wood-shelf {
    width: 360px;
  }

  .camera-shape,
  .tape-shape {
    display: none;
  }

  .works h2,
  .about h2,
  .section-title {
    font-size: 43px;
    margin-bottom: 20px;
  }

  .project h3,
  .course-card h3,
  .service-card h3 {
    font-size: 35px;
  }

  .course-card,
  .service-card,
  .about-panel,
  .contact-card,
  .about-image,
  .stat {
    padding: 22px;
  }

  .brand-showcase img,
  .hero-logo {
    padding: 16px;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
