/* ===== Fonts ===== */
/* HOVES-FONTFACE-START */
@font-face { font-family: "TT Hoves Pro Trial"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/hoves-regular.woff2") format("woff2"); }
@font-face { font-family: "TT Hoves Pro Trial"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/hoves-medium.woff2") format("woff2"); }
@font-face { font-family: "TT Hoves Pro Trial"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/hoves-demibold.woff2") format("woff2"); }
@font-face { font-family: "TT Hoves Pro Trial"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/hoves-bold.woff2") format("woff2"); }
@font-face { font-family: "TT Hoves Pro Trial"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/hoves-italic.woff2") format("woff2"); }
/* HOVES-FONTFACE-END */
/* PP-FONTFACE-START */
@font-face { font-family: "PP Editorial Old"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/ppeditorial-ultralight.woff2") format("woff2"); }
@font-face { font-family: "PP Editorial Old"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/ppeditorial-ultralight-italic.woff2") format("woff2"); }
/* PP-FONTFACE-END */

/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #8a8a8a;
  --muted-2: #b3b3b3;
  --line: #e6e6e6;
  --btn: #1b1b1b;
  --btn-ink: #ffffff;
  --link: #2f6fed;
  --pink: #ff6b9d;
  --pink-strong: #ff3d7f;
  --blue: #53A6F2;
  --blue-tint: #f4f9ff;
  --blue-soft: #e7f1ff;
  --pink-soft: #fdeef0;
  --ph: #d9d9d9;           /* grey placeholder box */
  --ph-2: #ececec;
  --card-blue: #eaf2ff;
  --card-blue-2: #dbe9ff;
  --card-grey: #f1f1f1;
  --footer-bg: #191919;
  --footer-ink: #f5f5f5;
  --footer-muted: #6f6f6f;

  --serif: "PP Editorial Old", Georgia, "Times New Roman", serif;
  --sans: "TT Hoves Pro Trial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1440px;
  --pad: clamp(24px, 12vw, 220px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ph { background: var(--ph); }

/* ===== Preloader ===== */
body.is-preloading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #141414;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
  will-change: transform;
}
.preloader.is-done { transform: translateY(-100%); }

.preloader__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.preloader__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.5), rgba(10,10,10,.35) 45%, rgba(10,10,10,.6));
}

.preloader__inner { position: relative; z-index: 2; text-align: center; padding-inline: var(--pad); }
.preloader__count { z-index: 2; }
.preloader__bar { z-index: 2; }

.preloader__label {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  opacity: 0;
  animation: pre-fade-up .9s ease forwards .1s;
}
.preloader__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 130px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: pre-fade-up 1.1s cubic-bezier(.2, .7, .2, 1) forwards .28s;
}

.preloader__count {
  position: absolute;
  right: var(--pad);
  bottom: clamp(28px, 5vw, 56px);
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .9);
}
.preloader__pct { font-size: .5em; color: rgba(255, 255, 255, .5); }

.preloader__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .12);
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

@keyframes pre-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__label,
  .preloader__title { animation-duration: .3s; }
  .preloader { transition-duration: .3s; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 4px;
  transition: transform .18s ease, opacity .18s ease;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn--sm { padding: 10px 16px; font-size: 12px; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  color: var(--ink);
  background: rgba(255, 255, 255, .45);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
}
.nav__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav__name {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* hide-on-scroll-down, show-on-scroll-up */
.nav { transition: transform .35s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.nav--hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* ===== Intro / About (landing) ===== */
.intro {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 110px) var(--pad) clamp(40px, 6vw, 80px);
}
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 18vw, 260px);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.intro__lead {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 26px;
}
.intro__body {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.intro__body strong { color: var(--ink); font-weight: 600; }

/* normal text colour with a hand-painted pink brush-stroke underline */
.link {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  padding-bottom: 0.14em;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2016'%20preserveAspectRatio='none'%3E%3Cpath%20d='M5%209%20C45%205%2085%2010%20120%207%20C150%205%20182%209%20197%207%20L196%2010%20C166%2012%20126%209%2099%2011%20C63%2013%2033%2010%205%2011%20Z'%20fill='%23c4c4c4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0.42em;
}
.link:hover {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2016'%20preserveAspectRatio='none'%3E%3Cpath%20d='M5%209%20C45%205%2085%2010%20120%207%20C150%205%20182%209%20197%207%20L196%2010%20C166%2012%20126%209%2099%2011%20C63%2013%2033%2010%205%2011%20Z'%20fill='%23444444'/%3E%3C/svg%3E");
}
/* pink brush underline on hover (Snabbit) */
.link--pink:hover {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2016'%20preserveAspectRatio='none'%3E%3Cpath%20d='M5%209%20C45%205%2085%2010%20120%207%20C150%205%20182%209%20197%207%20L196%2010%20C166%2012%20126%209%2099%2011%20C63%2013%2033%2010%205%2011%20Z'%20fill='%23ff3d7f'/%3E%3C/svg%3E");
}

.intro__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ph);
}
.intro__pfp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.intro__pfp--color {
  opacity: 0;
  transition: opacity .45s ease;
}
.intro__portrait:hover .intro__pfp--color { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .intro__pfp--color { transition-duration: .15s; }
}

/* cursor-following ASCII lens over the portrait (built + driven by JS) */
.intro__ascii {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.intro__portrait:hover .intro__ascii { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .intro__ascii { display: none; }
}

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  margin: clamp(50px, 8vw, 100px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
.timeline__item { min-width: 0; }
.timeline__year {
  display: block;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.timeline__head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 6px;
}
.timeline__title {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.timeline__line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--ink);
}
.timeline__item:last-child .timeline__line { display: none; }
.timeline__desc {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
}
.timeline__emoji { font-style: normal; margin-right: 4px; }

/* ===== Section head ===== */
.projects {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(50px, 8vw, 100px) var(--pad) clamp(40px, 6vw, 80px);
}
.section-head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: clamp(30px, 5vw, 56px);
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}
.section-head__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ===== Project gallery (2 × 2) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: clamp(40px, 5vw, 72px);
}
.card { display: flex; flex-direction: column; }
.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  background: var(--ph);
  border-radius: 2px;
  overflow: hidden;
  transition: opacity .2s ease;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media:hover { opacity: .9; }

/* classified / locked thumbnail overlay */
.card__lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(18, 18, 18, .5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.card__media--locked:hover .card__lock { opacity: 1; }
.card__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}
.card__pill-ico { display: block; margin-top: -1px; }
.card__lock-note {
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.card__body { padding-top: 18px; }
.card__title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.card__sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Atelier ===== */
.atelier {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 60px) var(--pad) clamp(60px, 8vw, 110px);
}
.atelier__divider { height: 1px; background: var(--line); margin-bottom: clamp(50px, 8vw, 100px); }
.atelier__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}
.atelier__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  margin: 0;
}
/* ===== Atelier folder (interactive) ===== */
.folder {
  --folder-scale: .74;
  position: relative;
  display: block;
  width: 366px;
  height: 300px;
  flex: 0 0 auto;
  transform: scale(var(--folder-scale));
  transform-origin: center;
  /* reclaim the space freed by scaling so the layout tightens around it */
  margin: calc((var(--folder-scale) - 1) * 150px) calc((var(--folder-scale) - 1) * 183px);
  -webkit-tap-highlight-color: transparent;
}
.folder > * { position: absolute; }

.folder__back {
  left: 26.29px; top: 21.83px;
  width: 313.03px; height: 278.17px;
  background: #333;
  border-radius: 22.25px;
  box-shadow: 0 0 22.25px 4.45px rgba(0,0,0,.15);
}

/* poster cards — each wrapper is centred, the inner image is rotated */
.folder__card { display: flex; align-items: center; justify-content: center;
  transition: transform .45s cubic-bezier(.2,.75,.2,1); }
.folder__card img {
  display: block;
  width: 157.4px; height: 222.53px;
  object-fit: cover;
  border-radius: 6.68px;
  box-shadow: 0 0 8.9px rgba(0,0,0,.08);
}
.folder__card--watchmen { left: 139.98px; top: 43.06px; width: 184.5px; height: 240.71px; }
.folder__card--watchmen img { transform: rotate(7.28deg); }
.folder__card--charli   { left: 101.82px; top: 28.77px; width: 171.89px; height: 232.57px; }
.folder__card--charli img { transform: rotate(-3.84deg); }
.folder__card--bound2   { left: 40.5px;  top: 0;       width: 209.96px; height: 255.88px; }
.folder__card--bound2 img { transform: rotate(-15.13deg); }

/* frosted folder front — real Figma folder shape, blurs the posters behind it */
.folder__front {
  left: 2.9px; top: 84.14px;
  width: 359.6px; height: 215.86px;
  display: grid; place-items: center;
  clip-path: path("M22.2569 1.1123H171.943C176.98 1.11239 181.852 2.91136 185.681 6.18457L221.192 36.5439C225.424 40.1618 230.809 42.1504 236.376 42.1504H337.339C350.268 42.1506 360.168 53.6533 358.243 66.4385L338.625 196.752C337.068 207.095 328.18 214.745 317.72 214.745H43.1485C32.4626 214.745 23.4575 206.77 22.1641 196.163L1.27151 24.8125C-0.264428 12.2154 9.56644 1.1123 22.2569 1.1123Z");
  background: linear-gradient(180deg, rgba(170,170,170,.5), rgba(116,116,116,.55));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.folder__arrow {
  color: #fff;
  transform: translate(-4px, 26px);
  opacity: 0;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.75,.2,1);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

/* hover / focus — posters pop out, arrow appears */
.folder:hover .folder__card--bound2,
.folder:focus-visible .folder__card--bound2 { transform: translate(-6px, -30px); }
.folder:hover .folder__card--charli,
.folder:focus-visible .folder__card--charli { transform: translate(8px, -26px); }
.folder:hover .folder__card--watchmen,
.folder:focus-visible .folder__card--watchmen { transform: translate(20px, -20px); }
.folder:hover .folder__arrow,
.folder:focus-visible .folder__arrow { opacity: 1; transform: translate(6px, 26px); }

@media (prefers-reduced-motion: reduce) {
  .folder__card, .folder__arrow { transition-duration: .01ms; }
}
.atelier__desc {
  justify-self: end;
  max-width: 260px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.atelier__desc em { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

/* ===== Footer (full-bleed cityscape) ===== */
.footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 44vw, 600px);
  padding: clamp(32px, 4vw, 60px) var(--pad);
  color: #f2f2f2;
  background: #171717 center / cover no-repeat;
  background-image: linear-gradient(180deg, rgba(20,20,20,.10), rgba(20,20,20,.45)), url("assets/footer.jpg");
  overflow: hidden;
}
/* fade the top of the footer image into the page so there's no hard seam */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.footer__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 54px);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__logo {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  color: #fff;
}
.footer__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer__pen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #fff;
}
.footer__pen-ico { font-size: 15px; }
.footer__socials {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0; padding: 0;
}
.footer__socials a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  transition: color .15s ease;
}
.footer__socials a:hover { color: #fff; }
.footer__meta {
  font-size: 12px;
  color: rgba(255,255,255,.72);
  letter-spacing: 0.08em;
}
@media (max-width: 620px) {
  .footer__row { flex-wrap: wrap; gap: 16px; }
}

/* cursor-following ASCII lens over the footer image (built + driven by JS) */
.footer__ascii {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.footer:hover .footer__ascii { opacity: .5; }
@media (prefers-reduced-motion: reduce) {
  .footer__ascii { display: none; }
}

/* ===== Atelier page ===== */
.nav__links a[aria-current="page"] { color: var(--ink); opacity: 1; font-weight: 600; }

.page-intro {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 110px) var(--pad) clamp(30px, 4vw, 56px);
}
.page-intro__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: .92;
  margin: 0 0 18px;
}
.page-intro__noun {
  font-family: var(--sans);
  font-style: normal;
  color: var(--ink);
  font-size: 14px;
  margin: 0 0 20px;
}
.page-intro__noun span {
  font-family: var(--serif);
  font-style: italic;
}
.page-intro__body {
  max-width: 480px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* poster ticker (full-bleed, drag-scrollable + auto-advance) */
.ticker {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: clamp(24px, 3vw, 44px) 0;
  cursor: grab;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE/Edge */
  overscroll-behavior-x: contain;
}
.ticker::-webkit-scrollbar { display: none; }  /* WebKit */
.ticker.is-dragging { cursor: grabbing; }
.ticker__track {
  display: flex;
  gap: 18px;
  width: max-content;
}
.ticker__card {
  flex: 0 0 auto;
  height: clamp(300px, 40vw, 480px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,.10);
}
.ticker__card img {
  height: 100%; width: auto;         /* fixed height, natural width — no crop */
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;          /* let drags land on the strip, not the image */
}

/* archive grid */
.archive {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(50px, 7vw, 100px) var(--pad) clamp(30px, 4vw, 60px);
}
.archive__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: clamp(40px, 5vw, 72px);
  margin-top: clamp(28px, 4vw, 52px);
}
.archive__item {
  display: block;
  aspect-ratio: 5 / 4;
  background: var(--ph);
  border-radius: 2px;
  overflow: hidden;
  transition: opacity .2s ease;
}
.archive__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive__item:hover { opacity: .9; }

/* back to home */
.back-home {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px) var(--pad) clamp(56px, 8vw, 110px);
}

/* ===== Draggable polaroid collage (Atelier) ===== */
.collage {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 70px) var(--pad) clamp(20px, 3vw, 40px);
}
.collage__hint {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  white-space: nowrap;
}
.collage__board {
  position: relative;
  height: clamp(480px, 64vw, 640px);
  margin-top: clamp(24px, 4vw, 44px);
  overflow: hidden;
  touch-action: none;                 /* let JS own the drag gesture */
  background: transparent;            /* seamless with the page */
}
.polaroid {
  position: absolute;
  width: clamp(140px, 17vw, 190px);
  margin: 0;
  padding: 10px 10px 16px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(0,0,0,.09), 0 1px 0 rgba(0,0,0,.03);
  transform: rotate(var(--rot, 0deg));
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow .2s ease;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
  background: var(--ph);
  pointer-events: none;               /* drags land on the frame, not the image */
  -webkit-user-drag: none;
  user-select: none;
}
.polaroid figcaption {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  font-size: 15px;
  color: #333;
  margin-top: 8px;
  line-height: 1.2;
}
.polaroid.is-drag {
  cursor: grabbing;
  box-shadow: 0 14px 30px rgba(0,0,0,.16);
}
@media (max-width: 620px) {
  .collage__board { height: clamp(560px, 135vw, 760px); }
  .collage__hint { display: none; }
}

/* ===== Case study (project) page ===== */
.case { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}
.case-h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.case-h2 .blue, .blue { color: var(--blue); }
.case-body {
  max-width: 560px;
  font-size: 14px; line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.case-body:last-child { margin-bottom: 0; }
.case-section { padding-block: clamp(50px, 8vw, 110px); }

/* header */
.case-head { padding-block: clamp(64px, 9vw, 140px) clamp(20px, 3vw, 40px); }
.case-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 92px);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 0 24px;
}
.case-lead {
  border-left: 2px solid var(--ink);
  padding-left: 18px;
  font-style: italic;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 clamp(30px, 5vw, 54px);
}
.case-meta { display: flex; flex-wrap: wrap; gap: clamp(36px, 7vw, 96px); margin: 0; }
.case-meta dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.case-meta dd { margin: 0; font-size: 14px; }

/* full-bleed visual */
.case-visual {
  margin: clamp(30px, 5vw, 60px) auto 0;
  max-width: var(--container);
}
.ph--blue {
  background:
    radial-gradient(120% 90% at 50% 40%, #ffffff 0%, #e9f2ff 55%, #dcebff 100%);
}
.ph--pink { background: linear-gradient(160deg, #fdeef0, #fbe3e8); }
.case-hero-media {
  aspect-ratio: 16 / 8;
  border-radius: 2px;
  display: grid; place-items: center;
}
.case-hero-media__label {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(22px, 3vw, 36px); color: #3a5578; opacity: .55;
}

/* stat row */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(32px, 4vw, 56px);
}
.stat { background: var(--blue-tint); border-radius: 2px; padding: clamp(22px, 2.4vw, 30px); }
.stat__n {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(34px, 4vw, 48px); color: var(--blue);
  line-height: 1; margin-bottom: 14px;
}
.stat__c { font-size: 12px; line-height: 1.45; color: var(--muted); }

/* wide figure */
.case-figure { border-radius: 2px; }
.case-figure--research { aspect-ratio: 16 / 7; }
.case-figure--reflection { aspect-ratio: 16 / 7; margin-top: clamp(30px, 4vw, 50px); }
.case-img { display: block; width: 100%; height: auto; border-radius: 2px; }
.case-img--mt { margin-top: clamp(30px, 4vw, 50px); }

/* design-principle image follows the normal case-study content width */
.principle-img {
  max-width: var(--container);
  margin: clamp(50px, 8vw, 110px) auto;
  padding-inline: var(--pad);
}
.principle-img img { display: block; width: 100%; height: auto; }

/* research cards */
.rcards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(32px, 4vw, 54px);
}
.rcard {
  position: relative; overflow: hidden;
  background: var(--blue-tint);
  padding: 26px 24px 42px;
}
.rcard h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; line-height: 1.3; }
.rcard p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.rcard__num {
  position: absolute; right: 16px; bottom: 4px;
  font-family: var(--sans); font-weight: 700; font-size: 44px;
  color: rgba(20,20,20,.06);
}

/* principle quote (full bleed) */
.principle {
  margin: clamp(50px, 8vw, 110px) 0;
  padding: clamp(56px, 9vw, 120px) var(--pad);
  background: var(--blue-soft);
  text-align: center;
}
.principle__q {
  font-family: var(--sans); font-style: italic; font-weight: 400;
  font-size: clamp(21px, 3vw, 34px); line-height: 1.35;
  max-width: 860px; margin: 0 auto 22px;
}
.principle__label { color: var(--muted); }

/* process steps */
.step { margin-top: clamp(36px, 5vw, 64px); }
.step__t { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.step__d { max-width: 640px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 24px; }
.step__img { aspect-ratio: 16 / 10; border-radius: 2px; }
.step__vid { display: block; width: 100%; height: auto; border-radius: 2px; }

/* outcome grid */
.ocards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(32px, 4vw, 54px);
}
.ocard { background: var(--blue-tint); padding: clamp(18px, 2vw, 26px); }
.ocard__img { display: block; width: 100%; height: auto; border-radius: 2px; margin-bottom: 18px; }
.ocard h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.ocard p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* more projects */
.case-cta { display: flex; justify-content: center; padding-block: clamp(40px, 6vw, 90px) clamp(60px, 8vw, 110px); }
.case-cta--stacked { flex-direction: column; align-items: center; gap: clamp(34px, 5vw, 60px); }
.case-readmore { margin: 0; font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; color: var(--ink); text-align: center; }
.case-readmore .link {
  color: #7c5cff;
  font-weight: 500;
  padding-bottom: 0.03em;
  background-size: 100% 0.34em;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2016'%20preserveAspectRatio='none'%3E%3Cpath%20d='M5%209%20C45%205%2085%2010%20120%207%20C150%205%20182%209%20197%207%20L196%2010%20C166%2012%20126%209%2099%2011%20C63%2013%2033%2010%205%2011%20Z'%20fill='%237c5cff'/%3E%3C/svg%3E");
}
.case-readmore .link:hover {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2016'%20preserveAspectRatio='none'%3E%3Cpath%20d='M5%209%20C45%205%2085%2010%20120%207%20C150%205%20182%209%20197%207%20L196%2010%20C166%2012%20126%209%2099%2011%20C63%2013%2033%2010%205%2011%20Z'%20fill='%235a3fd6'/%3E%3C/svg%3E");
}

/* stacked case-study gallery (full-width + paired rows) */
.hgal {
  max-width: var(--container);
  margin-inline: auto;
  padding-block: clamp(24px, 4vw, 56px) clamp(10px, 2vw, 24px);
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}
.hgal figure { margin: 0; }
.hgal img, .hgal__vid { display: block; width: 100%; height: auto; border-radius: 2px; }
/* paired row: equal height, NO crop — each column grows in proportion to its
   image aspect ratio (set via inline `flex` on the figure), so full images
   share the same height and fill the row width. */
.hgal__pair {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: flex-start;
}
.hgal__pair figure { margin: 0; min-width: 0; }
.hgal__pair img { width: 100%; height: auto; display: block; border-radius: 2px; }
@media (max-width: 760px) {
  .hgal__pair { flex-direction: column; }
}
@media (max-width: 760px) {
  .hgal__pair { grid-template-columns: 1fr; }
}

/* full-bleed hub-screen ticker (auto-scroll + drag) inside the gallery */
.htk {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow-x: auto; overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.htk::-webkit-scrollbar { display: none; }
.htk.is-dragging { cursor: grabbing; }
.htk__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
  padding-inline: var(--pad);
}
.htk__item {
  flex: 0 0 auto;
  margin: 0;
  height: clamp(260px, 32vw, 460px);
  border-radius: 2px;
  overflow: hidden;
}
.htk__item img {
  height: 100%; width: auto;
  display: block; border-radius: 0;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.htk__item--ph { aspect-ratio: 16 / 10; background: var(--ph); }

/* smaller ticker items (Homie hub screens) */
.htk--compact .htk__item { height: clamp(180px, 22vw, 300px); }

/* placeholder hero (missing image) */
.wx-heroph {
  aspect-ratio: 16 / 8;
  border-radius: 2px;
  display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 30%, #f0fad2, #e2f3aa 58%, #d0e982);
}
.wx-heroph span { font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 4.5vw, 56px); color: #2f4d1f; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rcards { grid-template-columns: 1fr; }
  .ocards { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__portrait { max-width: 320px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .cards { grid-template-columns: 1fr; }
  .atelier__grid { grid-template-columns: 1fr; justify-items: start; text-align: left; gap: 26px; }
  .atelier__desc { justify-self: start; text-align: left; }
}
@media (max-width: 620px) {
  .nav__name { display: none; }
  .nav__links { gap: 20px; }
  .section-head__rule { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .folder { --folder-scale: .58; }
  .archive__grid { grid-template-columns: 1fr; }
}
