/* Photography portfolio: left sidebar with the menu, one photograph at a time, or a wall of thumbnails.
   Fonts: Inria Serif Regular (400) for the name and headings, Nunito Sans Light (300) for everything else. Both are self-hosted. */

@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-300-italic-ext.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-300-ext.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inria Serif"; src: url("/fonts/inria-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inria Serif"; src: url("/fonts/inria-serif-400-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --wall: #f4f2ee;
  --ink: #141414;
  --accent: #2b53af;
  --quiet: #77736f;
  --button: #4a4846;
  --cream: #f7d9a2;
  --rule: #ddd8d2;
  --focus: #2b53af;
  --side: 261px;
  --top: 73px;
  --right: 47px;
  --left: 46px;
  --serif: "Inria Serif", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 1rem; line-height: 1.6; letter-spacing: 0.03em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: 0.2em; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
ul { list-style: none; margin: 0; padding: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; }
.skip:focus { left: 0; }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--side); z-index: 10;
  display: flex; flex-direction: column;
  padding: var(--top) 1rem 2.4rem var(--left);
  overflow-y: auto;
}
.brand { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: 0; display: inline-block; }
.menu-toggle { display: none; }

.nav { margin-top: 2.2rem; }
.nav-main li + li { margin-top: 0.1rem; }
.nav-main a { display: block; padding: 0.1rem 0 0.1rem 0.15rem; font-size: calc(0.9375rem + 2pt); line-height: 1.5; }
.nav-sub { margin-top: 1.8rem; }
.nav-sub a { display: block; padding: 0.15rem 0 0.15rem 0.15rem; font-size: calc(0.8125rem + 2pt); line-height: 1.4; color: var(--quiet); }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }

.controls { margin-top: auto; padding-top: 1.5rem; text-transform: uppercase; }
.controls[hidden] { display: none; }
.series-name { display: none; }
.ctl-step { margin: 0 0 1rem; font-size: 1.625rem; line-height: 1.2; color: var(--accent); font-weight: 300; letter-spacing: 0.02em; }
.ctl-step button:hover, .ctl-view:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ctl-view { display: block; text-align: left; font-size: 1.625rem; line-height: 1.2; color: var(--button); font-weight: 300; letter-spacing: 0.02em; max-width: 9ch; }

/* ---------- stage ---------- */
.stage { margin-left: var(--side); padding: var(--top) var(--right) 4rem 0; min-height: 100vh; }
body.series .stage { padding-bottom: calc(var(--top) + 1px); }

/* slideshow */
.show { display: none; }
.js .show { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: calc(100vh - var(--top) - var(--top)); }
@supports (height: 100dvh) { .js .show { height: calc(100dvh - var(--top) - var(--top)); } }
.show[hidden], .js [data-mode="grid"] .show { display: none; }
.show-frame { min-height: 0; display: flex; align-items: center; justify-content: center; }
.show img { max-width: 100%; max-height: 100%; width: auto; height: auto; cursor: pointer; }
.show-caption { margin: 0.8rem 0 0; min-height: 1.6em; color: var(--quiet); font-size: 0.875rem; text-align: center; }

/* thumbnails: three columns, original proportions */
.grid { columns: 3; column-gap: 9px; }
.js .grid { display: none; }
.js [data-mode="grid"] .grid { display: block; }
.grid li { break-inside: avoid; margin-bottom: 9px; }
.grid a { display: block; background: #e6e2dc; }
.grid img { width: 100%; height: auto; transition: opacity 0.2s; }
.grid a:hover img { opacity: 0.88; }
@media (max-width: 1100px) { .grid { columns: 2; } }

.empty { color: var(--quiet); }

/* videos */
.videos { display: grid; gap: 2.5rem; max-width: 960px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #e6e2dc; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { margin: 0.6rem 0 0; color: var(--quiet); font-size: 0.875rem; }

/* text pages */
.prose { max-width: 62ch; padding-left: 0.15rem; }
.prose p { margin: 0 0 1.1em; }
.page-title { margin: 0 0 1.6rem; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; letter-spacing: 0; }

form { display: grid; gap: 0.4rem; margin-top: 2rem; }
label { font-size: 0.875rem; color: var(--quiet); margin-top: 0.8rem; }
input, textarea {
  font: inherit; letter-spacing: 0.01em; font-weight: 300; color: inherit; background: #fff; border: 1px solid var(--rule); border-radius: 0;
  padding: 0.75rem 0.85rem; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
form button[type="submit"] {
  justify-self: start; margin-top: 1.4rem; min-height: 3rem; padding: 0 1.8rem;
  color: #fff; background: var(--ink); border: 1px solid var(--ink); font-weight: 300;
}
form button[type="submit"]:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- entry page ---------- */
body.splash { background: #14171c; color: var(--cream); }
.hero { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.hero-img, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { background: linear-gradient(135deg, #2b3340, #6c7690); }
.hero-twinkle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-twinkle { opacity: 0; animation: twinkle-in 1.4s ease-out 1.5s both; }
  @keyframes twinkle-in { from { opacity: 0; } to { opacity: 1; } }
}
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background: rgb(8 10 14 / 0.14); }
.hero-text { position: absolute; left: clamp(1.5rem, 6vw, 7.5rem); top: 42%; transform: translateY(-50%); }
.hero-text h1 {
  margin: 0; font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.32; letter-spacing: 0.26em;
}
.hero-text h1 span { display: block; }
.hero-text p { margin: 2rem 0 0; font-size: 0.8125rem; font-weight: 300; text-transform: uppercase; letter-spacing: 0.2em; color: rgb(247 217 162 / 0.92); }

.enter {
  position: absolute; left: clamp(1.5rem, 6vw, 7.5rem); bottom: clamp(1.5rem, 5.5vh, 3.5rem);
  display: inline-flex; align-items: center; justify-content: center; min-width: 7.3rem; min-height: 3.3rem; padding: 0 1.6rem;
  color: var(--cream); border: 1.5px solid var(--cream); text-transform: uppercase; font-weight: 300; font-size: 0.9375rem; letter-spacing: 0.14em;
  transition: background-color 0.2s, color 0.2s;
}
.enter:hover, .enter:focus-visible { background: var(--cream); color: #1a1a1a; }
.enter:focus-visible { outline-color: var(--cream); outline-offset: 4px; }

/* One animated moment: the photo settles in, then the name and button arrive. */
@media (prefers-reduced-motion: no-preference) {
  .hero-img, .hero-fallback { animation: hero-in 1.6s ease-out both; }
  .hero-text, .enter { animation: text-in 1.1s ease-out 0.7s both; }
  @keyframes hero-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
  @keyframes text-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- phones and tablets ---------- */
@media (max-width: 899px) {
  :root { --top: 1rem; }
  .sidebar { position: static; width: auto; padding: 1.1rem 1.1rem 0; overflow: visible; display: block; }
  .brand-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .brand { font-size: 1.3rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 2.75rem; min-height: 2.75rem; padding: 0; color: var(--ink); }
  .burger { display: block; }
  .burger path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: butt; transition: opacity 0.15s; }
  .menu-toggle[aria-expanded="true"] .burger path { stroke: var(--accent); }
  .js .nav { display: none; margin-top: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--rule); }
  .js .nav.open { display: block; }
  /* with the menu open on a phone, show only the menu: hide the gallery and its Prev/Next bar */
  .js body.menu-open .stage, .js body.menu-open .controls { display: none; }
  .nav-main a { padding: 0.4rem 0; font-size: calc(1rem + 2pt); }
  .nav-sub a { padding: 0.35rem 0; font-size: calc(0.875rem + 2pt); }
  .stage { margin-left: 0; padding: 1rem 1.1rem 5.5rem; min-height: 0; }
  .series-name { display: block; margin: 0 0 0.7rem; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
  .js .show { height: calc(100vh - 13rem); }
  @supports (height: 100dvh) { .js .show { height: calc(100dvh - 13rem); } }
  .grid { columns: 2; column-gap: 6px; }
  .grid li { margin-bottom: 6px; }
  .controls {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 0.4rem 1.1rem calc(0.4rem + env(safe-area-inset-bottom));
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--wall); border-top: 1px solid var(--rule);
  }
  .controls[hidden] { display: none; }
  .ctl-step, .ctl-view { margin: 0; font-size: 1rem; max-width: none; }
  .ctl-step button, .ctl-view { min-height: 2.75rem; padding: 0 0.2rem; }
  .hero-text { top: 38%; }
  .enter { right: 1.5rem; }
}

/* ---------- hidden UX portfolio (/portfolio): black page, white text, one column ---------- */
body { font-synthesis: none; }
body.pf { background: #000; color: #fff; letter-spacing: 0.01em; font-weight: 300; line-height: 1.65; }
.pf ::selection { background: #fff; color: #000; }
.pf-page { max-width: 68rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 10vw, 8rem); }
.pf-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.005em; }
.pf-title { margin: 0.7rem 0 0; font-size: 1.25rem; }
.pf-links { margin: 1rem 0 0; display: flex; gap: 1.5rem; }
.pf-links a { color: #4da3ff; text-decoration: none; }
.pf-links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.pf-links a:focus-visible, .pf a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.pf-block { margin-top: clamp(2rem, 4vw, 3rem); }
.pf-text { max-width: 40rem; font-size: 1.125rem; }
.pf-text p { margin: 0 0 1em; }
.pf-text p:last-child { margin-bottom: 0; }
.pf-text ul { margin: 0.6rem 0 0; padding-left: 1.25rem; list-style: disc; }
.pf-text li { margin: 0.25rem 0; padding-left: 0.25rem; }
.pf-text li::marker { color: rgb(255 255 255 / 0.6); }
.pf-text p + ul { margin-top: 0.4rem; }
.pf-heading { margin: clamp(2.2rem, 5vw, 3.5rem) 0 0; max-width: 44rem; text-wrap: balance; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.3; letter-spacing: 0; }
.pf-heading + .pf-block { margin-top: 1rem; }
.pf-wide { max-width: none; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.pf-media { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 8px; overflow: hidden; }
.pf-large { --lw: min(94vw, 1280px); width: var(--lw); max-width: none; position: relative; left: 50%; margin-left: calc(var(--lw) / -2); }
.pf-large .pf-media { aspect-ratio: 16 / 10; }
.pf-fs { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.25rem; padding: 0 0.8rem; border: 0; border-radius: 6px; background: #fff; color: #000; font: inherit; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; box-shadow: 0 1px 6px rgb(0 0 0 / 0.45); transition: background 0.15s; }
.pf-fs:hover { background: #e6e6e6; }
.pf-fs:focus-visible { outline: 2px solid #4da3ff; outline-offset: 2px; }
.pf-media:fullscreen { aspect-ratio: auto; border-radius: 0; width: 100%; height: 100%; }
.pf-media:-webkit-full-screen { aspect-ratio: auto; border-radius: 0; width: 100%; height: 100%; }
.pf-media.pf-fs-on { position: fixed; inset: 0; z-index: 1000; aspect-ratio: auto; border-radius: 0; }
html.pf-fs-lock { overflow: hidden; }
.pf-media iframe, .pf-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pf-placeholder { display: grid; place-items: center; border: 1px solid #333; color: rgb(255 255 255 / 0.55); font-size: 0.9375rem; }
figure.pf-wide { margin-left: 0; margin-right: 0; }
figure.pf-wide img { width: 100%; height: auto; }
figure.pf-radar-fig { margin: 0; }
svg.pf-radar { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; touch-action: pan-y; cursor: crosshair; }
figure.pf-fit img { aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
figure.pf-wide figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: rgb(255 255 255 / 0.7); }

/* password gate */
.pf-gate { max-width: 22rem; margin: clamp(4rem, 16vh, 9rem) 0 0; display: grid; gap: 0.9rem; }
.pf-gate h1 { margin: 0 0 0.3rem; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; letter-spacing: 0; }
.pf-gate p { margin: 0; }
.pf-gate input { background: #111; color: #fff; border: 1px solid #555; padding: 0.8rem 0.9rem; }
.pf-gate input:focus { outline: 2px solid #fff; outline-offset: 2px; border-color: #fff; }
.pf-gate button { justify-self: start; min-height: 3rem; padding: 0 1.8rem; background: #fff; color: #000; border: 1px solid #fff; font-weight: 300; letter-spacing: 0.04em; }
.pf-gate button:hover:not(:disabled) { background: #d9d9d9; }
.pf-gate button:disabled { opacity: 0.6; cursor: progress; }
.pf-gate button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pf-gate-error { color: #ff9a9a; }

/* press page */
.press { max-width: 56rem; }
.press-text { margin: 0 0 1.2rem; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.6; overflow-wrap: anywhere; }
.press-text a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.press-text a:hover { color: var(--accent); }
.press-group { margin: 2.2rem 0 0; }
.press-group + .press-group { margin-top: 2.4rem; }
.press-images { display: grid; gap: clamp(1rem, 3vw, 2.5rem); margin: 0; }
.press-images.n2 { grid-template-columns: repeat(2, 1fr); }
.press-images a { display: block; background: #e6e2dc; }
.press-images img { width: 100%; height: auto; }
.press-images.crop img { aspect-ratio: 1.215; object-fit: cover; }
.press-images.n1 a, .press-images.n1 .press-ph { max-width: 40rem; }
.press-images.n1.wide a, .press-images.n1.wide .press-ph { max-width: none; }
.press-rule { border: 0; border-top: 1px solid var(--rule); margin: clamp(2.5rem, 6vw, 4.5rem) 0; }
@media (max-width: 520px) { .press-images.n2 { grid-template-columns: 1fr; } }

.press-note { margin: 0 0 1.2rem; font-weight: 300; letter-spacing: 0.01em; }
.press-ph { display: grid; place-items: center; width: 100%; background: #e6e2dc; color: var(--quiet); font-size: 0.875rem; text-align: center; padding: 1rem; }
.press-group figcaption { margin-top: 0.8rem; color: var(--quiet); font-size: 0.875rem; }

/* contact: portrait left, form right */
.contact { display: grid; grid-template-columns: minmax(0, 374px) minmax(0, 540px); gap: 2.4rem; align-items: start; }
.contact-photo { width: 100%; aspect-ratio: 374 / 473; object-fit: cover; object-position: 50% 30%; }
.contact form { margin-top: 0; }
.contact label { margin-top: 0.6rem; font-size: 1rem; color: var(--ink); }
.contact label:first-of-type { margin-top: 0; }
.contact label small { font-size: 0.8125rem; color: var(--quiet); margin-left: 0.2rem; }
.contact input, .contact textarea { background: #fafafa; border-color: #c9c5c0; }
.contact form button[type="submit"] { text-transform: uppercase; font-weight: 300; letter-spacing: 0.08em; min-width: 8.4rem; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; gap: 1.6rem; } .contact-photo { max-width: 374px; } }

/* portfolio: everything centred */
body.pf { text-align: center; }
.pf-links { justify-content: center; }
.pf-text, .pf-heading { margin-left: auto; margin-right: auto; }
.pf-text ul { padding-left: 0; list-style: none; }
.pf-text li { padding-left: 0; }
.pf-gate { margin-left: auto; margin-right: auto; text-align: center; }
.pf-gate button { justify-self: center; }

/* portfolio testimonial: italic, with a More / Less toggle */
.pf-quote { font-style: italic; }
.pf-quote p { margin: 0 0 1em; }
.pf-heading + .pf-quote { margin-top: 1rem; }
.pf-toggle { font: inherit; font-style: normal; color: #fff; background: none; border: 0; padding: 0 0.1em; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.pf-toggle:hover { text-decoration-thickness: 2px; }
.pf-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pf-collapsible .pf-rest, .pf-collapsible .pf-rest-block { display: none; }
.pf-collapsible.open .pf-rest { display: inline; }
.pf-collapsible.open .pf-rest-block { display: block; }
.pf-collapsible.open .pf-more-btn { display: none; }

/* ---------- portfolio: sub-headings, entries, show more, endorsements carousel ---------- */
.pf-sub { margin: 2rem auto 0; max-width: 40rem; font-size: 1.125rem; font-weight: 400; letter-spacing: 0.04em; }
.pf-sub + .pf-block { margin-top: 0.5rem; }
.pf-heading { text-transform: none; }
.pf-lines p { margin: 0 0 0.35em; }
.pf-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem 2rem; max-width: 44rem; margin-left: auto; margin-right: auto; font-size: 1.125rem; }
.pf-entry p { margin: 0; }
.pf-entry-name { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.2rem !important; }
.pf-entry-meta { color: rgb(255 255 255 / 0.65); }
.pf-more { max-width: 40rem; margin-left: auto; margin-right: auto; }
.pf-more-toggle { font: inherit; font-size: 1.125rem; color: #fff; background: none; border: 0; padding: 0.4rem 0.2rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.pf-more-toggle:hover { text-decoration-thickness: 2px; }
.pf-more-toggle:focus-visible, .pf-car-ctl button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pf-more-body[hidden], .pf-slide[hidden] { display: none; }
.pf-more-body { margin-top: 0.5rem; }
.pf-carousel { max-width: 40rem; margin-left: auto; margin-right: auto; font-size: 1.125rem; }
.pf-slide-role { margin: 0 0 1rem; font-style: normal; letter-spacing: 0.04em; color: rgb(255 255 255 / 0.7); }
.pf-car-ctl { display: flex; justify-content: center; align-items: center; gap: 1.6rem; margin-top: 1.8rem; }
.pf-car-ctl button { font: inherit; color: #000; background: #fff; border: 0; border-radius: 6px; min-height: 2.5rem; padding: 0 1.1rem; cursor: pointer; }
.pf-car-ctl button:hover { background: #e6e6e6; }
.pf-car-count { color: rgb(255 255 255 / 0.7); min-width: 3.5rem; }

/* ---------- portfolio redesign (dashboard stats, logo highlights, boxed columns, past portfolios) ---------- */
html:has(body.pf) { background: #0f0a0e; }
body.pf { background: linear-gradient(0deg, #050a1a 0%, #0f0a0e 100%) no-repeat; min-height: 100vh; }
.pf-page { padding-top: 96px; padding-bottom: 128px; }
.pf-head { max-width: 40rem; margin: 0 auto; }
.pf-head h1 { font-size: 48px; font-weight: 400; }
.pf-title { margin-top: 11px; font-size: 20px; }
.pf-heading { max-width: none; margin: 96px 0 16px; font-family: var(--sans); font-weight: 300; font-size: 12px; line-height: 1.3; letter-spacing: 0.16em; color: #B4BAC7; text-wrap: initial; }
.pf-head + .pf-heading { margin-top: 48px; }
.pf-heading + .pf-block { margin-top: 16px; }
.pf-muted, .pf-muted p { color: #B4BAC7; }
.pf-text.pf-muted { font-size: 14px; }
.pf-text.pf-bullets { font-size: 15px; margin-top: 24px; }
.pf-bullets p, .pf-bullets li { margin: 0 0 4px; }

.pf-stats { display: flex; gap: 40px; align-items: flex-start; max-width: 40rem; margin: 24px auto 0; }
.pf-stat { flex: 1 1 0; min-width: 0; }
.pf-stat p { margin: 0; }
.pf-stat-num { font-size: 72px; line-height: 1; color: #8cc4ff; }
.pf-stat-label { margin-top: 8px !important; font-size: 16px; line-height: 1.3; color: #B4BAC7; }

.pf-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 75rem; margin: 16px auto 0; font-size: 16px; }
.pf-hl p { margin: 0; }
.pf-hl-logo { height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pf-hl-logo img { height: var(--h, 56px); width: auto; max-width: 100%; object-fit: contain; }
.pf-hl-sub { white-space: nowrap; }
.pf-hl-meta { color: #B4BAC7; }

.pf-casehead { margin-top: 16px; font-size: 18px; }
.pf-casehead img { height: 44px; width: auto; max-width: 100%; margin: 0 auto 12px; object-fit: contain; }
.pf-casehead p { margin: 0; }
.pf-casehead + .pf-block { margin-top: 24px; }
.pf-bullets + .pf-block { margin-top: 32px; }
.pf-text.pf-muted + .pf-text { margin-top: 32px; }
.pf-more { margin-top: 4px; }
.pf-more-toggle { font-size: 14px; color: #4da3ff; text-decoration: none; padding: 6px 4px; }
.pf-more-toggle:hover { color: #8cc4ff; text-decoration: none; }
.pf-more-body { margin-top: 8px; font-size: 18px; text-align: center; }
.pf-more-body .pf-block { margin-top: 18px; }
.pf-more-body .pf-text p { margin-bottom: 18px; }
.pf-more-body ul { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.pf-more-body li { margin: 0; }
.pf-large { --lw: min(94vw, 1100px); margin-top: 80px; }
.pf-more + .pf-wide { margin-top: 80px; }

.pf-portfolios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; max-width: 720px; margin: 16px auto 0; }
.pf-portfolios a { display: block; color: #4da3ff; text-decoration: none; }
.pf-portfolios a:hover { color: #8cc4ff; }
.pf-portfolios img { width: 100%; height: auto; aspect-ratio: 1000 / 707; object-fit: cover; border-radius: 8px; border: 1px solid rgb(255 255 255 / 0.12); }
.pf-portfolios .pf-pf-label { display: block; margin-top: 12px; font-size: 16px; }

.pf-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; align-items: stretch; max-width: 1000px; margin: 32px auto 0; }
.pf-box { background: #000; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 8px; padding: 20px 28px; }
.pf-box h3 { margin: 0; font-size: 18px; font-weight: 300; letter-spacing: 0.04em; }
.pf-box p { margin: 0; font-size: 16px; text-align: start; color: #B4BAC7; }
.pf-box h3 + p { margin-top: 8px; }
.pf-muted + .pf-boxes { margin-top: 32px; }

.pf-radar-fig { max-width: 620px; margin: 24px auto 0 !important; }
.pf-muted + .pf-radar-fig { margin-top: 24px !important; }
svg.pf-radar { aspect-ratio: 1240 / 900; }

.pf-carousel { margin-top: 16px; }
.pf-carousel .pf-quote p { font-size: 14px; margin: 0 0 18px; }
.pf-carousel .pf-quote p:last-child { margin-bottom: 0; }
.pf-slide-role { margin-bottom: 16px; color: #B4BAC7; font-size: 18px; }
.pf-car-ctl { gap: 12px; margin-top: 28px; }
.pf-car-ctl button { width: 44px; height: 44px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: none; color: #fff; border-radius: 0; }
.pf-car-ctl button:hover { background: none; color: #8cc4ff; }
.pf-car-dots { display: flex; gap: 10px; }
.pf-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / 0.3); }
.pf-dot.on { background: #fff; }

.pf-closing { margin-top: 96px; max-width: 40rem; margin-left: auto; margin-right: auto; }
.pf-closing .pf-box p { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; }
.pf-link { margin: 48px 0 0; font-size: 16px; }
.pf-link a { color: #4da3ff; text-decoration: none; }
.pf-link a:hover { color: #8cc4ff; }
.pf-lines { font-size: 16px; }
.pf-lines p { margin: 0 0 6px; }

@media (max-width: 700px) {
  .pf-page { padding-top: 56px; padding-bottom: 80px; padding-left: 20px; padding-right: 20px; }
  .pf-head h1 { font-size: 36px; }
  .pf-title { margin-top: 8px; font-size: 18px; }
  .pf-text { font-size: 16px; }
  .pf-heading { margin: 84px 0 12px; font-size: 11px; }
  .pf-head + .pf-heading { margin-top: 40px; }
  .pf-heading + .pf-block { margin-top: 12px; }
  .pf-stats { gap: 8px; margin-top: 20px; }
  .pf-stat-num { font-size: 44px; }
  .pf-stat-label { font-size: 11px; }
  .pf-highlights { grid-template-columns: 1fr; gap: 40px; font-size: 14px; }
  .pf-hl-logo { height: auto; margin-bottom: 16px; }
  .pf-hl-logo img { height: calc(var(--h, 56px) * 0.8); }
  .pf-hl-sub { white-space: normal; }
  .pf-casehead { font-size: 16px; }
  .pf-more-body { font-size: 16px; }
  .pf-large { margin-top: 56px; }
  .pf-more + .pf-wide { margin-top: 56px; }
  .pf-portfolios { grid-template-columns: 1fr; gap: 24px; }
  .pf-portfolios .pf-pf-label { margin-top: 10px; font-size: 14px; }
  .pf-boxes { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .pf-muted + .pf-boxes { margin-top: 16px; }
  .pf-box { padding: 16px 18px; }
  .pf-box h3 { font-size: 16px; }
  .pf-box h3 + p { margin-top: 6px; }
  .pf-box p { font-size: 14px; }
  .pf-closing { margin-top: 84px; }
  .pf-link { margin-top: 40px; font-size: 14px; }
  .pf-lines { font-size: 14px; }
}

/* light-blue stroke around the prototype container */

.pf-proto:fullscreen, .pf-proto.pf-fs-on { border: 0; }
.pf-proto:-webkit-full-screen { border: 0; }

/* past portfolios: hover / keyboard focus overlay */
.pf-thumb { position: relative; display: block; }
.pf-thumb::after { content: "OPEN IN NEW WINDOW"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgb(0 0 0 / 0.8); color: #fff; font-size: 12px; letter-spacing: 0.16em; text-align: center; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.pf-portfolios a:hover .pf-thumb::after, .pf-portfolios a:focus-visible .pf-thumb::after { opacity: 1; }

/* prototype: desktop only */
.pf-desktop-only { display: none; }
@media (max-width: 700px) {
  .pf-proto { background: #000; aspect-ratio: 16 / 10; border: 1px solid rgb(255 255 255 / 0.12); }
  .pf-proto iframe, .pf-proto .pf-fs { display: none; }
  .pf-proto .pf-desktop-only { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 0 1rem; text-align: center; font-size: 14px; color: #fff; }
}

.pf-casehead + .pf-text.pf-muted { font-size: 16px; }

/* case study panel */
.pf-casehead { margin-top: 96px; }
.pf-panel { max-width: 1200px; margin: 80px auto 0; padding: 40px; background: #000; border-radius: 8px; display: flex; flex-direction: column; gap: 32px; }
.pf-panel > * { margin: 0; }
.pf-panel .pf-heading { max-width: 40rem; margin: 0 auto; width: 100%; }
.pf-panel > .pf-heading:first-child { margin-bottom: -16px; }
.pf-panel > * ~ .pf-heading { margin-top: 16px; margin-bottom: -16px; }
.pf-panel .pf-text { max-width: 40rem; margin: 0 auto; width: 100%; font-size: 18px; }
.pf-panel .pf-text ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.pf-panel .pf-text li { margin: 0; }
.pf-panel .pf-wide { max-width: none; width: 100%; }
.pf-panel .pf-proto { aspect-ratio: 16 / 10; background: #15151f; }
.pf-panel .pf-boxes { max-width: none; margin: 0; }
@media (max-width: 700px) {
  .pf-casehead { margin-top: 84px; }
  .pf-panel { margin-top: 56px; padding: 20px; gap: 24px; }
  .pf-panel > * ~ .pf-heading { margin-top: 8px; margin-bottom: -12px; }
  .pf-panel > .pf-heading:first-child { margin-bottom: -12px; }
  .pf-panel .pf-text { font-size: 16px; }
  .pf-panel .pf-text ul { font-size: 14px; }
}

/* latest canvas sync */
.pf-text.pf-body { font-size: 16px; }
.pf-highlights { margin-top: 28px; }
.pf-panel { padding-bottom: 80px; }
.pf-panel > .pf-heading:first-child { max-width: none; margin-left: 0; text-align: left; }
.pf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; width: 100%; }
.pf-cols p { margin: 0; font-size: 16px; text-align: start; color: #B4BAC7; }
@media (max-width: 700px) {
  .pf-panel { padding-bottom: 40px; }
  .pf-highlights { margin-top: 20px; }
  .pf-cols { grid-template-columns: 1fr; gap: 16px; }
}

/* fullscreen button in the pale blue of the big numbers */
.pf-fs { background: #8cc4ff; color: #000; }
.pf-fs:hover { background: #b5d9ff; }

/* Latest canvas sync: plain boxes, white closing text, link inside closing box */
.pf-plain .pf-box { border: 0; }
.pf-closing .pf-box p { color: #fff; text-align: center; }
.pf-closing .pf-box p.pf-closing-link { margin: 16px 0 0; font-size: 16px; text-align: center; text-transform: none; letter-spacing: 0; }
.pf-closing-link a { color: #4da3ff; text-decoration: none; }
.pf-closing-link a:hover { color: #8cc4ff; }
@media (max-width: 700px) { .pf-closing .pf-box p.pf-closing-link { font-size: 14px; } }

/* Password screen, styled to match the portfolio design */
.pf .pf-gate { width: min(24rem, calc(100vw - 40px)); max-width: none; margin: clamp(5rem, 24vh, 11rem) auto 0; box-sizing: border-box; padding: 40px 32px; background: #000; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 8px; gap: 16px; text-align: center; }
.pf .pf-gate h1 { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 36px; line-height: 1.1; letter-spacing: 0; text-transform: none; }
.pf .pf-gate p { font-size: 14px; color: #B4BAC7; line-height: 1.6; }
.pf .pf-gate input { width: 100%; box-sizing: border-box; min-height: 48px; background: #000; color: #fff; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 6px; padding: 0 14px; font: inherit; font-size: 16px; text-align: center; letter-spacing: 0.04em; }
.pf .pf-gate input:focus { outline: none; border-color: #8cc4ff; box-shadow: 0 0 0 1px #8cc4ff; }
.pf .pf-gate button { justify-self: stretch; min-height: 48px; padding: 0 24px; background: #8cc4ff; color: #000; border: 0; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.pf .pf-gate button:hover:not(:disabled) { background: #b5d9ff; }
.pf .pf-gate button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pf .pf-gate p.pf-gate-error { color: #ff9a9a; font-size: 14px; }

/* Company logos fade in on load */
@keyframes pf-fade { from { opacity: 0; } to { opacity: 1; } }
.pf-hl-logo img { opacity: 0; animation: pf-fade 0.9s ease-out forwards; }
.pf-hl:nth-child(1) .pf-hl-logo img { animation-delay: 0.1s; }
.pf-hl:nth-child(2) .pf-hl-logo img { animation-delay: 0.3s; }
.pf-hl:nth-child(3) .pf-hl-logo img { animation-delay: 0.5s; }
.pf-hl:nth-child(4) .pf-hl-logo img { animation-delay: 0.7s; }
@media (prefers-reduced-motion: reduce) { .pf-hl-logo img { opacity: 1; animation: none; } }

.pf-cols em { font-style: italic; }

/* More space above OBJECT MODEL */
.pf-panel .pf-wide + .pf-heading { margin-top: 56px; }
@media (max-width: 700px) { .pf-panel .pf-wide + .pf-heading { margin-top: 40px; } }

/* Benefits list matches the Galaxy paragraph (size and colour) */
.pf-panel .pf-text ul { font-size: 16px; line-height: 1.65; color: #B4BAC7; }

/* Slightly more space above the Heuristics boxes */
.pf-muted + .pf-boxes.pf-gap-lg { margin-top: 48px; }
@media (max-width: 700px) { .pf-muted + .pf-boxes.pf-gap-lg { margin-top: 24px; } }

/* More space under the PAST PORTFOLIOS header */
.pf-heading + .pf-block.pf-portfolios { margin-top: 40px; }
@media (max-width: 700px) { .pf-heading + .pf-block.pf-portfolios { margin-top: 28px; } }

/* Desktop: every photograph is centred in the stage and fills its height, keeping its proportions. */
@media (min-width: 900px) {
  .show-frame { align-items: center; justify-content: center; }
  .show-frame img { height: 100%; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
}

/* No empty caption strip under the photograph, so it can use the full height of the stage. */
.show-caption:empty { min-height: 0; margin: 0; }
