.work-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); align-items: center; gap: 72px; min-height: min(760px, calc(100svh - 104px)); padding-block: 88px; }
.work-hero-copy { max-width: 720px; }
.work-hero h1 { margin: 0; font-size: clamp(3.7rem, 6.5vw, 6rem); font-weight: 600; line-height: .98; letter-spacing: -.067em; }
.work-hero h1 span { color: var(--hero-accent-ink); }
.work-standfirst { max-width: 670px; margin-top: 30px; color: var(--text-secondary); font-size: clamp(1.125rem, 1.8vw, 1.35rem); line-height: 1.7; letter-spacing: -.018em; }

.file-path { display: grid; grid-template-columns: minmax(0, 1fr); justify-self: end; width: min(100%, 460px); padding: 32px; border: 1px solid var(--border); border-radius: 32px; background: var(--bg-secondary); box-shadow: 0 28px 64px -44px rgba(26, 34, 51, .48); }
.file-path-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 16px; padding: 20px; border: 1px solid var(--border-light); border-radius: 18px; background: var(--bg-primary); }
.file-path-card strong { align-self: end; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.02em; }
.file-path-card > span:last-child { align-self: start; color: var(--text-secondary); font-size: .875rem; }
.file-path-icon, .file-path-mark { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--hero-accent-ink); background: var(--hero-accent-soft); }
.file-path-icon svg { width: 25px; height: 25px; }
.file-path-mark { height: auto; aspect-ratio: 1; background: var(--hero-accent); -webkit-mask: url('../images/LSlogo.svg') center / 31px auto no-repeat; mask: url('../images/LSlogo.svg') center / 31px auto no-repeat; }
.file-path-arrow { display: grid; place-items: center; height: 34px; color: var(--hero-accent-ink); font-size: 1.25rem; transform: rotate(90deg); }

.work-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.principle { padding: 48px 40px 52px; }
.principle + .principle { border-left: 1px solid var(--border); }
.principle-number { color: var(--hero-accent-ink); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.principle h2 { margin: 18px 0 12px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.035em; }
.principle p { margin: 0; color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }

.format-section, .native-section { padding-block: 112px; }
.section-heading { max-width: 720px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading h2, .lesson-file-copy h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.055em; }
.section-heading > p:last-child, .lesson-file-copy > p { margin-top: 22px; color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.8; }
.format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.format-card { padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--bg-secondary); }
.format-card-featured { grid-column: 1 / -1; }
.format-card-heading { display: flex; align-items: center; gap: 16px; }
.format-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; color: var(--hero-accent-ink); background: var(--hero-accent-soft); }
.format-icon svg { width: 24px; height: 24px; }
.format-card h3 { margin: 0; font-size: 1.1875rem; font-weight: 650; letter-spacing: -.025em; }
.format-card > p { margin: 20px 0 0; color: var(--text-secondary); line-height: 1.75; }
.format-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0; }
.format-tags code { padding: 3px 7px; border: 1px solid var(--border); border-radius: 7px; color: var(--hero-accent-ink); background: var(--bg-primary); font: 650 .75rem/1.2 var(--font-mono, ui-monospace, monospace); }

.lesson-file-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: 76px; padding-block: 96px; border-block: 1px solid var(--border); }
.lesson-file-copy { max-width: 620px; }
.lesson-file-copy .eyebrow { margin-bottom: 18px; }
.honesty-note { padding-left: 18px; border-left: 3px solid var(--hero-accent); }
.honesty-note strong { color: var(--text-primary); font-weight: 650; }
.browser-file { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--bg-primary); box-shadow: 0 30px 64px -42px rgba(26, 34, 51, .52); transform: rotate(1.5deg); }
.browser-file-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.browser-file-bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.browser-file-bar > span:first-child { background: #ff9d8d; }
.browser-file-bar > span:nth-child(2) { background: #ffd27a; }
.browser-file-bar > span:nth-child(3) { background: #91d5a7; }
.browser-file-bar div { flex: 1; margin-left: 8px; padding: 5px 12px; border-radius: 7px; color: var(--text-tertiary); background: var(--bg-primary); font-size: .75rem; text-align: center; }
.browser-file-page { position: relative; min-height: 330px; overflow: hidden; padding: 48px; background: linear-gradient(135deg, #f8faff, #eef2ff); }
.browser-file-kicker { display: block; margin-bottom: 16px; color: #6373a2; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.browser-file-page > strong { position: relative; z-index: 2; display: block; max-width: 320px; color: #17213b; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.055em; }
.browser-file-curve { position: absolute; right: 9%; bottom: 74px; width: 52%; height: 42%; border-top: 4px solid #6b8cff; border-radius: 50% 50% 0 0; transform: rotate(-11deg); }
.browser-file-curve::before { content: ''; position: absolute; right: -4px; top: -8px; width: 13px; height: 13px; border-radius: 50%; background: #6b8cff; box-shadow: -92px -41px 0 #8ea5ff, -182px -20px 0 #b1c0ff; }
.browser-file-controls { position: absolute; right: 24px; bottom: 20px; display: flex; align-items: center; gap: 18px; color: #6373a2; font-size: .78rem; font-weight: 650; }
.browser-file-controls span:first-child, .browser-file-controls span:last-child { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #cfd6e9; border-radius: 9px; background: white; }

.native-section { padding-bottom: 96px; }
.native-heading { max-width: 780px; }
.native-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.native-card { padding: 30px; border: 1px solid var(--border); border-radius: 22px; }
.native-extension { width: fit-content; margin: 0 0 28px; padding: 6px 10px; border-radius: 8px; color: var(--hero-accent-ink); background: var(--hero-accent-soft); font: 700 .8rem/1.2 var(--font-mono, ui-monospace, monospace); }
.native-card h3 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 650; letter-spacing: -.03em; }
.native-card > p:last-child { margin: 0; color: var(--text-secondary); line-height: 1.75; }

.save-section { padding-block: 0 48px; }
.save-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; overflow: hidden; padding: clamp(44px, 6vw, 72px); border-radius: 32px; color: #f8faff; background: #17213b; box-shadow: 0 24px 56px -32px #17213b99; }
.save-copy { position: relative; z-index: 1; max-width: 740px; }
.save-copy .eyebrow { margin-bottom: 18px; color: #b7c2dd; }
.save-copy h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 550; line-height: 1.12; letter-spacing: -.052em; }
.save-copy h2 span { color: #9bb0ff; }
.save-copy > p:last-child { max-width: 650px; margin-top: 22px; color: #cad2e5; font-size: 1.0625rem; line-height: 1.75; }
.save-button { position: relative; z-index: 1; min-width: 176px; border-color: #91a9ff; background: #91a9ff; }
.save-button:hover { border-color: #a9baff; background: #a9baff; }
.save-mark { position: absolute; right: -40px; bottom: -116px; z-index: 0; width: 280px; aspect-ratio: 160.44432 / 181.39127; background: #b8c5ff; opacity: .07; -webkit-mask: url('../images/LSlogo.svg') center / contain no-repeat; mask: url('../images/LSlogo.svg') center / contain no-repeat; transform: rotate(8deg); }

@media (max-width: 1000px) {
  .work-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; min-height: auto; padding-block: 80px; }
  .file-path { justify-self: stretch; width: auto; }
  .lesson-file-section { grid-template-columns: minmax(0, 1fr); gap: 54px; }
  .lesson-file-copy { max-width: 760px; }
  .browser-file { width: min(100%, 760px); justify-self: center; }
  .native-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .work-principles { grid-template-columns: minmax(0, 1fr); }
  .principle { padding: 34px 8px 38px; }
  .principle + .principle { border-top: 1px solid var(--border); border-left: 0; }
  .format-grid { grid-template-columns: minmax(0, 1fr); }
  .format-card-featured { grid-column: auto; }
  .lesson-file-section { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .work-hero { gap: 40px; padding-block: 56px 64px; }
  .work-hero h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .work-standfirst { margin-top: 24px; font-size: 1.0625rem; }
  .file-path { padding: 18px; border-radius: 24px; }
  .file-path-card { padding: 16px; }
  .format-section, .native-section { padding-block: 72px; }
  .section-heading h2, .lesson-file-copy h2 { font-size: clamp(2rem, 9vw, 2.625rem); }
  .format-grid, .native-grid { margin-top: 36px; }
  .format-card, .native-card { padding: 24px; border-radius: 18px; }
  .lesson-file-section { gap: 40px; padding-block: 64px; }
  .browser-file-page { min-height: 280px; padding: 36px 28px; }
  .browser-file-page > strong { font-size: 2.25rem; }
  .save-section { padding-block: 0 28px; }
  .save-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 38px 24px 40px; border-radius: 24px; }
  .save-copy h2 { font-size: clamp(2rem, 9vw, 2.625rem); }
  .save-copy > p:last-child { margin-top: 18px; font-size: 1rem; }
  .save-button { width: 100%; box-sizing: border-box; }
  .save-mark { right: -78px; bottom: -82px; width: 220px; }
}

@media (max-width: 430px) {
  .file-path-card { grid-template-columns: 42px minmax(0, 1fr); column-gap: 13px; }
  .file-path-icon, .file-path-mark { width: 42px; }
  .file-path-mark { -webkit-mask-size: 27px auto; mask-size: 27px auto; }
  .format-card-heading { align-items: flex-start; }
  .browser-file-page { min-height: 250px; }
  .browser-file-curve { right: -2%; width: 60%; }
}

@media (forced-colors: active) {
  .file-path-mark, .save-mark { background: CanvasText; }
  .browser-file-curve { border-color: CanvasText; }
}

@media print {
  .site-header, .site-footer, .skip-link, .save-button { display: none; }
  .work-hero { min-height: auto; padding-block: 24px 48px; }
  .file-path, .browser-file, .format-card, .native-card { box-shadow: none; }
  .format-section, .native-section, .lesson-file-section { padding-block: 48px; }
  .save-section { padding: 0; }
  .save-panel { color: #111; background: transparent; border: 1px solid #aaa; box-shadow: none; }
  .save-copy .eyebrow, .save-copy h2 span, .save-copy > p:last-child { color: #333; }
}
