/* ---- base.css ---- */
/* ==========================================================================
   base.css (B2): font, tokens, reset, shared classes.
   Spec: d01 §5, d02 §1-2, l08. Our own code.
   ========================================================================== */

@font-face {
  font-family: "American Grotesk";
  src: local("American Grotesk"), local("AmericanGrotesk-Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- d01 contract names (--td-*) ---- */
  --td-font: "American Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --td-fs-base: 1.6rem; --td-fs-small: 1.4rem; --td-fs-xs: 1.2rem;
  --td-lh-base: 1.375; --td-lh-normal: 1.5; --td-lh-relaxed: 1.625;
  --td-ls-base: 0; --td-ls-small: .015em;

  --td-black: #000; --td-white: #fff;
  --td-gray: #7e7e7e; --td-gray-light: #9c9c9c; --td-gray-dark: #2f2f2f;
  --td-btn: #141414;
  --td-scrim-20: rgba(0,0,0,.2); --td-scrim-40: rgba(0,0,0,.4); --td-scrim-80: rgba(0,0,0,.8);
  --td-white-10: hsla(0,0%,100%,.1);

  --td-grid-cols: 12; --td-gap: .4rem; --td-gap-lg: .8rem;
  --td-pad-xs: .4rem; --td-pad-sm: .8rem; --td-pad-md: 1.6rem; --td-pad-page: 2.4rem; --td-pad-xl: 8rem;
  --td-header-h: 3.6rem; --td-header-h-md: 6rem;
  --td-header-hh: 3.6rem;          /* current header height (6rem from md) */

  --td-z-under: -1; --td-z-base: 1; --td-z-thumbs: 10; --td-z-next: 15;
  --td-z-overlay: 30; --td-z-pill: 35; --td-z-header: 40; --td-z-intro: 50; --td-z-skip: 60;

  --td-dur-fast: .15s; --td-dur: .4s; --td-dur-slow: .8s; --td-delay-intro: .6s;
  --td-ease-out-quint: cubic-bezier(.22,1,.36,1);
  --td-ease-in-out-quint: cubic-bezier(.83,0,.17,1);
  --td-ease-out-expo: cubic-bezier(.16,1,.3,1);
  --td-ease-out-cubic: cubic-bezier(.215,.61,.355,1);
  --td-ease-out-quart: cubic-bezier(.25,1,.5,1);
  --td-ease-in-out-quart: cubic-bezier(.76,0,.24,1);
  --td-ease-power4-out: cubic-bezier(.23,1,.32,1);
  --td-ease-power4-in-out: cubic-bezier(.76,0,.24,1);
  --td-ease-expo-in-out: cubic-bezier(.87,0,.13,1);
  --td-ease-back-in-out: cubic-bezier(.68,-.6,.32,1.6);

  --td-blur: 15px; --td-radius-sm: .4rem; --td-radius-md: .8rem;

  /* ---- d02 short aliases (same values) ---- */
  --font: var(--td-font);
  --fs-base: var(--td-fs-base); --fs-small: var(--td-fs-small); --fs-xs: var(--td-fs-xs);
  --lh: 1.375; --lh-normal: 1.5; --lh-relaxed: 1.625;
  --ls-small: .015em;
  --black: #000; --white: #fff;
  --gray: #7e7e7e; --gray-light: #9c9c9c; --gray-dark: #2f2f2f; --btn: #141414;
  --scrim-20: rgba(0,0,0,.2); --scrim-40: rgba(0,0,0,.4); --scrim-80: rgba(0,0,0,.8);
  --white-10: hsla(0,0%,100%,.1);
  --dim: .5;
  --gap: .4rem; --gap-lg: .8rem;
  --s-2: .2rem; --s-4: .4rem; --s-8: .8rem; --s-10: 1rem; --s-16: 1.6rem;
  --s-20: 2rem; --s-24: 2.4rem; --s-80: 8rem;
  --header-h: 3.6rem;
  --header-row: 1.925rem;          /* 14px x 1.375 */
  --radius: .4rem; --radius-lg: .8rem; --blur: 15px;

  --ease-out-quint: var(--td-ease-out-quint);
  --ease-in-out-quint: var(--td-ease-in-out-quint);
  --ease-out-expo: var(--td-ease-out-expo);
  --ease-p4-out: var(--td-ease-power4-out);
  --ease-p4-inout: var(--td-ease-power4-in-out);
  --ease-expo-inout: var(--td-ease-expo-in-out);
  --ease-back-inout: var(--td-ease-back-in-out);

  --d-150: .15s; --d-200: .2s; --d-300: .3s; --d-400: .4s; --d-500: .5s;
  --d-600: .6s; --d-800: .8s; --d-1500: 1.5s; --delay-bar: .6s;

  --z-under: -1; --z-1: 1; --z-10: 10; --z-overlay: 30; --z-header: 40; --z-intro: 50;
}
@media (min-width: 768px) {
  :root { --td-header-hh: 6rem; --header-h: 6rem; }
}
/* Breakpoints (literal in @media): 640, 768 md, 1024 lg, 1280 xl, 1920 3xl */

/* ---- Reset and elements ---- */
html {
  font-size: 62.5%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--td-black);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
* { font: inherit; }
body {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--td-black);
  color: var(--td-white);
  font-family: var(--td-font);
  font-weight: 400;
  font-size: var(--td-fs-base);
  line-height: var(--td-lh-base);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, b, strong, th { font-weight: 400; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
.rich a, a.u {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity var(--d-150);
}
@media (hover: hover) { .rich a:hover, a.u:hover { opacity: var(--dim); } }
button {
  background: none;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, textarea, select { color: inherit; background: none; border-radius: 0; }
::placeholder { color: #9ca3af; opacity: 1; }
::selection { background: var(--td-gray); color: var(--td-white); }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--td-white); outline-offset: 2px; border-radius: 3px; }

/* ---- Shared classes (B2) ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--td-gap);
}
.mask {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
}
.copy-small, .small { font-size: var(--td-fs-small); letter-spacing: var(--td-ls-small); }
.copy-xs { font-size: var(--td-fs-xs); }
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; width: 0; height: 0; }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a0a0a;
}
.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter .4s var(--td-ease-out-quint);
}
.media.hauto .media__img, .hauto > .media__img { height: auto; }
.media.wauto .media__img, .wauto > .media__img { width: auto; height: 100%; }
.is-lqip { filter: blur(12px) brightness(.6); }

.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.svg-full svg { width: 100%; height: 100%; }
.cursor-left { cursor: w-resize; }
.cursor-right { cursor: e-resize; }

/* ---- header.css ---- */
/* ==========================================================================
   header.css (B2): site header, square buttons (Btn), text-mask slots.
   Spec: d01 §6, d02 §3-8, l01. States are read from <html data-hstate>,
   <html data-overlay>. Our own code.
   ========================================================================== */

/* ---- Shell ---- */
.hd {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--td-z-header);
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  padding: .8rem;
  color: var(--td-white);
  line-height: var(--td-lh-base);
  align-items: start;
  grid-template-rows: auto;
}
.hd a, .hd button { pointer-events: auto; }
@media (min-width: 768px) {
  .hd { padding: 2rem 2.4rem; }
}

/* Black backing bar: hidden on Feed (leaves at once), slides down 0.6s after
   any other state, over 0.4s. Overlays do not change it. */
.hd-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--td-header-hh);
  background: var(--td-black);
  z-index: var(--td-z-under);
  transform: translateY(-100%);
  transition: transform .4s var(--td-ease-out-quint);
}
html:not([data-hstate="feed"]) .hd-bar {
  transform: none;
  transition-delay: .6s;
}

/* Masked header text: focus rings drawn inside the mask so they are not clipped. */
.hd .mask :focus-visible, .hd-logo:focus-visible { outline-offset: -2px; }

/* ---- Left group ---- */
.hd-left {
  grid-column: 1 / span 9;
  grid-row: 1;
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(0, max-content);
  align-items: start;
  justify-content: start;
  min-width: 0;
}
@media (min-width: 768px) { .hd-left { grid-column: 1 / span 7; } }
@media (min-width: 1024px) { .hd-left { grid-column: 1 / span 4; } }

.hd-logo {
  grid-column: 1; grid-row: 1;
  display: inline-flex;
  overflow: hidden;
  height: var(--header-row);
  padding-right: .8rem;
  transition: transform .6s var(--td-ease-back-in-out);
}
.hd-logo__t {
  display: block;
  white-space: nowrap;
  transform: translateY(.5px);
  transition: transform .5s var(--td-ease-power4-in-out);
}
@media (min-width: 768px) {
  .hd-logo { padding-right: 1rem; }
  .hd-logo__t { transform: none; }
}

.hd-nav {
  grid-column: 2; grid-row: 1;
  position: relative;
  z-index: 10;
  display: flex;
  overflow: hidden;
  transition: transform .6s var(--td-ease-back-in-out);
}
.hd-nav .mask { display: flex; }
.hd-nav__item {
  display: block;
  padding-right: .8rem;
  white-space: nowrap;
  opacity: var(--dim);
  transition: opacity .2s linear, transform .5s var(--td-ease-power4-in-out), visibility 0s;
}
@media (min-width: 768px) { .hd-nav__item { padding-right: 1rem; } }

html[data-hstate="feed"] .hd-nav__item[data-nav="0"],
html[data-hstate="archive"] .hd-nav__item[data-nav="1"],
html[data-hstate="about"] .hd-nav__item[data-nav="2"] { opacity: 1; }

@media (hover: hover) and (min-width: 768px) {
  html[data-hstate] .hd-nav:hover .hd-nav__item { opacity: var(--dim); }
  html[data-hstate] .hd-nav .hd-nav__item:hover { opacity: 1; }
}

/* Desktop crumb "Archive" sits where the nav was (md+). */
.hd-crumb {
  grid-column: 2; grid-row: 1;
  justify-self: start;
  transition: transform .6s var(--td-ease-back-in-out);
}
.hd-crumb > *, .hd-crumb-m > * {
  display: block;
  transform: translateY(100%);
  transition: transform .5s var(--td-ease-power4-in-out);
}

/* Mobile crumb: "Archive" + project title (gray), at left 30px. */
.hd-crumb-m {
  position: absolute;
  left: 3rem; top: 0;
  max-width: calc(100% - 3rem);
  display: flex;
  white-space: nowrap;
}
.hd-crumb-m > * { transform: translateY(150%); }
.hd-crumb-m__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: .8rem;
  color: var(--td-gray);
}

/* Mobile overlay label: "Tags" (filter), "Info", "Inquiry". */
.hd-olabel {
  position: absolute;
  left: 0; top: 0;
  display: inline-grid;
  pointer-events: none;
}
.hd-olabel > * {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  transform: translateY(100%);
  transition: transform .5s var(--td-ease-power4-out);
}
html[data-hstate="project"] .hd-olabel { left: 3rem; }

@media (min-width: 768px) {
  .hd-crumb-m, .hd-olabel { display: none; }
}
@media (max-width: 767.98px) {
  .hd-crumb { display: none; }
}

/* Back button (project): from x -250% to 0, .6s back.inOut. */
.hd-left .hd-back {
  position: absolute;
  left: 0; top: 0;
  transform: translateX(-250%);
  visibility: hidden;
  transition: transform .6s var(--td-ease-back-in-out), visibility 0s .6s;
}
.hd-back .i-chev { transform: rotate(90deg); }

/* ---- Project state (left group) ---- */
html[data-hstate="project"] .hd-left .hd-back {
  transform: none;
  visibility: visible;
  transition: transform .6s var(--td-ease-back-in-out), visibility 0s;
}
html[data-hstate="project"] .hd-nav__item {
  transform: translateY(-150%);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s linear, transform .5s var(--td-ease-power4-in-out), visibility 0s .5s;
}
html[data-hstate="project"] .hd-crumb > *,
html[data-hstate="project"] .hd-crumb-m > * { transform: none; }
@media (min-width: 768px) {
  html[data-hstate="project"] .hd-logo,
  html[data-hstate="project"] .hd-nav,
  html[data-hstate="project"] .hd-crumb { transform: translateX(3.2rem); }
}
@media (max-width: 767.98px) {
  html[data-hstate="project"] .hd-logo__t { transform: translateY(-150%); }
  html[data-hstate="project"] .hd-logo { pointer-events: none; visibility: hidden; transition: visibility 0s .5s; }

  /* Overlay open on phones: left text slides up, the overlay's label rises. */
  html[data-overlay="filter"] .hd-logo__t, html[data-overlay="info"] .hd-logo__t, html[data-overlay="inquiry"] .hd-logo__t,
  html[data-overlay="filter"] .hd-nav__item, html[data-overlay="info"] .hd-nav__item, html[data-overlay="inquiry"] .hd-nav__item,
  html[data-hstate="project"][data-overlay="info"] .hd-crumb-m > *,
  html[data-hstate="project"][data-overlay="inquiry"] .hd-crumb-m > * {
    transform: translateY(-100%);
    transition: transform .5s var(--td-ease-power4-out);
  }
  html[data-overlay="filter"] .hd-olabel [data-when="filter"],
  html[data-overlay="info"] .hd-olabel [data-when="info"],
  html[data-overlay="inquiry"] .hd-olabel [data-when="inquiry"] { transform: none; }
}

/* ---- Centre slots (lg+ only) ---- */
.hd-slot { display: none; }
@media (min-width: 1024px) {
  .hd-slot {
    display: flex;
    grid-row: 1;
    gap: .8rem;
    min-width: 0;
    white-space: nowrap;
    visibility: hidden;
    transition: visibility 0s .4s;
  }
  .hd-slot--type    { grid-column: 5 / span 2; }
  .hd-slot--project { grid-column: 7 / span 2; }
  .hd-slot--tags    { grid-column: 9 / span 3; }
  .hd-slot--contact { grid-column: 5 / span 3; }
  .hd-slot--profile { grid-column: 8 / span 1; }

  html[data-hstate="archive"] .hd-slot[data-show~="archive"],
  html[data-hstate="about"] .hd-slot[data-show~="about"],
  html[data-hstate="project"] .hd-slot[data-show~="project"] {
    visibility: visible;
    transition: none;
  }
}
.hd-slot .mask { flex: none; }
.hd-slot .mask > * {
  display: block;
  white-space: nowrap;
  transform: translateY(100%);
}
.hd-label { color: var(--td-white); }
.hd-val { color: var(--td-gray); }
.hd-mail { transition: color .15s linear; }
@media (hover: hover) { .hd-mail:hover { color: var(--td-white); } }

/* Value masks fill the rest of the slot; long values fade at the right edge. */
.hd-slot .hd-vmask { flex: 1 1 auto; min-width: 0; }
.hd-vmask.is-clipped {
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
}
.hd-slot--tags .hd-vmask { padding-right: 1rem; }

/* Profile label swap (Profile / FAQ / Imprint) stacks in one cell. */
.hd-swap { display: inline-grid; }
.hd-swap > * { grid-area: 1 / 1; }

/* Slot entry: labels and values rise from 100% to 0 over .5s power4.out. */
html[data-hstate="archive"] .hd-slot[data-show~="archive"] .mask > :not([data-when]),
html[data-hstate="about"] .hd-slot[data-show~="about"] .mask > :not([data-when]),
html[data-hstate="project"] .hd-slot[data-show~="project"] .mask > :not([data-when]),
html[data-hstate="about"]:not([data-overlay="imprint"]):not([data-overlay="faq"]) .hd-slot--profile [data-when=""],
html[data-hstate="about"][data-overlay="imprint"] .hd-slot--profile [data-when="imprint"],
html[data-hstate="about"][data-overlay="faq"] .hd-slot--profile [data-when="faq"] {
  transform: none;
  transition: transform .5s var(--td-ease-power4-out);
}
/* Slot exit: to -90% over .4s, then (class removed) snaps back to 100%. */
html .hd .hd-slot.is-out .mask > *,
html .hd .hd-crumb.is-out > *,
html .hd .hd-swap > .is-out,
html .hd .hd-olabel > .is-out {
  transform: translateY(-90%);
  transition: transform .4s var(--td-ease-power4-out);
}
/* Old header value on its way out (header.js removes it). */
html .hd .hd-vmask > .hd-val.is-old { position: absolute; left: 0; top: 0; }

/* ---- Right column: one Btn per state ---- */
.hd-right {
  grid-column: 10 / -1;
  grid-row: 1;
  display: grid;
  justify-items: end;
  justify-self: end;
}
@media (min-width: 768px) { .hd-right { grid-column: 12 / -1; } }
.hd-right > .btn {
  grid-area: 1 / 1;
  transform: translateY(-200%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .6s var(--td-ease-back-in-out), visibility 0s .6s;
}
html[data-hstate="feed"] .hd-right > .btn[data-show~="feed"],
html[data-hstate="archive"] .hd-right > .btn[data-show~="archive"],
html[data-hstate="about"] .hd-right > .btn[data-show~="about"],
html[data-hstate="project"] .hd-right > .btn[data-show~="project"] {
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: transform .8s var(--td-ease-expo-in-out), visibility 0s;
}

/* ---- Square button (Btn) ---- */
.btn {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: .8rem;
  font-size: var(--td-fs-small);
  letter-spacing: var(--td-ls-small);
  line-height: var(--td-lh-base);
  text-align: right;
  white-space: nowrap;
  color: var(--td-white);
}
.btn__label {
  transition: padding-left .5s var(--td-ease-power4-out);
}
.btn__t, .btn__c {
  display: block;
  transition: transform .5s var(--td-ease-power4-out);
}
.btn__c {
  position: absolute;
  right: 0; top: 0;
  transform: translateY(100%);
}
.btn__icon, .btn__bubble {
  width: 2rem;
  height: 2rem;
  border-radius: var(--td-radius-sm);
  transform: translateY(-1px);
  pointer-events: none;
}
.btn__icon {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn__icon svg { transition: transform .5s var(--td-ease-power4-out), opacity .3s linear; }
.btn__bubble {
  position: absolute;
  right: 0; top: 0;
  z-index: var(--td-z-under);
  background: var(--td-white-10);
  transition:
    width .3s var(--td-ease-back-in-out),
    height .3s var(--td-ease-back-in-out),
    transform .3s var(--td-ease-back-in-out);
}
.btn--blur .btn__bubble {
  -webkit-backdrop-filter: blur(var(--td-blur));
  backdrop-filter: blur(var(--td-blur));
}
@media (min-width: 768px) {
  .btn__bubble { background: var(--td-gray-dark); }
  .btn--blur .btn__bubble { background: var(--td-scrim-20); }
  /* Open over a black overlay the blurred bubble would vanish: use the solid pill. */
  .btn--blur[aria-expanded="true"] .btn__bubble { background: var(--td-gray-dark); }
}

/* Filter: chevron when closed, X when open. */
.btn--chev .i-x {
  position: absolute;
  left: 50%; top: 50%;
  margin: -4.5px 0 0 -4px;
  opacity: 0;
  transform: rotate(0deg);
}

/* Hover (md+, only buttons with a title): bubble grows into a pill. */
@media (hover: hover) and (min-width: 768px) {
  .btn:not(.btn--icon):hover .btn__bubble {
    width: calc(100% + 2rem);
    height: 2.9rem;
    transform: translate(4.5px, -5.5px);
  }
  .btn--info:hover .btn__bubble { width: calc(100% + 2.7rem); }
  .btn--imprint:hover .btn__bubble { width: calc(100% + 1.6rem); }
}

/* Open ("Close" pill): title rolls up, Close rolls in, icon to X. */
.btn[aria-expanded="true"] .btn__t { transform: translateY(-100%); }
.btn[aria-expanded="true"] .btn__c { transform: none; }
.btn[aria-expanded="true"] .btn__label { padding-left: 1.5rem; }
.btn.btn--imprint[aria-expanded="true"] .btn__label { padding-left: 0; }
.btn[aria-expanded="true"] .btn__bubble,
.btn[aria-expanded="true"]:hover .btn__bubble {
  width: calc(100% + .5rem);
  height: 2.9rem;
  transform: translate(4.5px, -5.5px);
}
.btn.btn--info[aria-expanded="true"] .btn__bubble,
.btn.btn--info[aria-expanded="true"]:hover .btn__bubble { width: calc(100% + 1.2rem); }
.btn[aria-expanded="true"] .i-plus { transform: rotate(45deg); }
.btn--chev[aria-expanded="true"] .i-chev { opacity: 0; transform: rotate(180deg); }
.btn--chev[aria-expanded="true"] .i-x { opacity: 1; transform: rotate(45deg); }

/* ---- Reduced motion: swap instantly ---- */
html[data-motion="reduce"] .hd *,
html[data-motion="reduce"] .hd *::before,
html[data-motion="reduce"] .hd *::after,
html[data-motion="reduce"] .btn * {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* ---- intro.css ---- */
/* intro.css (B3): intro curtain, wordmark, page transitions. d01 §4/§9, d03, l02.
   State hooks on <html>: data-intro (play|done), data-transition (out-left|out-right|in-right|in-left). */

/* 1. Intro curtain: hidden unless the head script chose to play it (no-JS, reduced motion, internal nav never see it) */
.in { display: none; }
.js[data-intro="play"] .in {
  display: block;
  position: fixed;
  inset: 0;
  z-index: var(--td-z-intro, 50);
  isolation: isolate;
  padding: .4rem .4rem 2rem;          /* 4px sides, 20px bottom (l02) */
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
@media (min-width: 768px) {
  .js[data-intro="play"] .in { padding: 2rem; }
}
.in-bg { position: absolute; inset: 0; z-index: -1; background: #000; }
.in-row { display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.in-mark { width: 100%; will-change: transform, opacity; }
@media (min-width: 768px) { .in-mark { width: 40%; } }

/* Wordmark: live American Grotesk text; the font-size here is the pre-fit estimate
   ("Talk Design" is about 5.28em wide in Helvetica metrics); intro.js fits it exactly. */
.in-mark__t {
  display: block;
  white-space: nowrap;
  text-align: center;
  color: #fff;
  font-family: var(--td-font, "American Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.02em;
  font-kerning: normal;
  font-size: calc((100vw - .8rem) / 5.28);
  user-select: none;
}
@media (min-width: 768px) {
  .in-mark__t { font-size: calc((100vw - 4rem) * .4 / 5.28); }
}

/* Pre-paint start state of the content that rises 200px with the curtain */
.js[data-intro="play"] [data-rise],
.js[data-intro="play"] #main > article { transform: translateY(200px); }
/* While the intro plays nothing underneath takes input (wheel nav, clicks) */
.js[data-intro="play"] body { pointer-events: none; }
.js[data-intro="play"] .in { pointer-events: auto; }

/* 2. Page transitions (static multi-page): main slides, header stays */
.js[data-transition="in-right"] #main { transform: translateX(100%); opacity: 0; }
.js[data-transition="in-left"] #main { transform: translateX(-100%); opacity: 0; }
.js[data-transition^="out"] body { pointer-events: none; }

[data-motion="reduce"][data-transition^="in"] #main { transform: none !important; opacity: 1 !important; }

/* ---- home.css ---- */
/* ==========================================================================
   home.css (B4): fixed main + three stacked full-height screens (l10, d09 B).
   Controller rules are scoped to .js; without JS the sections stack and the
   document scrolls natively (d09 C10).
   ========================================================================== */

.hm { position: relative; background: #000; }
.hm-stack { position: relative; }
.hm-sec { position: relative; background: #000; min-height: 100vh; min-height: 100svh; }

/* Visually hidden helpers used in this template (a11y.css also defines .visually-hidden). */
.hm-h, .hm-live {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- JS: fullpage controller ---------- */
html.js[data-page="home"],
html.js[data-page="home"] body { height: 100%; overflow: hidden; overscroll-behavior: none; }

.js .hm {
  position: fixed; inset: 0;            /* h-screen, tracks the visible viewport */
  overflow: hidden;
  z-index: var(--td-z-base, 1);
}
.js .hm-stack {
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform .8s var(--td-ease-power4-in-out, cubic-bezier(.76, 0, .24, 1));
  will-change: transform;
}
/* data-section on <html> is written by sections.js at move start (and by the
   restore snippet before first paint); the transform follows it. */
.js[data-section="1"] .hm-stack { transform: translate3d(0, -100%, 0); }
.js[data-section="2"] .hm-stack { transform: translate3d(0, -200%, 0); }

.js .hm-stack.is-locked { pointer-events: none; }
.js .hm-stack.hm-instant,
.js[data-motion="reduce"] .hm-stack { transition: none; }

.js .hm-sec { height: 100%; min-height: 0; overflow: hidden; }

/* Inner scrollers of Archive and About (zero specificity: owners may override). */
:where(.js .hm-sec) [data-scroller] {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* ---------- No JS: stacked, natively scrollable ---------- */
html:not(.js) .hm-stack { transform: none; }
html:not(.js) .hm-sec { height: auto; overflow: visible; }
html:not(.js) .hm-sec [data-scroller] { max-height: none; overflow: visible; }

/* ---- feed.css ---- */
/* ==========================================================================
   Feed (B5): main row (natural-aspect slides), title pill, thumbnail strip
   rem = 10px. Slider mechanics in src/js/slider.js, wiring in src/js/feed.js.
   ========================================================================== */

.fd {
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}

/* ---------- main row ---------- */
.fd-large {
  position: relative;
  flex: none;
  height: 100vh;
  height: calc(100vh - 10rem);
  height: calc(100svh - 10rem);
  padding-block: 2px;
  box-sizing: border-box;
  overflow: hidden;
  touch-action: pan-y;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.fd-large .sl-track {
  position: relative;
  display: flex;
  height: 100%;
  column-gap: 0;
  will-change: transform;
}
.fd-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1px;
}
.fd-fig {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1px;
  background: #000;
  aspect-ratio: auto !important;
}
.fd-fig .media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  -webkit-user-drag: none;
}
.fd-slide[data-kind="screen"] .fd-fig .media__img { object-fit: contain; }

@media (min-width: 768px) {
  .fd-large .sl-track { column-gap: 4px; }
  .fd-slide { flex: none; width: auto; aspect-ratio: var(--ar); }
  .fd-fig { width: auto; aspect-ratio: var(--ar) !important; }
  .fd-fig .media__img,
  .fd-slide[data-kind="screen"] .fd-fig .media__img { object-fit: cover; }
}
@media (min-width: 1024px) {
  .fd-large { padding-block: 4px; }
}

/* ---------- title pill ---------- */
.fd-link {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  padding: 0 0 16px 8px;
  transform: translateY(100%);
  transition: transform .6s var(--td-ease-back-in-out, cubic-bezier(.68,-.6,.32,1.6));
  pointer-events: none;
}
.fd-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 2px;
  background: #fff;
  color: #000;
  font-size: 12px;
  line-height: 1.375;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
}
.fd-link h2 {
  margin: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
}
.fd-link .i-arrow { flex: none; display: block; }
.fd-link__pill { display: none; }

/* mobile: active, settled slide only */
@media (max-width: 767.98px) {
  .fd-large:not(.is-moving) .fd-slide.is-active .fd-link,
  .fd-link:focus-within { transform: none; }
}

@media (min-width: 768px) {
  .fd-link {
    left: auto;
    right: 0;
    padding: 0;
    display: grid;
    transform: translateY(100%);
  }
  .fd-link a,
  .fd-link__pill { grid-area: 1 / 1; }
  .fd-link a {
    position: relative;
    z-index: 1;
    padding: 20px 25px;
    background: none;
    border-radius: 0;
  }
  .fd-link__pill {
    display: block;
    justify-self: end;
    align-self: center;
    margin-right: 17px;
    width: 17px;
    height: 17px;
    border-radius: 2px;
    background: #fff;
    pointer-events: none;
    transition: width .3s var(--td-ease-back-in-out, cubic-bezier(.68,-.6,.32,1.6)),
                height .3s var(--td-ease-back-in-out, cubic-bezier(.68,-.6,.32,1.6));
  }
  .fd-slide:hover .fd-link,
  .fd-link:focus-within {
    transform: none;
    transition-delay: .1s;
  }
  .fd-slide:hover .fd-link__pill,
  .fd-link:focus-within .fd-link__pill {
    width: calc(100% - 33px);
    height: 28.5px;
  }
  .fd-large.is-dragging .fd-link { transform: translateY(100%); }
}

/* ---------- thumbnail strip ---------- */
.fd-thumbs-wrap {
  position: relative;
  flex: none;
  margin-top: auto;
  height: 9.7rem;
}
.fd-thumbs {
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.fd-thumbs .sl-track {
  position: relative;
  display: flex;
  column-gap: 2px;
  height: 100%;
  will-change: transform;
}
.fd-thumb {
  position: relative;
  flex: none;
  height: 100%;
  aspect-ratio: var(--ar);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1px;
  overflow: hidden;
  background: #141414;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fd-thumb__fig {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
}
.fd-thumb .media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
.fd-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--fd-ow, 76px);
  height: 100%;
  box-sizing: border-box;
  border: 1px solid #fff;
  border-radius: 1px;
  z-index: var(--td-z-thumbs, 10);
  pointer-events: none;
  transform: translateX(var(--fd-ox, 0px));
  transition: transform .45s cubic-bezier(.16,1,.3,1), width .45s cubic-bezier(.16,1,.3,1);
}
@media (min-width: 1024px) {
  .fd-thumbs-wrap { height: 9.5rem; }
}

/* ---------- reduced motion ---------- */
[data-motion="reduce"] .fd-link,
[data-motion="reduce"] .fd-link__pill,
[data-motion="reduce"] .fd-outline { transition: none !important; }

/* ---------- no JS: native horizontal scroll, all images visible ---------- */
.no-js .fd-large { overflow-x: auto; }
.no-js .fd-link { transform: none; }

/* ---- archive.css ---- */
/* ==== Archive (B6): grid, hover fan, filter dialog, active-filter pill ==== */

/* Inner scroller (d01, l10 §3.4) */
.ar-scroll {
  height: 100%; max-height: 100svh;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: none;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ar-scroll::-webkit-scrollbar { display: none; }

/* Grid: 2 / 3 / 4 / 5 cols at 0 / 1024 / 1280 / 1920 */
.ar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0; row-gap: 0;
  padding: 60px 3px 400px;
}
@media (min-width: 1024px) { .ar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; padding: 60px 0 0; } }
@media (min-width: 1280px) { .ar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1920px) { .ar-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Cell: the whole padded cell is the link */
.ar-item {
  display: block; position: relative;
  padding: 1px;
  color: inherit; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) { .ar-item { padding: 58px; } }
@media (min-width: 1024px) { .ar-item { padding: 80px; } }
.ar-item:focus-visible { outline: none; }
.ar-item:focus-visible .ar-cover { outline: 2px solid #fff; outline-offset: 3px; }

.ar-item__in {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  transform-origin: 50% 50%;
  transition: transform .6s cubic-bezier(.76,0,.24,1) .4s;
}

/* Cover: 4:5, radius 1px, clipped, scale lives on the img */
.ar-item .ar-cover {
  position: relative; z-index: 2;
  width: 100%; margin: 0;
  aspect-ratio: 4 / 5 !important;
  border-radius: 1px; overflow: hidden;
  background: #141414;
}
.ar-item .ar-cover img,
.ar-hover img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.ar-item .ar-cover img {
  transform: scale(1);
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .4s cubic-bezier(.22,1,.36,1);
}

/* Hover layers: same 4:5 box, behind the cover, unclipped by the cell */
.ar-hover {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translate(0, 0);
  pointer-events: none;
  /* leave: fade .2s, then snap back with no transition */
  transition: opacity .2s cubic-bezier(.23,1,.32,1), transform 0s linear .2s, visibility 0s linear .2s;
}
.ar-hover--2 { z-index: 0; }
.ar-hover .media,
.ar-hover figure {
  width: 100%; margin: 0;
  aspect-ratio: 4 / 5 !important;
  border-radius: 1px; overflow: hidden;
}
.ar-hover__fig--dark1 img { filter: brightness(.7); }
.ar-hover__fig--dark2 img { filter: brightness(.45); }

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .ar-item:hover .ar-cover img,
  .ar-item:focus-visible .ar-cover img { transform: scale(1.05); }

  .ar-item.is-hover:not(.is-out) .ar-hover {
    opacity: 1; visibility: visible;
    transition: opacity .2s cubic-bezier(.23,1,.32,1), transform .5s cubic-bezier(.16,1,.3,1), visibility 0s;
  }
  .ar-item.is-hover:not(.is-out) .ar-hover--1 { transform: translate(16px, -16px); }
  .ar-item.is-hover:not(.is-out) .ar-hover--2 { transform: translate(32px, -32px); }
}

/* Filtered: non-matching tiles shrink about their centre (never hidden) */
.ar-item.is-out .ar-item__in { transform: scale(.5); }

/* Filter dialog: full-screen black under the header (z 30 < 40) */
.ar-filter {
  position: fixed; inset: 0; z-index: 30;
  background: #000; color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
}
.ar-filter[hidden] { display: none; }
.ar-filter__in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 4px;
  padding: 40px 8px 40px;
  min-height: 100%;
}
@media (min-width: 768px) { .ar-filter__in { padding: 60px 24px 60px; } }
.ar-filter__list {
  grid-column: 1 / -1;
  list-style: none; margin: 0; padding: 0;
  padding-top: 8px;
}
@media (min-width: 1024px) { .ar-filter__list { grid-column: 8 / span 5; padding-top: 0; } }
.ar-filter__list li { padding-bottom: 12.5px; }
.ar-tag {
  display: inline-block;
  background: none; border: 0; margin: 0;
  padding: 0; text-align: left;
  font-size: 16px; line-height: 1.375;
  color: #7e7e7e; cursor: pointer;
  transition: color .15s linear;
}
.ar-tag:hover, .ar-tag[aria-pressed="true"] { color: #fff; }
.ar-tag:focus-visible { outline: 2px solid #fff; outline-offset: 3px; color: #fff; }

/* Active-filter pill: "Sort by <tag> x", fixed bottom centre, Archive only */
.ar-pill {
  position: fixed; left: 50%; bottom: 24px; z-index: 35;
  display: inline-flex; align-items: center; gap: 0;
  padding: 12px 20px; border: 0; border-radius: 4px;
  background: #141414; color: #fff;
  font-size: 14px; line-height: 1; letter-spacing: .015em;
  white-space: nowrap; cursor: pointer;
  transform: translate(-50%, 200%);
  visibility: hidden;
  transition: transform .6s cubic-bezier(.68,-.6,.32,1.6), visibility 0s linear .6s;
}
.ar-pill[hidden] { display: none; }
.ar-pill__sort { margin-right: .3em; }
.ar-pill__tag { color: #7e7e7e; margin-right: 10px; }
.ar-pill__x {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex: none;
}
.ar-pill__x::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 4px; background: #2f2f2f;
  transition: width .4s cubic-bezier(.86,0,.07,1), height .4s cubic-bezier(.86,0,.07,1);
}
.ar-pill__x svg { position: relative; transform: rotate(45deg); }
.ar-pill:hover .ar-pill__x::before { width: 18px; height: 18px; }
html[data-section="1"] .ar-pill.is-on {
  transform: translate(-50%, 0); visibility: visible;
  transition: transform .8s cubic-bezier(.87,0,.13,1) .4s, visibility 0s;
}

/* Reduced motion: shrink/entrance/fan become instant */
[data-motion="reduce"] .ar-item__in,
[data-motion="reduce"] .ar-item .ar-cover img,
[data-motion="reduce"] .ar-hover,
[data-motion="reduce"] .ar-pill,
[data-motion="reduce"] .ar-tag { transition: none !important; }
[data-motion="reduce"] .ar-item .ar-cover img { transform: none !important; }
[data-motion="reduce"] .ar-item.is-hover .ar-hover { transform: none !important; opacity: 0 !important; visibility: hidden !important; }

/* No JS: filter UI never shows */
.no-js .ar-filter, .no-js .ar-pill { display: none !important; }

/* ---- about.css ---- */
/* ==========================================================================
   About (B7). reference About screen: d06, l06, d09. Prefix ab-.
   Mobile first: phone (<768), tablet (768-1023), desktop (>=1024).
   ========================================================================== */

.ab { background: #000; color: #fff; }

.ab-scroll {
  position: relative;
  height: 100%;
  max-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ab-scroll::-webkit-scrollbar { display: none; }

/* --- Phone / tablet: one column ------------------------------------------ */
.ab-in {
  display: block;
  box-sizing: border-box;
  min-height: 100%;
  padding: 50px 8px 0;
}
.ab-img { display: none; }                 /* desktop sticky figures */

.ab-frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: calc(100vh - 58px);
  min-height: calc(100svh - 58px);
}
.ab-intro p { margin: 0; }
.ab-intro p + p { padding-top: 22px; }

.ab-mcontact { text-align: center; }
.ab-mcontact p { margin: 0; }
.ab-mcontact__s { font-size: 12px; padding-top: 6px; }
.ab-mcontact__s .ab-link { font-size: 12px; }

.ab-mimgs { display: flex; gap: 2px; }
.ab-mimgs .ab-mimg { flex: 1 1 0; min-width: 0; }

.ab-img,
.ab-mimg {
  margin: 0;
  aspect-ratio: 4 / 5.4 !important;      /* overrides the media inline ratio */
  border-radius: 1px;
  overflow: hidden;
}
.ab-img .media__img,
.ab-mimg .media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info columns (below the fold on phone/tablet) */
.ab-cols { display: flex; padding-top: 24px; }
.ab-col { flex: 1 1 0; min-width: 0; }
.ab-col + .ab-col { padding-left: 4px; }
.ab-group--contact,
.ab-group--work { display: none; }        /* already in the frame */
.ab-group + .ab-group { padding-top: 30px; }
.ab-col .ab-group--services { padding-top: 0; }   /* first visible group below 1024 */
.ab-label { margin: 0; padding-bottom: 8px; font-size: 12px; color: #fff; }
.ab-body { font-size: 16px; line-height: 1.375; }
.ab-list { list-style: none; margin: 0; padding: 0; }
.ab-list li + li { padding-top: 6px; }

/* Text-styled links and buttons */
.ab-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.ab-svc { display: block; width: fit-content; }
.ab-svc__n, .ab-appr__n { display: block; }
.ab-meta {
  display: block;
  color: #9c9c9c;
  font-size: 14px;
  letter-spacing: .015em;
}
.ab-group--faq .btn { justify-content: flex-start; }

.ab-foot {
  margin: 0;
  padding: 24px 0;
  font-size: 12px;
  overflow: hidden;
}
.ab-foot__t { display: inline-block; }

/* --- Panels (FAQ, Imprint): swapped in place of .ab-main ------------------ */
.ab-panel { padding: 0 0 20px; }
.ab-panel p { margin: 0; padding-bottom: 15px; }
.ab-panel strong { font-weight: inherit; }
.ab-panel__h {
  margin: 0;
  padding-bottom: 20px;
  font-size: 16px;
  font-weight: 400;
  outline-offset: 2px;
}
.ab-panel__draft { font-size: 14px; letter-spacing: .015em; color: #9c9c9c; }

.ab-q { border: 0; }
.ab-q__s {
  display: block;
  list-style: none;
  padding: 0 0 6px;
  cursor: pointer;
  transition: opacity .15s;
}
.ab-q__s::-webkit-details-marker { display: none; }
.ab-q__s::marker { content: ""; }
.ab-q__a { overflow: hidden; color: #9c9c9c; font-size: 14px; letter-spacing: .015em; }
.ab-q__a p { padding: 0 0 14px; }
.ab-faq__list:has(.ab-q[open]) .ab-q:not([open]) .ab-q__s { opacity: .5; }
.ab-q + .ab-q { padding-top: 4px; }

/* No JS: panels show as ordinary text below the lists */
.no-js .ab-faq[hidden],
.no-js .ab-legal[hidden] { display: block; padding-top: 30px; }
.no-js .ab-group--faq,
.no-js .ab-mcontact__s { display: none; }

/* Hover only on 768+ with a pointer */
@media (hover: hover) and (min-width: 768px) {
  .ab-link:hover,
  .ab-q__s:hover { opacity: .5; }
  .ab-faq__list:has(.ab-q[open]) .ab-q:not([open]) .ab-q__s:hover { opacity: 1; }
}

/* --- Tablet --------------------------------------------------------------- */
@media (min-width: 768px) {
  .ab-in { padding: 60px 24px 0; }
  .ab-frame {
    min-height: calc(100vh - 84px);
    min-height: calc(100svh - 84px);
  }
  .ab-cols { padding-top: 32px; }
}

/* --- Desktop: reference 12-col layout ----------------------------------- */
@media (min-width: 1024px) {
  .ab-in {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 1fr;
    column-gap: 4px;
    padding: 60px 24px 0;
  }
  .ab-img {
    display: block;
    grid-row: 1;
    align-self: end;
    position: sticky;
    bottom: 24px;
    margin-bottom: 24px;
  }
  .ab-img--1 { grid-column: 1 / 4; }
  .ab-img--2 { grid-column: 4 / 7; }

  .ab-text {
    grid-column: 8 / -1;
    grid-row: 1;
    max-width: 750px;
    min-width: 0;
  }
  .ab-frame { display: block; min-height: 0; }
  .ab-intro { padding-bottom: 30px; }
  .ab-mcontact,
  .ab-mimgs { display: none; }

  .ab-cols { padding-top: 0; }
  .ab-col + .ab-col { padding-left: 0; }
  .ab-group--contact,
  .ab-group--work { display: block; }
  .ab-col .ab-group--services { padding-top: 30px; }
  .ab-label { font-size: 14px; letter-spacing: .015em; }
  .ab-foot { font-size: 14px; letter-spacing: .015em; }
}

/* Reduced motion: no slides */
[data-motion="reduce"] .ab-foot__t { transform: none !important; }

/* ---- project.css ---- */
/* project.css (B8): project page /work/<slug>/. Spec d07, l07, d09. Prefix pj-. 1rem = 10px. */

/* change-1: one tall website screenshot, normal document scrolling. */
html[data-page="project"] body { height: auto; min-height: 100vh; min-height: 100svh; overflow-x: hidden; overflow-y: auto; }
html[data-page="project"][data-overlay="info"] body,
html[data-page="project"][data-overlay="inquiry"] body { overflow: hidden; }
.pj { position: relative; min-height: 100vh; min-height: 100svh; background: #000; color: #fff; z-index: 1; outline: none; }
.pj-art { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--td-header-hh) + 8px) 8px 0; box-sizing: border-box; }
@media (min-width: 768px) { .pj-art { padding: calc(var(--td-header-hh) + 24px) 24px 0; } }

/* ---------- Screenshot ---------- */
.pj-shot { width: 100%; display: flex; justify-content: center; outline: none; }
.pj-shot__media { position: relative; margin: 0; width: calc(100vw - 16px); max-width: 100%; height: auto; border-radius: 1px; overflow: hidden; background: #141414; flex: none; }
@media (min-width: 768px) { .pj-shot__media { width: min(1100px, calc(100vw - 48px)); } }
.pj-shot__media .media__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-user-drag: none; }

/* ---------- Next project row (end of the screenshot) ---------- */
.pj-end { width: calc(100vw - 16px); max-width: 100%; display: flex; justify-content: flex-end; padding: 24px 0 64px; }
@media (min-width: 768px) { .pj-end { width: min(1100px, calc(100vw - 48px)); padding: 32px 0 96px; } }
.pj-next { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; white-space: nowrap; }
.pj-next__label { color: #fff; }
.pj-next__title { color: #7e7e7e; transition: color .15s; }
.pj-next:hover .pj-next__title, .pj-next:focus-visible .pj-next__title { color: #fff; }
.pj-next__icon { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; background: #2f2f2f; border-radius: 4px; }
.pj-next__icon svg { transform: rotate(-90deg); }
.pj-next:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 2px; }

/* ---------- Info overlay ---------- */
.pj-info { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.8); color: #fff; overflow: hidden; }
.pj-info[hidden] { display: none; }
.pj-info__in { height: 100%; padding: 0 8px; box-sizing: border-box; align-items: start; }
.pj-info__col { grid-column: 1 / -1; margin-top: 52px; max-height: calc(100svh - 68px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 24px; outline: none; }
.pj-info__col::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .pj-info__in { padding: 0 24px; }
  .pj-info__col { grid-column: 1 / -1; margin-top: 84px; max-height: calc(100svh - 108px); }
}
@media (min-width: 1024px) {
  .pj-info__col { grid-column: 8 / span 4; margin-top: 96px; max-height: calc(100svh - 120px); }
}
.pj-info__text p { margin: 0; font-size: 16px; line-height: 1.375; }
.pj-info__text p + p { margin-top: 1em; }
.pj-info__facts { margin: 30px 0 0; padding: 0; font-size: 14px; letter-spacing: .015em; line-height: 1.375; }
.pj-info__fact + .pj-info__fact { margin-top: 16px; }
.pj-info__facts dt { color: #fff; }
.pj-info__facts dd { margin: 0; color: #7e7e7e; }
.pj-info__next { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-size: 14px; letter-spacing: .015em; color: #fff; text-decoration: none; }
.pj-info__next-t { color: #7e7e7e; transition: color .15s; }
.pj-info__next:hover .pj-info__next-t { color: #fff; }
.pj-info__next-i { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: #2f2f2f; border-radius: 4px; }
.pj-info__next-i svg { transform: rotate(-90deg); }
.pj-info__close { display: block; margin-top: 24px; padding: 6px 10px; border: 0; border-radius: 4px; background: #2f2f2f; color: #fff; font: inherit; font-size: 14px; letter-spacing: .015em; cursor: pointer; }
@media (min-width: 1024px) {
  /* Desktop closes via the header pill; this one appears only on keyboard focus. */
  .pj-info__close:not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- No JS: the screenshot and Next row work as is; Info shown below ---------- */
.no-js .pj-info, .no-js .pj-info[hidden] { display: block; position: static; background: none; }
.no-js .pj-info__col { max-height: none; }

/* ---- inquiry.css ---- */
/* ==========================================================================
   Inquiry overlay (B9). Full-screen black layer in the LF Filter/Info style.
   Prefix iq-. Owner of #inquiry. Header (z 40) stays above; layer z 30.
   ========================================================================== */
.iq{position:fixed;inset:0;z-index:var(--td-z-overlay,30);background:var(--td-black,#000);color:var(--td-white,#fff);
  font-size:1.6rem;line-height:1.375;-webkit-text-size-adjust:100%}
.iq[hidden]{display:none}
/* Black band under the header so scrolled fields never run beneath the header text */
.iq::before{content:"";position:absolute;left:0;right:0;top:0;height:var(--td-header-hh,3.6rem);background:var(--td-black,#000);
  z-index:1;pointer-events:none}
.iq-scroll{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:none}
.iq-scroll::-webkit-scrollbar{display:none}
.iq-in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:.4rem;row-gap:4rem;
  padding:calc(var(--td-header-hh,3.6rem) + .4rem) .8rem 12rem;min-height:100%;box-sizing:border-box}
.iq-intro,.iq-main{grid-column:1/-1;min-width:0}
.iq-main{max-width:75rem}

.iq-dim{opacity:.5}
.iq a{color:inherit}
.iq-link{text-decoration:none;transition:opacity .15s}
.iq-link:hover,.iq-link:focus-visible{opacity:1}

/* Close button that appears only on keyboard focus (d09 C8); header Close is the visible one */
.iq-close{position:absolute;top:calc(var(--td-header-hh,3.6rem) + .4rem);right:.8rem;z-index:2;
  font:inherit;font-size:1.4rem;color:#fff;background:var(--td-btn,#141414);border:0;border-radius:.4rem;padding:.6rem 1.2rem;
  cursor:pointer;opacity:0;pointer-events:none}
.iq-close:focus,.iq-close:focus-visible{opacity:1;pointer-events:auto}

/* Left column */
.iq-lead{margin:0;max-width:46ch}
.iq-note{margin:1.6rem 0 0;max-width:46ch}
.iq-mail{margin:3.2rem 0 0;letter-spacing:.015em}
.iq-block{margin-top:3.2rem;letter-spacing:.015em}
.iq-block__t{font:inherit;margin:0 0 .8rem}
.iq-list{list-style:none;margin:0;padding:0}
.iq-list li{padding-bottom:.4rem}
.iq-glance__n{opacity:1}
.iq-glance .iq-dim{white-space:nowrap}

/* Fields */
.iq-form{margin:0}
.iq-row{display:block;margin:0 0 3.2rem;padding:0;border:0;min-width:0}
.iq-label{display:block;font-size:1.4rem;letter-spacing:.015em;opacity:.5;margin:0 0 .8rem;padding:0}
fieldset.iq-row>legend.iq-label{float:left;width:100%}
fieldset.iq-row>legend+*{clear:both}
.iq-input{display:block;width:100%;box-sizing:border-box;margin:0;font:inherit;font-size:1.6rem;line-height:1.375;color:#fff;
  background:transparent;border:0;border-bottom:1px solid var(--td-gray-dark,#2f2f2f);border-radius:0;padding:0 0 1.25rem;
  caret-color:#fff;-webkit-appearance:none;appearance:none;transition:border-color .15s}
.iq-input::placeholder{color:var(--td-gray,#7e7e7e);opacity:.6}
.iq-input:focus{outline:none;border-bottom-color:#fff}
.iq-input:focus-visible{outline:none;border-bottom-color:#fff}
.iq-input:-webkit-autofill,.iq-input:-webkit-autofill:hover,.iq-input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px #000 inset;-webkit-text-fill-color:#fff;caret-color:#fff}
.iq-area{resize:none;overflow:hidden;min-height:calc(1.6rem * 1.375 * 3 + 1.25rem)}
.iq-input[aria-invalid="true"]{border-bottom-color:#fff}

/* Option groups: LF filter items */
.iq-opts{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--td-gray-dark,#2f2f2f);transition:border-color .15s}
.iq-opt{position:relative;display:inline-block;margin-right:1.6rem;padding-bottom:1.25rem;cursor:pointer}
.iq-opt__t{display:inline-block;opacity:.5;transition:opacity .15s}
.iq-opt:hover .iq-opt__t,.iq-opt input:checked+.iq-opt__t{opacity:1}
.iq-opt input:focus-visible+.iq-opt__t{outline:2px solid #fff;outline-offset:3px;opacity:1}
.iq-row--opts[aria-invalid="true"] .iq-opts{border-bottom-color:#fff}
.iq-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);
  white-space:nowrap;border:0;opacity:0}

.iq-help{margin:.8rem 0 0;font-size:1.4rem;letter-spacing:.015em;opacity:.5}
.iq-err{margin:.8rem 0 0;font-size:1.4rem;letter-spacing:.015em;color:#fff}
.iq-err[hidden]{display:none}

/* Actions */
.iq-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.6rem;margin-top:4.8rem}
.iq-row.iq-actions{margin-bottom:0}
.iq-send{display:inline-flex;align-items:center;gap:1.2rem;font:inherit;font-size:1.4rem;letter-spacing:.015em;color:#fff;
  background:var(--td-btn,#141414);border:0;border-radius:.4rem;padding:1.2rem 2rem;cursor:pointer;text-decoration:none}
.iq-send__sq{display:flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border-radius:.2rem;
  background:var(--td-gray-dark,#2f2f2f);transition:width .4s cubic-bezier(.83,0,.17,1),height .4s cubic-bezier(.83,0,.17,1)}
.iq-send__sq svg{transform:rotate(-90deg)}
.iq-send:hover .iq-send__sq,.iq-send:focus-visible .iq-send__sq{width:1.8rem;height:1.8rem}

.iq-btn{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:.8rem;font:inherit;font-size:1.4rem;
  letter-spacing:.015em;color:#fff;background:none;border:0;padding:.45rem 0 .45rem .2rem;cursor:pointer}
.iq-btn__icon{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:.4rem;
  transform:translateY(-1px);pointer-events:none}
.iq-btn__bubble{position:absolute;right:0;top:50%;z-index:-1;width:2rem;height:2rem;border-radius:.4rem;
  background:var(--td-gray-dark,#2f2f2f);transform:translateY(calc(-50% - 1px));pointer-events:none;
  transition:width .3s cubic-bezier(.68,-.6,.32,1.6),height .3s cubic-bezier(.68,-.6,.32,1.6),right .3s cubic-bezier(.68,-.6,.32,1.6)}
@media (hover:hover){
  .iq-btn:hover .iq-btn__bubble{width:calc(100% + 1.6rem);height:2.9rem;right:-.45rem}
}
.iq-btn:focus-visible .iq-btn__bubble{width:calc(100% + 1.6rem);height:2.9rem;right:-.45rem}

.iq-status{margin:1.6rem 0 0;min-height:1.9rem;letter-spacing:.015em}
.iq-status:empty{min-height:0}

/* Success */
.iq-done[hidden],.iq-form[hidden]{display:none}
.iq-done__t{font:inherit;margin:0 0 1.6rem;outline:none}
.iq-done p{margin:0 0 1.6rem;max-width:46ch}
.iq-done__alt{margin-top:3.2rem!important}
.iq-done .iq-actions{margin-top:2.4rem}

/* Tablet and up */
@media (min-width:768px){
  .iq-in{padding:6rem 2.4rem 12rem}
  .iq-close{top:6.4rem;right:2.4rem}
}
@media (min-width:1024px){
  .iq-in{row-gap:0;align-items:start}
  .iq-intro{grid-column:1/span 6;position:sticky;top:6rem;padding-right:2.4rem}
  .iq-main{grid-column:8/span 5}
}
@media (min-width:1920px){
  .iq-in{padding-left:8rem;padding-right:8rem}
}

/* Motion off */
[data-motion="reduce"] .iq *{transition:none!important}
@media (prefers-reduced-motion:reduce){.iq *{transition:none!important}}
.no-js .iq{display:none}

/* ---- a11y.css ---- */
/* a11y.css (B10): skip link, focus ring, visually hidden, reduced motion, no-JS fallback.
   Concatenated last into site.css (d01 2.3), so equal-specificity rules here win. */

/* 1. Visually hidden (h1, section h2s, live region, info title) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 2. Skip link (d09 C6): off-screen at -100px, 12px from top on focus, white on black */
.skip {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: var(--td-z-skip, 60);
  padding: 8px 12px;
  background: #000;
  color: #fff;
  font-size: 14px;
  letter-spacing: .015em;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 4px;
}
.skip:focus,
.skip:focus-visible { top: 12px; }
@media (min-width: 768px) { .skip { left: 24px; } }

/* 3. Focus ring (d01 10, d09 C7): white, no accent colour */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
img:focus-visible,
.media:focus-visible,
.ar-item:focus-visible,
.fd-thumb:focus-visible,
.pj-thumb:focus-visible { outline-offset: -2px; }
#main:focus-visible,
[tabindex="-1"]:focus-visible { outline: none; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-offset: 0; }/* Feed title pill shows on keyboard focus as on hover (d09 C5) */
.fd-link a:focus-visible { outline-offset: 2px; }

/* 4. Reduced motion (d09 C9). Writer of data-motion: inline head script. */
[data-motion="reduce"] *,
[data-motion="reduce"] *::before,
[data-motion="reduce"] *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
[data-motion="reduce"] .in { display: none !important; }
[data-motion="reduce"] .ar-item:hover .ar-item__in,
[data-motion="reduce"] .ar-item:focus-visible .ar-item__in { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in { display: none !important; }
}

/* 5. No-JS fallback (d09 C10). All controller CSS elsewhere is scoped to .js;
   these rules undo anything that is not. */
.no-js .in { display: none !important; }
.no-js .hd-bar { opacity: 1 !important; transform: none !important; }
.no-js[data-page="home"] .hd-slot,
.no-js .ar-pill,
.no-js .hd-right [data-overlay="filter"],
.no-js .hd-right [data-overlay="info"],
.no-js .fd-thumbs-wrap { display: none !important; }

.no-js[data-page="home"] body { overflow: auto; }
.no-js .hm {
  position: static !important;
  height: auto !important;
  overflow: visible !important;
}
.no-js .hm-stack { transform: none !important; }
.no-js .hm-sec {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-height: 100svh;
  height: auto !important;
}
.no-js [data-scroller] {
  max-height: none !important;
  overflow: visible !important;
}

/* Feed: native horizontal scroll-snap, titles visible */
.no-js .fd-large .sl-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  transform: none !important;
}
.no-js .fd-slide { scroll-snap-align: start; flex: 0 0 auto; }
.no-js .fd-link { opacity: 1 !important; transform: none !important; }

/* About: imprint and FAQ shown below the lists as normal text */
.no-js .ab-legal[hidden],
.no-js .ab-faq[hidden] { display: block !important; position: static !important; }

/* Project page: native scroll-snap slider, info shown below thumbs, next link visible */
.no-js .pj-slider .sl-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  transform: none !important;
}
.no-js .pj-slide { scroll-snap-align: center; flex: 0 0 100%; }
.no-js .pj-hit,
.no-js .pj-outline { display: none !important; }
.no-js .pj-thumbs-wrap { position: static !important; }
.no-js .pj-info[hidden] {
  display: block !important;
  position: static !important;
  background: #000 !important;
  opacity: 1 !important;
  inset: auto !important;
  padding-bottom: 120px;
}
.no-js .pj-next { opacity: 1 !important; transform: none !important; }

/* Overlays with no JS stay closed (they carry [hidden]); keep that true. */
.no-js .ar-filter,
.no-js .iq { display: none !important; }

/* Lead integration: feed Previous/Next buttons become visible pills when focused by keyboard. */
.fd-sr.visually-hidden:focus-visible {
  position: absolute; width: auto; height: auto; clip: auto; margin: 0; overflow: visible; white-space: nowrap;
  z-index: 12; top: 50%; padding: .4rem 1rem; border: 0; border-radius: .4rem; background: #2f2f2f; color: #fff;
  font: inherit; font-size: 1.4rem; letter-spacing: .015em;
}
.fd-sr.visually-hidden[data-fd="prev"]:focus-visible { left: 2.4rem; }
.fd-sr.visually-hidden[data-fd="next"]:focus-visible { right: 2.4rem; }

