/* The homepage presentation system; shared docs and platform styles stay independent. */
.home { --home-width: 1280px; --home-gutter: clamp(20px, 3.5vw, 48px); --home-muted: #626262; }
html:has(.home) { scrollbar-gutter: stable; }
.home .wrap { width: min(var(--home-width), calc(100% - 2 * var(--home-gutter))); margin-inline: auto; min-width: 0; }
.home svg { flex-shrink: 0; width: 22px; height: 22px; }
.home a, .home button, .home input { -webkit-tap-highlight-color: transparent; }
.home a:focus-visible, .home button:focus-visible, .home summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.home input { caret-color: var(--blue); }
.home [id] { scroll-margin-top: 100px; }
.home ::selection { background: #dbeafe; color: var(--ink); }
.home { scrollbar-color: #a3a3a3 var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 30; top: 10px; left: 20px; padding: 12px 20px; background: var(--white); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.home .top { background: var(--white); backdrop-filter: none; }
.home .top .wrap { height: 80px; }
.home .brand { font-size: 23px; gap: 12px; }
.home .brand img { width: 32px; height: 32px; }
.home .nav { gap: 34px; font-size: 15px; }
.home .nav a { padding-block: 12px; color: var(--ink); }
.home .nav a:hover { color: var(--blue); }
.home .nav a.btn-primary { color: var(--white); padding: 0 18px; }
.home .nav-signin { display: inline-flex; align-items: center; gap: 14px; margin-left: 14px; }
.home .nav-signin svg { width: 18px; height: 18px; }
.home-menu-toggle { display: none; }

.home .studio-hero { padding: 72px 0 68px; background: var(--blue); color: var(--white); border: 0; }
.studio-hero-layout { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); align-items: center; gap: 64px; }
.studio-hero-copy { position: relative; z-index: 1; }
.home .studio-hero h1 { font-size: clamp(54px, 5.7vw, 82px); line-height: 1.035; letter-spacing: -0.04em; font-weight: 800; text-wrap: initial; }
.studio-hero h1 span { display: block; }
.studio-lead { max-width: 38ch; font-size: 21px; line-height: 1.5; color: var(--white); margin-top: 30px; }
.studio-hero-action { margin-top: 30px; }
.home .studio-start { background: var(--white); color: var(--ink); min-height: 58px; font-size: 18px; padding: 0 24px; gap: 22px; }
.home .studio-start:hover { background: #eaf0ff; color: var(--blue-dark); }
.studio-hero-action p { margin-top: 14px; font-size: 14px; color: #e0e9ff; }
.home .studio-hero a:focus-visible { outline-color: var(--white); }
.profile-scene { position: relative; width: 100%; margin: 0; padding-bottom: 78px; }
.profile-sheet { display: block; text-decoration: none; background: var(--white); color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px -20px rgb(0 0 0 / 30%); }
.home .profile-sheet:hover { color: var(--ink); }
.profile-address { display: flex; align-items: center; gap: 12px; padding: 15px 22px; background: #f6f7f9; border-bottom: 1px solid var(--line); font-size: 13px; }
.profile-address img { width: 18px; height: 18px; }
.profile-address > svg { margin-left: auto; width: 16px; height: 16px; }
.profile-address b { font-weight: 600; }
.profile-sheet-body { padding: 34px 30px 28px; }
.profile-identity { display: flex; gap: 16px; align-items: center; }
.profile-avatar { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; background: var(--paper); border-radius: 50%; font-size: 30px; color: var(--ink-2); font-weight: 600; }
.home .profile-identity h2 { font-size: clamp(21px, 2.1vw, 29px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 800; }
.profile-identity p { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin-top: 5px; }
.profile-handle { font-size: 12px; color: var(--home-muted); }
.profile-sources { display: flex; flex-wrap: wrap; gap: 14px; padding-left: 80px; margin-top: 17px; font-size: 12px; }
.profile-sources span { text-decoration: underline; text-decoration-color: #cacaca; text-underline-offset: 3px; }
.profile-contents { display: flex; gap: 27px; font-size: 12px; border-bottom: 1px solid var(--line); margin-top: 32px; }
.profile-contents span { padding-bottom: 12px; }
.profile-contents span:first-child { color: var(--blue); border-bottom: 2px solid var(--blue); font-weight: 600; }
.profile-course { position: relative; padding: 24px 30px 10px 150px; }
.profile-course p { font-size: 13px; color: var(--home-muted); line-height: 1.55; }
.home .profile-course h3 { font-size: 20px; letter-spacing: -0.02em; margin: 8px 0; max-width: 25ch; line-height: 1.3; }
.profile-course-arrow { position: absolute; top: 46px; right: 0; }
.week-sheet { position: absolute; left: -55px; bottom: 1px; width: 226px; padding: 19px; border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: 0 18px 42px -18px rgb(0 0 0 / 28%); }
.week-sheet-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.week-sheet-head svg { width: 17px; height: 17px; color: var(--home-muted); }
.week-topic { margin-top: 12px; font: 700 15px/1.35 var(--font-brand); letter-spacing: -0.02em; }
.week-timing { display: flex; align-items: center; gap: 7px; color: var(--blue); font-size: 11px; margin-top: 14px; }
.week-timing > span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.week-files { display: flex; gap: 16px; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; font-size: 12px; }
.week-files span { display: flex; gap: 6px; align-items: center; }
.week-files svg { width: 15px; height: 15px; }
.profile-scene figcaption { position: absolute; bottom: 13px; right: 4px; font-size: 15px; }
.profile-scene figcaption a { color: var(--white); display: inline-flex; align-items: center; gap: 9px; text-decoration-color: #a5bcf6; padding-block: 8px; }
.profile-scene figcaption a:hover { text-decoration-color: var(--white); }
.profile-scene figcaption svg { width: 16px; height: 16px; }

.home .student-strip { padding: 34px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.student-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.home .student-strip h2 { font-size: 26px; letter-spacing: -0.03em; }
.student-strip p { font-size: 15px; margin-top: 8px; color: var(--ink-2); }
.home .join-row { gap: 0; }
.home .join-row input { min-height: 54px; font-size: 16px; padding: 0 17px; border-radius: 10px 0 0 10px; border-right: 0; }
.home .join-row input::placeholder { color: var(--home-muted); }
.home .join-row input[aria-invalid="true"] { border-color: #b42318; }
.home .join-row input:focus { position: relative; z-index: 1; }
.home .join-row button { justify-content: center; width: 58px; flex-shrink: 0; border-radius: 0 10px 10px 0; transition: background-color 160ms ease; }
.home .join-row .btn-ghost { background: var(--paper); border-color: var(--line); }
.home .join-row .btn-ghost:hover { background: #e9e9e9; }
.home .join-hint { font-size: 13px; color: #9d241b; max-width: 65ch; }

.home #page { padding: 74px 0 90px; border-top: 0; }
.page-index { display: flex; flex-wrap: wrap; gap: 12px 27px; margin-bottom: 26px; font-size: 14px; }
.page-index a { padding: 5px 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.page-index a:hover { color: var(--blue); border-color: var(--blue); }
.home #page .sec-head { max-width: 780px; margin-bottom: 64px; }
.home #page h2 { max-width: 22ch; font-size: clamp(36px, 4vw, 54px); letter-spacing: -0.04em; }
.home #page .lead { max-width: 65ch; font-size: 18px; margin-top: 8px; }
.home .gallery { gap: 76px; }
.home .gallery figure, .home .gallery figure:nth-child(even) { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 76px; align-items: center; }
.home .gallery figure img { order: 2; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.home .gallery figure:nth-child(even) { grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr); }
.home .gallery figure:nth-child(even) img { order: 0; }
.home .gallery figcaption { font-size: 16px; }
.home .gallery h3 { font-size: clamp(25px, 2.5vw, 33px); line-height: 1.15; letter-spacing: -0.035em; margin-bottom: 18px; }
.home .gallery figcaption p { color: var(--ink-2); line-height: 1.65; }
.home .gallery figcaption p + p { margin-top: 14px; }
.publication-preview { padding: 30px 34px; border: 1px solid var(--line); border-radius: 12px; }
.publication-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.publication-preview-head > p { font: 700 22px/1.2 var(--font-brand); letter-spacing: -0.02em; }
.publication-preview-head > span { color: var(--home-muted); font-size: 13px; }
.publication-preview article + article { margin-top: 22px; }
.publication-preview time { display: block; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--home-muted); margin-bottom: 9px; }
.publication-preview .publication-title { border-top: 1px solid var(--line); padding-top: 12px; font: 700 14px/1.5 var(--font-brand); letter-spacing: -0.015em; }
.publication-preview article > p:last-child { font-size: 12px; line-height: 1.5; color: var(--home-muted); margin-top: 6px; }

.home .home-guide { padding: 76px 0; }
.home #sharing { background: var(--paper); }
.home-guide-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 76px; }
.home .home-guide .sec-head { margin: 0; }
.home .home-guide h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.035em; max-width: 20ch; }
.home .home-guide h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 12px; }
.home .home-guide p { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 65ch; }
.home .home-guide p + p, .home .home-guide .sec-head > p { margin-top: 16px; }

.sharing-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 72px; margin-bottom: 44px; }
.home .sharing-heading h2 { max-width: 24ch; }
.sharing-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.sharing-visuals figure { margin: 0; min-width: 0; display: grid; grid-template-rows: 1fr auto; }
.sharing-preview, .sharing-access-preview { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sharing-address { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sharing-public { margin-left: auto; font-size: 12px; color: var(--blue); }
.sharing-identity { display: flex; align-items: center; gap: 16px; padding: 28px 28px 20px; }
.sharing-identity > svg { width: 56px; height: 56px; color: var(--blue); flex-shrink: 0; }
.sharing-identity strong { display: block; font: 700 22px/1.3 var(--font-brand); letter-spacing: -.025em; }
.sharing-identity span, .sharing-profile-items span { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 5px; }
.sharing-profile-items { list-style: none; padding: 0 28px 20px; margin: 0; }
.sharing-profile-items li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.sharing-profile-items svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; }
.sharing-profile-items strong { font-size: 16px; }
.sharing-access-preview { padding: 26px 28px; }
.sharing-matrix { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.sharing-matrix caption { text-align: left; font: 700 22px/1.3 var(--font-brand); letter-spacing: -.025em; padding-bottom: 22px; }
.sharing-matrix th, .sharing-matrix td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.sharing-matrix th:first-child { padding-left: 0; }
.sharing-matrix td:last-child, .sharing-matrix th:last-child { padding-right: 0; }
.sharing-matrix thead th { padding-top: 0; padding-bottom: 12px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.sharing-state { display: inline-flex; align-items: center; gap: 7px; }
.sharing-state::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.sharing-state.is-visible { color: var(--blue); }
.sharing-state.is-visible::before { background: currentColor; }
.sharing-state.is-hidden { color: var(--ink-2); }
.home .sharing-access-note { font-size: 14px; line-height: 1.55; margin-top: 20px; }
.sharing-visuals figcaption { padding-top: 26px; }
.sharing-visuals figcaption a { display: inline-block; padding-block: 12px; text-underline-offset: 4px; }
.home .sharing-visuals figcaption h3 { font-size: 21px; }
.semester-rows { list-style: none; padding: 0; margin: 0; }
.semester-rows > li { position: relative; padding: 0 0 34px 30px; border-left: 1px solid var(--line); }
.semester-rows > li:last-child { padding-bottom: 0; border-color: transparent; }
.semester-rows > li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.semester-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.semester-files span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.semester-files b { font-size: 11px; font-weight: 500; color: var(--blue); }
.semester-weeks { margin: 18px 0; border-block: 1px solid var(--line); }
.semester-weeks div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; font-size: 15px; }
.semester-weeks div + div { border-top: 1px solid var(--line); }
.semester-weeks span { color: var(--blue); }
.semester-weeks div:last-child span { color: var(--ink-2); }
.home .semester-rows p { font-size: 16px; }
.home #getting-started { background: var(--paper); }
.start-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; list-style: none; counter-reset: start-step; padding: 0; margin: 40px 0 0; }
.start-path > li { min-width: 0; counter-increment: start-step; }
.start-path h3::before { content: counter(start-step); display: block; color: var(--blue); font: 500 14px/1 var(--font-brand); margin-bottom: 18px; }
.start-path-visual { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 16px; margin-bottom: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; font-size: 15px; }
.start-path-visual img { width: 24px; height: 24px; flex-shrink: 0; }
.start-path-visual .file-type { font-size: 12px; color: var(--blue); border: 1px solid var(--line); padding: 8px 5px; border-radius: 4px; }
.home .start-path p { font-size: 16px; }
@media (max-width: 900px) {
  .sharing-heading { gap: 32px; }
  .sharing-visuals { gap: 28px; grid-template-columns: 1fr; }
  .start-path { gap: 24px; }
}
@media (max-width: 720px) {
  .sharing-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .sharing-visuals { gap: 36px; }
  .sharing-address { padding: 16px; gap: 8px; }
  .sharing-public { font-size: 11px; }
  .sharing-identity { padding: 24px 18px 18px; gap: 12px; }
  .sharing-identity > svg { width: 44px; height: 44px; }
  .sharing-profile-items { padding-inline: 18px; }
  .sharing-access-preview { padding: 24px 16px; }
  .sharing-matrix { font-size: 14px; }
  .sharing-matrix th, .sharing-matrix td { padding-inline: 6px; }
  .sharing-state { gap: 5px; }
  .semester-rows > li { padding-left: 22px; }
  .start-path { grid-template-columns: 1fr; gap: 30px; margin-top: 28px; }
  .start-path > li + li { padding-top: 30px; border-top: 1px solid var(--line); }
}

.home #app { background: var(--ink); color: var(--white); padding: 82px 0; border-top: 0; }
.home .app-split { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; }
.home .app-split .sec-head { margin-bottom: 0; gap: 20px; }
.home .app-split h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.035em; }
.home .app-split .lead { font-size: 17px; color: #e1e1e1; }
.home .app-split .muted { font-size: 14px; color: #bdbdbd; }
.home .app-split a:not(.btn) { color: var(--white); }
.home .app-split a:focus-visible { outline-color: var(--white); }
.home .app-shot { padding: 0; background: transparent; border: 0; border-radius: 0; }
.home .app-shot img { border: 0; border-radius: 9px; }
.home .app-shot figcaption { color: #bdbdbd; font-size: 13px; margin-top: 14px; }
.home .app-split .btn { font-size: 15px; min-height: 48px; }

.home #faq { padding: 90px 0; }
.home #faq > .wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 76px; }
.home #faq h2 { font-size: clamp(32px, 3.7vw, 48px); letter-spacing: -0.04em; }
.home .faq { border-top: 1px solid var(--line); }
.home .faq details { border-bottom: 1px solid var(--line); }
.home .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; list-style: none; cursor: pointer; font: 700 17px/1.4 var(--font-brand); letter-spacing: -0.02em; padding: 24px 0; }
.home .faq summary::-webkit-details-marker { display: none; }
.home .faq summary:hover { color: var(--blue); }
.home .faq summary svg { width: 18px; height: 18px; transform: rotate(90deg); }
.home .faq details[open] summary svg { transform: rotate(-90deg); }
.home .faq p { font-size: 16px; padding: 0 36px 26px 0; max-width: 70ch; line-height: 1.65; }
.home #start { padding: 0 0 80px; border: 0; }
.home .band { background: var(--blue); border-radius: 14px; padding: 50px 56px; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
.home .band h2 { font-size: 44px; letter-spacing: -0.04em; }
.home .band p { color: #e0e9ff; max-width: 48ch; font-size: 17px; }
.start-copy { display: flex; flex-direction: column; gap: 16px; }
.start-actions { flex-direction: column; align-items: stretch; }
.home .band .btn { justify-content: center; }
.home .band .btn-ghost { background: transparent; border: 0; font-size: 15px; min-height: 40px; text-decoration: underline; text-decoration-color: #a5bcf6; }
.home .band a:focus-visible { outline-color: var(--white); }
.home footer { padding: 42px 0; }
.home footer .brand { font-size: 19px; }
.home footer a { color: var(--home-muted); }
.home footer .tools-row { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
.home footer .legal { width: auto; }
.home footer .powered { width: auto; }
.home footer .lang { margin-left: auto; }

@media (prefers-reduced-motion: no-preference) {
  .profile-sheet { animation: sheet-settle 750ms cubic-bezier(.16,1,.3,1); }
  .week-sheet { animation: sheet-settle 900ms cubic-bezier(.16,1,.3,1); }
  @keyframes sheet-settle { from { transform: translateY(18px); } to { transform: translateY(0); } }
}
@media (max-width: 1150px) {
  .studio-hero-layout { gap: 42px; }
  .home .studio-hero h1 { font-size: clamp(50px, 5.7vw, 66px); }
  .studio-lead { font-size: 19px; }
  .profile-sheet-body { padding: 28px 22px; }
  .profile-avatar { width: 48px; height: 48px; font-size: 24px; }
  .profile-sources { padding-left: 0; gap: 14px; }
  .profile-contents { gap: 22px; }
  .week-sheet { left: -26px; width: 200px; }
  .profile-scene figcaption { font-size: 13px; max-width: 165px; bottom: 12px; }
  .home .gallery figure, .home .gallery figure:nth-child(even) { gap: 40px; }
  .home .app-split { gap: 40px; }
  .home-guide-layout { gap: 40px; }
  .home .band { padding: 40px; }
}
@media (max-width: 900px) {
  .home .studio-hero { padding: 54px 0; }
  .studio-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .studio-hero-copy { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 20px 34px; }
  .home .studio-hero h1 { font-size: clamp(56px, 8vw, 72px); grid-row: span 2; }
  .studio-lead { margin: 0; }
  .studio-hero-action { margin-top: 0; }
  .profile-scene { max-width: 620px; margin: 0 auto; padding-bottom: 72px; }
  .profile-scene figcaption { max-width: none; font-size: 14px; }
  .profile-sheet-body { padding: 30px; }
  .profile-identity h2 { font-size: 26px; }
  .profile-sources { padding-left: 64px; }
  .week-sheet { left: -16px; width: 214px; }
  .student-layout { gap: 32px; }
  .home .student-strip h2 { font-size: 23px; }
  .home .gallery figure, .home .gallery figure:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .home .gallery figure img, .home .gallery figure:nth-child(even) img { order: 2; }
  .publication-preview { order: 2; }
  .home .gallery figcaption { max-width: 65ch; }
  .home .app-split { grid-template-columns: 1fr; gap: 36px; }
  .home .app-split .sec-head { max-width: 66ch; }
  .home #faq > .wrap { grid-template-columns: 1fr; gap: 16px; }
  .home-guide-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home .home-guide h2 { max-width: 26ch; }
  .home .band { grid-template-columns: 1fr; gap: 28px; }
  .start-actions { flex-direction: row; align-items: center; }
}
@media (max-width: 720px) {
  .home .top .wrap { height: 68px; }
  .home .brand { font-size: 19px; gap: 9px; }
  .home .brand img { width: 27px; height: 27px; }
  .home .top .brand span { display: inline; }
  .home .nav-signin { margin-left: 0; font-size: 14px; gap: 5px; }
  .home .nav-signin svg { display: none; }
  .home-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 44px; flex-shrink: 0; background: transparent; color: var(--ink); border: 0; border-radius: 8px; cursor: pointer; margin-right: -10px; }
  .home-menu-toggle svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
  .home-menu-toggle:hover { background: var(--paper); }
  .home .menu-panel:not([hidden]) { display: flex; }
  .home .menu-panel a { font-size: 16px; padding-inline: 20px; }
  .studio-hero-copy { display: block; }
  .home .studio-hero { padding: 42px 0 36px; }
  .home .studio-hero h1 { font-size: clamp(46px, 11.55vw, 72px); line-height: 1.035; }
  .studio-lead { margin-top: 24px; max-width: 36ch; font-size: 18px; }
  .studio-hero-action { margin-top: 24px; }
  .home .studio-start { min-height: 54px; font-size: 17px; }
  .studio-hero-action p { font-size: 13px; }
  .profile-scene { margin-top: 2px; padding: 0 0 44px 12px; }
  .profile-address { font-size: 11px; padding: 13px 16px; gap: 9px; }
  .profile-sheet-body { padding: 25px 18px 20px; }
  .profile-identity { gap: 10px; }
  .profile-avatar { width: 43px; height: 43px; font-size: 22px; }
  .home .profile-identity h2 { font-size: 21px; }
  .profile-identity p { font-size: 11px; }
  .profile-handle { font-size: 11px; }
  .profile-sources { padding-left: 0; gap: 14px; font-size: 11px; }
  .profile-contents { margin-top: 24px; gap: 23px; font-size: 11px; }
  .profile-course { padding: 18px 24px 26px 0; }
  .home .profile-course h3 { font-size: 17px; }
  .profile-course p { font-size: 12px; }
  .week-sheet { position: relative; left: auto; bottom: auto; width: calc(100% - 16px); margin: -8px 0 0 -12px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; }
  .week-sheet-head { grid-column: 1 / -1; }
  .week-sheet .week-topic { font-size: 13px; margin: 0; }
  .week-timing { font-size: 11px; margin: 0; }
  .week-files { grid-column: 2; grid-row: 2 / span 2; flex-direction: column; justify-content: center; gap: 10px; border: 0; margin: 0; padding: 0; }
  .profile-scene figcaption { right: 0; bottom: 0; font-size: 13px; }
  .student-layout { grid-template-columns: 1fr; gap: 20px; }
  .home .student-strip { padding: 30px 0; }
  .home .student-strip h2 { font-size: 24px; }
  .home #page { padding: 44px 0 56px; }
  .page-index { gap: 24px; font-size: 13px; margin-bottom: 24px; }
  .home #page .sec-head { margin-bottom: 36px; }
  .home #page h2 { font-size: 36px; }
  .home #page .lead { font-size: 17px; }
  .home .gallery { gap: 44px; }
  .home .gallery h3 { font-size: 25px; margin-bottom: 14px; }
  .home .gallery figcaption p { font-size: 15px; }
  .publication-preview { padding: 24px 20px; }
  .home .home-guide { padding: 48px 0; }
  .home .home-guide h2 { font-size: 30px; }
  .home .home-guide h3 { font-size: 21px; }
  .home .home-guide p { font-size: 16px; }
  .home #app { padding: 48px 0; }
  .home .app-split h2 { font-size: 32px; }
  .home #faq { padding: 48px 0; }
  .home #faq .sec-head { margin-bottom: 8px; }
  .home .faq summary { font-size: 16px; padding-block: 22px; }
  .home .faq p { font-size: 15px; padding-right: 12px; }
  .home #start { padding-bottom: 44px; }
  .home .band { padding: 30px 24px; }
  .home .band h2 { font-size: 36px; }
  .home .band p { font-size: 16px; }
  .start-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home .band .btn-ghost { padding-left: 0; }
  .home footer .wrap { gap: 24px; }
  .home footer nav { gap: 8px 20px; }
  .home footer nav a { padding-block: 6px; }
  .home footer .lang { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.home) { scroll-behavior: auto; }
  .home .join-row button { transition: none; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .home .nav { gap: 18px; font-size: 14px; }
  .home .nav a { white-space: nowrap; }
  .home .nav-signin { margin-left: 0; }
}

.home .app-copy { display: flex; flex-direction: column; gap: 24px; }
.home .app-copy p { color: #e1e1e1; font-size: 19px; max-width: 48ch; }
.home .app-split figure { margin: 0; }
.home .app-split figure img { display: block; border-radius: 10px; }


/* A compact view of the Mac workflow, with staggered cards on larger screens. */
.mac-feature-board { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 20px 4px; min-width: 0; }
.mac-feature-card { display: flex; flex-direction: column; position: relative; gap: 14px; padding: 26px; border: 1px solid #393939; border-radius: 18px; background: #222; color: #fff; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease; }
.mac-feature-card:nth-child(even) { transform: translateY(24px); }
.mac-feature-card:hover { color: #fff; border-color: #809dff; transform: translateY(-4px); }
.mac-feature-card:nth-child(even):hover { transform: translateY(20px); }
.mac-feature-card:focus-visible { outline: 3px solid #93b4ff; outline-offset: 5px; }
.mac-feature-card > svg { width: 26px; height: 26px; color: #a7bcff; }
.home .mac-feature-card h3 { font-size: 20px; color: #fff; line-height: 1.25; }
.home .mac-feature-card p { font-size: 15px; line-height: 1.55; color: #c7c7c7; margin: 0; }
.mac-source-stack, .mac-formats { display: flex; gap: 8px; height: 66px; align-items: center; }
.mac-source-stack span { padding: 16px 10px; border: 1px solid #666; background: #303030; border-radius: 5px; font: 12px var(--font-mono); }
.mac-source-stack span:first-child { transform: rotate(-9deg); }
.mac-source-stack span:last-child { transform: rotate(8deg); }
.mac-outline { height: 66px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.mac-outline i { display: block; height: 7px; width: 90%; border-radius: 4px; background: #849ff4; }
.mac-outline i:nth-child(2) { width: 70%; background: #576994; }
.mac-outline i:nth-child(3) { width: 80%; background: #576994; }
.mac-note { height: 66px; padding: 10px 12px; border-left: 2px solid #a7bcff; background: #2c2c2c; font-size: 11px; color: #aaa; }
.mac-note span { display: block; color: #eee; font-size: 14px; margin-top: 5px; }
.mac-formats span { border: 1px solid #575757; padding: 8px 9px; border-radius: 6px; font: 12px var(--font-mono); }
@media(max-width:600px) { .mac-feature-board { gap: 12px; padding: 0; } .mac-feature-card { padding: 18px; } .mac-feature-card:nth-child(even), .mac-feature-card:hover, .mac-feature-card:nth-child(even):hover { transform: none; } .home .mac-feature-card h3 { font-size: 18px; } }
@media(max-width:380px) { .mac-feature-board { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { .mac-feature-card { transition: none; } }
