:root {
  --ink: #171715;
  --paper: #f4f1e8;
  --cream: #fffaf0;
  --orange: #ff6534;
  --orange-soft: #ff8a61;
  --yellow: #ffd84d;
  --lime: #c8f36b;
  --purple: #9575ff;
  --blue: #78d7ff;
  --muted: #716f69;
  --line: rgba(23, 23, 21, 0.16);
  --white-line: rgba(255, 255, 255, 0.14);
  --radius: 24px;
  --shadow: 0 24px 80px rgba(24, 20, 12, 0.12);
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 101, 52, 0.11), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(244, 241, 232, 0.84);
  box-shadow: 0 8px 40px rgba(20, 18, 13, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--orange);
  border-radius: 13px 13px 13px 3px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.06em;
  transform: rotate(-3deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav > a:not(.nav-cta) {
  position: relative;
  padding: 8px 0;
}

.site-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 14px;
  padding: 0 16px 0 18px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 200ms ease;
}

.hero {
  display: grid;
  min-height: min(940px, 100svh);
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  padding-top: 130px;
  padding-bottom: 84px;
}

.eyebrow,
.section-index,
.book-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.hero h1,
.section-heading h2,
.contact-strip h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 5.55vw, 78px);
}

.marker {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.marker::after {
  position: absolute;
  z-index: -1;
  right: -0.05em;
  bottom: 0.06em;
  left: -0.05em;
  height: 0.28em;
  background: var(--yellow);
  content: "";
  transform: rotate(-1.5deg);
}

.hero-intro {
  max-width: 590px;
  margin: 28px 0 0;
  color: #54524d;
  font-size: clamp(16px, 1.35vw, 19px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(255, 101, 52, 0.24);
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary:hover {
  background: #ee5224;
  box-shadow: 0 16px 36px rgba(255, 101, 52, 0.32);
}

.text-link {
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 800;
}

.text-link span {
  display: inline-block;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.hero-stats {
  display: flex;
  max-width: 580px;
  margin: 54px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  flex: 1;
}

.hero-stats div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-stage {
  position: relative;
  min-height: 600px;
  isolation: isolate;
}

.hero-stage::before {
  position: absolute;
  z-index: -4;
  top: 56px;
  right: 4px;
  width: 82%;
  height: 83%;
  background: var(--orange);
  border-radius: 44% 56% 48% 52% / 43% 38% 62% 57%;
  box-shadow: 0 50px 100px rgba(255, 101, 52, 0.27);
  content: "";
  transform: rotate(5deg);
}

.stage-orbit {
  position: absolute;
  z-index: -3;
  border: 1px solid rgba(23, 23, 21, 0.34);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: 28px;
  right: -18px;
  width: 90%;
  height: 84%;
  transform: rotate(-12deg);
}

.orbit-two {
  right: 20px;
  bottom: 28px;
  width: 72%;
  height: 82%;
  border-color: rgba(255, 255, 255, 0.45);
  transform: rotate(22deg);
}

.code-window {
  position: absolute;
  z-index: 2;
  top: 105px;
  right: 4%;
  left: 2%;
  overflow: hidden;
  color: #f7f2e7;
  background: #171715;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 38px 80px rgba(22, 18, 12, 0.34);
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.window-bar {
  display: grid;
  height: 52px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--white-line);
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.window-status {
  justify-self: end;
  color: var(--lime);
}

.code-body {
  min-height: 320px;
  padding: 34px clamp(22px, 4vw, 42px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(12px, 1.28vw, 16px);
  line-height: 1.95;
  white-space: nowrap;
}

.indent { padding-left: 1.4em; }
.indent-2 { padding-left: 2.8em; }
.indent-3 { padding-left: 4.2em; }
.code-purple { color: #bc9dff; }
.code-yellow { color: #ffe37c; }
.code-blue { color: #70dcff; }
.code-green { color: #b9f177; }
.code-orange { color: #ff9675; }
.code-comment { margin-top: 14px; color: #777871; }

.terminal-line {
  display: flex;
  height: 58px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-top: 1px solid var(--white-line);
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.terminal-command {
  color: rgba(255, 255, 255, 0.72);
}

.terminal-line i {
  width: 7px;
  height: 15px;
  background: var(--lime);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.float-card {
  position: absolute;
  z-index: 3;
  width: 112px;
  padding: 14px;
  color: var(--ink);
  border: 1px solid rgba(23, 23, 21, 0.15);
  box-shadow: 0 18px 36px rgba(32, 25, 12, 0.17);
  transform: rotate(-7deg);
}

.float-card span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.float-card p {
  margin: 22px 0 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.float-card-top {
  top: 36px;
  left: -12px;
  background: var(--lime);
}

.float-card-bottom {
  right: -16px;
  bottom: 68px;
  background: var(--yellow);
  transform: rotate(7deg);
}

.stage-note {
  position: absolute;
  bottom: 12px;
  left: 5px;
  margin: 0;
  color: rgba(23, 23, 21, 0.52);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.learning-section {
  overflow: hidden;
  padding: 120px 0;
  color: #f7f1e8;
  background: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 56px;
}

.section-heading h2 {
  max-width: 720px;
  font-size: clamp(40px, 5vw, 68px);
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 6px;
  color: #aaa69d;
  font-size: 16px;
}

.learning-section .section-index {
  color: var(--orange-soft);
}

.learning-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.course-panel,
.book-panel {
  min-height: 600px;
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
}

.course-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #21211e;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--white-line);
  color: #8f8d86;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.course-list {
  flex: 1;
}

.course-row {
  display: grid;
  min-height: 128px;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--white-line);
  transition: padding 180ms ease, color 180ms ease;
}

.course-row:hover {
  padding-right: 4px;
  padding-left: 8px;
  color: var(--lime);
}

.course-number {
  align-self: start;
  margin-top: 35px;
  color: #77766f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.course-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-name strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.course-name small {
  color: #99978f;
  font-size: 11px;
}

.course-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--white-line);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.course-row:hover .course-arrow {
  color: var(--ink);
  background: var(--lime);
  transform: rotate(45deg);
}

.course-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  color: #8f8d86;
  font-size: 10px;
}

.course-note div {
  display: flex;
  gap: 6px;
}

.course-note i {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.book-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) 1.1fr;
  align-items: center;
  gap: 36px;
  padding: clamp(24px, 4vw, 48px);
  background: #f1ede2;
}

.book-cover {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 4px 14px 14px 4px;
  box-shadow: 18px 22px 0 #b83e18, 24px 30px 45px rgba(0, 0, 0, 0.24);
  transform: perspective(1000px) rotateY(7deg) rotateZ(-2deg);
  transition: transform 260ms ease;
}

.book-panel:hover .book-cover {
  transform: perspective(1000px) rotateY(0) rotateZ(0) translateY(-5px);
}

.book-cover::before {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 210px;
  height: 210px;
  border: 32px solid var(--yellow);
  border-radius: 50%;
  content: "";
}

.book-kicker {
  position: relative;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.book-cover h3 {
  position: relative;
  max-width: 210px;
  margin: 70px 0 0;
  font-size: clamp(35px, 3.4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
}

.book-cover > p {
  position: relative;
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.book-symbol {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 36px;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 27px;
  font-weight: 900;
}

.book-symbol i {
  width: 36px;
  height: 3px;
  background: var(--ink);
}

.book-cover small {
  position: relative;
  margin-top: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.book-copy {
  color: var(--ink);
}

.book-label {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 9px;
}

.book-copy h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.book-copy > p:not(.book-label) {
  margin: 24px 0;
  color: #65625b;
  font-size: 14px;
}

.book-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-copy li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.works-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.works-heading .section-index {
  color: var(--orange);
}

.works-heading > p {
  color: var(--muted);
}

.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-group button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-group button:hover,
.filter-group button.is-active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.work-count {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.work-count strong {
  margin-right: 6px;
  color: var(--ink);
  font-size: 18px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 18px;
}

.work-card {
  display: block;
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-card.is-hidden {
  display: none;
}

.work-visual {
  position: relative;
  height: 290px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

a.work-card:hover .work-visual {
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.work-card-featured {
  grid-column: span 2;
}

.work-card-featured .work-visual {
  height: 410px;
}

.work-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 19px;
}

.work-meta span:not(.open-icon) {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-meta h3 {
  margin: 3px 0 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.work-card > p {
  max-width: 500px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.open-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

a.work-card:hover .open-icon {
  color: white;
  background: var(--orange);
  border-color: var(--orange);
  transform: rotate(45deg);
}

.visual-tutor {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 6%;
  padding: 10%;
  background: #9a7cff;
}

.mini-editor {
  padding: 24px;
  color: #e9e8e3;
  background: var(--ink);
  border-radius: 14px;
  box-shadow: 15px 17px 0 rgba(255, 255, 255, 0.23);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(10px, 1.1vw, 14px);
  line-height: 2.2;
  transform: rotate(-3deg);
}

.mini-editor span { margin-right: 14px; color: #6f706b; }
.mini-editor b { color: var(--blue); font-weight: 500; }
.mini-editor em { color: var(--orange-soft); font-style: normal; }

.flow-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.flow-dots i {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 6px 6px 0 var(--ink);
  font-style: normal;
  font-weight: 900;
}

.visual-tutor > p {
  position: absolute;
  right: 18px;
  bottom: 12px;
  margin: 0;
  color: rgba(23, 23, 21, 0.5);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.visual-main {
  background: var(--orange);
}

.big-ai {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 128px;
  font-weight: 950;
  letter-spacing: -0.12em;
  line-height: 1;
  transform: translate(-52%, -50%) rotate(-5deg);
}

.visual-chip {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 7px 10px;
  background: var(--lime);
  border: 1px solid var(--ink);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.visual-main i {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.visual-main i:nth-of-type(1) { top: 22px; left: 22px; }
.visual-main i:nth-of-type(2) { top: 52px; left: 52px; border-color: white; }
.visual-main i:nth-of-type(3) { top: 82px; left: 82px; }

.visual-blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
  background: #d9f38a;
}

.visual-blog > span {
  padding: 12px;
  border: 1px solid rgba(23, 23, 21, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.visual-blog > span:nth-child(2) { transform: translateY(28px); }
.visual-blog > span:nth-child(3) { transform: translateY(56px); }
.visual-blog > div {
  position: absolute;
  right: 22px;
  bottom: 28px;
  left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.visual-blog b {
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.visual-codemark {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 24px;
  color: white;
  background: var(--ink);
}

.visual-codemark strong {
  font-size: 48px;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.check-list {
  display: grid;
  grid-template-columns: 32px 76px;
  align-items: center;
  gap: 16px 8px;
  transform: rotate(-4deg);
}

.check-list i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 7px;
  font-style: normal;
  font-weight: 900;
}

.check-list span { height: 7px; background: #5b5b55; border-radius: 99px; }

.visual-status {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 25px;
  background: #e8e4d9;
}

.status-ring {
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
  background: conic-gradient(var(--orange) 0 99.9%, rgba(23, 23, 21, 0.12) 99.9% 100%);
  border-radius: 50%;
}

.status-ring::before {
  position: absolute;
  width: 104px;
  height: 104px;
  background: #e8e4d9;
  border-radius: 50%;
  content: "";
}

.status-ring span { position: relative; font-size: 25px; font-weight: 900; }
.status-ring small { font-size: 10px; }

.status-bars {
  display: flex;
  height: 145px;
  align-items: end;
  gap: 5px;
}

.status-bars i {
  width: 9px;
  background: var(--ink);
  border-radius: 99px 99px 0 0;
}

.status-bars i:nth-child(1) { height: 35%; }
.status-bars i:nth-child(2) { height: 62%; }
.status-bars i:nth-child(3) { height: 48%; }
.status-bars i:nth-child(4) { height: 82%; background: var(--orange); }
.status-bars i:nth-child(5) { height: 68%; }
.status-bars i:nth-child(6) { height: 94%; }
.status-bars i:nth-child(7) { height: 76%; background: var(--orange); }

.visual-extension {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #77d6f7;
}

.browser-shape {
  display: flex;
  width: 165px;
  height: 110px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 11px 11px 0 var(--ink);
  transform: rotate(4deg);
}

.browser-shape i {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 12px 0 0 var(--yellow), 24px 0 0 var(--lime);
}

.browser-shape span {
  padding: 6px 22px;
  color: white;
  background: var(--orange);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.route-line {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 5px;
}

.route-line i { width: 9px; height: 9px; background: var(--ink); border-radius: 50%; }
.route-line i:nth-child(2) { background: var(--orange); }

.contact-strip {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 110px;
  padding: clamp(34px, 6vw, 72px);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--ink);
}

.contact-strip p {
  margin: 0 0 12px;
  color: rgba(23, 23, 21, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.contact-strip h2 {
  font-size: clamp(38px, 5vw, 66px);
}

.button-dark {
  min-width: 185px;
  color: white;
  background: var(--ink);
  white-space: nowrap;
}

.button-dark:hover {
  color: var(--ink);
  background: white;
}

.site-footer {
  padding: 70px 0 34px;
  color: #f5f1e9;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 54px;
}

.footer-brand .brand-copy small { color: #77756f; }

.footer-inner > div:first-child > p {
  max-width: 430px;
  margin: 24px 0 0;
  color: #87857e;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  font-size: 12px;
  font-weight: 700;
}

.footer-links a:hover { color: var(--lime); }

.copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--white-line);
  color: #686761;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--white-line);
  color: white;
  background: rgba(23, 23, 21, 0.86);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  backdrop-filter: blur(10px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover { color: var(--ink); background: var(--lime); }

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

[data-reveal][data-delay="1"] { transition-delay: 100ms; }
[data-reveal][data-delay="2"] { transition-delay: 200ms; }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-copy { max-width: 760px; }
  .hero-stage { width: min(680px, 96%); min-height: 610px; margin: -5px auto 0; }
  .learning-grid { grid-template-columns: 1fr; }
  .course-panel { min-height: 560px; }
  .book-panel { min-height: 560px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card-featured { grid-column: span 2; }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 620px);
    --radius: 19px;
  }

  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 38px; height: 38px; }
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(88vw, 380px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: 80px 32px 32px;
    background: var(--paper);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
    transform: translateX(105%);
    transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .site-nav::before {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 100%;
    bottom: 0;
    width: 100vw;
    background: rgba(0, 0, 0, 0.36);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .site-nav.is-open { transform: translateX(0); }
  .site-nav.is-open::before { opacity: 1; pointer-events: auto; }
  .site-nav > a:not(.nav-cta) { padding: 13px 0; font-size: 24px; }
  .nav-cta { justify-content: space-between; margin-top: 18px; }

  .hero {
    min-height: auto;
    gap: 46px;
    padding-top: 124px;
    padding-bottom: 72px;
  }

  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .hero h1 br:nth-child(2) { display: none; }
  .hero-intro { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-stats { margin-top: 42px; }
  .hero-stats div + div { padding-left: 12px; }
  .hero-stats dt { font-size: 20px; }
  .hero-stats dd { font-size: 10px; }

  .hero-stage { min-height: 470px; width: 100%; }
  .hero-stage::before { top: 32px; right: 0; width: 90%; height: 86%; }
  .code-window { top: 86px; right: 0; left: 0; border-radius: 17px; }
  .window-bar { height: 44px; }
  .code-body { min-height: 250px; padding: 24px 15px; font-size: clamp(9px, 2.9vw, 12px); }
  .terminal-line { height: 48px; padding: 0 15px; font-size: 9px; }
  .float-card { width: 84px; padding: 10px; }
  .float-card p { margin-top: 12px; font-size: 9px; }
  .float-card-top { top: 11px; left: -5px; }
  .float-card-bottom { right: -5px; bottom: 22px; }
  .stage-note { display: none; }

  .learning-section,
  .works-section { padding-top: 86px; padding-bottom: 86px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 38px; }
  .section-heading h2 { font-size: clamp(38px, 10vw, 52px); }
  .section-heading > p { font-size: 14px; }

  .course-panel { min-height: auto; padding: 18px; }
  .course-row { min-height: 110px; }
  .course-name small { max-width: 190px; }
  .course-note { align-items: flex-start; flex-direction: column; }
  .book-panel { grid-template-columns: 1fr; gap: 54px; padding: 34px 28px; }
  .book-cover { width: min(280px, 86%); min-height: 390px; margin: 0 auto; }

  .work-toolbar { align-items: flex-start; flex-direction: column; }
  .works-grid { grid-template-columns: 1fr; gap: 38px; }
  .work-card-featured { grid-column: auto; }
  .work-card-featured .work-visual,
  .work-visual { height: 300px; }
  .visual-tutor { padding: 8%; }
  .flow-dots i { width: 44px; height: 44px; }
  .mini-editor { padding: 16px 12px; }

  .contact-strip { align-items: flex-start; flex-direction: column; margin-top: 72px; box-shadow: 8px 8px 0 var(--ink); }
  .button-dark { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { flex-wrap: wrap; }
  .copyright { grid-column: auto; }
}

@media (max-width: 390px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stats div + div { padding-left: 8px; }
  .hero-stats dt { font-size: 18px; }
  .course-row { grid-template-columns: 26px 1fr auto; }
  .course-arrow { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
