/* Design and code (c) 2026 David Alfonso Castro. All rights reserved.⁠​‌​​​‌​​​‌‌​​​​‌​‌‌‌​‌‌​​‌‌​‌​​‌​‌‌​​‌​​​​‌​​​​​​‌​​​​​‌​‌‌​‌‌​​​‌‌​​‌‌​​‌‌​‌‌‌‌​‌‌​‌‌‌​​‌‌‌​​‌‌​‌‌​‌‌‌‌​​‌​​​​​​‌​​​​‌‌​‌‌​​​​‌​‌‌‌​​‌‌​‌‌‌​‌​​​‌‌‌​​‌​​‌‌​‌‌‌‌⁠ */
/* Inner pages: the pencil line, the gabled window, and each page's one idea
   (HOME letters, the staircase, the cutaway house). */
.page { --ink-soft: #38456A; }

/* ---------- pencil ---------- */
/* Class selectors only: drawings reused through <use> are matched without their ancestors. */
.pl, .pl2, .ph { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.pl { stroke-width: 1.5; }
.pl2 { stroke-width: .9; opacity: .5; }
.ph { stroke-width: .7; opacity: .45; }
.prop-sheet { position: absolute; }
/* Hand-drawn dividers. The same stroke is stretched to different lengths so no two lines match. */
.page .section-head { padding-top: 34px; background: var(--pencil-rule) left top / 100% 6px no-repeat; }
.page .split > div { border-top: 0; padding-top: 28px; background: var(--pencil-rule) left top / 130% 6px no-repeat; }
.page .split > div + div { background-position: right top; background-size: 170% 6px; }
.page .facts > div { border: 0; background: var(--pencil-rule) left top / 100% 6px no-repeat; }
.page .facts > div:nth-child(2n) { background-size: 160% 6px; }
.page .facts > div:nth-child(3n) { background-size: 220% 6px; background-position: right top; }
.page .incubation-body { border-top: 0; background: var(--pencil-rule) left top / 100% 6px no-repeat; }
.page .facts dd, .page .event-copy p:last-child, .page .incubation-body p:last-child { font-size: 17px; }

/* ---------- page opening ---------- */
.page-mark { display: block; width: 92px; height: 92px; margin: 0 0 20px -6px; color: var(--ink); }
.window { position: relative; filter: drop-shadow(8px 8px 0 var(--orange)); margin-bottom: 12px; }
.window img { width: 100%; aspect-ratio: 1 / .86; object-fit: cover;
  clip-path: polygon(0 26%, 50% 0, 100% 26%, 100% 100%, 0 100%); }           /* a gable, like the roof */
.window::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -12px; height: 12px; background: var(--ink); }   /* the sill */

/* ---------- About: HOME ---------- */
.home-word { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.home-letter { display: block; font: 800 clamp(120px, 15vw, 208px)/.8 var(--font-display); color: var(--blue);
  text-shadow: 7px 7px 0 var(--orange); margin: 0 0 30px -4px; }
.home-word h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.home-word p { margin: 0; color: var(--ink-soft); }
.building-card { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: center; text-decoration: none; color: var(--ink);
  padding-top: 40px; background: var(--pencil-rule) left top / 100% 6px no-repeat; }
.building-thumb { width: 100%; height: auto; transition: transform .25s; }
.building-card:hover .building-thumb { transform: translateY(-4px); }
.building-card h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.building-card h2 { margin-bottom: 18px; }

/* ---------- Events: one photo each, and the staircase ---------- */
.event-photos { display: block; }
.event-photos > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; clip-path: polygon(0 16%, 12% 0, 100% 0, 100% 100%, 0 100%); }
.more-photos summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--blue); list-style: none; }
.more-photos summary::-webkit-details-marker { display: none; }
.more-photos summary::after { content: " +"; }
.more-photos[open] summary::after { content: " \2212"; }
.more-photos > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.stairs { --rise: 34px; list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr 1.75fr 1fr 1fr; align-items: start; }
.stairs li { counter-increment: step; position: relative; margin-top: calc((7 - var(--n)) * var(--rise)); padding: 20px 14px 0 16px;
  background: var(--pencil-rule) left top / 100% 6px no-repeat; }                                  /* the tread */
.stairs li:nth-child(2n) { background-size: 180% 6px; }
.stairs li + li::after { content: ""; position: absolute; left: 0; top: 3px; width: 2px; height: var(--rise); background: var(--ink); border-radius: 2px; }   /* the riser */
.stairs li::before { content: counter(step); display: block; font: 800 44px/1 var(--font-display); color: var(--blue); margin-bottom: 12px; }
.stairs h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.stairs p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-form select { font: 400 17px/1.4 var(--font-body); color: var(--ink); background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px var(--ink);
  border-radius: 3px; padding: 13px 14px; width: 100%; }

/* ---------- Events: the Incubation Track, given the room it deserves ---------- */
.incubation { background: var(--night); color: #fff; margin-bottom: 104px; scroll-margin-top: var(--nav-h); }
.incubation-inner { max-width: var(--max); margin: 0 auto; padding: 92px var(--gutter); display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.incubation .kicker { color: #FFD9B5; margin: 0 0 16px; }
.incubation h2 { font-size: clamp(42px, 6vw, 78px); font-weight: 800; }
.incubation .statement { margin: 22px 0 16px; color: #fff; }
.incubation-copy > p:not(.kicker):not(.statement) { margin: 0; color: #C9D3EC; max-width: 52ch; }
.incubation-points { list-style: none; margin: 26px 0 32px; padding: 0; }
.incubation-points li { padding: 14px 0 14px 30px; position: relative; font: 600 17px/1.4 var(--font-body); background: var(--pencil-rule-light) left top / 140% 6px no-repeat; }
.incubation-points li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 12px; background: var(--orange); transform: rotate(45deg); }
.incubation .btn { background: #fff; color: var(--blue); }
.incubation-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; filter: drop-shadow(8px 8px 0 var(--orange)); }
.incubation-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.incubation-photos img:first-child { grid-column: 1 / -1; clip-path: polygon(0 16%, 12% 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Role Directory: the org chart, in the site's own pencil ---------- */
.orgchart { --tilt: 255px 14px 225px 14px / 14px 225px 14px 255px; }               /* a box drawn by hand: no two corners alike */
.orgchart a { text-decoration: none; }
/* The CEO sits under a gable, like every window on the site. */
.org-ceo { display: block; width: min(340px, 100%); margin: 0 auto; filter: drop-shadow(7px 7px 0 var(--orange)); transition: transform .18s; }
.org-ceo span { display: block; padding: 46px 20px 20px; background: var(--ink); color: #fff; text-align: center;
  font: 800 21px/1.15 var(--font-display); letter-spacing: -0.01em; clip-path: polygon(0 34%, 50% 0, 100% 34%, 100% 100%, 0 100%); }
.org-ceo:hover { transform: translate(-2px, -2px); }
.org-tree { display: block; width: 100%; height: 56px; margin-top: 7px; color: var(--ink); }
.org-tree path { vector-effect: non-scaling-stroke; }
.org-depts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.org-dept { display: grid; gap: 10px; align-content: start; }
.org-dept-head { display: grid; justify-items: center; text-align: center; color: var(--ink); padding-bottom: 6px; }
.org-dept-head .prop { width: 78px; margin-bottom: 4px; transition: transform .2s; }
.org-dept-head:hover .prop { transform: translateY(-4px) rotate(-3deg); }
.org-dept-name { font: 800 20px/1.1 var(--font-display); letter-spacing: -0.015em; }
.org-dept-full { margin-top: 5px; min-height: 2.6em; font: 500 12.5px/1.3 var(--font-body); color: var(--ink-soft); }
.org-chief, .org-head, .org-lead { display: block; padding: 12px 12px; font: 700 14px/1.25 var(--font-display); transition: transform .15s, box-shadow .15s; }
.org-chief { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--orange); }
.org-head { background: var(--blue); color: #fff; box-shadow: 4px 4px 0 var(--peach); }
.org-chief:hover, .org-head:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.org-leads { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.org-lead { background: #fff; color: var(--ink); border: 1.6px solid var(--ink); border-radius: var(--tilt); padding: 11px 13px; font-weight: 600; font-family: var(--font-body); font-size: 14.5px; }
.org-leads li:nth-child(2n) .org-lead { border-radius: 14px 225px 14px 255px / 255px 14px 225px 14px; }
.org-lead:hover { transform: translate(-1px, -2px) rotate(-.6deg); box-shadow: 3px 3px 0 var(--orange); }
.org-legend { margin: 34px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; font-size: 13.5px; color: var(--ink-soft); }
.org-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--ink); }
.org-legend .k-head::before { background: var(--blue); }
.org-legend .k-lead::before { background: #fff; border: 1.6px solid var(--ink); border-radius: 4px 9px 4px 9px; }
/* The members are the ground the whole house stands on. */
.org-ground { margin: 44px 0 30px; text-align: center; background: var(--pencil-rule) center / 100% 6px no-repeat; }
.org-ground a { display: inline-block; padding: 6px 20px; background: var(--paper); color: var(--ink); font: 800 22px/1.1 var(--font-display); letter-spacing: -0.015em; }
.org-tracks .track { display: block; color: var(--ink); transition: transform .18s; }
.org-tracks .track:hover { transform: translate(-2px, -2px); }

/* ---------- Role Directory: a small house, cut open, used as the menu ---------- */
.directory { scroll-margin-top: calc(var(--nav-h) + 16px); max-width: var(--max); margin: 0 auto 110px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 64px; align-items: start; }
.house { position: sticky; top: calc(var(--nav-h) + 16px); --dark: #050912; --storey: 72px; --side: 12px; --deck: 13px; }
.building-roof { display: block; width: 100%; height: 86px; color: var(--ink); margin-bottom: -3px; }
.building-roof path { vector-effect: non-scaling-stroke; }
/* The outer walls are sliced through, so their cut face is hatched. */
.house-body { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 5px; padding: 0 10px 10px; border-top: 10px solid var(--ink);
  background: repeating-linear-gradient(45deg, #24386F 0 2px, var(--ink) 2px 7px); box-shadow: 8px 8px 0 rgba(22, 39, 79, .16); }

/* the lift */
.shaft { position: relative; overflow: hidden; background:
    linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .14) 5px 7px, transparent 7px calc(100% - 7px), rgba(255, 255, 255, .14) calc(100% - 7px) calc(100% - 5px), transparent 0),
    linear-gradient(90deg, transparent 0 calc(50% - 4px), rgba(255, 255, 255, .22) calc(50% - 4px) calc(50% - 3px), transparent calc(50% - 3px) calc(50% + 3px), rgba(255, 255, 255, .22) calc(50% + 3px) calc(50% + 4px), transparent 0),
    var(--dark); }
.car { position: absolute; left: 2px; right: 2px; top: 0; height: var(--storey); padding: 3px; display: grid; grid-template-rows: auto 1fr; gap: 3px;
  background: #1B2D5E; border: 2px solid #42578F; border-radius: 5px; box-shadow: 0 6px 10px rgba(0, 0, 0, .5);
  transition: transform .6s cubic-bezier(.5, 0, .3, 1); }
.house.instant .car { transition: none; }
.car b { display: grid; place-items: center; height: 22px; border-radius: 3px; background: #050B1C; color: #F6B77F; font: 800 14px/1 var(--font-display); }
.car-doors { position: relative; overflow: hidden; border-radius: 2px; background: #F3E2C8; box-shadow: inset 0 0 0 1.5px #050B1C; }
.car-doors i { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #42578F, #5A72AE 50%, #42578F); transition: transform .22s ease-in-out; }
.car-doors i:nth-of-type(1) { left: 0; transform: translateX(-88%); box-shadow: 1px 0 0 #050B1C; }
.car-doors i:nth-of-type(2) { right: 0; transform: translateX(88%); box-shadow: -1px 0 0 #050B1C; }
.house.moving .car-doors i { transform: none; }                              /* doors shut while it travels */

/* floors. Each is a room seen slightly from the right: a side wall, a floor, and darkness until its light is on. */
.house-floors { display: grid; gap: 5px; background: var(--blue); }           /* the blue between storeys is the slab */
.storey { --paper-wall: none; --pat: rgba(255, 255, 255, .05); --side-c: #020409; --deck-c: #111A33;
  position: relative; height: var(--storey); display: flex; align-items: center; gap: 12px;
  padding: 0 12px var(--deck) calc(var(--side) + 12px); color: #fff; text-decoration: none; cursor: pointer;
  background:
    linear-gradient(to bottom right, var(--side-c) 50%, var(--deck-c) 50%) left bottom / var(--side) var(--deck) no-repeat,
    linear-gradient(var(--side-c), var(--side-c)) left top / var(--side) calc(100% - var(--deck)) no-repeat,
    linear-gradient(var(--deck-c), var(--deck-c)) left bottom / 100% var(--deck) no-repeat,
    var(--paper-wall), var(--dark);
  box-shadow: inset 0 0 30px 4px #000; transition: background-color .25s, color .25s; }
.storey-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 12.5px/1 var(--font-display); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.storey-name { font: 700 18px/1.1 var(--font-display); letter-spacing: -0.01em; }
.scene { position: absolute; right: 8px; bottom: 4px; display: flex; align-items: flex-end; gap: 4px; pointer-events: none;
  color: rgba(255, 255, 255, .2); transition: color .25s; }
.scene .prop { flex: none; width: 46px; }
.scene .prop-main { width: 62px; }
.scene .prop-wall { align-self: flex-start; }
.storey:hover { background-color: #0C1430; }
.storey:hover .scene { color: rgba(255, 255, 255, .5); }
.storey[aria-selected="true"] { --pat: rgba(30, 73, 160, .08); --side-c: #E7DFD0; --deck-c: #DDBF9E; color: var(--ink);
  background-color: var(--paper); box-shadow: inset 0 14px 16px -14px rgba(22, 39, 79, .35), 0 0 22px rgba(255, 226, 180, .35); cursor: default; }
.storey[aria-selected="true"] .storey-no { background: var(--orange); color: var(--night); box-shadow: none; }
.storey[aria-selected="true"] .scene { color: var(--ink); }
.wall-stripes { --paper-wall: repeating-linear-gradient(90deg, var(--pat) 0 10px, transparent 10px 26px); }
.wall-dots { --paper-wall: radial-gradient(var(--pat) 1.6px, transparent 2px) 0 0 / 18px 18px; }
.wall-grid { --paper-wall: linear-gradient(var(--pat) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--pat) 1px, transparent 1px) 0 0 / 22px 22px; }
.wall-diagonal { --paper-wall: repeating-linear-gradient(45deg, var(--pat) 0 2px, transparent 2px 14px); }
.wall-lines { --paper-wall: repeating-linear-gradient(0deg, var(--pat) 0 1px, transparent 1px 12px); }
.wall-cross { --paper-wall: repeating-linear-gradient(45deg, var(--pat) 0 1.5px, transparent 1.5px 16px), repeating-linear-gradient(-45deg, var(--pat) 0 1.5px, transparent 1.5px 16px); }
.wall-dots[aria-selected="true"] { --pat: rgba(30, 73, 160, .17); }

/* the lit floor's roles, as plain text */
.panels { min-width: 0; }
.dept-panel { scroll-margin-top: calc(var(--nav-h) + 16px); }
.dept-panel + .dept-panel { margin-top: 96px; }                                /* only seen without script, when all are listed */
.dept-panel[hidden] { display: none; }
.dept-panel > .kicker { margin: 0 0 12px; }
.dept-panel > h2 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 800; }
.dept-what { margin: 18px 0 36px; max-width: 62ch; font-size: 19px; color: var(--ink-soft); }
.role { padding: 30px 0 26px; background: var(--pencil-rule) left top / 100% 6px no-repeat; }
.role:nth-of-type(2n) { background-size: 170% 6px; }
.role-chief { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 26px; align-items: start; }
.role-chief img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--orange); }
.role-tier { margin: 0 0 10px; font: 600 12px/1.3 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--orange-text); }
.role h3 { font-size: 27px; font-weight: 800; }
.role h3 span { font: 600 14px/1 var(--font-body); letter-spacing: .06em; color: var(--ink-soft); margin-left: 6px; }
.role p:not(.role-tier) { margin: 10px 0 0; max-width: 66ch; color: var(--ink-soft); }
.leads { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px 34px; margin-top: 6px; }
.lead h4 { margin: 0; font: 700 20px/1.25 var(--font-display); }
.lead p { margin-top: 8px !important; }
.need .skills { margin: 0; max-width: 460px; }
.dept-more { background: var(--pencil-rule) left top / 140% 6px no-repeat; }
.dept-more summary { cursor: pointer; padding: 24px 0 20px; font-weight: 600; color: var(--blue); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.dept-more summary::-webkit-details-marker { display: none; }
.dept-more summary::after { content: "+"; font: 700 22px/1 var(--font-display); }
.dept-more[open] summary::after { content: "\2212"; }
.dept-more .dept-sub:first-of-type { margin-top: 0; }
.dept-panel .tiers li { border-top: 0; padding-top: 22px; background: var(--pencil-rule) left top / 150% 6px no-repeat; }
.floor-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; background: var(--pencil-rule) right top / 120% 6px no-repeat; }
.floor-nav button { font: 600 15.5px/1.2 var(--font-body); color: var(--blue); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.floor-nav button:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .home-word { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
  .building-card { grid-template-columns: 180px 1fr; gap: 32px; }
  .stairs { grid-template-columns: 1fr; }
  .stairs li { margin-top: 0; margin-left: calc((var(--n) - 1) * 12px); padding: 20px 0 26px 14px; }
  .stairs li + li::after { top: -26px; height: 29px; }
  .directory { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .incubation-inner { grid-template-columns: 1fr; gap: 44px; padding: 64px var(--gutter); }
  .org-tree { display: none; }
  .org-depts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 18px; margin-top: 40px; }
  .house { position: static; width: 100%; max-width: 460px; margin: 0 auto; --storey: 52px; --side: 9px; --deck: 10px; }   /* phones: the house sits above the text, never over it */
  .building-roof { height: clamp(56px, 17vw, 86px); }
  .car b { height: 18px; font-size: 12.5px; }
  .storey-name { font-size: 17px; }
  .scene .prop { display: none; }
  .scene .prop-main { display: block; width: 48px; }
}
@media (max-width: 720px) {
  .page-mark { width: 72px; height: 72px; }
  .page-hero > * { min-width: 0; }
  .page-hero h1 { font-size: clamp(28px, 9.3vw, 44px); overflow-wrap: break-word; }
  .home-word { grid-template-columns: 1fr; }
  .home-word li { display: grid; grid-template-columns: 104px 1fr; gap: 0 14px; }
  .home-letter { grid-row: span 2; font-size: 128px; margin: 6px 0 0; text-shadow: 5px 5px 0 var(--orange); }
  .building-card { grid-template-columns: 1fr; }
  .building-thumb { max-width: 210px; }
  .directory { margin-bottom: 80px; }
  .incubation { margin-bottom: 72px; }
  .org-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .org-ceo span { font-size: 19px; }
  .org-dept-name { font-size: 18px; }
  .org-dept-full { min-height: 0; }
  .org-chief, .org-head { font-size: 13px; padding: 11px 10px; overflow-wrap: break-word; }
  .org-lead { font-size: 13.5px; padding: 10px 11px; overflow-wrap: break-word; }
  .org-legend { justify-content: flex-start; }

  .dept-panel > h2 { font-size: clamp(32px, 10.5vw, 46px); overflow-wrap: break-word; }
  .dept-what { font-size: 18px; margin-bottom: 28px; }
  .role-chief { grid-template-columns: 92px minmax(0, 1fr); gap: 18px; }
  .role h3 { font-size: 23px; }
}
