:root{--ink:#242623;--muted:#757873;--line:#d9dcd5;--paper:#f7f8f4;--accent:#d8ef75}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid #637f0a;outline-offset:5px}.skip{position:absolute;left:10px;top:-100px;background:white;padding:20px;z-index:10}.skip:focus{top:10px}header{height:100px;display:flex;align-items:center;justify-content:space-between;padding:0 4.5%;border-bottom:1px solid var(--line)}.identity{display:flex;gap:18px;align-items:center;font-size:16px;font-weight:600}.wk-mark{display:block;width:60px;height:auto;overflow:visible;color:var(--ink)}.wk-mark path{transform-box:fill-box}nav{display:flex;gap:40px;font-size:14px}sup{color:var(--muted);margin-left:4px;font-size:10px}.intro{display:grid;grid-template-columns:1fr 1.2fr;min-height:640px;border-bottom:1px solid var(--line)}.intro-copy{padding:70px 8% 46px 10%;display:flex;flex-direction:column}.eyebrow{font-size:11px;font-weight:600;letter-spacing:.13em;margin:0 0 30px}h1{font-size:clamp(52px,5.8vw,88px);letter-spacing:-.065em;line-height:1.03;font-weight:500;margin:0}h1 span{color:var(--muted)}.intro-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:40px}.intro-bottom p{font-size:14px;line-height:1.65;color:#656960}.round-link{background:var(--accent);border-radius:50%;width:55px;height:55px;display:grid;place-items:center;font-size:28px}.hero-art{background:white;display:flex;justify-content:center;flex-direction:column;position:relative;overflow:hidden;border-left:1px solid var(--line)}.hero-art img{width:100%;height:auto;display:block}.hero-caption{display:flex;justify-content:space-between;padding:25px 35px;font-size:12px;position:absolute;bottom:0;width:100%}.hero-caption span:first-child{letter-spacing:.1em;font-size:10px;color:var(--muted)}.work{padding:80px 4.5% 100px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:36px}.section-heading .eyebrow{margin-bottom:16px}h2{font-size:42px;letter-spacing:-.045em;font-weight:500;margin:0}h2 span{color:var(--muted);font-size:20px;letter-spacing:-.02em}.text-link{font-size:13px;border-bottom:1px solid var(--ink);padding-bottom:6px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:48px 26px}.project-image{border:0;padding:0;background:white;display:block;width:100%;position:relative;overflow:hidden}.project-image img{width:100%;height:auto;display:block}.view{position:absolute;bottom:20px;right:20px;background:var(--ink);color:white;border-radius:24px;padding:12px 18px;font-size:12px;opacity:0;transform:translateY(6px);transition:.25s}.project-image:hover .view,.project-image:focus-visible .view{opacity:1;transform:none}.caption{display:flex;justify-content:space-between;align-items:center;padding-top:17px}.caption h3{font-size:18px;font-weight:500;margin:0;letter-spacing:-.025em}.caption>span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.contact{padding:76px 4.5% 86px;display:grid;grid-template-columns:1fr 1fr;background:var(--accent);gap:40px}.contact h2{font-size:clamp(64px,7vw,110px);line-height:1;letter-spacing:-.065em}.contact h2 span{font-size:inherit;color:inherit;margin-left:18px}.contact-details{display:flex;flex-direction:column;gap:20px;justify-content:end;font-size:15px}.contact-details p{line-height:1.7;margin:0 0 16px}.contact-details p span{color:#51583c}.email{font-size:clamp(18px,2.1vw,32px);letter-spacing:-.04em;border-bottom:1px solid #aabb64;width:fit-content;padding-bottom:8px}footer{padding:25px 4.5%;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}dialog{border:0;padding:0;background:var(--paper);width:96vw;max-width:1600px;height:94dvh;max-height:94dvh;color:var(--ink)}dialog::backdrop{background:#141710d9;backdrop-filter:blur(8px)}.viewer-bar,.viewer-bottom{height:64px;display:flex;justify-content:space-between;align-items:center;padding:0 24px;gap:20px}.viewer-bar h2{font-size:22px}.viewer-bar button,.viewer-bottom button{border:0;background:transparent;padding:12px 0}.viewer-bottom{font-size:13px;border-top:1px solid var(--line)}.image-stage{height:calc(100% - 128px);display:flex;align-items:center;justify-content:center;background:white}.image-stage img{max-width:100%;max-height:100%;object-fit:contain}.viewer-bottom #counter{color:var(--muted);margin-right:auto}@media(min-width:1600px){main,header,footer{max-width:1800px;margin:auto}}@media(max-width:760px){header{height:78px;padding:0 6%}.identity{font-size:13px;gap:10px}.wk-mark{width:44px}nav{gap:18px;font-size:12px}nav sup{display:none}.intro{grid-template-columns:1fr;min-height:0}.intro-copy{padding:44px 6% 28px}h1{font-size:64px}.intro-bottom{padding-top:24px}.hero-art{border-left:0;border-top:1px solid var(--line);padding-bottom:30px}.hero-caption{padding:16px 6%}.work{padding:50px 6% 60px}.section-heading{align-items:start;flex-direction:column;gap:24px}h2{font-size:34px}.grid{grid-template-columns:1fr;gap:32px}.caption h3{font-size:17px}.view{opacity:1;transform:none;padding:8px 12px;bottom:12px;right:12px;font-size:10px}.contact{grid-template-columns:1fr;padding:50px 6%;gap:44px}.contact h2{font-size:72px}.email{font-size:24px}.contact-details{gap:17px}footer{padding:24px 6%}dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}.viewer-bar,.viewer-bottom{padding:0 16px;gap:15px}.viewer-bottom{font-size:11px}.viewer-bottom #counter{margin-right:0}.viewer-bar h2{font-size:20px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* Motion stays on transform and opacity; no continuous scrolling effects. */
@media (prefers-reduced-motion: no-preference) {
  .view { transition: opacity 220ms ease, transform 220ms ease; }
  .round-link { transition: transform 250ms ease; }
  dialog[open] { animation: viewer-enter 220ms ease-out; }
  dialog[open]::backdrop { animation: backdrop-enter 220ms ease-out; }
  @media (hover: hover) and (pointer: fine) {
    .round-link:hover { transform: translateY(3px); }
  }
}
@keyframes viewer-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@media (hover: none) {
  .view { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
.round-link, .view { transform: none !important; }
}

/* Scrollable project detail with user-initiated video playback. */
.viewer-content { height: calc(100% - 128px); overflow-y: auto; overscroll-behavior: contain; }
.viewer-content .image-stage { height: 100%; }
.has-films .image-stage { height: auto; min-height: 240px; }
.has-films .image-stage img { width: 100%; max-height: 62dvh; }
.project-films { padding: 28px; border-top: 1px solid var(--line); }
.project-films[hidden] { display: none; }
.project-films h3 { font-size: 24px; font-weight: 500; margin: 0 0 10px; }
.project-films > p { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.film-grid figure { margin: 0; min-width: 0; }
.film-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #181a17; }
.film-grid video:focus-visible { outline: 3px solid #637f0a; outline-offset: 4px; }
.film-grid figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 13px; }
.film-grid figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.film-count { display: inline-block; margin-left: 8px; font-size: 11px; background: var(--accent); border-radius: 12px; padding: 4px 8px; vertical-align: middle; }
@media(max-width:760px) { .film-grid { grid-template-columns: 1fr; } .project-films { padding: 24px 16px; } }

.image-stage[hidden], #original[hidden] { display: none; }
.freud-grid { grid-template-columns: 1fr; max-width: 1100px; margin: auto; }
.freud-card { aspect-ratio: 4 / 3; background: #ffffff; display: flex; align-items: center; justify-content: center; gap: 24px; }
.freud-wordmark { font-size: clamp(36px,5vw,72px); letter-spacing: -.05em; }
.freud-play { display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; width: 64px; height: 64px; font-size: 32px; }

/* Inline film previews retain the same stable card proportions as the stills. */
.project-image:has(.card-preview) { aspect-ratio: 4 / 3; background: #fff; }
.project-image:has(.card-preview) .media-zoom { position: absolute; inset: 0; }
.project-image:has(.card-preview) .media-zoom > img { width: 100%; height: 100%; object-fit: contain; }
.card-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; pointer-events: none; opacity: 0; }
.card-preview.is-playing { opacity: 1; }
.project-image .view { z-index: 1; }
.preview-toggle { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 5px 0; font-size: 11px; margin-left: auto; margin-right: 12px; }
.preview-toggle[hidden] { display: none; }
@media(prefers-reduced-motion: reduce) { .card-preview, .preview-toggle { display: none; } }

/* Independent PNG branding stays above both still artwork and looping films.
   Percentages match the original artwork so future logo-free images can be swapped in. */
.hero-media { display: block; position: relative; width: 100%; }
.project-brand { position: absolute; left: var(--logo-left); top: var(--logo-top); width: var(--logo-width); z-index: 2; pointer-events: none; }
.project-image .project-brand img, .hero-art .project-brand img { display: block; width: 100%; height: auto; transform: none !important; transition: none; }

/* Honda introduction uses the same accessible preview behaviour as the grid. */
.hero-caption { align-items: center; gap: 12px; }
.hero-caption .preview-toggle { white-space: nowrap; }
.hero-media { aspect-ratio: 4 / 3; }

/* Leave space for the independent logo above the new, closer-framed films. */
.new-header-preview { padding-top: 16%; }

/* PNG branding remains visible over the project-viewer animations. */
.branded-film { position: relative; background: #fff; aspect-ratio: 4 / 3; }
.film-grid .branded-film video { width: 100%; height: 100%; aspect-ratio: auto; background: #fff; object-fit: contain; }
.film-grid .film-brand-space video { padding-top: 16%; }
.branded-film .project-brand img { display: block; width: 100%; height: auto; }

.additional-spreads { background: white; }
.additional-spreads[hidden] { display: none; }
.additional-spreads figure { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.additional-spreads img { display: block; width: 100%; max-height: 72dvh; object-fit: contain; }
.additional-spreads a { display: block; width: fit-content; margin: 12px 24px 0 auto; font-size: 13px; text-decoration: underline; }

/* V4.9 — hover zoom (after nii-ingenious.com): artwork, film preview and logo overlay
   scale together inside a fixed frame, so the logos stay registered to the artwork. */
.media-zoom { display: block; position: relative; width: 100%; transform-origin: 50% 50%; }
.media-zoom > img { display: block; width: 100%; height: auto; }
.hero-media .media-zoom { position: absolute; inset: 0; }
.hero-media .media-zoom > img { height: 100%; object-fit: contain; }
.hero-media { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .media-zoom { transition: transform 800ms cubic-bezier(.165,.84,.44,1); }
  .project-image:hover .media-zoom,
  .project-image:focus-visible .media-zoom,
  .hero-media:hover .media-zoom,
  .hero-media:focus-visible .media-zoom { transform: scale(1.01); }
}

/* Touch screens have no hover: the project crossing the middle of the screen zooms instead. */
@media (prefers-reduced-motion: no-preference) and (hover: none) {
  .media-zoom { transition: transform 800ms cubic-bezier(.165,.84,.44,1); }
  .project-image.is-centred .media-zoom,
  .hero-media.is-centred .media-zoom { transform: scale(1.01); }
}

/* V4.9.43 — smoother hover zoom (after blond.cc): the frame is promoted to its own GPU layer so the
   scale moves in sub-pixel steps instead of jumping pixel by pixel; ease-in-out quart, 350ms, 2%. */
.media-zoom { will-change: transform; backface-visibility: hidden; transform: translateZ(0) scale(1); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .media-zoom { transition: transform 350ms cubic-bezier(.77,0,.175,1); }
  .project-image:hover .media-zoom,
  .project-image:focus-visible .media-zoom,
  .hero-media:hover .media-zoom,
  .hero-media:focus-visible .media-zoom { transform: translateZ(0) scale(1.02); }
}
@media (prefers-reduced-motion: no-preference) and (hover: none) {
  .media-zoom { transition: transform 600ms cubic-bezier(.77,0,.175,1); }
  .project-image.is-centred .media-zoom,
  .hero-media.is-centred .media-zoom { transform: translateZ(0) scale(1.02); }
}

.project-brand[hidden] { display: none; }

/* TONI&GUY films: 10mm up and 20mm right of their original position.
   Vertical moves the player; horizontal shifts the picture inside it so the play bar stays put.
   Both scale down on phones so the film stays clear of the logo. */
#project-films .film-brand-space video {
  transform: translateY(max(-10mm, -4.6%));
  object-position: calc(50% + min(20mm, 6.9vw)) 50%;
  background: transparent;
}
.project-image[data-index="7"] .card-preview {
  transform: translateY(max(-10mm, -7.9%));
  object-position: calc(50% + min(20mm, 10vw)) 50%;
}
/* While the tile film plays, hide the still underneath so the moved film shows no edge of it. */
.project-image[data-index="7"]:has(.card-preview.is-playing) .media-zoom > img { visibility: hidden; }

/* Project credit in the viewer's bottom bar (set per project in app.js). */
.viewer-credit { flex: 1; margin: 0; text-align: center; color: var(--muted); line-height: 1.35; }
.viewer-credit[hidden] { display: none; }
.viewer-credit:not([hidden]) ~ #original { margin-left: 0; }
@media (max-width: 760px) {
  .viewer-bottom:has(.viewer-credit:not([hidden])) { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 4px; }
  .viewer-credit { order: 5; flex-basis: 100%; text-align: left; }
}
/* Viewer as a column, so a taller bottom bar (wrapped credit on phones) shrinks the picture area instead of being cut off. */
dialog#viewer[open] { display: flex; flex-direction: column; }
#viewer .viewer-bar, #viewer .viewer-bottom { flex: none; }
#viewer .viewer-content { flex: 1 1 auto; height: auto; min-height: 0; }
/* The viewer opens with focus on its title, so Close isn't outlined on open; Tab still shows the outline. */
#viewer-title:focus { outline: none; }
/* "View spread" button: 40% grey. */
/* V4.9.40 — View more: Blond-style chip (6px corners, light fill, trailing arrow, ink on hover) */
.project-image .view { display: inline-flex; align-items: center; gap: 18px; padding: 9px 12px 9px 14px; border-radius: 6px; background: #ecede8; color: var(--ink); letter-spacing: .01em; transition: opacity 220ms ease, transform 220ms ease, background-color 250ms ease, color 250ms ease; }
.project-image .view::after { content: "\2192"; color: rgba(36, 38, 35, .45); transition: transform 250ms ease, color 250ms ease; }
/* V4.9.41 — hover fill is the ink 70% lighter (#bdbebd); text stays ink for contrast */
.project-image:hover .view, .project-image:focus-visible .view { background: #bdbebd; color: var(--ink); }
.project-image:hover .view::after, .project-image:focus-visible .view::after { color: var(--ink); transform: translateX(3px); }
@media (max-width: 760px) { .project-image .view { gap: 12px; padding: 7px 10px 7px 11px; } }
/* V4.9.44 — frosted "View more" (after blond.cc): translucent fill with a background blur, and a faint
   hairline so the chip keeps its edge on the white cards. Hover stays the 70% grey, also translucent. */
.project-image .view { background: rgba(247, 248, 244, .62); box-shadow: inset 0 0 0 1px rgba(36, 38, 35, .07); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.project-image:hover .view, .project-image:focus-visible .view { background: rgba(189, 190, 189, .7); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .project-image .view { background: #ecede8; }
  .project-image:hover .view, .project-image:focus-visible .view { background: #bdbebd; }
}

/* Freud (card 01) router-set loop (16:9 on white): tile and film panel are white to match the film. */
.project-image[data-index="0"] .card-preview { background: #ffffff; }
#freud-films .branded-film, #freud-films .branded-film video { background: #ffffff; }
/* The freud. logo PNG has a white background: multiply lets it sit on the film grey with no white box. */
.project-image[data-index="0"] .project-brand, #freud-films .project-brand { mix-blend-mode: multiply; }

/* Freud tile (card 01): film centred vertically - same size as before, equal space above and below (8% + 8% instead of 16% at the top). */
.project-image[data-index="0"] .card-preview { padding-top: 8%; padding-bottom: 8%; }

/* V4.9.47 — "Selected work" under the intro film is a button, matching the View more chip. */
.hero-caption a { display: inline-flex; align-items: center; gap: 18px; padding: 9px 12px 9px 14px; border-radius: 6px; background: rgba(247, 248, 244, .62); box-shadow: inset 0 0 0 1px rgba(36, 38, 35, .07); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); color: var(--ink); font-size: 12px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background-color 250ms ease; }
.hero-caption a::after { content: "\2193"; color: rgba(36, 38, 35, .45); transition: transform 250ms ease; }
.hero-caption a:hover, .hero-caption a:focus-visible { background: rgba(189, 190, 189, .7); }
.hero-caption a:hover::after, .hero-caption a:focus-visible::after { transform: translateY(2px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-caption a { background: #ecede8; }
  .hero-caption a:hover, .hero-caption a:focus-visible { background: #bdbebd; }
}
@media (max-width: 760px) { .hero-caption a { gap: 12px; padding: 7px 10px 7px 11px; font-size: 10px; } }

/* V4.9.48 — masked line-by-line headline (each line clips its own text while it rises). */
h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
h1 .line > span { display: block; color: var(--ink); }
h1 .line > span.muted { color: var(--muted); }

/* V4.9.54 — Discourage saving images: no dragging, no iOS long-press "Save to Photos" menu, no text-style selection of artwork. */
img, video { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* V4.9.56 — Previous / Next only show for projects with several images; greyed at the first / last image. */
.viewer-bottom #prev[hidden], .viewer-bottom #next[hidden], .viewer-bottom #counter[hidden] { display: none; }
.viewer-bottom button:disabled { opacity: .3; cursor: default; }
.viewer-bottom #next { margin-left: auto; }

/* V4.9.58 — Multi-image projects: each image is a full-height page; scroll up / down between them (soft snap). */
#viewer.is-gallery .viewer-content { scroll-snap-type: y proximity; }
#viewer.is-gallery .image-stage,
#viewer.is-gallery .additional-spreads figure { height: var(--page-h, 70vh); min-height: 240px; padding: 0; margin: 0; border: 0;
  display: flex; align-items: center; justify-content: center; background: #fff; scroll-snap-align: start; }
#viewer.is-gallery .image-stage img,
#viewer.is-gallery .additional-spreads img { width: auto; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
#viewer.is-gallery .additional-spreads figure + figure, #viewer.is-gallery .additional-spreads figure { border-top: 1px solid var(--line); }
