/* Look D: white, one three-column grid under everything, Archivo for headings, IBM Plex Sans for reading.
   One thing per screen, one path down the page. Sam's own screenshots and footage are the only pictures. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #111;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --line: #e3e3e3;
  --soft: #f4f4f3;
  --display: "Archivo", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
  --gap: 48px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.6 var(--text); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #b5b5b5; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid #1f5ae0; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 106%; font-weight: 600; margin: 0; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; z-index: 10; }
.skip:focus { top: 12px; }

/* top bar: the name, and plain links */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 16px; }
.bar a { text-decoration: none; }
.bar-name { font-weight: 600; white-space: nowrap; }
.bar-nav { display: flex; gap: 28px; }
.bar-nav a { color: var(--ink-3); white-space: nowrap; }
.bar-nav a:hover, .bar-nav a.on, .bar-nav a[aria-current] { color: var(--ink); }
.bar-nav a.hire { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 3px; }

/* buttons and link rows */
.btn { display: inline-block; text-decoration: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 4px; font: 500 17px/1.3 var(--text); border: 0; cursor: pointer; }
.btn:hover { background: #2a2a2a; }
.go { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: 17px; }
.fine { font-size: 15px; color: var(--ink-3); }

/* home, first screen: the headline is the one big thing */
.open { padding: clamp(56px, 7vw, 112px) 0 clamp(64px, 7vw, 96px); }
.open .text { grid-column: 1 / 3; }
.open h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -0.018em; max-width: 19ch; text-wrap: balance; }
.open p { margin-top: 28px; max-width: 54ch; font-size: 19px; line-height: 1.58; color: var(--ink-2); }
.open p a { color: var(--ink); text-decoration-color: var(--ink); }
.open p + p { margin-top: 14px; }
.open .go { margin-top: 30px; }

/* footage: a muted loop, or a poster that plays with sound on a click */
.reel { margin: 0; }
.reel > video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0c0c0c; }
figcaption { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.frame { position: relative; display: block; background: #0c0c0c; cursor: pointer; }
.frame img, .frame video { width: 100%; }
.frame.wide img, .frame.wide video { aspect-ratio: 16 / 9; object-fit: cover; }
.frame.tall img, .frame.tall video { aspect-ratio: 9 / 16; object-fit: cover; }
.frame.playing { cursor: auto; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%; background: rgba(17, 17, 17, .78); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.play svg { margin-left: 3px; }
.frame:hover .play { transform: scale(1.06); background: #111; }
.frame.tall .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }

/* pictures that open large */
.shot { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: var(--soft); cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.shot img { width: 100%; }
.shot.edge img { outline: 1px solid var(--line); outline-offset: -1px; }

/* section headings, the same size everywhere */
.head h2, h2.head { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.012em; }
.head .lede { margin-top: 16px; }
.lede { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; font-weight: 500; max-width: 36ch; }

/* the list of work: picture first, then two lines */
.work { padding: clamp(80px, 9vw, 128px) 0 clamp(72px, 8vw, 112px); row-gap: 48px; }
.work > .head { grid-column: 1 / -1; margin-bottom: -16px; }
.piece a.pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.piece a.pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(var(--z, 1)); transform-origin: 50% 0; transition: transform .4s ease; }
.piece a.pic:hover img { transform: scale(calc(var(--z, 1) * 1.02)); }
/* the card's title row: the name on the left, where it lives or its state on the right, ruled off like a ledger line */
.piece .title { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-top: 16px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.piece h3 { margin: 0; font-family: var(--text); font-stretch: 100%; font-weight: 600; font-size: 17px; }
.piece h3 a { text-decoration: none; }
.piece .where { font-size: 15px; color: var(--ink-3); white-space: nowrap; }
.piece p { margin-top: 11px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
/* Programs: the same ruled title row as the work cards */
.prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; max-width: 760px; }
.prog .title { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.prog h3 { margin: 0; min-height: 22px; display: flex; align-items: center; font-family: var(--text); font-stretch: 100%; font-weight: 600; font-size: 17px; line-height: 1.3; }
.prog .prog-logo { display: block; width: auto; height: 17px; }
.prog p { margin-top: 11px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* a band of the home page with a heading on the left and prose beside it */
.band { border-top: 1px solid var(--line); padding: clamp(64px, 7vw, 104px) 0; }
.band:last-child { padding-bottom: 0; }
.band .head { grid-column: 1; }
.band .body { grid-column: 2 / 4; }
.say p { margin: 0 0 18px; max-width: 62ch; font-size: 18px; line-height: 1.64; color: #222; }
.say p:last-child { margin-bottom: 0; }
.say .go { margin-top: 24px; }

/* the tools on the home page */
.tools { row-gap: 40px; }
.tools > .head { grid-column: 1 / -1; }

/* write-up pages */
.case-top { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.case-top .text { grid-column: 1 / 3; }
.crumbs { font-size: 15px; color: var(--ink-3); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); }
.case-top h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.016em; max-width: 20ch; text-wrap: balance; }
.case-top .lede { margin-top: 22px; max-width: 40ch; }
.case-top .go { margin-top: 28px; }
.case-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 26px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.case-icon.round { border-radius: 50%; }
.case-icon.paper { background: var(--soft); padding: 12px; object-fit: contain; }
.say p.lede { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; font-weight: 500; color: var(--ink); max-width: 36ch; }
.say .go { margin-top: 24px; }
.lead-media { margin: 0 0 clamp(56px, 6vw, 88px); }

.sec { padding: clamp(56px, 6vw, 88px) 0 0; row-gap: 28px; }
.case-top + .sec, .lead-media + .sec { padding-top: 0; }
.sec > .head { grid-column: 1 / 3; }
.sec > .say { grid-column: 1 / 3; }
.sec > .main { grid-column: 1 / 3; }
.sec > .main .say { margin-top: 28px; }
.sec > .side { grid-column: 3; align-self: start; }
.sec > .side.phone { width: 100%; max-width: 248px; justify-self: end; }
/* text beside a phone shot sits in the middle of the phone's height, not stuck at its top */
.sec > .main:has(+ .side.phone) { align-self: center; }
.say .feats { list-style: none; margin: 4px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.say .feats li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.4; color: var(--ink); }
.sec > .full { grid-column: 1 / -1; margin: 12px 0 0; }
.sec > .two { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.sec > .phones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 12px; list-style: none; padding: 0; }
.sec > .aside-note { grid-column: 1; align-self: start; margin-top: 12px; font-size: 15px; color: var(--ink-3); max-width: 30ch; }
.sec > .three { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 12px 0 0; list-style: none; padding: 0; }
.sec > .two > figure, .sec > .full figure, .side figure { margin: 0; }
.sec figure { margin: 0; }
.case-end { padding: clamp(56px, 6vw, 88px) 0 0; }
.sec .three li span, .reels li span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.sec .three li b, .reels li b { color: var(--ink); font-weight: 600; }

/* Rolo and his reels */
.rolo { row-gap: 36px; }
.rolo .about { grid-column: 1; }
.rolo .about h2 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.01em; }
.rolo .about p { margin-top: 14px; color: var(--ink-2); max-width: 34ch; }
.rolo .about .go { margin-top: 20px; }
.rolo .reels { grid-column: 2 / 4; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* the org chart on How I work: three plain columns of roles */
.org { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px var(--gap); margin-top: 12px; }
.org .top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.org .top div b, .dept h3 { display: block; font-family: var(--text); font-stretch: 100%; font-weight: 600; font-size: 17px; }
.org .top div span { color: var(--ink-3); font-size: 16px; }
.dept ul { list-style: none; margin: 8px 0 0; padding: 0; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.rules { margin: 0; padding-left: 1.3em; max-width: 62ch; font-size: 18px; line-height: 1.64; }
.rules li { margin-bottom: 10px; padding-left: 4px; }

/* the closing invitation on every page but the contact page */
.cta { border-top: 1px solid var(--line); margin-top: clamp(64px, 7vw, 104px); padding: clamp(56px, 6vw, 88px) 0; }
.cta .text { grid-column: 1 / 3; }
.cta h2 { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.012em; }
.cta p { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 52ch; }
.cta .go { margin-top: 26px; }
.next { padding: 0 0 clamp(56px, 6vw, 80px); font-size: 17px; }
.next span { color: var(--ink-3); margin-right: 10px; }

/* contact page */
.contact { padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 9vw, 128px); row-gap: 40px; }
.contact .text { grid-column: 1 / 3; }
.contact h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -0.018em; }
.contact .lede { margin-top: 22px; color: var(--ink-2); font-weight: 400; }
.contact .cform { grid-column: 1 / 3; }
.contact .reach { grid-column: 3; grid-row: 2; }
.reach h2 { font-family: var(--text); font-stretch: 100%; font-weight: 600; font-size: 17px; }
.reach ul { list-style: none; margin: 10px 0 0; padding: 0; line-height: 2; }
.cform { display: grid; gap: 20px; max-width: 640px; }
.cform[hidden] { display: none; }
.f { display: grid; gap: 6px; }
.f span { font-weight: 500; font-size: 16px; }
.f input, .f textarea { font: 400 17px/1.5 var(--text); color: var(--ink); background: #fff; border: 1px solid #c9c9c9; border-radius: 4px; padding: 11px 13px; width: 100%; }
.f textarea { resize: vertical; min-height: 160px; }
.f input:focus, .f textarea:focus { outline: 2px solid #1f5ae0; outline-offset: 0; border-color: transparent; }
.f.bad input, .f.bad textarea { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cform-status { font-size: 16px; color: var(--ink-2); }
.cform-status.err { color: #b3261e; }
.cform-status.ok { color: #1d6b35; }

/* 404 */
.nf { padding: clamp(80px, 10vw, 160px) 0; }
.nf h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -0.018em; }
.nf p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }
.nf .go { margin-top: 28px; }

/* footer */
.foot { padding: 0 0 56px; font-size: 15px; color: var(--ink-3); }
.foot-in { row-gap: 20px; border-top: 1px solid var(--line); padding-top: 40px; }
.foot nav, .foot ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.foot nav { grid-column: 1 / -1; }
.foot ul { grid-column: 3; grid-row: 2; justify-content: flex-end; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .small { grid-column: 1 / 3; grid-row: 2; margin: 0; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 10, 10, .86); }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; cursor: pointer; }

@media (max-width: 860px) {
  :root { --gap: 28px; }
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .grid > * { grid-column: 1 !important; grid-row: auto !important; }
  .work { row-gap: 40px; }
  .work > .head { margin-bottom: -8px; }
  .rolo .reels, .sec > .three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sec > .phones { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; }
  .sec > .phones li { scroll-snap-align: start; }
  .sec > .two { grid-template-columns: 1fr; }
  .org { grid-template-columns: 1fr 1fr; }
  .foot ul { justify-content: flex-start; }
  .sec > .side.phone { justify-self: start; max-width: 240px; }
}
@media (max-width: 640px) {
  .bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 0 8px; }
  .bar-nav { gap: 6px 20px; flex-wrap: wrap; font-size: 15px; }
  .rolo .reels li span, .sec .three li span { font-size: 13px; }
  .org { grid-template-columns: 1fr; }
  .say p, .rules, .say .feats li { font-size: 17px; }
  .open p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .bar-nav, .cta, .next, .foot nav, video, .play { display: none !important; }
}

/* inline link lists (contact links beside a button) and pictures that open large inside a list */
.ilinks { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.pic-btn { aspect-ratio: 16 / 10; overflow: hidden; background: #0c0c0c; }
.pic-btn img { width: 100%; height: 100%; object-fit: cover; }
.piece .pic-btn + h3 { margin-top: 14px; }
.piece .pic-btn + h3 + p { margin-top: 4px; }
