/* Portfolio design system — tokens */
:root {
  --paper: #ffffff;
  --grey-50: #f5f5f5;
  --grey-100: #f2f2f2;
  --grey-200: #e4e4e4;
  --grey-400: #a3a3a3;
  --grey-600: #666666;
  --grey-800: #2b2b2b;
  --ink: #000000;
  --ink-inverse: #ffffff;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-none: 0px;
  --radius-pill: 999px;
  --font-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --margin: var(--space-12);
  --max: 1440px;
}
@media (max-width: 720px) { :root { --margin: var(--space-6); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }

/* Type */
.display { font-size: 72px; line-height: 72px; font-weight: 300; letter-spacing: -.02em; margin: 0; }
.headline { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.01em; margin: 3px 0 0; }
.title { font-size: 20px; line-height: 26px; font-weight: 700; margin: 0; }
.lead { font-size: 20px; line-height: 30px; font-weight: 300; margin: 0; }
.caption { font-size: 13px; line-height: 18px; font-weight: 300; color: var(--grey-600); margin: 0; }
.label { font-size: 13px; line-height: 18px; font-weight: 700; margin: 0; }
.muted { color: var(--grey-600); }
@media (max-width: 720px) {
  .display { font-size: 44px; line-height: 46px; }
  .headline { font-size: 30px; line-height: 34px; }
  .lead { font-size: 18px; line-height: 27px; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: opacity .35s ease, visibility 0s linear 0s; }
.site-header { padding: var(--space-4) 0; }
/* Liquid glass: one clear pill holding the name and the menu, bending the page behind it, with light catching the rim */
.site-header .wrap { position: relative; }
.site-header .wrap::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; opacity: 0; transition: opacity .3s ease; left: calc(var(--margin) - 19px); right: calc(var(--margin) - 19px); pointer-events: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .42) 45%, rgba(255, 255, 255, .58));
  -webkit-backdrop-filter: blur(3px) saturate(180%) brightness(1.06); backdrop-filter: blur(3px) saturate(180%) brightness(1.06);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .95), inset -1px -1px 0 rgba(255, 255, 255, .5), inset 0 0 18px rgba(255, 255, 255, .45), inset 0 -8px 16px rgba(0, 0, 0, .03), 0 6px 22px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .08);
}
.site-header.is-stuck .wrap::before { opacity: 1; }
.site-header.is-stuck.is-home .wrap { align-items: center; }
.site-header.lg-refract .wrap::before { backdrop-filter: url(#lg-refract) blur(2.5px) saturate(180%) brightness(1.06); }
/* The menu's link text lines up with the page edge; its padding hangs outside it */
.site-nav.has-pill { padding: 5px; margin-right: -19px; }
.site-header .site-name, .site-header .site-title { padding: 8px 19px; margin-left: -19px; }
@media (max-width: 720px) { .site-header .wrap::before { border-radius: 26px; left: calc(var(--margin) - 16px); right: calc(var(--margin) - 16px); top: -4px; bottom: -7px; } .site-header .site-name, .site-header .site-title { padding: 8px 12px; margin-left: -12px; } }
.site-header.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility 0s linear .35s; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-6); }
.site-name { font-size: 20px; line-height: 26px; font-weight: 700; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.site-nav a { font-size: 14px; line-height: 20px; font-weight: 400; text-decoration: none; color: var(--grey-600); padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav.has-pill { position: relative; gap: var(--space-2) 2px; }
.site-nav.has-pill a { position: relative; z-index: 1; padding: 6px 14px; border: 0; border-radius: var(--radius-pill); color: var(--grey-800); transition: color .3s ease; }
.site-nav.has-pill a:hover { color: var(--ink); background: var(--grey-100); }
.site-nav.has-pill a.is-on, .site-nav.has-pill a.is-on:hover { color: var(--paper); background: none; }
.nav-pill { position: absolute; z-index: 0; left: 0; top: 0; border-radius: var(--radius-pill); background: var(--grey-800); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08); pointer-events: none; }
.site-nav.is-moving .nav-pill { transition: transform .32s cubic-bezier(.4,0,.2,1), width .32s cubic-bezier(.4,0,.2,1); }
.site-nav.is-moving a.is-on { transition: color .2s ease .14s; }

/* Page sections */
main { padding-bottom: var(--space-12); }
.page-intro { padding: var(--space-12) 0; }   /* summary lines run the full width so they stay on one line where they fit */
.page-intro .lead { margin-top: var(--space-4); color: var(--grey-600); }
.section { padding: var(--space-12) 0; border-top: 1px solid var(--grey-200); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-4) var(--space-12); margin-bottom: var(--space-6); }
.section-head .text { max-width: none; flex: 1 1 auto; min-width: 0; }
.section-head .label { color: var(--grey-600); margin-bottom: var(--space-2); }
.section-head .summary { margin: var(--space-2) 0 0; font-weight: 300; color: var(--grey-600); }
.more { font-size: 14px; line-height: 20px; font-weight: 400; text-decoration: none; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.more:hover { color: var(--grey-600); border-bottom-color: var(--grey-600); }

.subnav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-6); }
.subnav a { font-size: 14px; line-height: 20px; font-weight: 400; text-decoration: none; border-bottom: 1px solid var(--grey-200); padding-bottom: 2px; }
.subnav a:hover { border-bottom-color: var(--ink); }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grey-200); max-width: 640px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); align-items: baseline; padding: var(--space-4) 0; border-bottom: 1px solid var(--grey-200); }
.contact-list .label { width: 120px; color: var(--grey-600); }
.contact-list a { font-size: 18px; line-height: 26px; font-weight: 300; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 720px) { .contact-list a { font-size: 16px; line-height: 24px; } .contact-list .label { width: 100%; } }

/* Footer */
.site-footer { padding: var(--space-6) 0 var(--space-12); }
.site-footer .wrap { border-top: 1px solid var(--grey-200); padding-top: var(--space-6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }

/* ImageGrid — justified rows */
.pf-cap { padding-top: var(--space-2); }
.pf-cap-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.pf-cap-meta { margin: 0; font-size: 13px; line-height: 18px; font-weight: 300; color: var(--grey-600); }
.pf-grid { display: flex; flex-direction: column; width: 100%; }
.pf-row { display: flex; align-items: flex-start; }
.pf-tile { margin: 0; flex: none; min-width: 0; }
.pf-tile-btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-none); background: var(--grey-200); }
.pf-tile-btn.is-link { overflow: hidden; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pf-tile-btn.is-link .pf-tile-img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
  .pf-tile-btn.is-link:hover .pf-tile-img, .pf-tile-btn.is-link:focus-visible .pf-tile-img { transform: scale(1.06); }
}
.pf-tile-img { display: block; width: 100%; object-fit: cover; border-radius: var(--radius-none); }

/* Lightbox */
.pf-lb { position: fixed; inset: 0; z-index: 1000; background: var(--grey-100); display: grid; grid-template-rows: auto minmax(0, 1fr); font-family: var(--font-sans); }
.pf-lb[hidden] { display: none; }
.pf-lb-bar { display: flex; justify-content: flex-end; padding: var(--space-4) var(--space-6); }
.pf-lb-stage { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; min-height: 0; padding: 0 var(--space-4) var(--space-6); }
.pf-lb-figure { grid-column: 2; grid-row: 1; margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pf-lb-img { display: block; flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-none); }
.pf-lb-cap { flex: none; text-align: center; max-width: 100%; }
.pf-lb-btn { font: inherit; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); background: none; border: 0; border-radius: var(--radius-pill); padding: var(--space-2); display: inline-flex; align-items: center; justify-content: center; }
.pf-lb-btn:hover { color: var(--grey-600); }
.pf-lb-btn:disabled { color: var(--grey-400); }
.pf-lb-nav { justify-self: center; width: 48px; height: 48px; padding: 0; }
.pf-lb-prev { grid-column: 1; grid-row: 1; }
.pf-lb-next { grid-column: 3; grid-row: 1; }
.pf-icon { display: block; }
@media (max-width: 559px) {
  .pf-lb-stage { grid-template-columns: 0 minmax(0, 1fr) 0; padding: 0 var(--space-4) 72px; }
  .pf-lb-nav { position: absolute; bottom: var(--space-4); }
  .pf-lb-prev { left: var(--space-4); }
  .pf-lb-next { right: var(--space-4); }
}
.page-intro .contact-lead { font-size: 16px; line-height: 24px; margin-top: var(--space-2); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-12); }
.about-bio .lead + .lead { margin-top: var(--space-6); }
.about-cta { margin: var(--space-8) 0 0; }
.about-cta .back-btn { margin: 0; font-size: 18px; line-height: 24px; padding: 14px 26px; }   /* the big Get In Touch button under the bio (z) */
.about-side .label { color: var(--grey-600); margin-bottom: var(--space-2); }
.about-list { list-style: none; margin: 0 0 var(--space-12); padding: 0; border-top: 1px solid var(--grey-200); }
.about-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--grey-200); display: flex; flex-direction: column; gap: 4px; font-weight: 300; }
.about-co { font-weight: 700; text-decoration: none; }
.about-co:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Home page: the name sits in the header, top-aligned with the menu */
.site-header.is-home .wrap { align-items: flex-start; }
.site-header.is-home .site-nav { margin-left: auto; }
.site-title { font-size: 32px; line-height: 36px; font-weight: 300; letter-spacing: -.01em; margin: 3px 0 0; }
.site-header.is-home + main .page-intro { padding-top: var(--space-6); }
.site-header.is-home + main .page-intro .lead { margin-top: 0; }

/* Phones: menu stays on one line, spread across the width */
@media (max-width: 720px) {
  .site-header.is-home .wrap { row-gap: var(--space-4); }
  .site-nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: var(--space-2); }
  .site-nav a { white-space: nowrap; }
}
@media (max-width: 360px) { .site-nav a { font-size: 13px; } }
@media (max-width: 720px) { .site-header .site-nav.has-pill { gap: 0; width: calc(100% + 26px); margin: 0 -13px; } .site-nav.has-pill a { padding: 6px 8px; } }
@media (max-width: 380px) { .site-header .site-nav.has-pill { width: calc(100% + 22px); margin: 0 -11px; } .site-nav.has-pill a { padding: 6px 6px; } }

/* Under construction landing page (index.html): framed Street View, roll the dice for a new place.
   Nothing overlaps the Street View, so Google's own location box stays visible. */
.landing { background: var(--paper); }
.roam { height: 100vh; height: 100svh; min-height: 520px; display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6) var(--space-12); }
.roam-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-6); }
.roam-top .site-title { margin: 0; }
.roam-view { flex: 1; min-height: 0; width: 100%; border: 0; background: var(--grey-200); }
.roam-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4) var(--space-6); }
.roam-cap { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 14px; line-height: 20px; }
.roam-open { color: var(--grey-600); text-decoration: none; border-bottom: 1px solid var(--grey-200); }
.roam-open:hover { color: var(--ink); border-bottom-color: var(--ink); }
.landing-note { margin: 0; font-size: 20px; line-height: 28px; font-weight: 300; color: var(--ink); }
.roam-roll { font: inherit; font-size: 18px; line-height: 24px; font-weight: 300; color: var(--ink); border-radius: var(--radius-pill); padding: calc(var(--space-4) - 1px) var(--space-6); display: inline-flex; align-items: center; gap: var(--space-4); white-space: nowrap; }
.roam-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.roam-access { font-size: 18px; line-height: 24px; font-weight: 300; color: var(--ink); text-decoration: none; border-radius: var(--radius-pill); padding: calc(var(--space-4) - 1px) var(--space-6); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.roam-spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.15); border-top-color: currentColor; border-right-color: currentColor; border-radius: 50%; animation: roam-spin .8s linear infinite; }
.roam-roll.is-loading .roam-spin { display: block; }
@keyframes roam-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .roam-spin { animation-duration: 2s; } }
@media (max-width: 720px) {
  .roam { padding: var(--space-4) var(--space-6); gap: var(--space-4); }
  .roam-bottom { flex-direction: column; align-items: stretch; }
  .roam-actions { flex-direction: column; gap: var(--space-2); }
  .roam-access { justify-content: center; padding: calc(var(--space-4) - 1px); }
  .landing-note { font-size: 16px; line-height: 22px; text-wrap: balance; }
  .roam-roll { justify-content: center; gap: var(--space-2); padding: var(--space-4); }
}

/* Company sub-pages (e.g. design-tf-cornerstone.html) */
.crumb { margin: 0 0 var(--space-4); font-size: 14px; line-height: 20px; color: var(--grey-600); }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--grey-200); }
.crumb a::after { content: " ↗"; }
.crumb a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.ig-card { display: flex; flex-direction: column; gap: var(--space-2); max-width: 480px; padding: var(--space-6); border: 1px solid var(--grey-200); border-radius: 24px; text-decoration: none; }
.ig-card:hover { border-color: var(--ink); }
.ig-handle { font-size: 20px; line-height: 26px; font-weight: 300; }
.ig-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); align-items: start; }
.ig-posts .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
/* Blog posts: 3-across grid */
.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-6); }
.card { display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; }
.card-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--grey-100); margin-bottom: var(--space-2); }
.card-blank { display: flex; align-items: flex-end; padding: var(--space-4); border: 1px solid var(--grey-200); font-size: 13px; line-height: 18px; color: var(--grey-600); }
.card-title { font-size: 18px; line-height: 26px; font-weight: 300; }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card:hover .card-blank { border-color: var(--ink); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grey-200); max-width: 880px; }
.link-list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-6); padding: var(--space-4) 0; border-bottom: 1px solid var(--grey-200); text-decoration: none; }
.link-title { font-size: 18px; line-height: 26px; font-weight: 300; }
.link-list a:hover .link-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 1200px) { .ig-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ig-posts { grid-template-columns: minmax(0, 1fr); } }
.work-note { max-width: 640px; }
.work-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.work-links a { white-space: nowrap; }
.contact-list a:hover .go-arrow, .work-links a:hover .go-arrow, a.more:hover .go-arrow { transform: translate(3px, -3px); }


/* Ball on the About page: starts on the line under the title, can drop to the footer line */
body[data-ball] { position: relative; }
.ball-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 5; }
.ball { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); touch-action: none; will-change: transform; pointer-events: auto; }

/* Contact: page is exactly the window height, footer on the bottom edge */
body.fit-window { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.fit-window main { flex: 1 0 auto; padding-bottom: var(--space-6); }

.site-title a { color: inherit; text-decoration: none; }
/* About fits in one window: tighter spacing */
body[data-ball] .page-intro { padding: var(--space-8) 0 var(--space-6); }
body[data-ball] main .section { padding: var(--space-6) 0; }
body[data-ball] .about-list { margin-bottom: var(--space-6); }
body[data-ball] .about-list li { padding: 5px 0; }
body[data-ball] .site-footer { padding-bottom: var(--space-6); }
.headline a { color: inherit; text-decoration: none; }
.go-arrow { display: inline-block; font-size: .75em; vertical-align: .2em; font-weight: 300; transition: transform .25s ease; }
.headline a:hover { color: var(--grey-600); }
.back { margin: 0 0 var(--space-6); }
.back-bottom { margin: var(--space-6) 0 0; }
.back-btn { display: inline-block; font-size: 14px; line-height: 20px; text-decoration: none; color: var(--ink); border-radius: var(--radius-pill); padding: 8px 14px; }

/* Video cards (Artists In Focus) */
.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; align-items: start; }   /* all five in one row */
.video-card { margin: 0; }
.video-media { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: var(--grey-100); }   /* same frame for every video, nothing cropped */
.video-media.is-fill { object-fit: cover; }   /* a shorter video fills the frame as a preview, then plays at its own shape (Judith Weller) */
.video-card figcaption { margin-top: var(--space-2); }
.video-text { margin: var(--space-2) 0 0; font-size: 14px; line-height: 20px; font-weight: 300; color: var(--grey-600); white-space: pre-line; }   /* blank lines in a caption become paragraph breaks */
/* Long captions show four lines with a Read More link that opens the rest */
.video-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.video-more { margin: 4px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; line-height: 20px; color: var(--grey-400); }
.video-more:hover { color: var(--ink); }
@media (min-width: 1101px) { .video-card .pf-cap-title { min-height: 40px; } }   /* room for a two-line name, so every caption starts on the same line */
@media (max-width: 1100px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: minmax(0, 1fr); } }
.credits { margin: var(--space-6) 0 0; font-size: 14px; line-height: 20px; color: var(--grey-600); }
.video-frame { position: relative; }
.video-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .55); pointer-events: none; }
.video-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent #fff; }
.video-play[hidden] { display: none; }
.pf-lb-img.is-zoomable { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14.5' fill='%23fff' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M16 9v14M9 16h14' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, zoom-in; }   /* plus in a circle */
.pf-lb-figure.is-zoomed { display: block; overflow-y: auto; text-align: center; }
.pf-lb-figure.is-zoomed .pf-lb-img { max-height: none; width: 100%; max-width: 800px; margin: 0 auto; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14.5' fill='%23fff' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M9 16h14' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, zoom-out; }   /* minus in a circle */
.pf-lb-figure.is-zoomed .pf-lb-cap { margin-top: var(--space-4); }

/* Cursor: a small black dot everywhere (lightbox zoom keeps its own) */
html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='7' cy='7' r='5' fill='%23000' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 7 7, auto; }
body * { cursor: inherit; }
/* Over anything clickable the dot grows slightly */
a, button, summary, label[for], select, video, .book { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='7' fill='%23000' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 9 9, pointer; }

/* Home intro: New York spins like a slot reel and lands on itself */
.spin-reel { display: inline-block; height: var(--lh, 1.5em); overflow: hidden; vertical-align: top; }
.spin-strip { display: flex; flex-direction: column; }
.spin-strip span { display: block; height: var(--lh, 1.5em); white-space: nowrap; }
.spin-reel.is-spinning .spin-strip { transition: transform 2.4s cubic-bezier(.15, .7, .2, 1) .3s; }
.spin-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.back-btn:hover .back-arrow { transform: translate(-3px, -3px); }

/* Booklet (Artillery media kit): pages turn like a book; round arrows outside the pages */
.booklet { outline: none; }
.booklet-stage { display: flex; align-items: center; gap: var(--space-4, 16px); background: var(--grey-100); padding: var(--space-6) var(--space-4, 16px); user-select: none; }
.book { position: relative; flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; perspective: 2400px; transition: transform .7s cubic-bezier(.35, .1, .25, 1); }
.book.is-single { grid-template-columns: 1fr; }
.book-slot { position: relative; min-width: 0; }
.book-page { display: block; width: 100%; height: 100%; object-fit: contain; }
.book-slot .book-page:not(.is-blank) { box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.book-leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.35, .1, .25, 1); z-index: 2; }
.book-leaf.from-right { left: 50%; transform-origin: left center; }
.book-leaf.from-left { left: 0; transform-origin: right center; }
.book-leaf.is-whole { left: 0; width: 100%; transform-origin: left center; }
.book-leaf.from-right.is-turned, .book-leaf.is-whole.is-fwd.is-turned { transform: rotateY(-180deg); }
.book-leaf.from-left.is-turned { transform: rotateY(180deg); }
.book-leaf.is-whole.is-back { transform-origin: right center; }
.book-leaf.is-whole.is-back.is-turned { transform: rotateY(180deg); }
.leaf-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--grey-100); }
.leaf-face .book-page { box-shadow: 0 1px 10px rgba(0, 0, 0, .18); }
.leaf-back { transform: rotateY(180deg); }
.book-leaf.is-whole .leaf-back { visibility: hidden; }
.booklet-arrow { position: relative; z-index: 3; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); font: inherit; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.booklet-arrow:disabled { opacity: .25; }
.booklet-count { margin: var(--space-3, 12px) 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--grey-600); }
@media (max-width: 700px) { .booklet-stage { gap: 8px; padding: var(--space-3, 12px) 8px; } .booklet-arrow { width: 36px; height: 36px; font-size: 16px; } }
.resume-request { margin: var(--space-8) 0 0; }
.teaser-link { margin: var(--space-6) 0 0; }
.view-more { margin: var(--space-6) 0 0; font-size: 14px; line-height: 20px; }
.view-more a { color: var(--grey-400); text-decoration: none; }
.view-more a:hover { color: var(--ink); }
@media (max-width: 340px) { .site-header .site-nav.has-pill { padding: 4px; width: calc(100% + 14px); margin: 0 -7px; } .site-nav.has-pill a { padding: 6px 3px; font-size: 12.5px; } }

/* Every pill button shares the menu's liquid glass look and turns black on hover */
.back-btn, .roam-roll, .roam-access, .booklet-arrow {
  border: 1px solid rgba(255, 255, 255, .7);
  background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .7));
  -webkit-backdrop-filter: blur(3px) saturate(180%) brightness(1.06); backdrop-filter: blur(3px) saturate(180%) brightness(1.06);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .95), inset -1px -1px 0 rgba(255, 255, 255, .5), inset 0 0 14px rgba(255, 255, 255, .45), 0 4px 16px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .1);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.back-btn:hover, .roam-roll:hover, .roam-access:hover, .booklet-arrow:not(:disabled):hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.back-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.next-btn { margin-left: auto; }
.next-btn:hover .go-arrow { transform: translate(3px, -3px); }
@media (max-width: 720px) {
  .back-row { flex-wrap: nowrap; gap: var(--space-2); }
  .back-row .back-btn { font-size: 13px; padding: 7px 12px; white-space: nowrap; }
}
@media (max-width: 400px) { .back-row .opt { display: none; } .back-row .back-btn { font-size: 12px; padding: 7px 10px; } }
@media (max-width: 340px) { .back-row .back-btn { font-size: 11px; padding: 6px 9px; } }
/* Bottom-of-page buttons use full-size horizontal arrows (z's request) */
.h-arrow { display: inline-block; font-size: 1.15em; line-height: 1; transition: transform .25s ease; }
.back-btn:hover .h-back { transform: translateX(-3px); }
.back-btn:hover .h-next { transform: translateX(3px); }
/* The About ball and the Contact plane show the dot inverted to white, a little bigger, so they read as something to grab */
.ball, .plane-hit { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='7' fill='%23fff' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 9 9, grab; }
.ball.is-held, .plane-hit.is-held { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='6' fill='%23fff' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 9 9, grabbing; }

/* Section links at the top of Projects and Photography glide to their section */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* The Contact paper plane: flies out of the Contact pill with a loop and lands on the footer line (js/plane.js) */
body[data-plane] { position: relative; }
.plane-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 5; }
.plane-layer svg { position: absolute; left: 0; top: 0; overflow: visible; }
.plane-trail { fill: none; stroke: var(--grey-400, #9a9a9a); stroke-width: 1.5; stroke-dasharray: 4 5; stroke-linecap: round; }
.plane-body { fill: #fff; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.plane-hit { fill: transparent; pointer-events: all; touch-action: none; }
.plane-fold { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; }

/* First visit to Home: a white loading screen with a spinner, which lifts away to reveal the page (js/site.js) */
html.first-load body { overflow: hidden; }
html.first-load body::before { content: ''; position: fixed; inset: 0; z-index: 2000; background: var(--paper, #fff); transition: transform .8s cubic-bezier(.7, 0, .2, 1); }
html.first-load body::after { content: ''; position: fixed; left: 50%; top: 50%; z-index: 2001; width: 22px; height: 22px; margin: -11px 0 0 -11px; box-sizing: border-box; border: 2px solid rgba(0,0,0,.12); border-top-color: var(--ink); border-radius: 50%; animation: roam-spin .8s linear infinite; transition: opacity .25s ease; }
html.first-load.is-revealed body::before { transform: translateY(-100%); }
html.first-load.is-revealed body::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.first-load body::before { transition: opacity .6s ease; }
  html.first-load.is-revealed body::before { transform: none; opacity: 0; }
}

/* YouTube videos (TF Cornerstone Home Tours): two side by side, stacked on phones */
.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.yt-card { margin: 0; }
.yt-card figcaption { margin-top: var(--space-2); }
@media (max-width: 720px) { .yt-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--grey-100); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 404: a big Oops and a way home */
.oops-title { margin: 0 0 .12em; font-size: clamp(120px, 24vw, 280px); line-height: 1; font-weight: 300; letter-spacing: -.04em; }
.oops .lead { margin-top: var(--space-4); }
.oops .back { margin-top: var(--space-6); }

/* Landing page password box: a glass pill holding the field and an arrow button (js/roam.js) */
.roam-pass { padding: 0 0 0 var(--space-6); gap: 0; }
.roam-pass:hover { background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .7)); color: var(--ink); border-color: rgba(255, 255, 255, .7); }
.roam-pass input { width: 150px; min-width: 0; flex: 1; padding: calc(var(--space-4) - 1px) 0; border: 0; background: none; outline: none; font: inherit; color: var(--ink); }
.roam-pass input::placeholder { color: var(--grey-600); opacity: 1; }
.roam-pass button { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; align-self: stretch; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink); font: inherit; transition: background .2s ease, color .2s ease; }
.roam-pass button:hover { background: var(--ink); color: var(--paper); }
.roam-pass:focus-within { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .95), 0 4px 16px rgba(0, 0, 0, .1), 0 0 0 1px var(--ink); }
.roam-pass.is-wrong { animation: roam-shake .4s ease; }
@keyframes roam-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.roam-pass.is-red, .roam-pass.is-red:hover, .roam-pass.is-red:focus-within { background: rgba(225, 45, 45, .12); border-color: #e12d2d; box-shadow: 0 0 0 1px #e12d2d, 0 4px 16px rgba(225, 45, 45, .18); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.roam-pass.is-red input::placeholder, .roam-pass.is-red button { color: #c81e1e; }
.roam-pass.is-locked { opacity: .6; }
.roam-pass.is-locked input { width: 280px; }   /* room for the lock message */
.roam-pass.is-locked button:hover { background: none; color: var(--ink); }

/* A published article on a photography page (Car Community, The Drive) */
.article-credit { margin: 0 0 var(--space-4); font-size: 14px; line-height: 20px; color: var(--grey-600); }
.article-excerpt { margin: 0 0 var(--space-6); max-width: 640px; font-size: 18px; line-height: 28px; font-weight: 300; }
.article .section-head .text { max-width: none; flex: 1 1 100%; }   /* the headline runs the full width of the page */

/* Breadcrumbs: Home / Projects / This Page, small grey text above the page title */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--space-4); font-size: 14px; line-height: 20px; color: var(--grey-600); }
.crumbs a { color: var(--grey-600); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.crumb-sep { color: var(--grey-400); }

/* Gallery look (Art Documentary): photo rows with a light caption, no headings or dividing lines */
.gallery { padding: var(--space-12) 0; border-top: 1px solid var(--grey-200); }
.gallery-row + .gallery-row { margin-top: var(--space-12); }
.gallery-cap { display: flex; align-items: baseline; gap: var(--space-4); margin: var(--space-3, 12px) 0 0; }
.gallery-name { font-size: 18px; line-height: 28px; font-weight: 300; color: var(--ink); text-decoration: none; }
.gallery-name:hover { color: var(--grey-600); }
.gallery-more { font-size: 14px; line-height: 20px; color: var(--grey-400); text-decoration: none; }
.gallery-more:hover { color: var(--ink); }
