/* ============================================================
   COURTYARD ARTS — typographic greige
   beige/greige x warm ink, animated artwork backdrop
   (--ink = page ground, --cream = foreground; names kept from base)
   ============================================================ */

:root {
  --ink: #e8e2d3;
  --cream: #2b251e;
  --cream-60: rgba(43, 37, 30, 0.62);
  --cream-30: rgba(43, 37, 30, 0.34);
  --cream-12: rgba(43, 37, 30, 0.14);
  --amber: #b97a55;
  --white: #fdfbf6;
  --font-sans: "Hanken Grotesk", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-ar: "Noto Kufi Arabic", sans-serif;
  --gutter: clamp(20px, 3.5vw, 56px);
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
}
[lang="ar"] { font-family: var(--font-ar); }

/* ---------- animated artwork backdrop ---------- */
.artbg {
  position: fixed; inset: -6%;
  z-index: 0; pointer-events: none;
  overflow: hidden;
}
.artbg img {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform, opacity;
}
.artbg canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  will-change: transform, opacity;
}
.artbg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(232, 226, 211, 0.12) 0%, rgba(232, 226, 211, 0.45) 100%);
}
main { position: relative; z-index: 1; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
  gap: 14px;
}
.loader__row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.loader__pct { font-size: clamp(48px, 8vw, 110px); font-family: var(--font-sans); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.loader__bar { height: 1px; background: var(--cream-12); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; }

/* ---------- header ---------- */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s;
}
.head.is-solid { background: rgba(232, 226, 211, 0.88); backdrop-filter: blur(10px); }
.head__brand { font-weight: 600; font-size: 14px; letter-spacing: 0.04em; display: flex; align-items: center; gap: 12px; }
.head__logo {
  display: block; height: 34px; aspect-ratio: 319 / 182;
  background: var(--white);
  -webkit-mask: url("../assets/img/ca-logo-white.png") no-repeat center / contain;
  mask: url("../assets/img/ca-logo-white.png") no-repeat center / contain;
  transition: background 0.4s var(--ease);
  filter: drop-shadow(0 0 1px rgba(43, 37, 30, 0.5)) drop-shadow(0 1px 2px rgba(43, 37, 30, 0.25));
}
.head__brand:hover .head__logo { background: var(--amber); }
.head__brand:hover .roll [data-roll] { transform: translateY(-100%); }
.head__meta { display: flex; gap: 28px; justify-content: center; color: var(--cream-60); }
.head__nav { display: flex; gap: 18px; justify-content: flex-end; }

/* ---------- letter-roll hover ---------- */
.roll { display: inline-block; overflow: hidden; vertical-align: top; }
.roll [data-roll] { display: inline-block; position: relative; transition: transform 0.5s var(--ease); }
.roll [data-roll]::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
  color: var(--amber);
}
.roll:hover [data-roll] { transform: translateY(-100%); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(72px + var(--gutter)) var(--gutter) var(--gutter);
}
.hero__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--cream-60); flex-wrap: wrap; }
.hero__title {
  margin: auto 0;
  text-align: center;
}
.hero__logo {
  display: block; margin: 0 auto;
  width: clamp(200px, 34vw, 440px);
  aspect-ratio: 319 / 182;
  background: var(--white);
  -webkit-mask: url("../assets/img/ca-logo-white.png") no-repeat center / contain;
  mask: url("../assets/img/ca-logo-white.png") no-repeat center / contain;
  filter: drop-shadow(0 0 1px rgba(43, 37, 30, 0.35)) drop-shadow(0 2px 6px rgba(43, 37, 30, 0.18));
}
.hero__line { display: block; overflow: hidden; white-space: nowrap; }
.hero__line--right { text-align: right; }
.hero__line .char { display: inline-block; will-change: transform; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__desc { max-width: 44ch; min-width: min(44ch, 100%); font-size: clamp(16px, 1.4vw, 21px); font-weight: 400; color: var(--cream-60); }
.hero__desc .line { overflow: hidden; }
.hero__ar { font-size: clamp(18px, 2vw, 28px); color: var(--amber); }
.hero__bottom { display: flex; justify-content: space-between; color: var(--cream-30); }

/* ---------- marquee ---------- */
.marq { overflow: hidden; border-top: 1px solid var(--cream-12); border-bottom: 1px solid var(--cream-12); padding: 12px 0; display: flex; }
.marq__track { display: flex; flex-shrink: 0; white-space: nowrap; color: var(--cream-60); will-change: transform; }
.marq__track span { font-size: 12px; }

/* ---------- sections ---------- */
.sec { padding: clamp(90px, 11vw, 180px) var(--gutter) 0; }
.sec__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--cream-12);
  padding-bottom: 14px; margin-bottom: clamp(40px, 5vw, 80px);
  color: var(--cream-60);
}

/* ---------- profile ---------- */
.profile__row {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: clamp(36px, 6vw, 90px);
}
.profile__text {
  font-size: clamp(19px, 2.1vw, 33px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 46ch;
  color: var(--cream-60);
}
.profile__img {
  flex-shrink: 0;
  width: min(640px, 46vw);
}
.profile__img img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block;
  filter: saturate(0.88);
}
.profile__img figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 12px; color: var(--cream-30);
}
.profile__img figcaption span:last-child { color: var(--amber); }

/* ---------- full-bleed divider ---------- */
.divider {
  position: relative; z-index: 1;
  width: 100%;
  margin-top: clamp(90px, 11vw, 170px);
  overflow: hidden;
  background: #0e0c0b;
}
.divider img {
  width: 100%;
  height: clamp(220px, 30vw, 440px);
  object-fit: cover; display: block;
  transform: scale(1.2);
  will-change: transform;
}
.profile__text .line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.profile__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(56px, 7vw, 110px);
}
.pstat { border-top: 1px solid var(--cream-12); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.pstat__num { font-size: clamp(30px, 3.4vw, 56px); font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.pstat__label { color: var(--cream-60); }

/* ---------- factory tape (legacy) ---------- */
.profile__tape { width: min(300px, 36vw); flex-shrink: 0; }
.profile__tape video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.profile__tape figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--cream-30); }
.profile__tape figcaption span:last-child { color: var(--amber); }

/* ---------- vision / mission / values ---------- */
.vm {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(64px, 8vw, 130px);
}
.vm__col { border-top: 1px solid var(--cream-12); padding-top: 18px; }
.vm__label { display: block; color: var(--cream-30); margin-bottom: 16px; }
.vm__col p { font-size: clamp(15px, 1.4vw, 20px); font-weight: 300; line-height: 1.55; color: var(--cream-60); }
.vm__col .line { overflow: hidden; }

.values {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 40px);
  margin-top: clamp(56px, 7vw, 110px);
}
.vitem { border-top: 1px solid var(--cream-12); padding-top: 16px; }
.vitem__idx { color: var(--cream-30); }
.vitem__name { font-size: clamp(22px, 2.2vw, 36px); font-weight: 300; letter-spacing: -0.02em; margin: 10px 0 12px; }
.vitem__text { font-size: 14px; color: var(--cream-60); }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 40px); }
.step { border-top: 1px solid var(--cream-12); padding-top: 16px; position: relative; }
.step__img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; background: var(--cream-12); }
.step__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.85);
  transition: transform 0.8s var(--ease), filter 0.6s;
}
.step:hover .step__img img { transform: scale(1.05); filter: saturate(1); }
.step__idx { color: var(--amber); }
.step__name { font-size: clamp(26px, 2.8vw, 48px); font-weight: 300; letter-spacing: -0.02em; margin: 12px 0 14px; }
.step__text { font-size: 14px; color: var(--cream-60); max-width: 30ch; }

/* ---------- expansion / saudi arabia ---------- */
.saudi {
  display: grid; grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.saudi__img { background: var(--white); align-self: start; }
.saudi__img img { width: 100%; display: block; }
.saudi__img figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 12px; color: var(--cream-30);
}
.saudi__img figcaption span:last-child { color: var(--amber); }
.saudi__title {
  font-size: clamp(34px, 5vw, 74px); font-weight: 300;
  letter-spacing: -0.03em; line-height: 1.02; margin-bottom: clamp(20px, 2.5vw, 34px);
}
.saudi__title .line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.saudi__text {
  font-size: clamp(18px, 1.9vw, 27px); font-weight: 300;
  line-height: 1.42; color: var(--cream-60); max-width: 42ch;
}
.saudi__text .line { overflow: hidden; }

/* ---------- works rows ---------- */
.works { display: flex; flex-direction: column; }
.wrow {
  display: grid; grid-template-columns: 54px 1fr auto 32px; align-items: baseline; gap: 18px;
  padding: clamp(16px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--cream-12);
  cursor: pointer;
  transition: padding-left 0.5s var(--ease);
  position: relative;
}
.wrow:first-child { border-top: 1px solid var(--cream-12); }
.wrow:hover { padding-left: 20px; }
.wrow__idx { color: var(--cream-30); }
.wrow__body { display: flex; flex-direction: column; gap: 12px; }
.wrow__name {
  font-size: clamp(20px, 2.4vw, 38px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.015em;
  transition: color 0.4s;
}
.wrow:hover .wrow__name { color: var(--amber); }
.wrow__desc {
  font-size: 14px; color: var(--cream-60); max-width: 58ch;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.5s 0.1s;
}
.wrow:hover .wrow__desc { max-height: 120px; opacity: 1; }
.wrow__tag { color: var(--cream-30); text-align: right; }
.wrow__arrow { font-size: clamp(15px, 1.5vw, 21px); color: var(--cream-30); transition: transform 0.4s var(--ease), color 0.4s; }
.wrow:hover .wrow__arrow { transform: translate(4px, -4px); color: var(--amber); }

.wpreview {
  position: fixed; top: 0; left: 0; z-index: 450;
  width: min(340px, 30vw); aspect-ratio: 4 / 3;
  overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(0.85);
}
.wpreview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- projects grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.pcard { cursor: pointer; }
.pcard:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }
.pcard__img { overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.pcard__view {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: 7px 12px; background: rgba(43, 37, 30, 0.78); color: var(--white);
  font-size: 11px; letter-spacing: 0.08em; backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s;
}
.pcard:hover .pcard__view { opacity: 1; transform: translateY(0); }
.pcard__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.72);
  transform: scale(1.04);
  transition: filter 0.7s var(--ease), transform 0.9s var(--ease);
}
.pcard:hover .pcard__img img { filter: saturate(1); transform: scale(1); }
.pcard figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--cream-60); }
.pcard figcaption span:last-child { color: var(--cream-30); }
.pgrid__ps { margin-top: 32px; color: var(--cream-30); }

/* ---------- project gallery lightbox ---------- */
.lbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 17, 13, 0.92); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
  padding: clamp(20px, 5vw, 80px);
}
.lbox.is-open { opacity: 1; pointer-events: auto; }
.lbox__stage {
  max-width: min(1100px, 90vw); max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.lbox__stage img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  opacity: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lbox__close {
  position: absolute; top: clamp(18px, 3vw, 34px); right: clamp(18px, 3vw, 40px);
  background: none; border: none; color: var(--white); cursor: pointer;
  font-size: 12px; letter-spacing: 0.1em; opacity: 0.8; transition: opacity 0.3s;
}
.lbox__close:hover { opacity: 1; }
.lbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(46px, 5vw, 64px); height: clamp(46px, 5vw, 64px);
  background: rgba(253, 251, 246, 0.08); border: 1px solid rgba(253,251,246,0.25);
  color: var(--white); cursor: pointer; font-size: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}
.lbox__nav:hover { background: rgba(253,251,246,0.18); border-color: var(--white); }
.lbox__prev { left: clamp(12px, 3vw, 40px); }
.lbox__next { right: clamp(12px, 3vw, 40px); }
.lbox__meta {
  position: absolute; left: 50%; bottom: clamp(18px, 3vw, 36px); transform: translateX(-50%);
  display: flex; gap: 18px; align-items: center; color: var(--white);
  font-size: 12px; letter-spacing: 0.08em; white-space: nowrap;
}
.lbox__count { color: var(--amber); }
.parchive {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  border-top: 1px solid var(--cream-12);
  margin-top: clamp(40px, 5vw, 72px); padding-top: 20px;
}
.parchive__label { color: var(--cream-30); }
.parchive__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; color: var(--cream-60); }
.parchive__list span:last-child { color: var(--cream-30); }

/* ---------- regions ---------- */
.regions { display: flex; flex-direction: column; }
.rrow {
  display: block;
  padding: clamp(14px, 1.8vw, 22px) 0;
  border-bottom: 1px solid var(--cream-12);
  font-size: clamp(20px, 2.6vw, 42px);
  font-weight: 300; line-height: 1; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.rrow:first-child { border-top: 1px solid var(--cream-12); }
.rrow__main { display: flex; align-items: baseline; gap: 24px; }
.rrow em { font-style: normal; color: var(--cream-30); flex-shrink: 1; }
.rrow:hover .roll [data-roll] { transform: translateY(-100%); }
.rrow__desc {
  font-size: 14px; font-weight: 400; line-height: 1.5;
  letter-spacing: 0; text-transform: none;
  color: var(--cream-60); max-width: 58ch;
  max-height: 0; opacity: 0; overflow: hidden; margin: 0;
  transition: max-height 0.6s var(--ease), opacity 0.5s 0.1s, margin-top 0.6s var(--ease);
}
.rrow:hover .rrow__desc { max-height: 120px; opacity: 1; margin-top: 12px; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 5vw, 72px); }
.certs span {
  border: 1px solid var(--cream-12); border-radius: 100px;
  padding: 8px 16px; color: var(--cream-60);
  transition: border-color 0.4s, color 0.4s;
}
.certs span:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- contact ---------- */
.sec--contact { padding-bottom: clamp(60px, 7vw, 120px); }
.contact__mail {
  display: inline-block;
  font-size: clamp(24px, 4.4vw, 76px);
  font-weight: 300; line-height: 1; letter-spacing: -0.03em;
}
.contact__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: clamp(48px, 6vw, 90px);
  color: var(--cream-60);
}
.contact__cols > div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--cream-12); padding-top: 16px; }
.contact__label { color: var(--cream-30); margin-bottom: 6px; }

/* ---------- quote form ---------- */
.qform { margin-top: clamp(56px, 7vw, 100px); border-top: 1px solid var(--cream-12); padding-top: 20px; }
.qform__label { display: block; color: var(--cream-30); margin-bottom: 24px; }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); }
.qform input, .qform textarea {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  background: none; border: 0; border-bottom: 1px solid var(--cream-12);
  color: var(--cream); padding: 16px 0; outline: none; resize: vertical;
  width: 100%;
  transition: border-color 0.4s;
}
.qform input::placeholder, .qform textarea::placeholder { color: var(--cream-30); }
.qform input:focus, .qform textarea:focus { border-color: var(--amber); }
.qform__send {
  margin-top: 28px;
  background: none; border: 0; color: var(--cream);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  cursor: pointer; padding: 0;
}

/* ---------- footer ---------- */
.foot { padding: 0 var(--gutter) 24px; }
.foot__word {
  font-weight: 300;
  font-size: clamp(22px, 4.6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden; padding-bottom: 0.06em;
}
.foot__word .char { display: inline-block; }
.foot__meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--cream-12);
  padding-top: 18px;
  color: var(--cream-30);
}

/* ---------- cursor ---------- */
@media (hover: hover) {
  .cur {
    position: fixed; top: 0; left: 0; z-index: 1100; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    background: var(--amber); border-radius: 50%;
    transition: width 0.3s, height 0.3s, margin 0.3s, opacity 0.3s;
  }
  .cur--big { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: 0.25; }
}

/* ---------- touch devices (no hover) ---------- */
@media (hover: none) {
  /* descriptions can't be revealed by hover — show them inline */
  .wrow__desc { max-height: none; opacity: 1; margin-top: 4px; }
  .wrow:hover { padding-left: 0; }
  .pcard__view { opacity: 1; transform: none; }
  .rrow__desc { max-height: none; opacity: 1; margin-top: 10px; }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .head { grid-template-columns: 1fr auto; }
  .head__meta { display: none; }
  .profile__stats { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .contact__cols { grid-template-columns: 1fr; }
  .wrow { grid-template-columns: 50px 1fr 32px; }
  .wrow__tag { display: none; }
  .rrow em { display: none; }
  .vm { grid-template-columns: 1fr; }
  .saudi { grid-template-columns: 1fr; gap: 32px; }
  .saudi__img { max-width: 360px; }
  .profile__row { flex-direction: column; align-items: flex-start; gap: 40px; }
  .profile__img { width: 100%; max-width: 520px; }
  .profile__tape { width: 100%; max-width: 340px; }
  .values, .steps { grid-template-columns: 1fr 1fr; }
  .parchive { grid-template-columns: 1fr; }
  .parchive__list { grid-template-columns: 1fr; }
  .qform__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pgrid { grid-template-columns: 1fr; }
  .profile__stats { grid-template-columns: 1fr; gap: 0; }
  .pstat { padding: 16px 0; }
  .head { gap: 12px; }
  .head__brand .roll { display: none; }
  .head__logo { height: 24px; }
  .head__nav { gap: 10px; }
  .head__nav a, .head__nav { font-size: 10px; letter-spacing: 0.04em; }
  .values, .steps { grid-template-columns: 1fr; }
  /* public art: show artist/material below the name */
  .rrow__main { flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
  .rrow em { display: block; width: 100%; font-size: 11px; color: var(--cream-30); }
  .foot__word { font-size: 7.4vw; }
  .foot__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wrow { grid-template-columns: 38px 1fr 24px; gap: 12px; }
  /* lightbox: tighter padding, smaller edge arrows, caption clear at the bottom */
  .lbox { padding: 14px; }
  .lbox__stage { max-width: 100%; max-height: 70vh; }
  .lbox__stage img { max-height: 70vh; }
  .lbox__nav { width: 44px; height: 44px; font-size: 18px; }
  .lbox__prev { left: 8px; }
  .lbox__next { right: 8px; }
  .lbox__close { top: 16px; right: 16px; }
  .lbox__meta {
    bottom: 18px; font-size: 11px; gap: 4px;
    white-space: normal; flex-direction: column; align-items: center;
    width: calc(100% - 32px); text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
}
