/* The selected folder study. Scoped so the existing chapter site is unchanged. */
.start-page { --folder-paper: #eedcbb; --folder-back: #e5cfa6; min-height: 100svh; }
.start-page .site-header { flex: none; }
/* Short windows keep Start's compact header so the form still fits in one screen. */
@media (max-height: 639px), (min-width: 701px) and (max-height: 700px) {
  .start-page .site-header { padding-block: clamp(6px, 1.2svh, 18px); }
  .start-page .site-header .brand { width: clamp(120px, min(26vw, 32svh), 380px); }
}
.start-page main { flex: 1 0 auto; }
.start-page [hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.start-content { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 1240px; margin: 0 auto; padding-block: clamp(8px, 1.5svh, 20px); }
/* One intrinsic composition: viewport space surrounds the group, never its
   internal gap. Hoji scales from the headline and shares its row; the teaser
   has its own row so its height cannot shift the illustration's center. */
.start-intro { --intro-size: clamp(28px, min(8.9vw, calc(16svh - 76px)), 128px); display: grid; grid-template-columns: max-content max-content; grid-template-rows: auto auto; justify-content: center; align-items: center; column-gap: clamp(12px, .35em, 40px); row-gap: 8px; margin-bottom: clamp(8px, 1.2svh, 16px); font-size: var(--intro-size); }
.start-copy { display: contents; }
.start-copy h1 { grid-column: 1; grid-row: 1; color: var(--red); margin: 0; font: 900 1em/.88 var(--editorial); letter-spacing: -.045em; }
.start-copy .agents-teaser { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: clamp(14px, min(1.8vw, 2.5svh), 24px); line-height: 1.3; }
.start-copy .agents-teaser strong { color: var(--cobalt); font-weight: 700; }
.secretary { grid-column: 2; grid-row: 1; position: relative; width: 2.2em; margin: 0; translate: 0 -.11em; pointer-events: none; }
.secretary-art { display: block; width: 100%; height: auto; overflow: visible; }
.typing-paw { transform-box: view-box; }
.typing-paw-left { transform-origin: 397px 702px; }
.typing-paw-right { transform-origin: 770px 816px; }
.typing-marks { opacity: 0; }
.secretary.is-typing .typing-paw-left { animation: paw-left .32s ease-in-out infinite alternate; }
.secretary.is-typing .typing-paw-right { animation: paw-right .32s ease-in-out -.32s infinite alternate; }
.secretary.is-typing .typing-marks { animation: typing-ticks .64s steps(2, end) infinite; }
@keyframes paw-left { to { transform: rotate(2deg) translateY(-4px); } }
@keyframes paw-right { to { transform: rotate(-2deg) translateY(-5px); } }
@keyframes typing-ticks { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.folder { position: relative; isolation: isolate; margin: 0 12px 0 0; }
.folder::before { content: ''; position: absolute; z-index: -1; top: 56px; right: -10px; bottom: 4px; left: 10px; border: 2px solid var(--ink); border-radius: 12px; background: var(--folder-back); transform: rotate(.5deg); }
.folder-choices { display: flex; align-items: stretch; border: 0; padding: 0; margin: 0 0 -2px 36px; position: relative; z-index: 2; width: 82%; max-width: 1030px; min-width: 0; }
.folder-tab { --tab-fill: var(--folder-paper); cursor: pointer; position: relative; display: flex; align-items: center; gap: 12px; min-height: clamp(56px, 8svh, 82px); width: 50%; padding: 10px 38px 10px 30px; color: var(--ink); line-height: 1.2; }
.folder-tab + .folder-tab { margin-left: -20px; padding-left: 48px; }
.folder-tab input { position: absolute; top: 30px; left: 40px; width: 24px; height: 24px; opacity: 0; margin: 0; }
.tab-shape { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tab-shape path { fill: var(--tab-fill); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.folder-tab:has(input:checked) { --tab-fill: var(--cobalt); color: #fff; z-index: 2; }
.folder-tab:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: -7px; border-radius: 16px 30px 0 0; }
.folder-tab:has(input:disabled) { cursor: default; }
.folder-tab:hover:not(:has(input:checked)):not(:has(input:disabled)) { --tab-fill: #f5e8ce; }
.choice-check { flex: 0 0 26px; height: 26px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.choice-check svg { width: 23px; height: 23px; fill: none; stroke: var(--cobalt); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.folder-tab:has(input:checked) .choice-check { background: #fff; border-color: #fff; }
.folder-tab:has(input:checked) .choice-check svg { visibility: visible; }
.tab-copy { display: flex; flex-direction: column; gap: 4px; }
.tab-copy strong { font-size: clamp(17px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.025em; }
.tab-copy > span { font-size: clamp(12px, 1.2vw, 16px); }
.tab-break { display: none; }
.folder-sheet { position: relative; border: 2px solid var(--ink); border-radius: 12px; background: var(--folder-paper); padding: clamp(12px, 2svh, 24px) clamp(14px, 2.5vw, 34px); }
.contact-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: clamp(8px, 1.2svh, 14px); }
.contact-field { min-width: 0; }
.contact-field label { display: block; margin-bottom: 4px; font-weight: 600; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.2; }
.contact-field input, .contact-field textarea { display: block; min-width: 0; width: 100%; color: var(--ink); background: #fbf6ed; border: 1.5px solid var(--ink); border-radius: 4px; font: 400 1rem/1.35 var(--reading); padding: 8px 10px; min-height: 44px; box-shadow: none; }
.contact-field textarea { height: clamp(60px, 10svh, 108px); min-height: 60px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.contact-field [aria-invalid="true"] { border-color: var(--red); }
.contact-field input:disabled, .contact-field textarea:disabled { opacity: .72; }
.contact-message { grid-column: 1 / -1; }
.contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.contact-actions p { margin: 0; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.3; }
.send-note { display: inline-flex; align-items: center; justify-content: center; gap: 16px; flex: 0 0 auto; min-width: 32%; min-height: clamp(44px, 5svh, 52px); padding: 8px 24px; border: 0; border-radius: 4px; background: var(--red); color: #fff; font: 600 clamp(16px, 1.5vw, 22px)/1.2 var(--reading); cursor: pointer; }
.send-note svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.send-note:hover:not(:disabled) { background: #bd241c; }
.send-note:disabled { cursor: not-allowed; opacity: .6; }
.send-note:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.contact-honeypot { display: none; }
.delivery-notice { margin: 6px 0 0; font-size: 12px; line-height: 1.3; }
.contact-status { margin: 14px 0 0; font-size: 16px; line-height: 1.45; color: var(--red); }
.contact-status:empty { display: none; }
.folder[aria-busy="true"] .contact-status { color: var(--ink); }
.contact-success { min-height: clamp(150px, 28svh, 290px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.contact-success h2 { margin: 18px 0 10px; font: 700 clamp(36px, 4.5vw, 64px)/1.05 var(--editorial); letter-spacing: -.03em; }
.contact-success p { margin: 0; font-size: 18px; }
.received-stamp { display: inline-block; border: 2px solid var(--cobalt); color: var(--cobalt); border-radius: 4px; padding: 3px 14px; text-transform: uppercase; font-size: 14px; font-weight: 600; letter-spacing: .12em; transform: rotate(-4deg); }
.start-rules { flex: none; display: grid; width: 100%; gap: clamp(5px, .8svh, 10px); }
.start-rules i { height: clamp(5px, .8svh, 10px); background: var(--ink); }
.start-page .site-footer { flex: none; border-top: 0; padding-block: clamp(6px, 1svh, 14px); }
.start-page .site-footer nav a { display: inline-flex; align-items: center; min-height: 24px; }

@media (min-width: 1601px) { .start-page .site-header, .start-page .site-footer { padding-inline: max(var(--gutter), calc((100vw - 1600px)/2 + var(--gutter))); } }
@media (max-width: 1000px) {
  .start-page .site-footer { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; font-size: 12px; }
  .start-page .site-footer .brand { grid-row: 1; justify-self: start; }
  .start-page .site-footer .brand img { width: 58px; }
  .start-page .site-footer nav { width: auto; flex-wrap: wrap; justify-content: flex-end; gap: 0 16px; }
  .start-page .site-footer nav.legal { margin: 0; }
  .start-page .site-footer nav.social { grid-column: 1 / -1; justify-self: center; margin: 0; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .folder-choices { width: 94%; margin-left: 14px; }
  .folder-tab { padding-inline: 24px 40px; gap: 10px; }
  .folder-tab + .folder-tab { padding-left: 32px; }
}
@media (max-width: 700px) and (max-height: 639px) {
  .start-page .site-header { flex-wrap: nowrap; gap: 8px; padding-block: 6px; }
  .start-page .site-header .brand { width: clamp(100px, 30vw, 160px); }
  .start-page .site-nav { gap: 10px; }
  .start-page .site-nav a { font-size: 14px; }
  .start-page .site-nav .btn { padding-inline: 12px; }
}
@media (max-width: 700px) {
  .start-content { padding-inline: 16px; }
  .start-intro { --intro-size: clamp(28px, min(9.8vw, 6svh), 54px); row-gap: 6px; }
  .start-copy .agents-teaser { font-size: 13px; }
  .folder { margin-right: 6px; }
  .folder::before { top: 56px; left: 7px; right: -6px; bottom: 3px; border-radius: 8px; }
  .folder-choices { margin-left: 0; width: calc(100% + 7px); max-width: none; }
  .folder-tab { width: calc(50% + 6px); min-height: 64px; padding: 8px 21px 8px 14px; gap: 8px; }
  .folder-tab + .folder-tab { margin-left: -8px; padding-left: 23px; padding-right: 15px; }
  .tab-copy strong { font-size: 16px; }
  .tab-copy > span { font-size: 12px; line-height: 1.22; }
  .tab-break { display: initial; }
  .choice-check { flex-basis: 23px; height: 23px; }
  .choice-check svg { width: 16px; height: 16px; }
  .folder-tab:not(:has(input:checked)) .choice-check { display: none; }
  .folder-sheet { padding-inline: 14px; border-radius: 8px; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .contact-field label { font-size: 16px; }
  .contact-actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 8px; }
  .contact-actions p { font-size: 12px; }
  .send-note { min-height: 44px; width: 100%; font-size: 16px; gap: 14px; }
  .delivery-notice { font-size: 12px; }
  .contact-status { font-size: 14px; }
  .contact-success h2 { font-size: 36px; }
  .contact-success p { font-size: 16px; }
}
@media (max-width: 359px) {
  .start-content { padding-inline: 14px; }
  .folder-tab { padding-left: 12px; padding-right: 16px; gap: 4px; }
  .folder-tab + .folder-tab { padding-left: 17px; padding-right: 7px; }
  .choice-check { flex-basis: 18px; height: 18px; }
  .choice-check svg { width: 14px; height: 14px; }
  .tab-copy strong { font-size: 16px; }
  .folder-sheet { padding-inline: 12px; }
  .start-page .site-footer nav { gap: 0 12px; }
}
/* Short phones pair the two single-line fields instead of shrinking controls. */
@media (max-width: 700px) and (max-height: 760px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
}
@media (max-width: 700px) and (max-height: 640px) {
  .start-content { padding-block: 4px; }
  .start-intro { --intro-size: clamp(28px, 8vw, 32px); }
  .folder-tab { min-height: 56px; padding-block: 6px; }
  .folder-sheet { padding-block: 8px; }
  .contact-field textarea { height: 60px; }
  .contact-actions { margin-top: 6px; }
  .delivery-notice { margin-top: 4px; }
  .start-page .site-footer { padding-block: 4px; }
}
/* Keep the same composition in short desktop windows; compact the stationery. */
@media (min-width: 701px) and (max-height: 760px) {
  .start-content { padding-block: 4px; }
  .folder-choices { width: 100%; margin-left: 0; }
  .folder-tab { padding-inline: 18px 30px; gap: 8px; }
  .folder-tab + .folder-tab { padding-left: 30px; }
  .tab-copy strong { font-size: 17px; }
  .tab-copy > span { font-size: 12px; }
  .choice-check { flex-basis: 22px; height: 22px; }
  .folder-tab:not(:has(input:checked)) .choice-check { display: none; }
  .folder-sheet { padding-inline: 18px; }
  .contact-actions p { max-width: 16em; }
}
/* Landscape phones use two columns within the folder. Labels stay visible,
   fields and Send retain 44px targets, and DOM/tab order stays unchanged. */
@media (min-width: 560px) and (max-height: 560px) {
  .start-page .site-header { padding-block: 4px; }
  .start-page .site-header .brand { width: 120px; }
  .start-page .site-nav a { font-size: 14px; }
  .start-page .site-nav .btn { min-height: 44px; padding-inline: 16px; }
  .start-content { display: flex; align-items: stretch; padding: 4px 20px; gap: 0; }
  .start-intro { --intro-size: 28px; row-gap: 3px; margin-bottom: 4px; }
  .start-copy h1 br { display: none; }
  .start-copy .agents-teaser { font-size: 12px; }
  .secretary { width: 1.3em; }
  .folder-choices { width: 100%; margin-left: 0; }
  .folder-tab { min-height: 48px; padding: 5px 24px 5px 16px; }
  .folder-tab + .folder-tab { padding-left: 28px; }
  .tab-copy { gap: 1px; }
  .tab-copy strong { font-size: 16px; }
  .tab-copy > span { font-size: 12px; }
  .tab-break { display: none; }
  .folder-tab:not(:has(input:checked)) .choice-check { display: none; }
  .choice-check { position: absolute; top: 8px; right: 30px; width: 18px; height: 18px; }
  .choice-check svg { width: 14px; height: 14px; }
  .folder-sheet { padding: 6px 12px; }
  #form-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; }
  .contact-fields, .contact-actions { display: contents; }
  .contact-field { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 6px; }
  .contact-field label { font-size: 14px; margin: 0; }
  .contact-field:nth-child(1) { grid-column: 1; grid-row: 1; }
  .contact-field:nth-child(2) { grid-column: 1; grid-row: 2; }
  .contact-message { grid-column: 2; grid-row: 1; }
  .contact-field textarea { height: 60px; }
  .contact-actions p { grid-column: 1; grid-row: 3; max-width: none; font-size: 12px; }
  .send-note { grid-column: 2; grid-row: 2; width: 100%; min-height: 44px; padding-block: 8px; font-size: 16px; }
  .delivery-notice { grid-column: 2; grid-row: 3; align-self: center; margin: 0; }
  .contact-success { min-height: 140px; }
  .contact-success h2 { font-size: 32px; margin-block: 8px; }
  .contact-status { margin-top: 6px; font-size: 13px; }
  .start-rules { gap: 4px; }
  .start-rules i { height: 4px; }
  .start-page .site-footer { display: flex; justify-content: center; gap: 16px; padding-block: 4px; font-size: 12px; }
  .start-page .site-footer > .brand { display: none; }
  .start-page .site-footer nav { width: auto; gap: 12px; margin: 0; }
}
@media (min-width: 560px) and (max-height: 350px) {
  .start-page .site-header { padding-block: 2px; }
  .start-content { padding-inline: 12px; }
  .start-intro { --intro-size: 24px; grid-template-rows: auto; column-gap: 16px; }
  .start-copy .agents-teaser { grid-column: 2; grid-row: 1; }
  .secretary { display: none; }
  .folder-tab { min-height: 44px; }
  .folder-sheet { padding-inline: 8px; }
  #form-fields { column-gap: 12px; }
  .start-rules { gap: 3px; }
  .start-rules i { height: 3px; }
  .start-page .site-footer { padding-block: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .secretary.is-typing .typing-paw, .secretary.is-typing .typing-marks { animation: none; }
  .typing-marks { opacity: 0; }
}

/* The heading's caps sit on the shared title line (styles.css), as on Learn and
   About: .07em is the cap inset at line-height .88 (.51em - .44em). Short
   windows keep the centred fit above. */
@media (min-height: 701px), (max-width: 700px) and (min-height: 640px) {
  .start-page .start-content { justify-content: flex-start; padding-top: 0; }
  .start-page .start-intro { margin-top: calc(var(--title-line) + var(--intro-size) * .07); }
}
