/* ──────────────────────────────────────────────────────────
   Guy Ron Studio  ·  styles.css  v5
   ────────────────────────────────────────────────────────── */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --yellow: #F5FF00;
  --cream:  #F2F1EB;
  --brand-color: var(--yellow);

  /* Dark theme (default) */
  --bg:           #0F0F0E;
  --fg:           rgba(242, 241, 235, 0.88);
  --fg-dim:       rgba(242, 241, 235, 0.38);
  --border:       rgba(242, 241, 235, 0.1);

  --font-d:   'Syne', sans-serif;
  --font-b:   'DM Sans', sans-serif;
  --footer-h: 3.25rem;
  --pad:      clamp(1.25rem, 3.5vw, 3.25rem);
  --ease:     cubic-bezier(0.76, 0, 0.24, 1);
}

/* Light theme */
[data-theme="light"] {
  --bg:           #F2F1EB;
  --fg:           rgba(17, 17, 16, 0.88);
  --fg-dim:       rgba(17, 17, 16, 0.38);
  --border:       rgba(17, 17, 16, 0.1);
  --brand-color: #111110;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
html, body { height: 100%; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: var(--font-b);
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  cursor: none;
  transition: background-color 0.5s ease;
}
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; touch-action: manipulation; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: none; color: inherit; font: inherit; padding: 0; touch-action: manipulation; }

/* ── Custom cursor ───────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;   /* compositor thread — no layout cost */
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cursor__ring {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  margin: -4px 0 0 -4px;   /* center without transform */
  transition: width 0.2s var(--ease), height 0.2s var(--ease),
              margin 0.2s var(--ease);
}

.cursor.is-hover .cursor__ring {
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hidden  { opacity: 0; }


/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--bg);
}

/* ── Slides — clean images, no effects ──────────────────── */
.slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  bottom: -2px;
  background: #0F0F0E;
  transform: translateY(100%);
  will-change: transform;
}
.slide.is-active { transform: translateY(0); }

.slide__inner {
  width: 100%;
  height: 100%;
}

.slide__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  user-select: none;
  pointer-events: none;
  /* No filters, no overlays, no transforms — image as-is */
}

/* These are landscape interior/architecture photos cropped into a tall
   portrait frame on phones — biasing the crop slightly upward keeps more
   of the room (ceiling fixtures, shelving) instead of centering on floor. */
@media (max-width: 560px) and (orientation: portrait) {
  .slide__inner img { object-position: center 30%; }
}

/* ── Top header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0 var(--pad);
  pointer-events: none;
}

.site-header__home {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: all;
  cursor: pointer;
  text-decoration: none;
}

.site-header__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.site-header__text-img {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  padding-top: 10px;
}
/* dark mode (ON): show yellow PNG, hide black PNG */
.site-header__text-img--light { display: none; }
.site-header__text-img--dark  { display: block; }

/* light mode (OFF): show black PNG, hide yellow PNG */
[data-theme="light"] .site-header__text-img--dark  { display: none; }
[data-theme="light"] .site-header__text-img--light { display: block; }

.grs-block {
  position: fixed;
  top: 0;
  right: 0.5rem;
  z-index: 81;
  height: var(--footer-h);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

/* Dark mode (ON): yellow letters, transparent bg from canvas processing */
.grs-letter {
  height: 65px;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-left: -18px;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.grs-letter:first-child { margin-left: 0; }

/* Light mode (OFF): turn yellow → black */
[data-theme="light"] .grs-letter {
  filter: brightness(0);
}

/* ── Floating project label ─────────────────────────────── */
/*
   Visibility/position and colour are two separate concerns, controlled
   independently:
   - Visibility/position: desktop follows the cursor and fades on
     slide-change/nav-hover (is-out / is-nav, set by JS); mobile is
     static and always visible (see .project-label--static below) —
     neither is touched by the theme toggle.
   - Colour: follows the theme toggle only (yellow in dark mode, black
     in light), on both desktop and mobile.
*/
.project-label {
  position: fixed;
  z-index: 15;
  pointer-events: none;
}

.project-label__title {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(0.95rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: opacity 0.28s ease;
}
[data-theme="light"] .project-label__title {
  color: #111110;
}

/* Desktop-only fade (slide change / footer-nav hover). Never applied to
   the static mobile label, which stays visible regardless of these
   states — see JS: is-out/is-nav toggling and the cursor-follow RAF
   loop are both gated behind labelFollowsCursor (non-touch devices). */
.project-label.is-out .project-label__title,
.project-label.is-nav .project-label__title {
  opacity: 0;
}
.project-label--static.is-out .project-label__title,
.project-label--static.is-nav .project-label__title {
  opacity: 1;
}

/* Touch devices: no cursor to follow, so anchor above the footer instead
   of drifting to wherever the last touch happened to land. */
.project-label--static {
  left: var(--pad);
  top: auto;
  bottom: calc(var(--footer-h) + 1.25rem);
}

/* ── Extra footer panel (slides up) ─────────────────────── */
.footer-extra {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 82;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s 0.25s, background-color 0.5s ease;
  pointer-events: none;
}
.footer-extra[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s 0s, background-color 0.5s ease;
  pointer-events: all;
}
.footer-extra__left,
.footer-extra__center {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.5;
}
.footer-extra__close {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.footer-extra__close:hover { opacity: 1; }

/* ── Footer navigation ───────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  /* transparent — text floats directly over the image */
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.4rem);
}

.footer__link {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-color);
  opacity: 0.6;
  position: relative;
  cursor: pointer;
  transition: opacity 0.18s ease, color 0.5s ease;
}
.footer__link:hover { opacity: 1; }

/* Underline grows from left on hover */
.footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}
.footer__link:hover::after { width: 100%; }

.footer__link--disabled {
  opacity: 0.25;
  cursor: default;
}
.footer__link--disabled:hover { opacity: 0.25; }
.footer__link--disabled::after { display: none; }

.footer__plus {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 3;
  color: var(--brand-color);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.3s ease, color 0.5s ease;
  cursor: pointer;
}
.footer__plus:hover { opacity: 1; }
.footer__plus.is-open { transform: rotate(45deg); opacity: 1; }

/* ── Colour toggle — pill switch ─────────────────────────── */
.footer__toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.toggle__track {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  /* Muted yellow-tinted dark track — readable in yellow mode */
  background: rgba(245, 255, 0, 0.22);
  border: 1.5px solid rgba(245, 255, 0, 0.5);
  position: relative;
  transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] .toggle__track {
  background: rgba(17, 17, 16, 0.18);
  border-color: rgba(17, 17, 16, 0.45);
}

.toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;                        /* explicit anchor so translateX is predictable */
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.4s ease;
  /* inner track = 42 - 2×1.5px border = 39px
     right pos  = 39 - 3 left_gap - 18 thumb - 3 right_gap = 15px travel */
  transform: translateX(15px);      /* right = yellow mode */
}

[data-theme="light"] .toggle__thumb {
  background: #111110;
  transform: translateX(0);         /* left = black mode */
}

/* ── About page — same palette as project detail / index ─── */
.about-view {
  position: fixed;
  inset: 0;
  z-index: 250;
  --pd-bg:  #ffffff;
  --pd-fg:  rgba(17, 17, 16, 0.82);
  --pd-dim: rgba(17, 17, 16, 0.36);
  background: var(--pd-bg);
  color: var(--pd-fg);
  cursor: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.38s ease, transform 0.38s var(--ease);
  pointer-events: none;
}
.about-view[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.about-view__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--footer-h);
  padding: 0 var(--pad);
}

.about-view__close {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-fg);
  opacity: 0.35;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.about-view__close:hover { opacity: 0.85; }

.about-view__scroll {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.about-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad) clamp(2rem, 4vw, 3rem);
}

/* Asymmetric touch: a vertical label running along the margin, like a spine/ruler —
   photo and bio stay perfectly centered, this is the one deliberately off-axis element. */
.about-stack__spine {
  position: absolute;
  left: var(--pad);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pd-dim);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .about-stack__spine { display: none; }
}

.about-stack__header-row {
  width: 100%;
  max-width: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.about-stack__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.about-stack__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pd-dim);
  margin-bottom: 2rem;
}

.about-stack__name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--pd-fg);
  text-align: left;
}

/* Per-letter wave — own motion language: sequential lift, not the header's random horizontal jitter */
.about-stack__name .letter-jitter {
  display: inline-block;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-stack__text {
  width: 100%;
  max-width: 620px;
  text-align: left;
}

.about-copy {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--pd-fg);
  margin-bottom: 1.75rem;
}
.about-copy:last-child { margin-bottom: 0; }

/* ── Press page ───────────────────────────────────────────── */
.press-view {
  position: fixed;
  inset: 0;
  z-index: 250;
  --pd-bg:  #ffffff;
  --pd-fg:  rgba(17, 17, 16, 0.82);
  --pd-dim: rgba(17, 17, 16, 0.36);
  background: var(--pd-bg);
  color: var(--pd-fg);
  cursor: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.38s ease, transform 0.38s var(--ease);
  pointer-events: none;
}
.press-view[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.press-view__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--footer-h);
  padding: 0 var(--pad);
}

.press-view__close {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-fg);
  opacity: 0.35;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.press-view__close:hover { opacity: 0.85; }

.press-view__body {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 2rem clamp(3rem, 7vw, 6rem) 3rem;
}

.press-view__intro {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 340px);
}

.press-view__heading {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--pd-fg);
  margin-bottom: 1.5rem;
}

.press-view__heading .letter-jitter {
  display: inline-block;
  transform-origin: bottom center;
  will-change: transform;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.press-view__sub {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--pd-dim);
  max-width: 30ch;
}

.press-view__cards {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: clamp(3rem, 6vw, 6rem);
  min-width: 0;
}

.press-card {
  flex: 0 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--pd-fg);
}

.press-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.press-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  background: var(--yellow);
  padding: 0.8rem 1.1rem;
  border-radius: 3px;
  transform: rotate(-3deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.press-card__badge img {
  height: 26px;
  width: auto;
  display: block;
}

.press-card__badge--timeout {
  background: #111110;
}

.press-card__badge--batim {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 16, 0.15);
}
.press-card__image > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.55s var(--ease);
}
.press-card:hover .press-card__image img { transform: scale(1.06); }

.press-card__pub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pd-dim);
  margin-bottom: 0.6rem;
}

.press-card__title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--pd-fg);
  margin-bottom: 0.6rem;
}

.press-card__excerpt {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--pd-fg);
  opacity: 0.75;
  margin-bottom: 1rem;
  max-width: 30ch;
}

.press-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-fg);
}
.press-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.press-card:hover .press-card__link svg { transform: translateX(3px); }

@media (max-width: 900px) and (min-width: 641px) {
  .press-view__cards { gap: clamp(1.25rem, 3vw, 2rem); }
  .press-card { flex-basis: 260px; }
}

@media (max-width: 640px) {
  .press-view__body { flex-direction: column; align-items: flex-start; overflow-y: auto; }
  .press-view__intro { width: 100%; }
  .press-view__cards { width: 100%; flex-direction: column; }
}

/* ── Let's Work Together section ─────────────────────────── */
.about-work {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad) 6rem;
  border-top: 1px solid rgba(17, 17, 16, 0.08);
}

.about-work__intro {
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.about-work__intro .about-eyebrow { margin-bottom: 1rem; }

.about-work__title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--pd-fg);
  margin-bottom: 1.25rem;
}

.about-work__sub {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--pd-dim);
}

.about-work__form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  width: 100%;
  max-width: 560px;
}

.about-work__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-work__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-work__field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-dim);
}
.about-work__field input,
.about-work__field textarea {
  border: none;
  border-bottom: 1px solid rgba(17, 17, 16, 0.16);
  background: transparent;
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 300;
  color: var(--pd-fg);
  padding: 0.35rem 0;
  outline: none;
  resize: none;
  transition: color 0.2s ease;
}

/* Animated underline overlay — grows from the left on focus, echoes .footer__link's hover rule */
.about-work__field::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--pd-fg);
  transition: width 0.35s var(--ease);
}
.about-work__field:focus-within::after { width: 100%; }

/* Honeypot — visually hidden but present in the DOM/tab order-free, so bots that fill every field trip it */
.about-work__field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.about-work__status {
  font-family: var(--font-b);
  font-size: 0.82rem;
  color: var(--pd-dim);
  min-height: 1.2em;
  margin: 0;
}
.about-work__status[data-state="success"] { color: #3a8a4f; }
.about-work__status[data-state="error"] { color: #c0392b; }

.about-work__send:disabled {
  opacity: 0.55;
  cursor: default;
}

.about-work__send {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-fg);
  background: transparent;
  border: 1px solid var(--pd-fg);
  border-radius: 999px;
  padding: 1rem 2.25rem;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.about-work__send svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}
.about-work__send:hover {
  background: var(--pd-fg);
  color: var(--pd-bg);
}
.about-work__send:hover svg { transform: translateX(4px); }

.about-work__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-work__contact-inline {
  position: absolute;
  left: var(--pad);
  bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.about-work__contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.about-work__contact-email {
  font-size: 0.88rem;
  color: var(--pd-fg);
  transition: opacity 0.2s ease;
}
.about-work__contact-email:hover { opacity: 0.5; }

.about-work__contact-city {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-dim);
}

.about-stack__socials,
.about-work__socials {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.about-work__social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 16, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-fg);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.about-work__social svg { width: 17px; height: 17px; }
.about-work__social:hover {
  background: var(--pd-fg);
  border-color: var(--pd-fg);
  color: var(--pd-bg);
  transform: translateY(-3px);
}

.about-stack__socials {
  position: absolute;
  right: var(--pad);
  bottom: clamp(2rem, 4vw, 3rem);
  flex-direction: row;
  align-items: center;
  margin-top: 0;
}

@media (max-width: 900px) {
  .about-stack__socials {
    position: static;
    transform: none;
    margin-top: 2.5rem;
  }
}

/* Inline variant used in the form footer, next to Send */
.about-work__socials--inline {
  position: absolute;
  right: var(--pad);
  bottom: clamp(2rem, 4vw, 3rem);
  flex-direction: row;
  margin-top: 0;
}

@media (max-width: 900px) {
  .about-work__footer {
    flex-direction: column;
    gap: 0.5rem;
  }
  .about-work__contact-inline {
    position: static;
    margin-top: 2.5rem;
  }
  .about-work__socials--inline {
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .about-work__row { grid-template-columns: 1fr; }
}

/* ── Project detail — always cream/light background ──────── */
.proj-detail { cursor: auto; }
.proj-detail button { cursor: pointer; }
.proj-detail {
  position: fixed;
  inset: 0;
  z-index: 300;
  --pd-bg:  #ffffff;
  --pd-fg:  rgba(17, 17, 16, 0.82);
  --pd-dim: rgba(17, 17, 16, 0.36);
  background: var(--pd-bg);
  color: var(--pd-fg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.proj-detail[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
.proj-detail[aria-hidden="false"] .proj-detail__scroll {
  animation: detail-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes detail-enter {
  from { transform: scale(1.04); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Header bar — logo+name left, back button right */
.proj-detail__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--footer-h);
  padding: 0 var(--pad);
}

.inner-head__left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.inner-head__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.inner-head__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.inner-head__text-img {
  height: 100px;
  width: auto;
  flex-shrink: 0;
  /* Inner pages keep a fixed white background regardless of theme, so
     the wordmark always renders black — no dark/light swap here. */
  filter: brightness(0);
  /* The source PNG's visible glyphs sit above its own vertical centre
     (built-in padding is uneven top/bottom) — nudge down to align
     optically with the round logo. */
  transform: translateY(5px);
}


.inner-grs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.inner-grs__letter {
  height: 65px;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-left: -18px;
  filter: brightness(0);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.inner-grs__letter:first-child { margin-left: 0; }

.proj-detail__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.proj-detail__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.proj-detail__studio-img {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  padding-top: 10px;
  filter: brightness(0);
}

.proj-detail__back {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-fg);
  opacity: 0.38;
  transition: opacity 0.2s ease;
}
.proj-detail__back:hover { opacity: 0.85; }

.proj-detail__scroll {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── Split — with breathing-room margins ─────────────────── */
/* ── Project detail — hero split ─────────────────────────── */
.pd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - var(--footer-h));
  padding: clamp(1rem, 2.5vw, 2rem);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.pd-split__img { overflow: hidden; background: rgba(17,17,16,0.045); }
.pd-split__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pd-split__img img.is-loaded { opacity: 1; }
.pd-split__img--empty { background: rgba(17,17,16,0.05); }

.pd-split__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  gap: 1.5rem;
  text-align: center;
}

.pd-title-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.pd-title {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--pd-fg);
}

.pd-info { display: flex; flex-direction: column; gap: 0.3rem; }

.pd-info__row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--pd-fg);
}
.pd-info__label {
  min-width: 7rem;
  opacity: 0.45;
  font-weight: 400;
}
.pd-info__value {
  font-weight: 600;
  opacity: 0.85;
}

.pd-scroll-arrow {
  display: block;
  font-size: 1.2rem;
  color: var(--pd-fg);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s ease;
  animation: pd-arrow-bounce 1.8s ease-in-out infinite;
}
.pd-scroll-arrow:hover {
  opacity: 0.7;
  animation-play-state: paused;
}

@keyframes pd-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── Editorial body ──────────────────────────────────────── */
.pd-body {
  padding: 1.5rem 0 6rem;
}

.pd-row {
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
}

/* Info section */
.pd-row--info {
  padding: 1.5rem var(--pad) 2rem;
}

/* Gallery grid — deliberately varied cell widths (not a packed masonry,
   since the source photos are mostly the same landscape ratio and real
   masonry would just render as a uniform grid). Images keep their natural
   aspect ratio — no forced cropping — size variety comes from width only. */
.pd-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 0 var(--pad) 2rem;
  align-items: start;
}
.pd-masonry__item {
  grid-column: span 1;
  overflow: hidden;
  background: rgba(17,17,16,0.045);
}
.pd-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.5s ease;
}
.pd-masonry__item img.is-loaded { opacity: 1; }
.pd-masonry__item:hover img {
  transform: scale(1.045);
}
.pd-masonry__item--big,
.pd-masonry__item--wide { grid-column: span 2; }

@media (max-width: 768px) {
  .pd-masonry { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .pd-masonry { grid-template-columns: 1fr; }
  .pd-masonry__item--big,
  .pd-masonry__item--wide { grid-column: span 1; }
}

/* ── Keep Exploring — next-project CTA ───────────────────── */
.pd-next {
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--pad);
}

.pd-next__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-fg);
  opacity: 0.38;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.pd-next__btn:hover { opacity: 0.85; }
.pd-next__btn span { transition: transform 0.3s var(--ease); }
.pd-next__btn:hover span { transform: translateX(3px); }

/* ── Scroll reveal ───────────────────────────────────────── */
.pd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.pd-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pd-split { grid-template-columns: 1fr; grid-template-rows: 55vh auto; }
}

/* ── Projects index — same palette as project detail ─────── */
.index-view {
  position: fixed;
  inset: 0;
  z-index: 250;
  --pd-bg:  #ffffff;
  --pd-fg:  rgba(17, 17, 16, 0.82);
  --pd-dim: rgba(17, 17, 16, 0.36);
  background: var(--pd-bg);
  color: var(--pd-fg);
  cursor: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.38s ease, transform 0.38s var(--ease);
  pointer-events: none;
}

.index-view[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Header mirrors proj-detail__head exactly */
.index-view__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--footer-h);
  padding: 0 var(--pad);
}

.index-view__close {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-fg);
  opacity: 0.35;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.index-view__close:hover { opacity: 0.85; }

.index-view__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.index-view__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.index-view__studio-img {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  padding-top: 10px;
  filter: brightness(0);
}

.index-view__title {
  grid-column: 1 / -1;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pd-dim);
  white-space: nowrap;
  margin-bottom: 0.1rem;
}

.index-view__grid {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(1.5rem, 2.5vw, 2.5rem);
  row-gap: clamp(2.5rem, 4vw, 4rem);
  padding: 1.5rem clamp(3rem, 6vw, 7rem) 3rem;
  align-content: start;
}

.index-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.index-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(17,17,16,0.06);
  margin-bottom: 0.6rem;
}

.index-card__cover--placeholder {
  background: rgba(17,17,16,0.05);
}

.index-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.45s var(--ease);
}
.index-card:hover .index-card__cover img { transform: scale(1.1); }

.index-card--static { cursor: default; }
.index-card--static:hover .index-card__cover img { transform: none; }

.index-card__cover-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.index-card:hover .index-card__cover-alt { opacity: 1; }

.index-card__name {
  font-family: var(--font-b);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 400;
  color: var(--pd-fg);
  line-height: 1.3;
}

.index-card__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.index-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-dim);
}

.index-card__cover--tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(6px);
  white-space: nowrap;
  background: rgba(17, 17, 16, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
  z-index: 5;
}

.index-card__cover--tooltip:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.index-card__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 255, 0, 0.18);
  flex-shrink: 0;
}

.index-view__socials {
  position: absolute;
  right: var(--pad);
  bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
}

/* ── Projects index — v2 (alt layout, fixed-size cards, 2 per row) ── */
.index-view__grid--v2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  column-gap: 4rem;
  row-gap: 4.5rem;
}


.index-card-v2 { position: relative; }

.index-card-v2 .index-card__cover {
  aspect-ratio: 1/1;
  margin-bottom: 0;
}

.index-card-v2 {
  display: flex;
  flex-direction: column;
}

.index-card-v2__name {
  display: block;
  width: fit-content;
  margin-top: 0.7rem;
  font-family: var(--font-d);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pd-fg);
}

.index-card-v2__name { align-self: flex-start; }

.index-card-v2__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.7rem;
}
.index-card-v2__name-row .index-card-v2__name { margin-top: 0; }

.index-card-v2__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: linear-gradient(to top, rgba(17,17,16,0.62) 0%, rgba(17,17,16,0.18) 38%, rgba(17,17,16,0) 62%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.index-card-v2:hover .index-card-v2__overlay,
.index-card-v2:focus-visible .index-card-v2__overlay {
  opacity: 1;
}

.index-card-v2__title {
  font-family: var(--font-d);
  font-size: clamp(0.68rem, 0.85vw, 0.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.4rem;
}

.index-card-v2__detail {
  font-family: var(--font-b);
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  display: flex;
  gap: 0.4rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.index-card-v2__detail-label {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.index-card-v2__detail-value {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.index-card-v2:hover .index-card-v2__detail,
.index-card-v2:focus-visible .index-card-v2__detail {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .index-view__grid--v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .index-view__grid--v2 { grid-template-columns: 1fr; }
}

/* ── Projects index (v1) — was fixed at 4 columns with no breakpoints ── */
@media (max-width: 1100px) {
  .index-view__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .index-view__grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
}
@media (max-width: 480px) {
  .index-view__grid { grid-template-columns: 1fr; }
}

.index-view__grid,
.press-view__body { -webkit-overflow-scrolling: touch; }

/* About header row — stack name/photo instead of squeezing on narrow screens */
@media (max-width: 560px) {
  .about-stack__header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .about-stack__name { text-align: center; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --footer-h: 3rem; }
}

@media (max-width: 480px) {
  :root { --footer-h: 2.75rem; }
}

/* Header wordmark + GRS letters are oversized by design — on phones their
   combined width collides across the header. Scale both down so the brand
   mark (left) and GRS letters (right) never overlap, and again more
   aggressively on the smallest phones. */
@media (max-width: 560px) {
  .site-header__text-img { height: 100px; }
  .grs-letter { height: 52px; margin-left: -14px; }
  .inner-head__left { gap: 1.25rem; }

  /* Inner pages (about/press/index/detail): no room for the big GRS
     letters on phones — drop them and push the wordmark to the header's
     right edge instead, next to the Back button. */
  .inner-grs { display: none; }
  .inner-head__left {
    width: 100%;
    justify-content: space-between;
  }
  .inner-head__text-img { height: 76px; transform: translateY(4px); }
}

@media (max-width: 380px) {
  .site-header { gap: 0.25rem; }
  .site-header__logo,
  .inner-head__logo { width: 28px; height: 28px; }
  .site-header__text-img { height: 76px; padding-top: 8px; }
  .inner-head__text-img { height: 60px; transform: translateY(3px); }
  .grs-block { right: 0.35rem; }
  .grs-letter { height: 40px; margin-left: -10px; }
  .inner-head__left { gap: 0.75rem; }
}

/* Footer nav — on phones the inline link row is replaced by a hamburger
   button that opens a full-screen menu (every link stays reachable;
   nothing is ever just hidden). Tablets keep the inline row. */
.footer__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.footer__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--brand-color);
  transition: transform 0.3s var(--ease), opacity 0.2s ease, background-color 0.5s ease;
}
.footer__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.footer__hamburger.is-open span:nth-child(2) { opacity: 0; }
.footer__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 560px) {
  .footer__nav--left  { display: none; }
  .footer__hamburger  { display: flex; }
  /* The "+" panel is reachable from inside the mobile menu instead, so the
     footer itself only needs the hamburger (left) and colour toggle (right). */
  .footer__plus       { display: none; }
  .footer__nav--right {
    flex: 1;
    justify-content: space-between;
  }
}

/* Mobile menu — a small floating card above the footer, not a full-screen
   takeover, so it stays in the same register as the site's other quiet
   overlays (About/Press headers) instead of shouting. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  pointer-events: none;
}
@media (max-width: 560px) {
  .mobile-menu { display: block; }
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 14, 0.32);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  opacity: 0;
  transition: opacity 0.35s ease;
}
[data-theme="light"] .mobile-menu__backdrop {
  background: rgba(242, 241, 235, 0.5);
}

.mobile-menu__panel {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: calc(var(--footer-h) + 0.65rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 1.35rem 1.1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.3s var(--ease), transform 0.38s var(--ease), background-color 0.5s ease, border-color 0.5s ease;
}

.mobile-menu[aria-hidden="false"] { pointer-events: all; }
.mobile-menu[aria-hidden="false"] .mobile-menu__backdrop { opacity: 1; }
.mobile-menu[aria-hidden="false"] .mobile-menu__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.05rem 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.15rem;
}

.mobile-menu__close {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.45;
  cursor: pointer;
  padding: 0.5rem 0.15rem;
  margin: -0.5rem -0.15rem;
}
.mobile-menu__close:active { opacity: 0.85; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 0.05rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-d);
  font-size: clamp(1rem, 4.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: left;
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.32s var(--ease), color 0.2s ease, border-color 0.5s ease;
}
.mobile-menu__nav .mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__link:active { color: var(--fg-dim); }

.mobile-menu[aria-hidden="false"] .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu[aria-hidden="false"] .mobile-menu__link:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu[aria-hidden="false"] .mobile-menu__link:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu[aria-hidden="false"] .mobile-menu__link:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu[aria-hidden="false"] .mobile-menu__link:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu[aria-hidden="false"] .mobile-menu__link:nth-child(5) { transition-delay: 0.2s; }

.mobile-menu__index {
  font-family: var(--font-b);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  flex-shrink: 0;
}

.mobile-menu__meta {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Bigger touch targets on phones/tablets, without changing the visual size */
@media (pointer: coarse) {
  .footer__link { padding: 0.5rem 0.1rem; }
  .footer__link::after { bottom: 0.4rem; }
  .about-view__close,
  .press-view__close,
  .index-view__close,
  .proj-detail__back,
  .pd-next__btn { padding: 0.6rem 0.2rem; margin: -0.6rem -0.2rem; }
  .footer__plus,
  .footer__toggle,
  .pd-scroll-arrow { padding: 0.55rem; margin: -0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grs-letter, .inner-grs__letter, .about-stack__name .letter-jitter, .press-view__heading .letter-jitter { transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.03ms !important;
    transition-duration: 0.02ms !important;
  }
}
