:root {
  --text: rgb(31, 58, 87);
  --muted: rgb(125, 141, 160);
  --bg: rgb(255, 255, 255);
  --surface: rgb(241, 244, 247);
  --line: rgb(225, 230, 236);
  --pad: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Hanken Grotesk", sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s cubic-bezier(0.44, 0, 0.56, 1); }

/* type */
.intro-line { font-size: 26px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 400; text-wrap: pretty; }
.heading { font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
.sub { font-size: 16px; line-height: 1.4; font-weight: 500; }
.body { font-size: 16px; line-height: 1.5; }
.small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.label { font-size: 13px; line-height: 1.4; letter-spacing: 0.02em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* links */
.plain { color: var(--text); }
.plain:hover { color: var(--muted); }
.nav-link { color: var(--text); }
.nav-link:hover, .nav-link[aria-current] { color: var(--muted); }
.inline { color: var(--muted); }
.inline:hover { color: var(--text); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; }

/* nav + footer */
.nav { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); }
.nav-links { display: flex; gap: 32px; }
.footer { padding: 120px var(--pad) 32px; }
.footer-in { max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.closing { display: flex; flex-direction: column; gap: 4px; }
.clock { display: flex; gap: 12px; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; min-height: 16px; }
.clock .date { color: var(--muted); }
.footer-links { display: flex; gap: 24px; }

/* home */
.intro { padding: 72px var(--pad) 48px; }
.intro-in { display: flex; flex-direction: column; gap: 10px; }
.intro-in .intro-line { max-width: 900px; }
.intro-name { cursor: default; }
.intro-name:hover { font-weight: 700; }
.work { padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 16px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.thumb { aspect-ratio: 1.5; border-radius: 2px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.caption { display: flex; flex-direction: column; gap: 8px; }
.tags { display: flex; gap: 6px; }
.tag { background: var(--surface); border-radius: 4px; padding: 3px 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* project */
.project { padding: 24px var(--pad) 0; }
.project-in { display: flex; flex-direction: column; gap: 24px; }
.back { align-self: flex-start; }
.shot { width: 100%; height: auto; border-radius: 2px; }
.shot.bordered { border: 1px solid var(--line); }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 2px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.details { display: flex; gap: 16px; padding: 8px 0 40px; }
.title-col, .desc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.title-col { gap: 12px; }
.desc-col { gap: 16px; }
.desc-col .body { text-wrap: pretty; }
.gallery { display: flex; flex-direction: column; gap: 16px; }
.process { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; }
.process-head { display: flex; gap: 16px; padding-bottom: 8px; }
.process-head > * { flex: 1; }
.pager { display: flex; justify-content: space-between; padding-top: 56px; }

/* information */
.info { padding: 72px var(--pad) 0; }
.info-in { display: flex; flex-direction: column; gap: 72px; }
.about { display: flex; gap: 48px; align-items: flex-start; }
.bio { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.bio-text { max-width: 560px; display: flex; flex-direction: column; gap: 16px; text-wrap: pretty; }
.contact { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.portrait { width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.list .sub { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row > :first-child { flex: 1; }

@media (max-width: 1199px) {
  .portrait { width: 280px; }
}
@media (max-width: 809px) {
  :root { --pad: 20px; }
  .intro-line { font-size: 21px; }
  .heading { font-size: 22px; }
  .nav { padding: 16px var(--pad); }
  .nav-links { gap: 20px; }
  .footer { padding: 80px var(--pad) 24px; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .intro { padding: 40px var(--pad) 32px; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .project { padding-top: 16px; }
  .project-in { gap: 16px; }
  .details { flex-direction: column; gap: 20px; padding: 8px 0 24px; }
  .gallery { gap: 10px; }
  .process-head { flex-direction: column; gap: 8px; }
  .info { padding-top: 40px; }
  .info-in { gap: 56px; }
  .about { flex-direction: column; gap: 32px; }
  .portrait { width: 100%; }
}

/* contact */
.contact-page { padding: 24px var(--pad) 0; }
.contact-in { display: flex; flex-direction: column; gap: 32px; max-width: 1120px; }
.contact-in .back { align-self: flex-start; }
.contact-form { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .label { color: var(--muted); }
.field input, .field textarea { width: 100%; font-family: inherit; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; outline: none; resize: vertical; transition: border-color 0.2s cubic-bezier(0.44, 0, 0.56, 1); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.send { font-family: inherit; color: var(--text); background: var(--surface); border: 0; border-radius: 4px; padding: 10px 18px; cursor: pointer; transition: color 0.2s cubic-bezier(0.44, 0, 0.56, 1); }
.send:hover { color: var(--muted); }
.send:disabled { color: var(--muted); cursor: default; }
@media (max-width: 809px) {
  .contact-page { padding-top: 16px; }
}

/* home thumbnails dim under the cursor */
.thumb img { transition: opacity 0.25s cubic-bezier(0.44, 0, 0.56, 1); }
@media (hover: hover) {
  .card:hover .thumb img { opacity: 0.6; }
}

/* page changes: cross-fade instead of a blank flash */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }

/* elements fade up to full opacity as they scroll into view */
.reveal { opacity: 0.15; transition: opacity 0.6s cubic-bezier(0.44, 0, 0.56, 1); }
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* larger header and footer text; icon links home */
.nav .label, .footer .label { font-size: 16px; }
.footer .small { font-size: 15px; }
.clock { font-size: 19px; min-height: 19px; }
.nav-home { display: block; line-height: 0; transition: opacity 0.2s cubic-bezier(0.44, 0, 0.56, 1); }
.nav-home img { width: 40px; height: 40px; border-radius: 2px; }
.nav-home:hover { opacity: 0.6; }
.nav { padding-top: 14px; padding-bottom: 14px; }
@media (max-width: 809px) {
  .nav .label, .footer .label { font-size: 15px; }
  .clock { font-size: 17px; min-height: 17px; }
  .nav-home img { width: 34px; height: 34px; }
  .nav { padding-top: 12px; padding-bottom: 12px; }
}

/* tags read as Title Case */
.tag { text-transform: capitalize; }

/* header sits lower, links spaced wider */
.nav { padding-top: 32px; }
.nav-links { gap: 44px; }
.footer-links { gap: 40px; }
@media (max-width: 809px) {
  .nav { padding-top: 22px; }
  .nav-links { gap: 28px; }
  .footer-links { gap: 36px; }
}

/* home captions: title, then a smaller, quieter line beneath */
.cap-text { display: flex; flex-direction: column; gap: 1px; }
.cap-sub { font-size: 14px; line-height: 1.45; opacity: 0.55; }

/* custom cursor: 17px navy dot, white over anything clickable */
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 10; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 1px transparent; pointer-events: none; opacity: 0; transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease; will-change: transform; }
.cursor-dot.show { opacity: 1; }
.cursor-dot.on { background: #fff; box-shadow: 0 0 0 1px var(--text); }
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* cursor ring: hairline */
.cursor-dot.on { box-shadow: 0 0 0 0.5px var(--text); }

/* video: poster first, player loads on click */
button.video { display: block; padding: 0; border: 0; font: inherit; color: inherit; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s cubic-bezier(0.44, 0, 0.56, 1); }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg); color: var(--text); border-radius: 4px; padding: 8px 16px; }
@media (hover: hover) { button.video:hover img { opacity: 0.85; } }

/* information: photo says hi when clicked */
.portrait-btn { position: relative; display: block; flex: none; width: 360px; padding: 0; border: 0; background: none; font: inherit; border-radius: 2px; }
.portrait-btn .portrait { width: 100%; }
.hi { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(6px) scale(0.85); transform-origin: 50% 100%; background: var(--text); color: var(--bg); font-size: 16px; line-height: 1; padding: 8px 12px 9px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hi::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--text); border-bottom: 0; }
.hi.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
@media (max-width: 1199px) { .portrait-btn { width: 280px; } }
@media (max-width: 809px) {
  .portrait-btn { width: 100%; }
  .hi { bottom: auto; top: 12px; }
  .hi::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hi { transition: opacity 0.18s ease; } }

/* information: larger bio and contact links */
.bio .body { font-size: 20px; line-height: 1.45; }
.bio-text { max-width: 640px; gap: 20px; }
@media (max-width: 809px) {
  .bio .body { font-size: 18px; }
}

/* footer spans the same width as the header: left edge under the icon, right edge under the nav links */
.footer-in { max-width: none; }

/* tall (portrait) images sit side by side so one image never fills the whole screen */
.pair { display: flex; justify-content: flex-start; align-items: flex-start; gap: 16px; width: 100%; }
.pair .shot { width: auto; height: auto; min-width: 0; max-width: calc(50% - 8px); max-height: calc(100vh - 190px); max-height: calc(100svh - 190px); object-fit: contain; }
.shot.crop32 { aspect-ratio: 1.5; object-fit: cover; }
@media (max-width: 809px) { .pair { gap: 10px; } }

/* wider gutters between images on every page */
.grid { column-gap: 32px; }
.gallery, .process { gap: 32px; }
@media (max-width: 809px) {
  .gallery, .process { gap: 20px; }
}

/* seashell: two posters with the project text beside them, filling the column */
.poster-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.72fr); gap: 32px; align-items: start; width: 100%; }
.poster-row .shot { width: 100%; height: auto; }
.poster-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.poster-text .body { padding-top: 4px; text-wrap: pretty; }
@media (max-width: 809px) {
  .poster-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .poster-text { grid-column: 1 / -1; padding-top: 4px; }
}

/* seashell: larger posters of equal height; title lines up with their top edge, description with their bottom edge */
@media (min-width: 810px) {
  .poster-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.5fr); align-items: stretch; }
  .poster-row .shot { aspect-ratio: 1337 / 2000; object-fit: cover; }
  .poster-text { justify-content: flex-start; }
  .poster-text .body { margin-top: auto; padding-top: 24px; }
  .poster-text .heading { margin-top: -0.2em; }
}

/* seashell: two posters across the full column; text below, each half under its poster */
.poster-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; width: 100%; }
.poster-pair .shot { width: 100%; height: auto; aspect-ratio: 1337 / 2000; object-fit: cover; }
.details-pair { gap: 32px; }
@media (max-width: 809px) { .poster-pair { gap: 20px; } }

/* freshly, the indy, the book: images two across, text below each half */
.duo, .gallery.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; width: 100%; }
.gallery.two-up > .shot:last-child:nth-child(odd) { grid-column: 1 / -1; }
.process { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.process > .process-head { grid-column: 1 / -1; gap: 32px; }
.process > .shot:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (max-width: 809px) {
  .duo, .gallery.two-up, .process { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* process images follow the gallery with no heading */
.process { padding-top: 8px; }
.process > .shot:last-child:nth-child(even) { grid-column: auto; }
.process > .shot:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* project text: title and tags under the first image, description under the second (same columns and gutter as the images) */
.details, .details-pair { gap: 32px; }
@media (max-width: 809px) {
  .details, .details-pair { gap: 20px; }
}

/* project text: heading and tags, then the description below them running the full width, from the first image's left edge to the second image's right edge */
.details, .details-pair { flex-direction: column; gap: 16px; width: 100%; }
.title-col, .desc-col { flex: none; width: 100%; }
.desc-col .body { text-wrap: wrap; }
@media (max-width: 809px) {
  .details, .details-pair { gap: 16px; }
}

/* home captions: larger title, description line and tags */
.cap-title { font-size: 20px; line-height: 1.35; }
.cap-sub { font-size: 17px; line-height: 1.4; }
.card .tag { font-size: 15px; padding: 4px 10px; }
.card .caption { gap: 10px; }
@media (max-width: 809px) {
  .cap-title { font-size: 19px; }
  .cap-sub { font-size: 16px; }
  .card .tag { font-size: 14px; }
}

/* longer text: short measure so a line never runs past about ten words (js/site.js enforces the exact cap) */
.desc-col .body, .currently { max-width: 31em; }

/* rag: even line lengths and no stranded last words, in every paragraph */
p, h1, h2 { text-wrap: pretty; }
.desc-col .body, .bio .body, .currently, .intro-line, .contact-in > .body, .cap-sub { text-wrap: balance; }
.intro-in .intro-line { max-width: 820px; }
p, h1, h2, .tag, .label { hyphens: manual; overflow-wrap: break-word; }
.nowrap { white-space: nowrap; }
/* names of places stay on one line instead of breaking in the middle */
.bio .inline, .currently a { white-space: nowrap; }
@media (max-width: 480px) { .bio .inline, .currently a { white-space: normal; } }
.currently { max-width: 40em; text-wrap: pretty; }

/* project descriptions (all but Freshly): as wide as the first image, each line filled before the next, so the first line carries the most words */
.desc-col .body.desc-fill { max-width: calc(50% - 16px); text-wrap: pretty; }
@media (max-width: 809px) { .desc-col .body.desc-fill { max-width: none; } }

/* home: the "Currently designing" line is left to run naturally, with no word cap */
.currently { max-width: none; text-wrap: pretty; }

/* footer: date sits under the time */
.clock { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; }
.closing { gap: 6px; }
