:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #192921;
  --muted: #4a5d52;
  --green: #24543a;
  --line: #d7dfd4;
  --lime: #d8f294;
  font: 100%/1.6 "Avenir Next", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-block: 2.75rem 4rem; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
a { color: var(--green); text-underline-offset: .22em; font-weight: 650; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #86420d; outline-offset: 4px; }
.skip { position: absolute; z-index: 4; left: 1rem; top: .75rem; background: white; padding: .65rem; }
.skip:not(:focus) { clip-path: inset(50%); }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .65rem; background: var(--green); color: var(--lime); }
.desktop { display: none; }
.mobile { position: relative; }
.mobile summary { cursor: pointer; border: 1px solid var(--line); border-radius: .65rem; font-weight: 700; padding: .55rem .75rem; }
.mobile nav { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 2; width: min(17rem, 82vw); padding: .45rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; box-shadow: 0 10px 24px #19292120; }
.mobile a { display: block; padding: .6rem .65rem; }
[aria-current="page"] { text-decoration-thickness: 2px; }
.bottom { background: #eaf0e7; border-top: 1px solid var(--line); }
.footer { align-items: flex-start; flex-direction: column; padding-block: 1.5rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 17ch; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.22rem; }
p { margin: .75rem 0 0; color: var(--muted); }
.lead { font-size: clamp(1.07rem, 2vw, 1.27rem); max-width: 52ch; margin-top: 1rem; }
.eyebrow { color: var(--green); font-size: .875rem; font-weight: 750; margin: 0 0 .65rem; }
.spread .eyebrow { margin: 0; }
.hero { display: grid; align-items: center; gap: 2rem; }
.wide { display: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.5rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .65rem 1rem; border: 1px solid var(--green); border-radius: .65rem; background: var(--green); color: #fff; font: inherit; font-weight: 750; text-align: center; text-decoration: none; }
a.button:hover { background: #183e2a; }
.button.secondary { background: transparent; color: var(--green); }
a.button.secondary:hover { background: #e4ede1; }
.button:disabled { background: #e7ece5; color: #4b5c51; border-color: #b6c4b8; cursor: not-allowed; }
.preview { background: #234535; padding: clamp(1rem, 4vw, 3rem); border-radius: 1.35rem; }
.case-sheet { background: #fff; border-radius: 1rem; padding: clamp(1rem, 3vw, 1.65rem); box-shadow: 0 12px 25px #0b241e50; }
.spread { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem; }
.pill { display: inline-block; padding: .2rem .65rem; border-radius: 2rem; font-size: .875rem; font-weight: 700; background: #edf0ec; color: #48594f; }
.pill.available { background: var(--lime); color: #2b4520; }
.case-sheet h2 { margin-top: .8rem; }
.funnel { display: grid; gap: .65rem; margin: 1.15rem 0; }
.funnel div { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted); }
.funnel i { height: .65rem; border-radius: .4rem; background: #519168; }
.funnel div:nth-child(2) i { width: 73%; }
.funnel div:nth-child(3) i { width: 43%; background: #a4ca52; }
.sheet-end, .project-end { border-top: 1px solid var(--line); padding-top: .65rem; color: var(--muted); }
.sheet-end a, .project-end a { display: inline-flex; align-items: center; min-height: 44px; }
.home-process { margin-top: 3rem; }
.home-process > h2 { margin-bottom: 1rem; }
.grid { display: grid; gap: .85rem; }
.card { min-width: 0; padding: 1.15rem; border: 1px solid var(--line); border-radius: .95rem; background: #fff; }
.project { display: flex; flex-direction: column; }
.project h2 { font-size: 1.32rem; margin-top: .85rem; }
.project p { flex: 1; margin-bottom: 1rem; }
.project:first-child { border-color: #83aa78; }
.intro { margin-bottom: 2rem; }
.case-layout { display: grid; align-items: start; gap: 1.5rem; }
.case-info { grid-row: 1; }
.case-info button { margin-top: 1rem; width: 100%; }
.note { font-size: .875rem; }
.prose { max-width: 70ch; }
.prose section + section, .prose p + h2 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.steps { display: grid; gap: 1rem; max-width: 50rem; padding-left: 1.6rem; }
.steps li { padding-left: .4rem; }
.steps li::marker { color: var(--green); font-weight: 800; }
.steps h2 { font-size: 1.35rem; }
.portfolio dt { font-weight: 750; margin-top: .85rem; }
.portfolio dd { margin: .2rem 0 0; color: var(--muted); }
.auth { max-width: 27rem; }
.auth fieldset { display: grid; gap: .9rem; padding: 0; margin: 0 0 1rem; border: 0; min-width: 0; }
.auth label { font-weight: 700; }
.auth input { display: block; width: 100%; padding: .65rem; margin-top: .25rem; border: 1px solid #aebdb0; border-radius: .5rem; background: #f3f5f2; font: inherit; }
.auth input::placeholder { color: #52635a; opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 42rem) {
  .wrap { width: min(100% - 4rem, 72rem); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { flex-direction: row; align-items: center; }
}
@media (min-width: 54rem) {
  main { padding-block: 4.5rem 5rem; }
  .mobile { display: none; }
  .desktop { display: flex; align-items: center; gap: 1.5rem; }
  .desktop a { display: inline-flex; align-items: center; min-height: 44px; }
  .desktop a:last-child { padding-inline: .85rem; border: 1px solid var(--line); border-radius: .65rem; }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; }
  .wide { display: initial; }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .case-info { grid-row: auto; }
}

.catalog-filters { display: grid; gap: .45rem; }
.catalog-filters[hidden], .project[hidden] { display: none; }
.catalog-filters label { font-weight: 700; }
.catalog-filters select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .5rem 2rem .5rem .75rem;
  appearance: none;
  border: 1px solid #aebdb0;
  border-radius: .65rem;
  color: var(--ink);
  background: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: right 1.05rem center, right .75rem center;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
  font: inherit;
}
.catalog-filters button { justify-self: start; margin-top: .35rem; cursor: pointer; }
.catalog-filters button:hover { background: #e4ede1; }
.catalog-status:not(:empty) { margin: .85rem 0; }
.project .project-skills { flex: 0; color: var(--green); font-size: .875rem; font-weight: 700; margin: 0 0 .75rem; }
@media (min-width: 42rem) {
  .catalog-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: .85rem; }
  .catalog-filters label { grid-row: 1; }
  .catalog-filters select, .catalog-filters button { grid-row: 2; }
  .catalog-filters button { margin: 0; }
}

.workspace-intro { margin-top: 1.15rem; margin-bottom: 1.3rem; }
.demo-banner { padding: .8rem 1rem; margin: 0 0 1.1rem; background: #eaf0e7; border-radius: .65rem; }
.workspace-grid, .workspace-main, .workspace-aside { display: grid; align-content: start; gap: 1rem; min-width: 0; }
.workspace-aside { grid-row: 1; }
.workspace-grid h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.mail-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem .85rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.mail-meta dt { font-weight: 750; }
.mail-meta dd { margin: 0; color: var(--muted); }
.attachments { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.attachments ul, .case-stages { padding: 0; list-style: none; }
.attachments li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.attachments li p { margin: .2rem 0 0; }
.attachments a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.case-stages { display: grid; gap: .25rem; }
.case-stages li { padding: .32rem .6rem; color: var(--muted); border-radius: .4rem; }
.case-stages [aria-current] { background: var(--lime); color: var(--ink); font-weight: 750; }
.workspace-grid progress { display: block; width: 100%; height: 1rem; margin-top: .35rem; accent-color: var(--green); }
.workspace-jump { margin-top: .8rem; }
.deliverables { padding-left: 1.25rem; }
.deliverables li + li { margin-top: .55rem; }
.submission fieldset { display: grid; border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
.submission label { font-weight: 750; }
.submission label span { color: var(--muted); font-weight: 550; }
.submission input { width: 100%; min-width: 0; margin: .35rem 0 .65rem; padding: .45rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--ink); font: inherit; }
.submission input::file-selector-button { padding: .35rem; font: inherit; cursor: pointer; }
.submission input[aria-invalid="true"] { border-color: #9c2c22; }
.field-error { color: #962e25; margin: 0 0 .75rem; }
.field-error:empty { display: none; }
.submission .button { justify-self: start; margin-top: .35rem; }
.submission > .button { margin-top: .8rem; }
.workspace-grid [hidden] { display: none; }
.submission-success { margin-top: 1rem; padding: .8rem; border-radius: .55rem; background: #eaf0e7; }
.submission-success li, dialog li { overflow-wrap: anywhere; }
.demo-review { margin-top: 1rem; }
.demo-review summary { cursor: pointer; font-weight: 750; }
dialog { width: min(100% - 2rem, 32rem); max-height: calc(100dvh - 2rem); padding: 1.25rem; border: 1px solid var(--line); border-radius: .85rem; color: var(--ink); }
dialog::backdrop { background: #162d24a8; }
@media (min-width: 54rem) {
  .workspace-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .workspace-aside { grid-row: auto; }
}

.guest-panel, .guest-account { margin-block: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: .65rem; }
.guest-panel > p:first-child, .guest-account > p:first-child { margin-top: 0; }
.guest-resume { margin-top: .9rem; }
.guest-resume input { display: block; max-width: 24rem; }
.guest-account code, #guest-id, #feedback-items { overflow-wrap: anywhere; }
#submitted-files .button { min-height: 44px; margin-inline-start: .5rem; }
#file-result:empty { display: none; }

.admin-panel { max-width: 46rem; }
.admin-panel [hidden] { display: none; }
.admin-panel input { display: block; max-width: 28rem; }
.admin-panel li { overflow-wrap: anywhere; }
.admin-panel textarea { width: 100%; padding: .65rem; border: 1px solid var(--line); border-radius: .55rem; font: inherit; }
.account-mock { margin-top: 1rem; }
