/* Intentional adaptations to the transplanted Whenevr hero.
   Pill geometry, translucent fill, borders and shadows come from template.css.
   Moving pills deliberately do not sample/blur the already-soft backdrop. */
:root {
  color-scheme: light;
  font-synthesis: none;
}

/* Whenevr image gallery (reference.html:242–263). Three deliverables replace
   the template's four portfolio images. No automatic horizontal movement. */
.brand-delivery {
  width: 100%;
  padding-block: 96px 40px;
  background: #18181b;
  color: #f5f5f7;
  color-scheme: dark;
  scroll-margin-top: 64px;
}
.delivery-heading { padding-inline: 24px; }
.delivery-gallery {
  display: flex;
  gap: 16px;
  padding-inline: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}
.delivery-gallery::-webkit-scrollbar { display: none; }
.delivery-gallery:focus-visible { outline: 2px solid #a6bcdf; outline-offset: -4px; }
.delivery-card {
  --delivery-art: none;
  position: relative;
  isolation: isolate;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  aspect-ratio: 1.05;
  border-radius: 16px;
  background: #070809;
  overflow: hidden;
  scroll-snap-align: center;
}
.delivery-website { --delivery-glow: radial-gradient(ellipse at 25% 90%, #51360f 0%, transparent 56%), radial-gradient(ellipse at 80% 20%, #30302e 0%, transparent 60%); }
.delivery-workspace { --delivery-glow: radial-gradient(ellipse at 80% 20%, #063f3c 0%, transparent 58%), radial-gradient(ellipse at 25% 90%, #102e69 0%, transparent 60%); }
.delivery-student { --delivery-glow: radial-gradient(ellipse at 25% 85%, #0a3450 0%, transparent 60%), radial-gradient(ellipse at 80% 15%, #252526 0%, transparent 58%); }
.delivery-card::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -2;
  background-image: var(--delivery-art), var(--delivery-glow);
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  opacity: .85;
  pointer-events: none;
}
.delivery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .12), transparent 65%, rgb(0 0 0 / .26));
  pointer-events: none;
}
.delivery-media { position: absolute; inset: 23.5% 12.5% auto; aspect-ratio: 1.48; }
.delivery-media img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.delivery-caption { position: absolute; bottom: 22px; inset-inline: 20px; text-align: center; }
.delivery-caption h3 { margin: 0; font-size: 21px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
.delivery-caption p { margin: 7px 0 0; color: #a3a3ac; font-size: 13px; line-height: 1.6; }
@media (min-width: 1600px) {
  .delivery-card { aspect-ratio: auto; height: 520px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .delivery-card { flex-basis: 45vw; }
}
@media (max-width: 767px) {
  .brand-delivery { padding-block: 64px 28px; }
  .delivery-gallery { display: grid; grid-template-columns: minmax(0, 1fr); padding-inline: 20px; gap: 20px; overflow: visible; scroll-snap-type: none; }
  .delivery-card { width: 100%; min-width: 0; aspect-ratio: .88; scroll-snap-align: none; }
  .delivery-caption { bottom: 22px; inset-inline: 16px; }
  .delivery-caption h3 { font-size: 20px; }
  .delivery-caption p { font-size: 13px; }
}

body.font-sans {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  /* Explicit boundaries below avoid browser-dependent automatic double spacing. */
  text-autospace: no-autospace;
  --mixed-script-gap: .125em;
}

/* A single, font-relative gap only at Han/Latin boundaries. Keep Latin words
   intact, retain inherited font metrics, and never pad adjacent punctuation. */
.mixed-latin { white-space: nowrap; }
.mixed-before { margin-inline-start: var(--mixed-script-gap); }
.mixed-after { margin-inline-end: var(--mixed-script-gap); }

/* The brand belongs to the hero and scrolls away with it. */
.site-header { background: transparent; }
.brand { gap: 9px; min-height: 32px; }
.brand-mark { flex: none; width: 26px; height: 26px; }
.brand-wordmark {
  /* Same compact text treatment as the current Web management header. */
  color: #202428;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero {
  /* Full-viewport background; only the text has a maximum content width.
     The reference clipped the blur at the 1152px section edge. */
  isolation: isolate;
}
.hero-background { width: 800px; }
.hero-copy { width: 100%; max-width: 48rem; }
.hero-title {
  margin-bottom: 64px;
  width: 100%;
  font-weight: 500;
  line-height: 80px;
  letter-spacing: 0;
}
.headline-line { display: block; white-space: nowrap; }
.headline-accent { color: #71717a; }
.hero-description { max-width: 100%; }
.hero-description .keep-phrase { white-space: nowrap; }
.contact-avatar { flex-shrink: 0; background: #f4f4f5 url("assets/developer-avatar.webp") center / cover no-repeat; }
button:disabled { cursor: default; opacity: 1; }

/* The original 20-second marquee and 10% edge mask are retained. */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.animate-marquee {
  animation: marquee 20s linear infinite;
  display: flex;
  width: max-content;
  /* One continuously moving layer, not a layer/filter per capsule. */
  will-change: transform;
}
.pill-set {
  display: flex;
  flex: none;
  gap: 12px;
  padding-right: 12px;
  min-width: 512px;
  justify-content: space-between;
}
.pill-set > span { flex: none; }
/* Retain the template's hover pause on devices with a genuine hover pointer. */
@media (hover: hover) and (pointer: fine) {
  .pill-region:hover .animate-marquee,
  .upgrade-window:hover .animate-marquee { animation-play-state: paused; }
}
.hero[data-offscreen="true"] .animate-marquee,
.upgrade-strip[data-offscreen="true"] .animate-marquee,
html[data-page-hidden="true"] .animate-marquee { animation-play-state: paused; }
.mask-edges {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.pill-region { position: relative; }
/* Original social-proof geometry; Chinese phrases retain natural letter spacing.
   Longer content gets a longer cycle, keeping the movement calm and readable. */
.upgrade-strip > h2 { flex: none; font-size: 16px; line-height: 24px; color: #52525b; }
.upgrade-window { min-width: 0; }
.upgrade-track { animation-duration: 60s; }
.upgrade-set { display: flex; flex: none; align-items: center; gap: 64px; padding-right: 64px; font-size: 16px; font-weight: 400; line-height: 28px; }
.upgrade-set > li { flex: none; white-space: nowrap; }
:focus-visible { outline: 2px solid #71717a; outline-offset: 5px; }

/* A single short entrance establishes reading order; base content is visible.
   No JS gate, repeated scroll reveal, animated blur or permanent extra layers. */
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(var(--hero-enter-distance, 10px)); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-description,
  .hero-actions {
    animation: hero-arrive 560ms cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .hero-description { animation-delay: 70ms; }
  .hero-actions { animation-delay: 70ms; }
}

@media (min-width: 1024px) {
  /* Match the reference's 160px two-line block; Chinese has denser ink at 80px. */
  .hero-title { font-size: 72px; }
}
@media (min-width: 768px) {
  /* Keep the desktop center stable as later sections add scrolling. */
  :root { scrollbar-gutter: stable; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title { font-size: 64px; line-height: 72px; }
}
@media (max-width: 767px) {
  .hero { --hero-enter-distance: 6px; }
  .hero-title { margin-bottom: 48px; font-size: clamp(26px, 7.5vw, 48px); line-height: 1.3; }
  .hero-description { max-width: 34em; font-size: 18px; line-height: 28px; }
  .hero-description > p { text-wrap: balance; }
  .hero-description > p + p { margin-top: 20px; }
}
@media (max-width: 639px) {
  .hero { padding-top: clamp(136px, 19svh, 160px); }
  /* Three deliberate phrases retain headline scale on a narrow screen. */
  .hero-title { font-size: clamp(32px, 9.2vw, 40px); line-height: 1.24; }
  .headline-accent { display: block; }
  .hero-description { max-width: 27em; }
  .hero-actions { flex-direction: row; width: auto; max-width: none; gap: 10px; }
  .primary-action { width: auto; flex: none; padding: 14px 18px; font-size: 14px; line-height: 20px; }
  .contact-action { width: auto; flex: none; gap: 9px; padding: 7px 14px 7px 7px; }
  .contact-avatar { width: 32px; height: 32px; }
  .contact-action .text-sm { font-size: 12px; line-height: 18px; }
  .contact-action .text-xs { font-size: 11px; line-height: 14px; }
  .contact-action .w-2 { width: 6px; height: 6px; }
}
@media (max-width: 359px) {
  .hero-actions { gap: 8px; }
  .primary-action { padding-inline: 12px; font-size: 13px; }
  .contact-action { gap: 8px; padding-inline: 6px 12px; }
  .contact-avatar { width: 28px; height: 28px; }
  .contact-action .text-sm { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .animate-marquee, .animate-pulse { animation: none; }
  .mask-edges { mask-image: none; -webkit-mask-image: none; }
  .animate-marquee { width: 100%; will-change: auto; }
  .pill-set { width: 100%; min-width: 0; padding: 0; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .animate-marquee > [aria-hidden="true"] { display: none; }
  .upgrade-set { width: 100%; padding: 0; flex-wrap: wrap; justify-content: center; gap: 20px 32px; }
  .upgrade-set > li { max-width: 100%; white-space: normal; text-align: center; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Transplanted three-card section: retain the template surfaces and spacing.
   Chinese headings use natural spacing and deliberate narrow-screen phrases. */
.practice-section { scroll-margin-top: 72px; }
.practice-title { letter-spacing: 0; line-height: 1.25; }
.practice-heading-line { display: block; }
.practice-heading-phrase { display: inline-block; white-space: nowrap; }
.practice-heading-topic { color: #71717a; margin-inline-end: .22em; }
.practice-card-copy { padding-top: 180px; }
.practice-card h3 { letter-spacing: 0; }
@media (max-width: 767px) {
  .practice-title { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.35; }

  .practice-card p { font-size: 16px; line-height: 26px; }
}

@media (max-width: 359px) {
  .practice-heading-phrase { display: block; }
  .practice-heading-topic { margin-inline-end: 0; }
}

/* Device source and publication status are recorded in the reference README. */
.practice-explorer { position: relative; isolation: isolate; overflow: hidden; width: calc(100% - 48px); max-width: 1320px; margin: 0 auto 64px; padding: 24px 40px 0; border-radius: 40px; background: #f5f5f7; scroll-margin-top: 64px; }
.explorer-heading { position: relative; z-index: 1; display: flex; justify-content: center; margin-bottom: 16px; }
.explorer-layout { position: relative; z-index: 1; max-width: 1200px; margin-inline: auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; transition: grid-template-columns 620ms cubic-bezier(.22,1,.36,1); }
.practice-explorer[data-device="computer"] .explorer-layout { grid-template-columns: 240px minmax(0, 1fr); }
.explorer-view { --phone-width: 280px; --phone-right: calc(32.4% + 16px); --computer-width: min(90%, 785px); --computer-right: calc(100% - var(--computer-width)); position: relative; min-width: 0; }
.device-switch { position: absolute; top: -48px; right: 0; z-index: 5; display: inline-flex; gap: 4px; padding: 4px; background: #e8e8ed; border-radius: 999px; }
.device-switch button { min-width: 68px; min-height: 40px; padding: 10px 20px; border-radius: 999px; color: #606066; font-size: 14px; line-height: 20px; transition: background-color 180ms, color 180ms, box-shadow 180ms; }
.device-switch button[aria-pressed="true"] { color: #18181b; background: #fff; box-shadow: 0 1px 4px #18181b14; }
.device-switch button:hover { color: #18181b; }
.explorer-stage { position: relative; width: 100%; height: 580px; overflow: hidden; transition: height 620ms cubic-bezier(.22,1,.36,1); }
.explorer-stage[data-device="computer"] { height: 480px; }
.device-model { position: absolute; transition: transform 620ms cubic-bezier(.22,1,.36,1), right 620ms cubic-bezier(.22,1,.36,1); }
/* Secondary computer never overlaps the phone; secondary phone only touches the right edge. */
.device-model-phone { z-index: 2; width: var(--phone-width); right: var(--phone-right); bottom: -8px; aspect-ratio: 1332 / 2748; transform-origin: bottom right; filter: drop-shadow(0 8px 10px #1c1c2814); }
.device-model-computer { z-index: 1; width: var(--computer-width); right: 0; bottom: 18px; aspect-ratio: 3026 / 1850; overflow: hidden; border-radius: 0; background: #f5f5f7; transform-origin: bottom right; transform: scale(.36); transition: transform 620ms cubic-bezier(.22,1,.36,1), right 620ms cubic-bezier(.22,1,.36,1), bottom 620ms cubic-bezier(.22,1,.36,1), border-radius 620ms cubic-bezier(.22,1,.36,1); }
.explorer-stage[data-device="computer"] .device-model-computer { right: var(--computer-right); bottom: 0; border-radius: 5% 5% 0 0 / 8.18% 8.18% 0 0; transform: scale(1); }
.explorer-stage[data-device="computer"] .device-model-phone { right: 0; transform: scale(.44); }
.device-artwork { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.device-screen { position: absolute; background: #fff; overflow: hidden; }
.device-model-phone .device-screen { left: 4.72%; top: 2.29%; width: 90.55%; height: 95.42%; border-radius: 15.43% / 7.09%; }
/* Apple MacBook Neo original hardware + its matching screen mask.
   Crop x255/y4/w3026/h1850, ending inside the display before the bottom chin.
   The screen mask keeps Apple's exact opening, corner radii and camera clearance. */
.device-model-computer .device-artwork { max-width: none; mix-blend-mode: multiply; }
.device-model-computer .device-screen { z-index: 1; border-radius: 0; mask-image: url('assets/device-macbook-neo-screen-mask.png'); mask-size: 100% 100%; mask-repeat: no-repeat; }
/* Full front silhouette when secondary; the same artwork zooms into its screen when primary. */
.device-model-computer .device-artwork, .device-model-computer .device-screen { left: 0; top: 0; width: 100%; height: 99.72%; transition: left 620ms cubic-bezier(.22,1,.36,1), top 620ms cubic-bezier(.22,1,.36,1), width 620ms cubic-bezier(.22,1,.36,1), height 620ms cubic-bezier(.22,1,.36,1); }
.explorer-stage[data-device="computer"] .device-model-computer .device-artwork, .explorer-stage[data-device="computer"] .device-model-computer .device-screen { left: -8.42697%; top: -.216216%; width: 116.854%; height: 116.5405%; }
.explorer-controls { position: relative; min-width: 0; margin-left: 16px; padding-right: 8px; }
.scene-navigation { position: absolute; left: -52px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; }
.scene-navigation button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(232 232 237 / .72); color: #1d1d1f; transition: background-color 180ms, opacity 180ms; }
.scene-navigation button:hover:not(:disabled) { background: rgb(232 232 237 / .96); }
.scene-navigation button:disabled { opacity: .35; cursor: default; }
.scene-navigation svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scene-options { display: flex; flex-direction: column; gap: 12px; }
.scene-option { border-radius: 28px; background: rgb(232 232 237 / .72); width: fit-content; max-width: 100%; color: #1d1d1f; }
.scene-option.is-active { width: 100%; padding: 22px; font-size: 17px; line-height: 25px; }
.scene-option h3 { margin: 0; }
.scene-option button { display: flex; align-items: center; text-align: left; gap: 14px; width: auto; height: 56px; padding: 0 32px 0 14px; font-size: 17px; font-weight: 600; line-height: 23px; letter-spacing: 0; border-radius: 28px; }
.scene-option button:hover { background: rgb(232 232 237 / .92); }
.scene-symbol { position: relative; display: block; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.scene-symbol::before, .scene-symbol::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.scene-symbol::after { transform: translate(-50%, -50%) rotate(90deg); }
.scene-option.is-active h3, .scene-option.is-active button { display: inline; font-size: inherit; line-height: inherit; }
.scene-option.is-active button { height: auto; padding: 0; border-radius: 2px; background: transparent; }
.scene-option.is-active button::after { content: '。'; }
.scene-option.is-active .scene-symbol { display: none; }
.scene-description, .scene-description p { display: inline; padding: 0; color: inherit; font-size: inherit; line-height: inherit; }
.scene-description[hidden] { display: none; }
@media (max-width: 1023px) and (min-width: 768px) {
  .explorer-layout, .practice-explorer[data-device="computer"] .explorer-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .explorer-stage { height: 510px; }
  .explorer-stage[data-device="computer"] { height: clamp(280px, calc((100vw - 362px) * .55 + 40px), 410px); }
  .explorer-view { --phone-width: 220px; --phone-right: calc(32.4% + 12px); }
  .device-model-computer { transform: scale(.36); }
  .explorer-stage[data-device="computer"] .device-model-phone { transform: scale(.45); }
  .scene-option.is-active { padding: 24px; }
}
@media (max-width: 767px) {
  .practice-explorer { width: calc(100% - 32px); padding: 24px 16px 0; margin-bottom: 32px; border-radius: 28px; }
  .explorer-layout, .practice-explorer[data-device="computer"] .explorer-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .explorer-controls { margin: 0; padding: 0; }
  .scene-navigation { display: none; }
  .scene-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .scene-option, .scene-option.is-active { display: contents; }
  .scene-option h3, .scene-option.is-active h3 { display: block; grid-row: 1; }
  .scene-option button, .scene-option.is-active button { display: flex; justify-content: center; width: 100%; height: 40px; padding: 0 4px; border-radius: 20px; background: #e8e8ed; font-size: 14px; line-height: 20px; }
  .scene-option.is-active button { background: #fff; box-shadow: 0 1px 4px #18181b14; }
  .scene-option.is-active button::after { content: none; }
  .scene-symbol { display: none; }
  .scene-description { grid-row: 2; grid-column: 1 / -1; font-size: 14px; line-height: 24px; padding: 2px 4px 0; }
  .scene-description p { font-size: inherit; line-height: inherit; }
  .explorer-view { --phone-width: min(280px, calc(100vw - 64px)); --phone-right: calc((100% - var(--phone-width)) / 2); --computer-width: min(100%, 620px); --computer-right: calc((100% - var(--computer-width)) / 2); }
  .device-switch { top: 0; padding: 3px; gap: 2px; }
  .device-switch button { min-width: 54px; min-height: 32px; padding: 6px 12px; font-size: 13px; }
  .explorer-stage { height: calc(var(--phone-width) * 2.063 + 36px); }
  .explorer-stage[data-device="computer"] { height: clamp(220px, 61vw, 420px); }
  /* On a small screen, give the usable area to the selected device. */
  .device-model { transition: transform 620ms cubic-bezier(.22,1,.36,1), right 620ms cubic-bezier(.22,1,.36,1), opacity 240ms ease; }
  .device-model[aria-hidden="true"] { opacity: 0; pointer-events: none; }
  .device-model[aria-hidden="false"], .device-model:not([aria-hidden]) { opacity: 1; }
  .device-model-computer { transform: scale(.36); }
  .explorer-stage[data-device="computer"] .device-model-computer { transform: scale(1); }
}

/* Compact manual pager: Apple's quiet pill, indicators and chevrons adapted together.
   36px visual height, 44px arrow hit areas; no timer or separate caption. */
.example-picker { position: relative; height: 56px; padding: 8px 0 12px; }
/* Share phone geometry with its frame; the primary computer shares its width and inset with the pager. */
.example-pager { position: relative; left: calc(100% - var(--phone-right) - var(--phone-width) / 2); transform: translateX(-50%); width: max-content; transition: left 620ms cubic-bezier(.22,1,.36,1); display: flex; align-items: center; height: 36px; max-width: 100%; border-radius: 999px; background: rgb(232 232 237 / .72); color: #515154; }
.practice-explorer[data-device="computer"] .example-pager { left: calc(100% - var(--computer-right) - var(--computer-width) / 2); }
.example-pager button { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 36px; border-radius: 999px; transition: background-color 180ms ease; }
.example-pager button::before { content: ''; position: absolute; inset: -4px 0; }
.example-pager button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.example-pager button:hover:not(:disabled) { background: #dedee3; color: #1d1d1f; }
.example-pager button:disabled { color: #b6b6bc; }
.example-pager button:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.example-current { display: flex; align-items: center; white-space: nowrap; pointer-events: none; }
.example-name { min-width: 4em; font-size: 13px; line-height: 20px; text-align: center; }
.example-indicators { display: flex; align-items: center; margin-left: 10px; }
.example-indicators button { flex-basis: 30px; width: 30px; }
.example-indicators button::after { content: ''; width: 6px; height: 6px; border-radius: 99px; background: #8c8c90; transition: width 180ms ease, background-color 180ms ease; }
.example-indicators button[aria-pressed="true"]::after { width: 24px; background: #29292a; }
@media (prefers-reduced-motion: reduce) {
  .example-pager, .example-pager button, .example-indicators button::after { transition: none; }
}

/* The template's low-opacity blurred portrait backdrop, below all controls. */
.explorer-portraits { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.portrait { position: absolute; border-radius: 50%; object-fit: cover; opacity: .24; filter: blur(1px); box-shadow: 0 1px 2px #18181b0d; }
.portrait-two { width: 68px; height: 68px; bottom: 4%; left: 29%; }
.portrait-three { width: 52px; height: 52px; top: 19%; right: 6%; }
.portrait-four { width: 76px; height: 76px; bottom: 27%; left: 40%; }
.portrait-five { width: 60px; height: 60px; bottom: 46%; right: 1%; }
@media (max-width: 767px) {
  .portrait { opacity: .18; }
  .portrait-two { width: 48px; height: 48px; top: 48%; bottom: auto; left: -24px; }
  .portrait-three { display: none; }
  .portrait-four { width: 54px; height: 54px; bottom: 5%; left: -28px; }
  .portrait-five { width: 44px; height: 44px; right: -20px; bottom: 34%; }
}

/* Progressive enhancement: content stays visible without JavaScript.
   Entrance transforms only wrap the device models, leaving their switching transforms intact. */
[data-reveal] { --reveal-distance: 20px; --reveal-delay: 0ms; }
.practice-card:nth-child(2) { --reveal-delay: 90ms; }
.practice-card:nth-child(3) { --reveal-delay: 180ms; }
.explorer-view[data-reveal] { --reveal-delay: 80ms; }
.explorer-controls[data-reveal] { --reveal-delay: 160ms; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="pending"] { opacity: 0; transform: translateY(var(--reveal-distance)); }
}
@media (max-width: 767px) {
  [data-reveal] { --reveal-distance: 10px; --reveal-delay: 0ms !important; }
}

/* Teacher follow-up: measured from Linear's collaboration section.
   Preserve the quiet 8px corners, shared grid border and 32px caption insets.
   The original background is a local review asset; product demo slots are empty. */
.teacher-followup {
  --teacher-bg: #08090a;
  --teacher-line: rgba(255, 255, 255, .08);
  width: 100%;
  background: var(--teacher-bg);
  color: #f7f8f8;
  color-scheme: dark;
  padding: 112px 24px 120px;
  margin-top: 32px;
  scroll-margin-top: 0;
}
.teacher-inner { width: 100%; max-width: 1104px; margin-inline: auto; }
.teacher-heading { margin-bottom: 56px; text-align: center; }
.teacher-label {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  padding: 6px 16px;
  background: #141516;
  color: #e3e4e6;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  margin-bottom: 24px;
}
.teacher-heading h2 {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 48px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
}
.teacher-heading h2 > span { display: block; }
.teacher-heading .practice-heading-topic { color: #9a9ca3; }
.teacher-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--teacher-bg);
}
.teacher-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.04) 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.teacher-art { position: relative; overflow: hidden; pointer-events: none; }
.teacher-art-observer {
  aspect-ratio: 1344 / 832;
  background: linear-gradient(180deg, transparent 75%, var(--teacher-bg)),
    url('assets/linear-collaboration-background.png') center / cover no-repeat;
}
.teacher-caption { position: relative; padding: 28px 32px 32px; }
.teacher-caption h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: pretty;
}
.teacher-caption p {
  margin: 0;
  max-width: 34em;
  color: #a0a2aa;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: pretty;
}
.teacher-phrase { display: inline-block; }
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--teacher-line);
  border-radius: 8px;
  margin-top: 32px;
}
.teacher-cell { min-width: 0; display: flex; flex-direction: column; }
.teacher-cell + .teacher-cell { border-left: 1px solid var(--teacher-line); }
.teacher-cell .teacher-art { aspect-ratio: 3 / 2; }
.teacher-cell .teacher-caption { flex: 1; }
.teacher-art-agent,
.teacher-art-next {
  background: radial-gradient(ellipse at 50% 32%, rgba(255,255,255,.025), transparent 70%);
}
@media (max-width: 767px) {
  .teacher-followup { padding: 72px 24px 80px; margin-top: 16px; }
  .teacher-heading { margin-bottom: 40px; }
  .teacher-heading h2 { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.35; }
  .teacher-caption { padding: 22px 24px 26px; }
  .teacher-caption h3 { font-size: 20px; line-height: 1.5; }
  .teacher-caption p { font-size: 16px; line-height: 1.75; }
  .teacher-art-observer { aspect-ratio: 1.2; }
  .teacher-grid { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .teacher-cell + .teacher-cell { border-left: 0; border-top: 1px solid var(--teacher-line); }
  .teacher-cell .teacher-art { aspect-ratio: 1.5; }
}
@media (max-width: 359px) {
  .teacher-caption { padding-inline: 20px; }
}

/* Same composition and typography, with a light surface for course authoring. */
.teacher-followup.course-making {
  --teacher-bg: #fafafa;
  --teacher-line: rgba(24, 24, 27, .10);
  margin-top: 0;
  color: #18181b;
  color-scheme: light;
}
.course-making .teacher-label {
  background: #fff;
  border-color: #e4e4e7;
  color: #27272a;
  box-shadow: 0 1px 2px rgba(24,24,27,.05);
}
.course-making .practice-heading-topic { color: #71717a; }
.course-making .teacher-caption p { color: #62626b; }
.course-making .course-service-note {
  display: block;
  margin-top: 8px;
  color: #484851;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.course-making .teacher-hero::after {
  background: linear-gradient(135deg, rgba(24,24,27,.14), rgba(24,24,27,.05) 65%);
}
.course-art-map,
.course-art-method,
.course-art-cards {
  background: radial-gradient(ellipse at 50% 32%, #f0f0f2, transparent 72%);
}
.course-making { padding-inline: 32px; }
.course-making .teacher-inner { max-width: 1320px; }
.course-making .course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}
.course-making .teacher-caption { padding: 28px 28px 32px; }
.course-making .teacher-phrase { display: block; }
@media (max-width: 1023px) {
  .course-making .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course-making .teacher-cell + .teacher-cell {
    border-left: 0;
    border-top: 1px solid var(--teacher-line);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .course-making .teacher-cell { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (max-width: 767px) {
  .teacher-followup.course-making { padding-inline: 24px; }
  .course-making .teacher-caption { padding: 22px 24px 26px; }
}
@media (max-width: 359px) {
  .course-making .teacher-caption { padding-inline: 20px; }
}

/* Whenevr Features, reference.html:265–334. Template dimensions and typography;
   keep the site's Chinese font family and zero Chinese letter-spacing. */
.upgrade-value { width: 100%; max-width: 1152px; padding: 128px 24px; background: #fafafa; color: #18181b; scroll-margin-top: 48px; }
.value-inner { width: 100%; margin-inline: auto; }
.value-heading { margin-bottom: 64px; }
.value-heading .teacher-label { background: #fff; border-color: #e4e4e7; color: #27272a; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.value-heading h2 { max-width: 512px; }
.value-heading .practice-heading-topic { color: #71717a; }
.value-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.value-card { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 24px; border: 1px solid #f4f4f5; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.value-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid #f4f4f5; border-radius: 12px; background: #fafafa; }
.value-icon img { display: block; width: 20px; height: 20px; }
.value-card h3 { margin: 0 0 12px; font-size: 18px; line-height: 28px; font-weight: 500; letter-spacing: 0; text-wrap: wrap; }
.value-card h3 > span { display: block; }
.value-card:nth-child(4) { grid-column: 2 / span 2; }
.value-card:nth-child(5) { grid-column: 4 / span 2; }
.value-card p { margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; color: #71717a; letter-spacing: 0; text-wrap: wrap; }
@media (min-width: 768px) and (max-width: 1023px) {
  .value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .value-card:nth-child(4) { grid-column: span 2; }
  .value-card:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 767px) {
  .upgrade-value { padding-block: 96px; }
  .value-heading { margin-bottom: 64px; }
  .value-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .value-card, .value-card:nth-child(4), .value-card:nth-child(5) { grid-column: 1; }
}

/* Whenevr pricing card: zinc surface, quiet top-right light, generous corners
   and existing contact pill. Two buying paths above grouped delivery details. */
.pricing-section { width: 100%; padding: 96px 24px 112px; background: #18181b; color: #fafafa; }
.pricing-inner { max-width: 1120px; margin-inline: auto; }
.pricing-heading { margin-bottom: 52px; }
.pricing-heading .teacher-label { background: #141416; border-color: #333336; }
.package-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,2vw,28px); }
.package-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(26px,3vw,42px); border: 1px solid #303034; border-radius: 32px; background: radial-gradient(ellipse at 100% 0,rgb(255 255 255 / .045),transparent 55%),#09090b; }
.package-card h3 { margin: 0; font-size: clamp(22px,2vw,28px); font-weight: 550; line-height: 1.35; }
.package-lead { margin: 10px 0 0; color: #aaaab3; line-height: 1.6; font-size: 15px; text-wrap: pretty; }
.package-quote { padding-top: 28px; }
.package-price { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: clamp(42px,4vw,56px); line-height: 1.1; font-weight: 500; letter-spacing: -.035em; }
.package-unit { color: #c4c4cb; font-size: 17px; letter-spacing: normal; }
.package-price-note, .package-support {
  margin: 0;
  color: #9999a3;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}
.package-price-note { margin-top: 10px; }
.package-support { margin-top: 3px; }
.plan-name { display: inline-flex; align-items: center; gap: .43em; vertical-align: middle; }
.mark-standard { --plan-art: url("assets/plan-lesson.svg"); }
.mark-professional { --plan-art: url("assets/plan-map.svg"); }
.plan-name::before,.mobile-col-label[class*="mark-"]::before { content: ""; flex: none; display: inline-block; width: 1.28em; height: 1.28em; background: var(--plan-art) center/contain no-repeat; }
.package-includes { margin: 25px 0 0; padding: 24px 0 0; border-top: 1px solid #303034; list-style: none; display: grid; gap: 13px; }
.package-includes li { display: grid; grid-template-columns: 15px minmax(0,1fr); gap: 9px; align-items: start; font-size: 14px; line-height: 22px; color: #c4c4cb; }
.package-includes li::before { content: ""; height: 15px; margin-top: 3.5px; background: #a1a1aa; mask: url("assets/plan-check.svg") center/contain no-repeat; -webkit-mask: url("assets/plan-check.svg") center/contain no-repeat; }
.package-consult {
  width: 100%;
  min-height: 48px;
  margin-top: 26px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.service-details { margin-top: 76px; scroll-margin-top: 32px; }
#service-details-title { margin: 0 0 24px; font-size: 28px; line-height: 1.4; font-weight: 500; }
.package-group { border: 1px solid #343438; border-radius: 20px; background: #101012; }
.package-group table { width: 100%; border-spacing: 0; table-layout: fixed; }
.package-group { --service-width: 18%; --plan-outline: #43434b; }
.package-group .item-col { width: var(--service-width); }
.package-group thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #18181a;
  box-shadow: 0 1px #38383d;
}
.package-group th,.package-group td { text-align: left; padding: 18px 20px; vertical-align: top; line-height: 1.7; text-wrap: pretty; }
.package-group tr > :first-child { padding-left: 24px; }
.package-group tr > :last-child { padding-right: 24px; }
.package-group thead th { background: #18181a; color: #b4b4bc; font-size: 14px; font-weight: 500; padding-block: 19px; vertical-align: middle; }
.package-group thead th:first-child { border-top-left-radius: 19px; }
.package-group thead th:last-child { border-top-right-radius: 19px; }
.package-group thead .plan-head { font-size: clamp(18px,1.45vw,22px); font-weight: 600; color: #fafafa; background: linear-gradient(180deg,#29292d,#202023); box-shadow: inset 1px 0 #37373b,inset 0 1px #47474c; }
.package-group tbody tr > * { border-top: 1px solid #2c2c30; }
.package-group tbody th { font-weight: 500; font-size: 15px; }
.package-group .service-category th {
  padding-block: 10px;
  border-top-color: #414146;
  background: #29292d;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .025em;
}
.package-group td { color: #bdbdc5; font-size: 14px; }
.package-group td:nth-child(2),.package-group td:nth-child(3) { background-color: #161618; box-shadow: inset 1px 0 #242427; }
.plan-not-included { color: #a1a1aa; font-size: 13px; }
.project-scope { display: block; font-size: 12px; color: #d4d4d8; font-weight: 500; margin-bottom: 3px; }
.mobile-col-label { display: none; }
@media (min-width:768px) {
  .package-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .package-includes { align-content: start; }
  #service-details-title { margin-bottom: 38px; }
  .package-group { position: relative; isolation: isolate; }
  /* Follow the outer edges of both plan columns, including the spanning category rows. */
  .package-group::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    inset: 0 0 0 var(--service-width);
    border: 1px solid var(--plan-outline);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: rgb(255 255 255 / .025);
  }
  .package-group thead { border-radius: 19px 19px 0 0; }
  .package-group thead .plan-head {
    position: relative;
    isolation: isolate;
    background: transparent;
    box-shadow: none;
    font-size: 18px;
    letter-spacing: .015em;
  }
  .package-group thead .plan-head::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -8px 0 0;
    pointer-events: none;
    border-top: 1px solid var(--plan-outline);
  }
  .package-group thead .plan-head:nth-child(2)::before {
    border-left: 1px solid var(--plan-outline);
    border-top-left-radius: 14px;
    background: linear-gradient(90deg,#2b3541,#30313a);
  }
  .package-group thead .plan-head:nth-child(3)::before {
    border-right: 1px solid var(--plan-outline);
    border-top-right-radius: 14px;
    background: linear-gradient(90deg,#30313a,#393341);
  }
  .package-group tbody td:nth-child(2),.package-group tbody td:nth-child(3) {
    background: #212124;
    color: #d6d6da;
    box-shadow: none;
  }
  .package-group tbody:last-child tr:last-child td:nth-child(2) { border-bottom-left-radius: 12px; }
  .package-group tbody:last-child tr:last-child td:nth-child(3) { border-bottom-right-radius: 12px; }
}
@media (max-width:767px) {
  .pricing-section { padding: 72px 20px 80px; }
  .pricing-heading { margin-bottom: 36px; }
  .package-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .package-card { padding: 24px; border-radius: 24px; }
  .package-quote { padding-top: 20px; }
  .package-includes { margin-top: 21px; padding-top: 20px; gap: 12px; }
  .package-consult { margin-top: 20px; }
  .package-group .mobile-col-label[class*="mark-"] { display: flex; align-items: center; gap: .4em; }
  .service-details { margin-top: 52px; }
  #service-details-title { font-size: 24px; margin-bottom: 18px; }
  .package-group table,.package-group tbody { display: block; }
  .package-group thead { display: block; border-radius: 19px 19px 0 0; }
  .package-group thead tr { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 12px 8px; }
  .package-group thead tr > :is(th,.plan-head) { padding: 0; font-size: 12px; line-height: 1.5; background: transparent; box-shadow: none; }
  .package-group thead .plan-name { gap: .2em; }
  .package-group tbody tr { display: grid; padding: 20px 16px; }
  .package-group tbody tr + tr { border-top: 1px solid #343438; }
  .package-group tbody tr > * { border: 0; padding: 0; }
  .package-group tbody th { font-size: 18px; margin-bottom: 10px; }
  .package-group .service-category { padding: 0; }
  .package-group .service-category th { margin: 0; padding: 10px 16px; border-top: 1px solid #38383d; }
  .package-group tbody td { font-size: 14px; line-height: 1.7; }
  .package-group tbody td:nth-child(2),.package-group tbody td:nth-child(3) { padding: 12px 14px; box-shadow: none; }
  .package-group tbody td:nth-child(2) { border-radius: 12px 12px 0 0; background: linear-gradient(105deg,#262d35,#222327); }
  .package-group tbody td:nth-child(3) { border-radius: 0 0 12px 12px; border-top: 1px solid #37373d; background: linear-gradient(105deg,#2c2832,#242327); }
  .mobile-col-label { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 600; color: #fafafa; }
}
@media (max-width:359px) {
  .package-group thead .plan-name::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Featured journal article */
.journal-section { width: 100%; max-width: 1152px; padding: 128px 24px; scroll-margin-top: 40px; }
.journal-heading { margin-bottom: 64px; }
.journal-heading .teacher-label { background: #fff; border-color: #e4e4e7; color: #27272a; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
.journal-heading .practice-heading-topic { color: #71717a; }
.journal-featured { display: grid; gap: 24px; padding: 12px; background: white; border: 1px solid #ececee; border-radius: 24px; box-shadow: 0 2px 6px rgb(24 24 27 / 4%); }
.journal-cover { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; }
.journal-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; transition: transform 700ms ease-out; }
.journal-featured-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 14px 18px; }
.journal-category { width: fit-content; padding: 4px 12px; border-radius: 999px; background: #f4f4f5; color: #52525b; font-size: 12px; line-height: 18px; }
.journal-featured p { margin: 0; color: #63636d; font-size: 15px; line-height: 1.8; text-wrap: pretty; }
@media (min-width: 768px) {
  .journal-featured { grid-template-columns: 1fr 1fr; min-height: 384px; }
  .journal-cover { aspect-ratio: auto; }
  .journal-featured-copy { padding: clamp(20px, 3vw, 36px); }
  .journal-featured .journal-read { margin-top: auto; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .journal-featured:hover .journal-cover img { transform: scale(1.05); }
}
@media (hover: hover) {
  .journal-featured:hover h3 { color: #52525b; }
}
.journal-featured h3 { margin: 0; font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.45; transition: color 150ms ease; }
.journal-read { margin-top: 8px; color: #52525b; font-size: 14px; }
.journal-featured:hover .journal-read, .journal-featured:focus-visible .journal-read { text-decoration: underline; text-underline-offset: 4px; }
.journal-update { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 32px auto 0; color: #52525b; }
.journal-update::before, .journal-update::after { content: ""; flex: 0 1 52px; height: 1px; margin-inline: 4px; background: #dedee2; }
.journal-series, .journal-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.journal-series { font-size: 14px; font-weight: 500; }
.journal-series svg { width: 18px; height: 18px; }
.journal-status { padding: 4px 10px; border-radius: 999px; color: #405e62; background: #eaf1f1; font-size: 12px; line-height: 18px; }
.journal-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #5c8084; }
/* Whenevr FAQ: 1:2 columns, 64px gap, 16px corners, 24px question inset.
   Keep the source's white circular plus, with native disclosure operation. */
.faq-section { width: 100%; padding: 128px 24px 80px; background: #fff; border-top: 1px solid #f4f4f5; scroll-margin-top: 40px; }
.faq-layout { width: 100%; max-width: 1152px; margin-inline: auto; display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.faq-intro .teacher-label { background: #f4f4f5; color: #27272a; border-color: transparent; }
.faq-intro h2 { margin: 0; font-size: 48px; line-height: 1.25; letter-spacing: 0; font-weight: 500; }
.faq-intro h2 span { display: block; color: #71717a; }
.faq-contact { margin-top: 56px; padding-top: 32px; border-top: 1px solid #f4f4f5; }
.faq-contact p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: #71717a; }
.faq-contact .contact-action { width: fit-content; max-width: 100%; color-scheme: light; }
.faq-items { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.faq-item { border-radius: 16px; background: #fafafa; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; list-style: none; cursor: pointer; font-size: 16px; line-height: 1.6; font-weight: 500; transition: background-color 180ms ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgb(244 244 245 / 80%); }
.faq-toggle { position: relative; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #e4e4e7; border-radius: 50%; background: white; color: #71717a; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); }
.faq-toggle::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform 180ms ease; }
.faq-item[open] .faq-toggle::after { transform: translate(-50%,-50%) rotate(0); }
.faq-answer { padding: 0 80px 24px 24px; }
.faq-answer p { margin: 0; color: #71717a; font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.faq-item summary:focus-visible, .faq-contact .contact-action:focus-visible { outline: 2px solid #71717a; outline-offset: -4px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .faq-layout { gap: 40px; }
  .faq-intro h2 { font-size: 40px; }
}
@media (max-width: 767px) {
  .journal-section { padding: 96px 20px; }
  .faq-section { padding: 96px 20px 64px; }
  .faq-layout { grid-template-columns: minmax(0,1fr); gap: 48px; }
  .faq-intro h2 { font-size: 36px; }
  .faq-contact { margin-top: 32px; padding-top: 24px; }
  .faq-item summary { padding: 20px; gap: 16px; }
  .faq-answer { padding: 0 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { .faq-toggle::after, .faq-item summary { transition: none; } }

/* Whenevr's compact links layout, adapted to the adjoining light FAQ.
   Its original dark divider belonged inside a larger dark calendar/CTA footer. */
.site-footer { width: 100%; padding: 0 24px 32px; background: #fff; color: #71717a; }
.site-footer-inner { max-width: 1152px; margin-inline: auto; padding-top: 24px; border-top: 1px solid #e4e4e7; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 20px; font-weight: 500; }
.site-footer-inner p { margin: 0; }
.site-footer-links { display: flex; align-items: center; gap: 24px; }
.site-footer-inner a { display: inline-flex; align-items: center; min-height: 24px; color: inherit; text-decoration: none; transition: color 180ms ease; }
.site-footer-inner a:hover { color: #18181b; }
.site-footer-inner a:focus-visible { outline: 2px solid #71717a; outline-offset: 5px; border-radius: 2px; }
.site-footer-filing { white-space: nowrap; }
@media (max-width: 767px) {
  .site-footer { padding: 0 20px 24px; }
  .site-footer-inner { padding-top: 20px; gap: 12px; flex-wrap: wrap; }
  .site-footer-links { gap: 20px; }
  .site-footer-filing { order: 1; width: 100%; justify-content: center; }
}

/* Course films retain the light surface and share the teacher-film playback controller. */
#course-making .teacher-art[data-teacher-film]{background:#fafafa}
@media(max-width:767px){
 #course-making .course-grid{gap:28px;border:0;border-radius:0;overflow:visible}
 #course-making .course-grid .teacher-cell{border:1px solid var(--teacher-line);border-radius:12px;overflow:hidden;background:var(--teacher-bg)}
}
