/* Sample PA, "Object Relations". Round 03. Brand rules: light. Header, panel and lower sections from sample P. */
:root {
  --red: #A32638;
  --ink: #363D45;
  --lg: #E4E5E6;
  --white: #FFFFFF;
  --head: 96px;
  --heroH: clamp(560px, calc(100vh - var(--head)), 1000px);
  --rule: #E4E5E6;
  --cell: 48px;                        /* the drafting grid behind Training, Events and Contact (sample P's cell) */
  --line: rgba(255, 255, 255, .13);    /* grid lines on Dark Gray: a white tint, as in sample P (listed deviation) */
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 "IBM Plex Sans", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.on-dark :focus-visible, .panel :focus-visible { outline-color: var(--white); }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 3px;
  font: 600 16px/1.2 "IBM Plex Sans", Arial, sans-serif; letter-spacing: .01em;
  text-decoration: none; text-align: center;
}
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--lg); }
.btn-line { border: 1px solid var(--white); color: var(--white); background: transparent; }
.btn-line:hover { background: var(--white); color: var(--ink); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: var(--white);
  border-bottom: 1px solid var(--lg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--ink); }
.brand img { width: 150px; height: 40px; }
.brand .lab {
  font: 600 25px/1 "Saira Condensed", "Arial Narrow", sans-serif; letter-spacing: .01em;
  padding-left: 22px; border-left: 1px solid var(--lg); height: 40px; display: flex; align-items: center;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a {
  color: var(--ink); text-decoration: none; font: 500 15px/1.2 "IBM Plex Sans", Arial, sans-serif;
  padding: 10px 0; display: block;
}
.nav a:hover { color: var(--red); text-decoration: underline; }
.nav .nav-mail { display: none; }
.menu-btn { display: none; }
html.tuck-on .site-head { transition: transform .32s var(--ease); }
html.tucked .site-head { transform: translateY(-100%); }

/* ---------- Hero: the atrium photo and the model's reading of it ---------- */
.hero {
  position: relative; z-index: 1;
  height: var(--heroH);
  overflow: hidden;
  background: var(--white);
}
.scene { margin: 0; position: relative; }
.scene-hero { position: absolute; inset: 0; }
.plate {
  position: relative; overflow: hidden; background: var(--white);
  width: 100%; aspect-ratio: 1920 / 780;           /* no-JS: the whole photo at the page width */
}
html.ready .plate { aspect-ratio: auto; }
.photo { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform-origin: 0 0; }
.static { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.draw { position: absolute; left: 0; top: 0; display: block; overflow: visible; }
.tags { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* drawing: everything thin, one ink, one red */
.vel { fill: #FFFFFF; fill-opacity: .78; }
.sweep { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.ct { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.edc { stroke: #FFFFFF; stroke-width: 3; stroke-linecap: butt; }
.ed { stroke: var(--red); stroke-width: 1; stroke-linecap: butt; }
.ldc { stroke: #FFFFFF; stroke-width: 3; stroke-linecap: butt; }
.ld { stroke: var(--ink); stroke-width: 1; }
.anc { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.hit { fill: #000; fill-opacity: 0; pointer-events: all; cursor: default; }
.hole { fill: #000; }

.olab {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  margin: 0; border: 0; border-radius: 0; cursor: default;
  padding: 2px 5px 3px; background: #FFFFFF; color: var(--ink);
  font: 500 12px/15px "IBM Plex Sans", Arial, sans-serif; letter-spacing: .01em;
}
.olab .ls { font-weight: 400; font-variant-numeric: tabular-nums; }
.olab:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 0 4px 1px; background: #FFFFFF; color: var(--red);
  font: 500 11.5px/14px "IBM Plex Sans", Arial, sans-serif; letter-spacing: .01em;
}
.word.hide { visibility: hidden; }
.tags .cut { visibility: hidden; }

/* highlight: one object, its relations and the objects they reach; the rest steps back */
/* hover transitions only once the drawing is finished (the moment sets every value itself) */
.scene.live .draw g.o, .scene.live .tags .olab, .scene.live .tags .word, .scene.live .draw g.e, .scene.live .hole { transition: opacity .18s linear, fill-opacity .18s linear; }
.scene.hl .draw g.o:not(.on) { opacity: .4; }
.scene.hl .hole:not(.on) { fill-opacity: .55; }
.scene.hl .draw g.e:not(.on) { opacity: .16; }
.scene.hl .tags .olab:not(.on) { opacity: .72; }
.scene.hl .tags .word:not(.on) { opacity: 0; }
.scene.hl .tags .word.on { visibility: visible; }
/* relations that only show with their object (left of, above...) */
.scene .draw g.e.aux, .scene .tags .word.aux { opacity: 0; }
.scene.hl .draw g.e.aux:not(.on) { opacity: 0; }
.scene.hl .draw g.e.aux.on, .scene.hl .tags .word.aux.on { opacity: 1; }
.scene .draw g.o.cur .ct, .scene .draw g.o.cur .ld { stroke: var(--red); }
.scene .draw g.o.cur .anc { fill: var(--red); stroke: var(--red); }
.scene .tags .olab.cur { background: var(--ink); color: #FFFFFF; }
.scene .draw g.e.on .ed { stroke-width: 1.5; }

/* the photo switch: drawing off, photograph untouched */
.scene .draw, .scene .tags { transition: opacity .45s linear; }
.scene.photo-only .draw, .scene.photo-only .tags { opacity: 0; pointer-events: none; }
.scene.photo-only .tags .olab { pointer-events: none; }

/* title block (desktop: on the paper under the photo) */
.block { position: absolute; z-index: 3; background: var(--white); color: var(--ink); }
.scene-hero .block {
  left: 520px; right: 40px; bottom: 0; height: var(--strip, 140px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 40px;
  padding: 18px 0 16px; border-top: 1px solid var(--lg);
}
.read { position: relative; min-width: 0; }
.scene-hero .read { min-height: 94px; }      /* room for the readout, so the block never grows on hover */
.read-h { font: 600 22px/1.1 "Saira Condensed", "Arial Narrow", sans-serif; letter-spacing: .01em; }
.legend { margin-top: 10px; font-size: 13px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg-obj { width: 7px; height: 7px; border: 1px solid var(--ink); background: #FFFFFF; flex: none; }
.lg-rel { width: 22px; height: 1px; background: var(--red); flex: none; }
.hint { margin-top: 4px; font-size: 13px; line-height: 1.5; }
.live .lv-h { font: 600 22px/1.1 "Saira Condensed", "Arial Narrow", sans-serif; letter-spacing: .01em; }
.live .lv-s { margin-top: 8px; font-size: 13px; line-height: 1.45; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.live .lv-s b { font-weight: 600; font-variant-numeric: tabular-nums; }
.live .lv-r { margin-top: 6px; font-size: 13px; line-height: 1.45; }
.live .lv-r em { font-style: normal; color: var(--red); font-weight: 500; }
.cap { min-width: 0; font-size: 13px; line-height: 1.5; }
.cap p { max-width: 46em; }
.photo-btn {
  margin-top: 10px; background: none; border: 1px solid var(--ink); color: var(--ink); border-radius: 3px;
  font: 500 14px/1 "IBM Plex Sans", Arial, sans-serif; padding: 0 12px; min-height: 36px; cursor: pointer;
}
.photo-btn:hover { background: var(--ink); color: var(--white); }
.photo-btn[aria-pressed='true'] { background: var(--ink); color: var(--white); }

/* Offer panel: solid Stevens Red, bottom left (sample P) */
.panel {
  position: absolute; left: 0; bottom: 0; z-index: 5;
  width: 480px; padding: 34px 36px 30px;
  background: var(--red); color: var(--white);
}
.panel h1 { font: 700 48px/1.02 "Saira Condensed", "Arial Narrow", sans-serif; letter-spacing: .002em; }
.panel p { margin-top: 16px; font-size: 18px; line-height: 1.5; }
.panel .btn { margin-top: 24px; }
.panel .skip-scene { display: inline-block; margin-top: 16px; color: var(--white); font-weight: 500; font-size: 16px; }

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: var(--head); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sec-h { font: 700 64px/1 "Saira Condensed", "Arial Narrow", sans-serif; letter-spacing: .002em; }
.lede { max-width: 40em; margin-top: 18px; font-size: 18px; line-height: 1.6; }

/* Sample P's line grids, without the numbers: Training and Contact on Dark Gray, Events on White */
.gridbg {
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: calc(50% - var(--cell) / 2) 0;
}

/* Training: Dark Gray */
.training { position: relative; z-index: 2; color: var(--white); background-color: var(--ink); padding: 104px 0 112px; }
.training .lede, .contact .lede { color: var(--lg); }
.ws { list-style: none; margin: 56px 0 0; padding: 0; }
.w {
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 380px 1fr; column-gap: 48px;
  padding: 26px 0 34px;
}
.w:last-child { border-bottom: 1px solid var(--rule); }
.w-aud { font: 500 16px/1.4 "IBM Plex Sans", Arial, sans-serif; color: var(--lg); letter-spacing: .01em; }
.w h3 { margin-top: 8px; font: 700 34px/1.05 "Saira Condensed", "Arial Narrow", sans-serif; }
.w-body p { color: var(--lg); }
.w-body .btn { margin-top: 20px; }

/* Events */
.events {
  padding: 104px 0 104px; background-color: var(--white);
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: calc(50% - var(--cell) / 2) 0;
}
.events > .wrap:first-child, .events .strip-cap { background: var(--white); }   /* text on white blocks, the grid around them (as in P) */
.scene-strip { margin: 48px 0 0; }
.scene-strip .plate { aspect-ratio: auto; height: 300px; background: var(--lg); }
.strip-photo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: no-repeat 0 0; }   /* image set by pa.js when the strip nears the screen */
.scene-strip .block { display: none; }
.strip-cap { padding-top: 12px; font-size: 15px; line-height: 1.5; }
.strip-cap .sc-live { color: var(--ink); }
html:not(.js) .scene-strip { display: none; }
.ev { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin-top: 48px; background: var(--white); }
.ev th {
  text-align: left; font: 600 13px/1.3 "IBM Plex Sans", Arial, sans-serif; letter-spacing: .08em;
  text-transform: uppercase; padding: 0 12px 10px; vertical-align: bottom; border-bottom: 2px solid var(--ink);
}
.ev th:nth-child(1) { width: 192px; }
.ev th:nth-child(2) { width: 150px; }
.ev th:nth-child(4) { width: 170px; }
.ev td { vertical-align: top; padding: 14px 12px 15px; border-bottom: 1px solid var(--rule); }
.ev th:first-child, .ev td:first-child { padding-left: 0; }
.ev .c-link { text-align: right; }
.ev .when { font-weight: 500; font-variant-numeric: tabular-nums; }
.ev .when.posted { font-weight: 400; }
.ev .t { font-weight: 600; display: block; }
.ev .who { display: block; margin-top: 2px; font-size: 16px; line-height: 1.45; }
.ev .tag-sold { display: table; margin-top: 6px; font-size: 14px; font-weight: 600; padding: 1px 8px; background: var(--lg); }

/* People (headshots exactly as in sample P: no effect on faces) */
.people { padding: 96px 0; border-top: 1px solid var(--lg); }
.ppl {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 44px 32px;
}
@media (min-width: 1200px) { .ppl { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 28px; } }
.ppl img { width: 100%; max-width: 192px; aspect-ratio: 1; object-fit: cover; background: var(--lg); }
.ppl h3 { margin-top: 14px; font: 600 18px/1.3 "IBM Plex Sans", Arial, sans-serif; }
.ppl h3 a { color: var(--ink); text-decoration: none; }
.ppl h3 a:hover { color: var(--red); text-decoration: underline; }
.ppl .role { margin-top: 4px; font-weight: 600; color: var(--red); font-size: 16px; }
.ppl .title { margin-top: 4px; font-size: 16px; line-height: 1.45; }

/* Resources */
.resources { padding: 96px 0 112px; border-top: 1px solid var(--lg); }
.res { margin-top: 40px; max-width: 760px; border-top: 2px solid var(--ink); padding-top: 18px; }
.res .when { font-weight: 600; }
.res h3 { margin-top: 6px; font: 700 34px/1.05 "Saira Condensed", "Arial Narrow", sans-serif; }
.res p.d { margin-top: 12px; }

/* Contact: Dark Gray */
.contact { color: var(--white); background-color: var(--ink); padding: 104px 0 112px; }
.ct { display: grid; grid-template-columns: 336px 1fr; column-gap: 48px; margin-top: 48px; border-top: 1px solid var(--rule); padding-top: 26px; }
.ct address { font-style: normal; color: var(--lg); line-height: 1.7; }
.ct a:not(.btn) { color: var(--white); }
.ct .btns { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
.foot { padding: 48px 0 56px; }
.foot .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.foot img { width: 150px; height: 40px; }
.foot .fl { margin-top: 14px; font-size: 16px; }
.foot .about { font-size: 16px; line-height: 1.6; }
.motion-btn {
  margin-top: 16px; background: none; border: 1px solid var(--ink); color: var(--ink); border-radius: 3px;
  font: 500 15px/1 "IBM Plex Sans", Arial, sans-serif; padding: 12px 16px; cursor: pointer; min-height: 44px;
}
.motion-btn:hover { background: var(--ink); color: var(--white); }

/* Entry rise for rows (full motion only; pa.js eases each row in, 40 ms apart) */
html.rise-on .rise:not(.in) { opacity: 0; transform: translateY(8px); }

/* ---------- Medium widths ---------- */
@media (max-width: 1180px) {
  .site-head { padding: 0 24px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--lg); display: none; }
  html:not(.js) .nav { position: static; display: block; border: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .nav a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--lg); }
  .nav .nav-mail { display: block; }
  .nav .nav-mail a { color: var(--red); font-weight: 600; border-bottom: 0; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    background: var(--white); border: 1px solid var(--ink); border-radius: 3px; color: var(--ink);
    font: 600 16px/1 "IBM Plex Sans", Arial, sans-serif; cursor: pointer;
  }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-head { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 18px; padding: 0; }
  html:not(.js) .nav a { border: 0; font-size: 16px; }
  .w { grid-template-columns: 320px 1fr; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .panel { width: 420px; padding: 30px 30px 26px; }
  .panel h1 { font-size: 42px; }
  .panel p { font-size: 17px; margin-top: 14px; }
  .panel .btn { margin-top: 20px; }
  .scene-hero .block { left: 448px; right: 24px; grid-template-columns: 1fr; row-gap: 12px; }
  .scene-hero .read { min-height: 76px; }
}

/* ---------- Phone and tablet: text first, image second ---------- */
@media (max-width: 899px) {
  :root { --head: 64px; }
  .site-head { padding: 0 16px; }
  .brand { gap: 12px; }
  .brand img { width: 105px; height: 28px; }
  .brand .lab { font-size: 20px; padding-left: 12px; height: 28px; }
  .hero { height: auto; overflow: visible; }
  .panel { position: relative; width: auto; padding: 24px 16px 28px; }
  .panel h1 { font-size: 36px; line-height: 1.05; max-width: 15em; }
  .panel p { font-size: 16px; margin-top: 14px; max-width: 34em; }
  .panel .btn { margin-top: 22px; width: 100%; max-width: 380px; }
  .panel .skip-scene { display: none; }
  .scene-hero { position: relative; inset: auto; }
  .scene-hero .block {
    position: relative; left: auto; right: auto; bottom: auto; height: auto;
    display: block; padding: 14px 16px 18px; border-top: 1px solid var(--lg);
  }
  .read-h, .live .lv-h { font-size: 20px; }
  .cap { margin-top: 10px; font-size: 14px; }
  .scene-hero .read { min-height: 116px; }
  .static .st-t { display: none; }      /* no-JS phones: the drawing without type, which would be too small */
  .olab { font-size: 11.5px; line-height: 14px; padding: 2px 4px 3px; gap: 5px; }
  .word { font-size: 11px; line-height: 13px; padding: 0 3px 1px; }
  .wrap { padding: 0 16px; }
  .sec-h { font-size: 44px; }
  .lede { font-size: 17px; }
  .training { padding: 56px 0 56px; }
  .ws { margin-top: 36px; }
  .w { grid-template-columns: 1fr; padding: 22px 0 26px; }
  .w h3 { font-size: 30px; }
  .w-body { margin-top: 12px; }
  .w-body .btn { width: 100%; max-width: 380px; }
  .events { padding: 64px 0 56px; }
  .scene-strip { margin-top: 28px; }
  .scene-strip .plate { height: 260px; }
  .ev, .ev tbody, .ev tr, .ev td { display: block; width: auto; }
  .ev thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ev { margin-top: 28px; }
  .ev tr { border-bottom: 1px solid var(--lg); padding: 16px 0; }
  .ev td { border: 0; padding: 0; }
  .ev .c-date, .ev .c-type, .ev .c-link { width: auto; text-align: left; }
  .ev .c-type { font-size: 16px; }
  .ev td.c-ev { margin-top: 6px; }
  .ev td.c-link { margin-top: 8px; }
  .people, .resources { padding: 64px 0; }
  .ppl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 32px; }
  .ppl h3 { font-size: 17px; }
  .ppl .title, .ppl .role { font-size: 16px; }
  .res h3 { font-size: 30px; }
  .contact { padding: 56px 0; }
  .ct { grid-template-columns: 1fr; padding-top: 22px; margin-top: 28px; }
  .ct address { margin-bottom: 18px; }
  .ct .btns .btn { width: 100%; max-width: 380px; }
  .foot .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .panel { padding: 36px 32px 36px; }
  .panel h1 { font-size: 46px; }
  .wrap { padding: 0 32px; }
  .scene-hero .block { padding: 16px 32px 20px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .scene-hero .cap { margin-top: 0; }
}

/* Review hook ?frame holds a settled state for screenshots */
html.hold *, html.hold *::before, html.hold *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; }

/* Reduced motion: the finished drawing, no sweep, draw-on, rise or fades (pa.js reads the same gate) */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
  html:not(.force-motion) .rise { opacity: 1 !important; transform: none !important; }
}
