:root {
  /* Theme variables: overwritten on every scene change by the cycler in JS */
  --bg: #0b0a09;
  --fg: #efe9df;
  --accent: #ff4b1f;
  --flow: 0.64s;
  --prog: 11.1%;

  --fg-dim: color-mix(in srgb, var(--fg) 55%, transparent);
  --fg-faint: color-mix(in srgb, var(--fg) 24%, transparent);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --pad: clamp(20px, 3.6vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); }
body { font-family: var(--mono); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color var(--flow) ease-in-out; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.no-gl #gl { display: none; }

.hero {
  position: relative; z-index: 1;
  height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  padding-top: max(var(--pad), env(safe-area-inset-top));
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
  user-select: none; -webkit-user-select: none;
}

/* Everything themed eases between scenes instead of snapping */
.top, .start, .sub, .sub .quiet, .cta {
  transition: color var(--flow) ease-in-out, background-color var(--flow) ease-in-out, border-color var(--flow) ease-in-out;
}
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim);
}
.top { justify-content: flex-end; }   /* only "Start a project" lives up here now */
.start { color: var(--fg); border-bottom: 1px solid var(--fg-faint); padding-bottom: 3px; white-space: nowrap; }
.start:hover, .start:focus-visible { border-color: var(--accent); }
.replay { margin-right: auto; letter-spacing: inherit; text-transform: inherit; }   /* top left, on the name page only */
.replay[hidden] { display: none; }
/* "Start a project" stays out of the way while the sentence plays, and arrives with the name */
#startLink { transition: opacity 0.9s ease 0.5s, color var(--flow) ease-in-out, background-color var(--flow) ease-in-out, border-color var(--flow) ease-in-out; }
#startLink.pre { opacity: 0; visibility: hidden; pointer-events: none; transition: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Stage: the big word on top, a strip underneath for the closing scenes' links and cards */
.stage { display: grid; grid-template-rows: 1fr auto; min-height: 0; }
/* The word: two stacked layers, each split into letters. The view travels along the sentence,
   and the letters make the trip one after another (unclipped, so they cross the whole viewport). */
.words { display: grid; place-items: center; min-height: 0; }
.word {
  grid-area: 1 / 1;
  width: max-content;   /* the box always wraps the whole word, so it measures and centres truly */
  font-size: 100px; line-height: 0.96; white-space: nowrap; text-align: center;
  padding: 0.08em 0.04em 0.14em;
}
.word .line { display: block; }
.word span { display: inline-block; text-indent: 0; will-change: transform, opacity; }

.sub {
  position: relative; z-index: 2;
  min-height: 76px; padding: 10px 0 14px;
  display: grid; place-items: center;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim);
  opacity: 0;
}
.sub > div { display: none; }
.sub[data-kind="contact"] .contact { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 30px; }
.sub[data-kind="projects"] .projects { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.sub[data-kind="none"] { visibility: hidden; }
.sub .quiet { color: var(--fg); }
.sub .quiet { border-bottom: 1px solid var(--fg-faint); padding-bottom: 3px; letter-spacing: 0.12em; text-transform: uppercase; }
.sub .quiet:hover, .sub .quiet:focus-visible { border-color: var(--accent); }
.sub .cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px 15px 26px; border-radius: 999px;
  background-color: var(--fg); color: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.sub .cta:hover, .sub .cta:focus-visible { background-color: var(--accent); }
.sub .cta.ghost { background-color: transparent; color: var(--fg); border: 1px solid var(--fg-faint); padding: 14px 26px; }
.sub .cta.ghost:hover, .sub .cta.ghost:focus-visible { background-color: transparent; border-color: var(--fg); }
.cta svg { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cta:hover svg, .cta:focus-visible svg { transform: translateX(4px); }

/* Project showcase: four cards, each wearing the palette of one of the scenes the visitor just
   travelled through, so the work sits inside the same world as the intro. */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); width: 100%; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  height: clamp(150px, 36vh, 320px); padding: clamp(12px, 1.5vw, 18px);
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; letter-spacing: 0; text-transform: none;
  background:
    radial-gradient(120% 80% at 18% 8%, var(--a), transparent 62%),
    radial-gradient(90% 70% at 100% 100%, var(--b), transparent 70%),
    var(--c);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.4s ease, filter 0.4s ease;
}
/* While one card is hovered the others step back, so the page reads as that project's */
.cards:hover .card:not(:hover) { filter: saturate(0.4) brightness(0.6); }
.card::after {   /* fine grain so the gradients feel printed, like the scenes */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.7px); background-size: 4px 4px;
}
.card:hover, .card:focus-visible { transform: translateY(-8px); border-color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; opacity: 0.9; }
.card-top svg { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover .card-top svg, .card:focus-visible .card-top svg { transform: translate(3px, -3px); }
.card-title { font-family: var(--serif); font-size: clamp(18px, 2vw, 28px); line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
.card-tag { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
/* Page links live top left on every page, level with "Start a project" on the right */
.projects .row, .services .row {
  position: fixed; z-index: 3; left: var(--pad); top: calc(max(var(--pad), env(safe-area-inset-top)) - 9px);
  max-width: calc(100% - 2 * var(--pad) - 170px);
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 6px 24px;
  padding: 9px 0; border-radius: 999px; transition: padding 0.4s ease, background-color var(--flow) ease-in-out;
}
.projects .row { padding: 9px 18px; background-color: var(--bg); }

/* Services: as little as possible. Paper and three words. Choosing one clears the other two away
   and the page becomes that service: its colour, its type, a drawing of the work, a few lines about it. */
/* On this scene there is no big word above: the strip grows to fill the whole stage. */
.stage[data-kind="services"] { grid-template-rows: 0px minmax(0, 1fr); }
.stage[data-kind="services"] .sub { place-items: stretch; padding-top: 0; }
.sub[data-kind="services"] .services { display: flex; flex-direction: column; gap: clamp(10px, 2vh, 20px); width: 100%; height: 100%; min-height: 0; }
.svc-main { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.svc-rows {
  display: grid; width: 100%; text-align: center; text-transform: none;
  /* the type of the words is set here and swapped as a whole when a service is chosen */
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em;
}
.svc {
  display: block; width: 100%; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit;
  font-size: clamp(56px, min(14vw, 16vh), 184px); line-height: 1.08; white-space: nowrap;
  color: var(--fg); cursor: pointer; transition: color 0.3s ease;
}
.svc-main:not(.picked) .svc-rows:hover .svc:not(:hover) { color: color-mix(in srgb, var(--fg) 30%, transparent); }
.svc-main:not(.picked) .svc:hover, .svc-main:not(.picked) .svc:focus-visible { color: var(--accent); }
.svc.gone { display: none; }
#svcNext[hidden] { display: none; }
.svc-detail { display: none; letter-spacing: 0; text-transform: none; }

/* A service is chosen: its name top left, what it means top right, the drawing across everything below */
.svc-main.picked {
  place-items: stretch; align-items: end; padding-top: clamp(10px, 3.5vh, 40px);   /* clear of "Start a project" */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "title text" "art art";
  gap: clamp(14px, 3vh, 34px) clamp(20px, 4vw, 64px);
}
.svc-main.picked .svc-rows { grid-area: title; text-align: left; }
/* the links sit on a pill of the page colour so they stay readable over the visual */
.svc-main.picked ~ .row { padding: 9px 18px; background-color: var(--bg); }
.svc-main.picked .svc { cursor: default; font-size: clamp(48px, min(11vw, 15vh), 156px); line-height: 0.98; }
.svc-main.picked .svc-detail { display: contents; }
.svc-text { grid-area: text; display: grid; gap: 14px; align-self: start; justify-self: start; padding: clamp(16px, 1.6vw, 26px) clamp(18px, 1.9vw, 30px); background: var(--bg); border-radius: 16px; transition: background-color var(--flow) ease-in-out; }
.svc-body { font-family: var(--serif); font-size: clamp(17px, 1.7vw, 25px); line-height: 1.32; color: var(--fg); max-width: 26em; }
.svc-list { list-style: none; display: grid; gap: 7px; margin-top: 6px; font-size: clamp(12.5px, 1.05vw, 15px); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); }
.svc-list li { display: flex; align-items: center; gap: 12px; }
.svc-list li::before { content: ""; flex: none; width: 22px; height: 2px; background: var(--accent); }
/* the drawing is as large as the space allows, keeping its shape */
.svc-art { grid-area: art; align-self: stretch; min-height: 0; container-type: size; display: grid; place-items: center; color: var(--fg); }
.svc-art > * { display: none; position: relative; width: min(100cqw, 100cqh * 62 / 27); aspect-ratio: 62 / 27; }
@media (max-width: 760px) {
  .svc-main.picked { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "title" "text" "art"; }
}

@keyframes place { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: var(--o, 1); transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

/* Start a project: a sibling of the service pages. One abstract, moving picture across the whole
   page (folds of green silk). Top left, a closing line that echoes the opening sentence; top
   right, a panel set like a small printed sheet: where to write, what happens next, where else we are. */
.stage[data-kind="hello"] { grid-template-rows: 0px minmax(0, 1fr); }
.stage[data-kind="hello"] .sub { place-items: stretch; padding-top: 0; }
.sub[data-kind="hello"] .hello { display: flex; flex-direction: column; gap: clamp(10px, 2vh, 20px); width: 100%; height: 100%; min-height: 0; }
/* the page's links sit top left, level with Close, rather than along the bottom */
.hello .row { position: absolute; left: 0; bottom: 100%; max-width: calc(100% - 130px); display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 6px 24px; }
.hello .svc-main.picked ~ .row { padding: 9px 18px; border-radius: 999px; }
.hello .svc-main.picked { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; padding-top: clamp(34px, 7vh, 84px); }
.hello-title { grid-area: title; text-align: left; text-transform: none; color: var(--fg); font-family: var(--serif); font-weight: 400; letter-spacing: -0.04em; font-size: clamp(40px, min(7.4vw, 11.5vh), 118px); line-height: 0.96; text-wrap: balance; }
.hello-title em { font-style: italic; color: var(--accent); letter-spacing: -0.03em; }
.hello-sheet { grid-area: text; align-self: start; display: grid; padding: clamp(6px, 0.8vw, 12px) clamp(20px, 2vw, 32px); background: var(--bg); border-radius: 18px; color: var(--fg); text-transform: none; letter-spacing: 0; }
.hello-block { display: grid; gap: clamp(9px, 1.3vh, 14px); padding: clamp(16px, 2.3vh, 26px) 0; }
.hello-block + .hello-block { border-top: 1px solid var(--fg-faint); }
.hello-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-dim); }
.hello-write { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; }
.hello-mail { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.5vw, 38px); letter-spacing: -0.03em; line-height: 1.08; color: var(--fg); overflow-wrap: anywhere; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 1px no-repeat; padding-bottom: 5px; transition: color 0.3s ease; }
.hello-mail:hover, .hello-mail:focus-visible { color: var(--accent); }
.hello-copy { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); padding: 6px 12px; border: 1px solid var(--fg-faint); border-radius: 999px; transition: color 0.25s ease, border-color 0.25s ease; }
.hello-copy:hover, .hello-copy:focus-visible, .hello-copy.done { color: var(--accent); border-color: var(--accent); }
.hello-steps { list-style: none; display: grid; gap: 7px; counter-reset: step; }
.hello-steps li { counter-increment: step; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; font-family: var(--serif); font-size: clamp(15.5px, 1.3vw, 20px); line-height: 1.3; letter-spacing: -0.005em; }
.hello-steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: 0.62em; letter-spacing: 0.12em; color: var(--accent); }
.hello-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 1.6vw, 24px); }
.hello-links a { font-family: var(--serif); font-style: italic; font-size: clamp(16.5px, 1.45vw, 22px); letter-spacing: -0.01em; color: var(--fg); background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 1px no-repeat; padding-bottom: 2px; transition: color 0.3s ease, background-size 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hello-links a:hover, .hello-links a:focus-visible { color: var(--accent); background-size: 100% 1px; }
.start.pill { padding: 9px 16px; border-radius: 999px; border-bottom: 0; background-color: var(--bg); }
@media (max-width: 760px) {
  .hello .svc-main.picked { grid-template-columns: minmax(0, 1fr); padding-top: 12px; overflow-y: auto; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { height: clamp(104px, 17vh, 170px); }
}
@media (max-height: 420px) {
  .sub { min-height: 56px; }
}

/* Phones: there is no room top left beside "Start a project", so the page links move to a
   bar along the bottom of the screen, within reach of a thumb, and the page keeps clear of it. */
@media (max-width: 760px) {
  .projects .row, .services .row, .hello .row,
  .svc-main.picked ~ .row, .hello .svc-main.picked ~ .row {
    position: fixed; z-index: 3;
    top: auto; bottom: max(14px, env(safe-area-inset-bottom));
    left: var(--pad); right: var(--pad);
    width: fit-content; max-width: calc(100% - 2 * var(--pad)); margin-inline: auto;
    justify-content: center; gap: 6px 18px;
    padding: 10px 18px; border-radius: 22px; background-color: var(--bg);
    font-size: 11px;
  }
  .projects .row .quiet, .services .row .quiet, .hello .row .quiet { white-space: nowrap; }
  .stage[data-kind="projects"] .sub, .stage[data-kind="services"] .sub, .stage[data-kind="hello"] .sub { padding-bottom: 62px; }
}

/* The layout's columns never grow to fit their content. Without this, a word measured at full
   size on a narrow phone stretched the whole page wider than the screen, and every word after
   it was then sized to that stretched width. */
.hero, .stage, .words { grid-template-columns: minmax(0, 1fr); }
.stage, .words { min-width: 0; }
/* Project detail page. Opens out of a project card; see the second script at the end of the file.
   --a / --b / --c are set per project (glow, corner and ground colours, same as its card). */
.detail[hidden] { display: none; }
.detail {
  position: fixed; inset: 0; z-index: 10;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  color: #fff; font-family: var(--mono);
}
/* The top 70vh is see-through to the live canvas (tinted in the project's colours), so the
   project's scene keeps moving behind its title. Below that the page is solid ground. */
.d-inner {
  min-height: 100%;
  background:
    radial-gradient(90% 60% at 14% 22%, color-mix(in srgb, var(--a) 50%, transparent), transparent 66%) top / 100% 70vh no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--c) 34%, transparent) 0%, color-mix(in srgb, var(--c) 72%, transparent) 62%, var(--c) 100%) top / 100% 70vh no-repeat,
    linear-gradient(var(--c), var(--c)) left 0 top 70vh / 100% 100% no-repeat;
}
.d-top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: var(--pad); padding-top: max(var(--pad), env(safe-area-inset-top));
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.d-top button {
  color: #fff; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.d-top button:hover, .d-top button:focus-visible { border-color: #fff; background: rgba(0, 0, 0, 0.55); }
.d-top span { opacity: 0.8; font-variant-numeric: tabular-nums; }

.d-hero {
  min-height: calc(70vh - 96px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(28px, 6vh, 64px);
}
.d-kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-bottom: 14px; }
.d-hero h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 12vw, 170px); line-height: 0.92; letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.d-body { display: grid; gap: clamp(28px, 5vh, 56px); padding: clamp(24px, 4vh, 48px) var(--pad) max(var(--pad), env(safe-area-inset-bottom)); }
.d-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 18px; }
.d-meta dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.d-meta dd { font-family: var(--serif); font-size: clamp(16px, 1.6vw, 21px); }
.d-meta a { border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; }
.d-meta a:hover, .d-meta a:focus-visible { border-color: var(--a); }
.d-meta a[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.d-lede { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.22; letter-spacing: -0.01em; max-width: 26em; }

/* Showcase: one wide frame and two halves. Placeholders until real images are dropped in. */
.d-shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.shot {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(80% 90% at 82% 10%, var(--b), transparent 65%),
    radial-gradient(70% 80% at 8% 92%, var(--a), transparent 60%),
    color-mix(in srgb, var(--c) 78%, #000);
}
.shot.wide {
  grid-column: 1 / -1; aspect-ratio: 16 / 8;
  background:
    radial-gradient(70% 100% at 24% 30%, var(--a), transparent 60%),
    radial-gradient(60% 90% at 92% 82%, var(--b), transparent 65%),
    color-mix(in srgb, var(--c) 78%, #000);
}
.shot:nth-child(3) { background: radial-gradient(90% 90% at 50% 110%, var(--a), transparent 62%), radial-gradient(60% 70% at 12% 8%, var(--b), transparent 65%), color-mix(in srgb, var(--c) 78%, #000); }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.7px); background-size: 4px 4px;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.shot.has-img::after { display: none; }
.shot.has-img figcaption { z-index: 1; padding: 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); opacity: 1; }
.shot figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }

.d-next {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; width: 100%;
  text-align: left; color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 22px 0 8px;
}
.d-next span { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.d-next strong { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 6vw, 84px); letter-spacing: -0.03em; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.d-next:hover strong, .d-next:focus-visible strong { transform: translateX(-14px); }

/* Snapshot of the outgoing project during a Next swipe */
.detail.ghost { z-index: 11; overflow: hidden; pointer-events: none; }

@media (max-width: 700px) {
  .d-meta { grid-template-columns: 1fr 1fr; }
  .d-shots { grid-template-columns: 1fr; }
  .shot.wide { aspect-ratio: 4 / 3; }
}
