/* Shared shell for the pages under About. They wear the style picked on the home page (sub.js),
   and their nav is the home page's nav: same slots, same place, same fonts.
   Load order: core-themes.css, this file, then themes.css (as on the home page). */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { --base: #22306E; }
body { color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.display { font-family: var(--display); font-weight: var(--dw); text-transform: var(--case); letter-spacing: var(--track); font-style: var(--dstyle); }
.px { padding-left: 4rem; padding-right: 4rem; }

/* Nav: copied from index.html; themes.css pins the slot sizes. */
nav { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 1.5rem; position: relative; z-index: 60; }
.wordmark { font-size: 1.25rem; }
.nav-right { display: flex; align-items: center; gap: 1.75rem; }
.dropdown { position: relative; }
.dropdown-btn { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; }
.dropdown ul { position: absolute; right: 0; top: calc(100% + 0.75rem); list-style: none; background: var(--bg); border: 1px solid var(--rule); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.2); padding: 0.4rem 0; min-width: 12rem; z-index: 70; max-height: 70vh; overflow-y: auto; }
.dropdown ul[hidden] { display: none; }
.dropdown li > * { display: block; width: 100%; text-align: left; padding: 0.45rem 1rem; font-family: var(--body); font-size: 1rem; }
.dropdown li > *:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.dropdown li > *.on { color: var(--accent); }
.btn-solid { display: inline-block; background: var(--btn-bg); color: var(--btn-fg); border-radius: var(--radius); padding: 0.55rem 1.25rem; font-family: var(--display); font-weight: var(--dw); text-transform: var(--case); font-style: var(--dstyle); font-size: 0.875rem; }

/* The top card: the home page's top card, cut down to the nav and the page title. */
.top { position: relative; z-index: 5; background: var(--bg); border-radius: 0 0 32px 32px; overflow: hidden; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.5); }
.top > .deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-title { font-size: calc(3.5rem * var(--disp-scale, 1)); line-height: 1.1; color: var(--fg); padding-top: 2.5rem; padding-bottom: 3rem; }

/* Below the card the page sits on the textured base, so loose text is light, as on page 2.
   Cards switch back to the style's own colors. */
main { flex: 1; padding-top: 3.5rem; padding-bottom: 4rem; --fg: #F6F4EE; --soft: rgba(246, 244, 238, 0.75); --rule: rgba(246, 244, 238, 0.22); color: var(--fg); }
main > * { max-width: 64rem; }
main h2 { font-size: calc(2.25rem * var(--disp-scale, 1)); line-height: 1.15; margin: 3.5rem 0 1.5rem; }
main h2:first-child { margin-top: 0; }
main p { font-size: calc(1.15rem * var(--body-scale, 1)); line-height: 1.55; }
.todo { font-family: var(--body); font-size: 1.05rem; color: var(--soft); }

.card { --fg: var(--card-fg); --rule: var(--card-rule); background: var(--card-bg); color: var(--fg); font-family: var(--body);
        border-radius: var(--card-radius, 18px); box-shadow: var(--card-shadow, 0 18px 40px -18px rgba(0, 0, 0, 0.5)); }

/* Services: page 2's cards and add-ons. Each one opens in place: its deliverables slide down inside it. */
.cards, .extras, .timeline, .fine { max-width: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; align-items: start; }
.cards > .card { display: flex; flex-direction: column; padding: 2rem; }
.extra { font-family: var(--body); color: var(--fg); border-top: 1px solid var(--rule); padding-top: 1rem; display: flex; flex-direction: column; }
.toggle, .foot { display: block; width: 100%; text-align: left; cursor: pointer; color: inherit; }
.card .line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.15rem 1rem; margin-bottom: 1.1rem; }
.card .line .name, .card .line .price { font-family: var(--body); font-size: 1.38rem; line-height: 1.2; font-weight: 600; font-style: normal; text-transform: none; letter-spacing: normal; color: var(--fg); white-space: nowrap; }
/* Page-2 text scale is held to 1.06, as on the home page (w-groovy and w-chrome ran one to two lines longer). */
.card .p { display: block; font-size: calc(1.15rem * min(var(--body-scale, 1), 1.06)); line-height: 1.5; }
/* Same per-style fits as the home page cards. */
[data-theme="w-docket"] .card .line .name, [data-theme="w-docket"] .card .line .price { font-size: 1.32rem; }
[data-theme="delegate-slab"] .card .line .name, [data-theme="delegate-slab"] .card .line .price { font-size: 1.25rem; }
[data-theme="w-sorbet"] main { --body-scale: 0.98; }
.extra .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.1rem 1rem; margin-bottom: 0.3rem; }
.extra .name, .extra .price { font-family: var(--body); font-weight: 400; font-size: calc(1.2rem * var(--body-scale, 1)); white-space: nowrap; color: var(--fg); }
.extra .name { font-weight: 600; }
/* themes.css loads later and sets this size at 1.25rem * --body-scale; `main` outranks it to apply the home page's 1.125rem and 1.06 cap. */
main .extra .name, main .extra .price { font-size: calc(1.125rem * min(var(--body-scale, 1), 1.06)); }
.extra .p { display: block; font-size: calc(1.05rem * min(var(--body-scale, 1), 1.06)); line-height: 1.5; }
/* The drawer: zero height when closed, its content's height when open, animated. */
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.open > .drawer { grid-template-rows: 1fr; }
.drawer-in { overflow: hidden; min-height: 0; }
.drawer-in .lead { font-weight: 600; padding-top: 0.9rem; }
.drawer-in p { padding: 0.8rem 0; border-top: 1px solid var(--rule); font-size: calc(1.05rem * var(--body-scale, 1)); line-height: 1.45; }
.drawer-in .lead + p { border-top: none; padding-top: 0.6rem; }
.drawer-in > p:first-child { margin-top: 0.8rem; }
.drawer-in > p:first-child, .drawer-in .lead { border-top: none; }
.drawer-in b { display: block; font-weight: 600; font-size: calc(1.1rem * var(--body-scale, 1)); margin-bottom: 0.15rem; }
/* The foot names what is inside ("6 deliverables") and carries the +/–. It sits at the bottom of the card. */
.foot { padding: 1.1rem 0 0; display: flex; justify-content: space-between; align-items: baseline; font-size: calc(1.05rem * var(--body-scale, 1)); font-weight: 600; }
.cards > .card .foot { border-top: 1px solid var(--rule); }
.cards > .card .p { margin-bottom: 1.25rem; }
.extra .p { margin-bottom: 0.9rem; }
.extra .foot { padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.stacked .card .line, .stacked .extra .head, .stacked > .extra .head { display: block !important; } .stacked .card .price, .stacked .extra .price { display: block !important; width: fit-content; }
.pm::before { content: '+'; font-weight: 400; font-size: 1.3em; line-height: 1; }
.open .pm::before { content: '–'; }
.fine { text-align: right; margin-top: 1.5rem; font-size: 1.05rem; }

/* The first four weeks: a track with one stop per week, item names only. */
.timeline { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.5rem; border-top: 2px solid var(--fg); margin-top: 2rem; }
.timeline li { position: relative; padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.timeline li::before { content: ''; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--fg); }
.timeline .when { font-size: calc(1.25rem * var(--disp-scale, 1)); margin-bottom: 0.25rem; }
.timeline .what { font-size: calc(1.1rem * var(--body-scale, 1)); line-height: 1.4; }

/* Example work: mail on shelves (each row's pieces share one height), videos, samples, and a full-size viewer. */
.shelf, .videos, .samples, .hint { max-width: none; }
.shelf { display: flex; gap: 2rem; margin-bottom: 2rem; align-items: flex-start; }
.piece { display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.shelf .piece { flex: calc(var(--ar)) 1 0; min-width: 0; }
.piece img { display: block; width: 100%; aspect-ratio: var(--ar); object-fit: cover; border-radius: 6px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); transition: transform 0.2s; }
.piece:hover img { transform: translateY(-3px); }
.cap { font-family: var(--body); font-size: calc(1rem * var(--body-scale, 1)); line-height: 1.35; color: var(--fg); }
/* A single mail piece: front and back side by side at a fixed width. */
.shelf.one .piece { flex: none; width: 15rem; --ar: 4/9; }
.hint { font-size: calc(1rem * var(--body-scale, 1)); color: var(--soft); }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.videos figure { display: flex; flex-direction: column; gap: 0.6rem; }
.videos video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 6px; display: block; }
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; margin-bottom: 1.5rem; }
/* Each page sits whole on a white mat, so nothing is cropped and the three stay the same height. */
.samples .piece img { aspect-ratio: 1224/1584; object-fit: contain; background: #fff; padding: 0.9rem; }
.viewer { margin: auto; max-width: min(92vw, 70rem); max-height: 92vh; padding: 0; border: none; background: transparent; overflow-y: auto; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.82); }
.viewer .sheets { display: flex; flex-direction: column; gap: 1rem; }
.viewer img { display: block; max-width: 100%; margin: 0 auto; border-radius: 4px; }
.viewer .close { position: fixed; top: 1rem; right: 1.5rem; font-size: 2.5rem; line-height: 1; color: #fff; }

/* Contact: the form and next steps on the left, a card with email and mailing address on the right. */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; align-items: start; max-width: 62rem; }
.contact h2 { font-size: calc(2rem * var(--disp-scale, 1)); }
.contact #form { margin-bottom: 1rem; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline; font-size: calc(1.15rem * var(--body-scale, 1)); line-height: 1.45; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: var(--dw); font-size: 1.4rem; }
.reach { display: grid; gap: 1.5rem; }
.reach p { font-size: calc(1.1rem * var(--body-scale, 1)) !important; line-height: 1.5; }
.reach b { display: block; font-weight: 600; margin-bottom: 0.2rem; }

/* Plain cards (Team, Example work). */
.card.plain { padding: 1.75rem 2rem; }
/* Team: a large portrait on the base beside the name and bio, then the hiring note in a card. */
.profile { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; align-items: center; max-width: 62rem; }
.face { position: relative; width: 17rem; height: 17rem; border-radius: 50%; overflow: hidden; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center;
        box-shadow: 0 0 0 5px var(--fg), 0 28px 50px -18px rgba(0, 0, 0, 0.65); }
.face span { font-family: var(--display); font-weight: var(--dw); font-size: 4rem; }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.role { font-family: var(--body); font-size: calc(1.35rem * var(--body-scale, 1)) !important; margin: -0.6rem 0 1.25rem; }
.intro { font-size: calc(1.5rem * var(--body-scale, 1)) !important; line-height: 1.45 !important; max-width: 46rem; margin-bottom: 4rem; }
.profile .name { font-size: calc(3.25rem * var(--disp-scale, 1)); margin: 0 0 1rem; }
.profile p:not(.role) { max-width: 40rem; }
.hiring { margin-top: 4.5rem; max-width: 62rem; padding: 2rem 2.5rem; }
.hiring h2 { margin: 0 0 0.5rem; }
.mail { text-decoration: underline; text-underline-offset: 3px; }

/* Guides (guides/texas/): one long reference article in a card, so it reads on the style's paper color. */
.guide { padding: 2.75rem 3.25rem 2.5rem; max-width: 56rem; margin-top: 2.5rem; }
.guide h2 { font-size: calc(1.75rem * var(--disp-scale, 1)); margin: 2.75rem 0 0.9rem; }
.guide p, .guide ul { max-width: 44rem; margin-bottom: 1rem; }
.guide ul { padding-left: 1.2rem; font-size: calc(1.15rem * var(--body-scale, 1)); line-height: 1.55; }
.guide li { margin-bottom: 0.45rem; }
.guide a { text-decoration: underline; text-underline-offset: 3px; }
.guide table { width: 100%; border-collapse: collapse; margin: 0.25rem 0 1.5rem; font-size: calc(1.1rem * var(--body-scale, 1)); line-height: 1.45; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 0.7rem 0; border-top: 1px solid var(--rule); font-weight: 400; }
.guide th { font-weight: 600; width: 15rem; padding-right: 1.5rem; }
.guide thead th { border-top: none; padding-top: 0; }
.guide + .hiring { margin-top: 2rem; max-width: 56rem; }

form { display: flex; align-items: center; gap: 1.5rem; width: 100%; max-width: 36rem; }
input { flex: 1; min-width: 0; background: transparent; border: none; border-bottom: 1px solid var(--fg); color: var(--fg); font-family: var(--body); font-size: 1.125rem; padding: 0.5rem 0 0.25rem; outline: none; }
input::placeholder { color: var(--soft); }
.btn-3d { display: inline-flex; align-items: center; gap: 0.5rem; border: 2px solid var(--fg); box-shadow: 3px 3px 0 0 var(--fg); padding: 0.5rem 1.25rem; font-family: var(--display); font-weight: var(--dw); text-transform: var(--case); font-style: var(--dstyle); font-size: 1rem; white-space: nowrap; border-radius: var(--radius); transition: transform 0.1s, box-shadow 0.1s; }
.btn-3d:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--fg); }

footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(246, 244, 238, 0.22); font-size: 0.8rem; color: rgba(246, 244, 238, 0.75); }
footer .wordmark { color: #F6F4EE; font-size: 1.125rem; }
footer .links { display: flex; gap: 2rem; }
footer .links a:hover { color: #F6F4EE; }

@media (max-width: 860px) {
  .px { padding-left: 2rem; padding-right: 2rem; }
  .cards, .extras { grid-template-columns: minmax(0, 1fr); }
  .shelf:not(.one) { flex-direction: column; } .shelf.one { gap: 1rem; } .shelf.one .piece { width: calc(50% - 0.5rem) !important; } .shelf .piece { flex: none; width: 100%; } .shelf .piece[style*="4/9"] { width: 55%; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .profile { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .face { width: 12rem; height: 12rem; } .hiring { padding: 1.5rem 1.25rem; }
  .videos, .samples { grid-template-columns: minmax(0, 1fr); } .samples .piece { width: 80%; }
  .timeline { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .cards > .card, .card.plain { padding: 1.4rem 1.25rem; }
  .card .line { flex-wrap: wrap; row-gap: 0.2rem; }
  form { flex-direction: column; align-items: stretch; }
  .guide { padding: 1.5rem 1.25rem; } .guide th { width: 40%; padding-right: 0.9rem; }
}
main { --accent: #F6F4EE; }
