/* Unified Agency-Level Swiss Editorial / Studio Monograph HUD & Typography System */
html[data-renderer="cycles-v268"] {
  --room-ivory: #f2ece1;
  --room-muted: #c8bfb1;
  --room-dim: #9c9284;
  --room-accent: #e0462b;
  --room-accent-bright: #ff5b3d;
  --room-ink-dark: #0e0c0a;
  --room-border: rgba(242, 236, 225, 0.24);
  --room-surface: rgba(14, 12, 10, 0.92);
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-ar: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif;
  --hud-pad: clamp(20px, 3.6vw, 48px);
}

/* Header HUD: Wordmark Left · Chapter Nav Center · All Projects Trigger Right */
html[data-renderer="cycles-v268"] .header {
  position: absolute;
  z-index: 4;
  top: clamp(16px, 2.8vh, 30px);
  left: var(--hud-pad);
  right: var(--hud-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-size: clamp(11px, .88cqw, 13px);
  pointer-events: none;
}
html[data-renderer="cycles-v268"] .header::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: calc(var(--hud-pad) * -1);
  right: calc(var(--hud-pad) * -1);
  top: -38px;
  height: 124px;
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.94), rgba(14, 12, 10, 0.58) 58%, transparent);
}
html[data-renderer="cycles-v268"] .header > * { pointer-events: auto }

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  text-decoration: none;
  font: 700 clamp(12px, 1.05cqw, 15px)/1 var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--room-ivory);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}
.brand-mark {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--room-ivory);
}
.wordmark-sep {
  color: var(--room-accent);
  letter-spacing: 0;
  font-weight: 700;
}
.wordmark-ar {
  font-family: var(--font-ar);
  font-weight: 500;
  color: var(--room-ivory);
  letter-spacing: 0;
  font-size: 1.04em;
  text-transform: none;
}

html[data-renderer="cycles-v268"] .header nav {
  justify-self: center;
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
}
html[data-renderer="cycles-v268"] .header nav a {
  position: relative;
  text-decoration: none;
  padding: .44em .08em;
  font-family: var(--font-mono);
  font-size: clamp(10.5px, .82cqw, 12px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: rgba(242, 236, 225, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.92);
  transition: color .2s cubic-bezier(0.42, 0, 0.58, 1);
}
html[data-renderer="cycles-v268"] .header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: 2px;
  background: var(--room-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(0.42, 0, 0.58, 1);
}
html[data-renderer="cycles-v268"] .header nav a:hover,
html[data-renderer="cycles-v268"] .header nav a[aria-current] {
  opacity: 1;
  color: var(--room-ivory);
}
html[data-renderer="cycles-v268"] .header nav a:hover::after,
html[data-renderer="cycles-v268"] .header nav a[aria-current]::after {
  transform: scaleX(1);
}

.all-projects-trigger {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .62em;
  min-height: 36px;
  padding: .46em .72em .46em .98em;
  border-radius: 2px;
  background: var(--room-surface);
  border: 1px solid var(--room-border);
  font-family: var(--font-mono);
  font-size: clamp(10.5px, .8cqw, 12px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--room-ivory);
  transition: border-color .2s cubic-bezier(0.42, 0, 0.58, 1), background-color .2s cubic-bezier(0.42, 0, 0.58, 1), color .2s cubic-bezier(0.42, 0, 0.58, 1), transform .2s cubic-bezier(0.42, 0, 0.58, 1);
}
.all-projects-trigger:hover,
.all-projects-trigger[aria-expanded="true"] {
  border-color: var(--room-ivory);
  background: var(--room-ivory);
  color: var(--room-ink-dark);
  transform: translateY(-1px);
}
.all-projects-trigger .count-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .16em .46em;
  border-radius: 1px;
  background: var(--room-accent);
  color: var(--room-ivory);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: .92em;
}
.all-projects-trigger:hover .count-tag,
.all-projects-trigger[aria-expanded="true"] .count-tag {
  background: var(--room-ink-dark);
  color: var(--room-ivory);
}

/* Shared Swiss Editorial Display Type Tokens */
:is(.opening-copy, .practice-copy, .about-copy, .contact-copy) {
  position: absolute;
  z-index: 2;
  will-change: opacity;
}
:is(.opening-copy h1, .practice-copy h2, .about-copy h2, .contact-copy h2) {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -.045em;
  color: var(--room-ivory);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}
:is(.opening-copy h1, .practice-copy h2, .about-copy h2, .contact-copy h2) em {
  font-style: normal;
  color: var(--room-accent-bright);
}
:is(.opening-copy .eyebrow, .practice-copy .eyebrow, .about-kicker, .contact-kicker) {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font: 500 clamp(10px, .76cqw, 11.5px)/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--room-ivory);
  border-top: 1px solid rgba(242, 236, 225, 0.28);
  padding-top: .7em;
  margin: 0 0 1.1em;
}
:is(.opening-copy .eyebrow, .practice-copy .eyebrow, .about-kicker, .contact-kicker)::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--room-accent);
  flex: none;
}

/* Architectural Swiss Rectangular Primary CTA & Hairline Actions */
.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: .85em;
  min-height: 44px;
  padding: .75em 1.5em;
  border-radius: 2px;
  background: var(--room-ivory);
  border: 1px solid var(--room-ivory);
  color: var(--room-ink-dark);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(11px, .86cqw, 12.5px);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
  transition: border-color .2s cubic-bezier(0.42, 0, 0.58, 1), background-color .2s cubic-bezier(0.42, 0, 0.58, 1), color .2s cubic-bezier(0.42, 0, 0.58, 1), transform .2s cubic-bezier(0.42, 0, 0.58, 1), box-shadow .2s cubic-bezier(0.42, 0, 0.58, 1);
}
.pill-cta:hover {
  border-color: var(--room-accent);
  background: var(--room-accent);
  color: var(--room-ivory);
  box-shadow: 0 14px 32px rgba(224, 70, 43, 0.30), 0 8px 20px rgba(0, 0, 0, 0.48);
  transform: translateY(-2px);
}
.cta-arrow {
  display: inline-block;
  transition: transform .2s cubic-bezier(0.42, 0, 0.58, 1);
}
.pill-cta:hover .cta-arrow { transform: translateY(2px) }
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  background: none;
  border: 0;
  padding: .52em .08em;
  color: var(--room-ivory);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(11px, .84cqw, 12.5px);
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(242, 236, 225, 0.56);
  transition: color .2s cubic-bezier(0.42, 0, 0.58, 1), border-color .2s cubic-bezier(0.42, 0, 0.58, 1);
}
.text-cta:hover {
  color: var(--room-accent-bright);
  border-bottom-color: var(--room-accent-bright);
}
.text-cta:hover .cta-arrow { transform: translate(2px, -2px) }

/* Chapter 01 · OPENING (Right-Lower Third over Defocused Walnut Console Reflection) */
.opening-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 56% 62% at 75% 62%, rgba(14, 12, 10, 0.78), rgba(14, 12, 10, 0.40) 58%, transparent 86%);
  opacity: var(--opening-shade, 1);
}
.opening-copy {
  left: 54%;
  top: 27%;
  width: 39%;
  max-width: 560px;
}
.opening-copy h1 {
  font-size: clamp(36px, 4.9cqw, 74px);
  line-height: 0.91;
  margin-bottom: .36em;
}
.opening-lead {
  max-width: 40ch;
  color: var(--room-muted);
  font-size: clamp(12px, 1.05cqw, 16px);
  line-height: 1.55;
  margin-bottom: 1.5em;
}
.opening-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4em;
}

/* Chapter 03 · PRACTICE (Left Curtain & Dark Plaster Bay with 3 Structured Pillars) */
.practice-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 12, 11, 0.76), rgba(14, 12, 11, 0.34) 24%, transparent 36%);
  opacity: var(--practice-shade, 0);
}
.practice-copy {
  left: clamp(18px, 2.8vw, 38px);
  top: 17%;
  width: clamp(240px, 21.5%, 305px);
}
.practice-copy h2 {
  font-size: clamp(28px, 3.45cqw, 52px);
  line-height: 0.98;
  margin-bottom: .58em;
}
.practice-pillars {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .85em;
  border-top: 1px solid rgba(234, 212, 189, 0.16);
  padding-top: .95em;
}
.practice-pillars li {
  display: grid;
  gap: .2em;
}
.practice-pillars strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(10.5px, .84cqw, 12px);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--room-ivory);
}
.practice-pillars span {
  font-size: clamp(11px, .86cqw, 13px);
  line-height: 1.44;
  color: var(--room-muted);
}

/* Chapter 04 · ABOUT (Right 46% of West Gallery Tadelakt Wall + Timeline) */
.about-copy {
  left: 48%;
  top: 15%;
  width: 44%;
  max-width: 580px;
}
.about-copy h2 {
  font-size: clamp(30px, 4.1cqw, 62px);
  line-height: 0.94;
  margin-bottom: .36em;
}
.about-copy p {
  color: var(--room-muted);
  font-size: clamp(11.5px, .98cqw, 15px);
  line-height: 1.52;
  max-width: 46ch;
  margin-bottom: .7em;
}
.about-copy .about-lead { color: var(--room-ivory) }

.about-timeline {
  margin: 1.1em 0 1em;
  border-top: 1px solid rgba(242, 236, 225, 0.22);
  max-width: 540px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr auto;
  align-items: baseline;
  gap: .8em;
  padding: .62em 0;
  border-bottom: 1px solid rgba(242, 236, 225, 0.14);
  font-size: clamp(11px, .86cqw, 13.5px);
}
.tl-org { color: var(--room-ivory); font-weight: 700; letter-spacing: -.01em }
.tl-role { color: var(--room-muted) }
.tl-term { font-family: var(--font-mono); color: var(--room-accent-bright); font-size: .86em; letter-spacing: .06em; font-variant-numeric: tabular-nums }

.about-languages {
  display: flex;
  gap: .8em;
  align-items: baseline;
  font-size: clamp(10.5px, .84cqw, 13px) !important;
  color: var(--room-muted) !important;
  margin-bottom: 1.15em !important;
}
.about-languages span {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .84em;
  color: var(--room-accent-bright);
}
.about-actions { margin-top: .4em }

/* Chapter 05 · CONTACT (Left 36% of East Alcove Wall with Copy-Email Action) */
.contact-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 12, 10, 0.65), rgba(15, 12, 10, 0.25) 36%, transparent 48%);
  opacity: var(--contact-shade, 0);
}
.contact-copy {
  left: var(--hud-pad);
  top: 20%;
  width: clamp(290px, 31.5%, 435px);
}
.contact-copy h2 {
  font-size: clamp(34px, 4.65cqw, 70px);
  line-height: 0.98;
  margin-bottom: .32em;
}
.contact-arabic {
  display: inline-block;
  font-family: var(--font-ar);
  font-size: .5em;
  color: var(--room-accent);
  vertical-align: middle;
  margin-inline-start: .28em;
}
.contact-lead {
  color: var(--room-muted);
  font-size: clamp(11px, .98cqw, 15px);
  line-height: 1.5;
  max-width: 38ch;
  margin-bottom: 1.35em;
}
.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.25em;
}
.contact-address {
  font-size: clamp(14px, 1.5cqw, 23px);
  letter-spacing: -.015em;
  color: var(--room-ivory);
  text-decoration: none;
  padding-bottom: .25em;
  border-bottom: 1px solid rgba(221, 178, 123, 0.50);
  transition: border-color .2s cubic-bezier(0.42, 0, 0.58, 1), color .2s cubic-bezier(0.42, 0, 0.58, 1);
}
.contact-address:hover { border-color: var(--room-accent-bright); color: var(--room-accent-bright) }

.copy-email-btn {
  min-height: 40px;
  padding: .48em 1.05em;
  border-radius: 2px;
  background: var(--room-surface);
  border: 1px solid var(--room-border);
  font-family: var(--font-mono);
  font-size: clamp(10.5px, .8cqw, 12px);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--room-ivory);
  transition: border-color .2s cubic-bezier(0.42, 0, 0.58, 1), background-color .2s cubic-bezier(0.42, 0, 0.58, 1), color .2s cubic-bezier(0.42, 0, 0.58, 1);
}
.copy-email-btn:hover {
  border-color: var(--room-ivory);
  background: var(--room-ivory);
  color: var(--room-ink-dark);
}
.copy-email-btn[data-copied="true"] {
  border-color: var(--room-accent);
  background: var(--room-accent);
  color: var(--room-ivory);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  font-family: var(--font-mono);
  font-size: clamp(10.5px, .84cqw, 12.5px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--room-ivory);
}
.contact-links a { text-decoration: none; color: var(--room-ivory) }
.contact-links a:hover { color: var(--room-accent-bright); text-decoration: underline }

/* Slide-Over Swiss Editorial Index Drawer */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(10, 8, 7, 0.72);
  backdrop-filter: blur(4px);
}
.index-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  width: min(460px, 92vw);
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vh, 30px) clamp(24px, 3vw, 34px);
  background: #0e0c0a;
  border-left: 1px solid rgba(242, 236, 225, 0.22);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.72);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 236, 225, 0.28) transparent;
}
.index-drawer::-webkit-scrollbar { width: 5px }
.index-drawer::-webkit-scrollbar-thumb { background: rgba(242, 236, 225, 0.28); border-radius: 0 }
.index-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(242, 236, 225, 0.22);
}
.index-drawer-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--room-accent-bright);
  margin-bottom: .4em;
}
.index-drawer-header h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 2.5vw, 36px);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--room-ivory);
}
.index-drawer-header h3 span {
  color: var(--room-accent-bright);
  font-family: var(--font-mono);
  font-size: .5em;
  font-variant-numeric: tabular-nums;
  margin-left: .4em;
}
.index-drawer-close {
  background: transparent;
  border: 1px solid var(--room-border);
  border-radius: 2px;
  min-height: 38px;
  padding: .44em .96em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--room-ivory);
  transition: border-color .2s cubic-bezier(0.42, 0, 0.58, 1), background-color .2s cubic-bezier(0.42, 0, 0.58, 1), color .2s cubic-bezier(0.42, 0, 0.58, 1);
}
.index-drawer-close:hover {
  border-color: var(--room-ivory);
  background: var(--room-ivory);
  color: var(--room-ink-dark);
}
.index-drawer-note {
  color: var(--room-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 1rem 0 1.1rem;
}
.index-drawer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(242, 236, 225, 0.16);
  padding-bottom: 1.5rem;
}
.drawer-item {
  display: grid;
  grid-template-columns: 2em 62px 1fr auto;
  align-items: center;
  gap: .85em;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  text-align: left;
  padding: clamp(.52em, .85svh, .76em) .55em;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 236, 225, 0.12);
  border-left: 2px solid transparent;
  border-radius: 0;
  transition: background-color .18s cubic-bezier(0.42, 0, 0.58, 1), padding-left .18s cubic-bezier(0.42, 0, 0.58, 1), border-left-color .18s cubic-bezier(0.42, 0, 0.58, 1);
}
.drawer-item:hover, .drawer-item:focus-visible {
  background: rgba(242, 236, 225, 0.06);
  border-left-color: var(--item-accent, var(--room-accent));
  padding-left: .85em;
}
.drawer-thumb {
  width: 62px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  background: radial-gradient(circle at 50% 45%, rgba(242, 236, 225, 0.08), rgba(14, 12, 10, 0.92));
  border: 1px solid rgba(242, 236, 225, 0.16);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .18s ease, transform .2s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer-item:hover .drawer-thumb, .drawer-item:focus-visible .drawer-thumb {
  border-color: color-mix(in srgb, var(--item-accent, #e0462b) 72%, rgba(242, 236, 225, 0.3));
}
.drawer-item:hover .drawer-thumb img, .drawer-item:focus-visible .drawer-thumb img {
  transform: scale(1.06);
}
.drawer-idx {
  font-family: var(--font-mono);
  color: var(--room-accent-bright);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: .06em;
}
.drawer-title {
  display: block;
  color: var(--room-ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.drawer-cat {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--room-muted);
  font-size: 10.5px;
  margin-top: 2px;
}
.drawer-arrow {
  font-family: var(--font-mono);
  color: var(--room-accent-bright);
  font-size: 13px;
}

/* Footer HUD */
.footer {
  position: absolute;
  z-index: 4;
  bottom: clamp(16px, 2.8vh, 30px);
  left: var(--hud-pad);
  right: var(--hud-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(10.5px, .84cqw, 12.5px);
  letter-spacing: .04em;
  color: var(--room-ivory);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.92);
}
.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: calc(var(--hud-pad) * -1);
  right: calc(var(--hud-pad) * -1);
  bottom: -32px;
  height: 98px;
  background: linear-gradient(0deg, rgba(16, 13, 11, 0.88), rgba(16, 13, 11, 0.48) 58%, transparent);
}
.footer a { text-decoration: none }
.footer a:hover { color: var(--room-accent-bright); text-decoration: underline }

@media (min-width: 681px) and (max-width: 1180px), (min-width: 681px) and (max-aspect-ratio: 3/2) {
  .practice-shade {
    background: linear-gradient(90deg, rgba(14, 12, 11, 0.84), rgba(14, 12, 11, 0.46) 27%, transparent 40%);
  }
  .practice-copy {
    left: clamp(16px, 2vw, 28px);
    top: 14%;
    width: clamp(205px, 20.5%, 248px);
  }
}

@media (max-width: 900px) {
  html[data-renderer="cycles-v268"] .header { grid-template-columns: auto 1fr auto }
  html[data-renderer="cycles-v268"] .header nav { gap: .9em }
  .opening-copy { left: 44%; width: 50%; top: 28% }
  .practice-copy { left: 18px; width: 28%; min-width: 200px; top: 14% }
  .about-copy { left: 42%; width: 52%; top: 14% }
  .contact-copy { width: 46%; top: 18% }
}

@media (max-width: 680px) {
  html[data-renderer="cycles-v268"] .header {
    left: 16px;
    right: 16px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  html[data-renderer="cycles-v268"] .header::before {
    left: -16px;
    right: -16px;
    top: -12px;
    height: 88px;
  }
  html[data-renderer="cycles-v268"] .header nav { display: none }
  .wordmark {
    min-height: 44px;
    min-width: 0;
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: .10em;
    gap: .45em;
  }
  .header-actions { flex: none; gap: 6px }
  .all-projects-trigger {
    min-height: 44px;
    padding: .45em .75em .45em .9em;
    white-space: nowrap;
    font-size: 11.5px;
  }
  .pill-cta,
  .copy-email-btn,
  .index-drawer-close,
  .cover-nav-btn,
  .cover-reveal .project-header button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .text-cta,
  .return,
  .contact-address,
  .contact-links a {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .text-cta,
  .contact-address {
    border-bottom: 0;
  }
  .text-cta::after,
  .contact-address::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 1px;
    background: rgba(221, 178, 123, 0.52);
  }
  .contact-links { gap: 0 1.25em }
  .footer {
    left: 16px;
    right: 16px;
    bottom: 10px;
  }
  .footer::before {
    left: -16px;
    right: -16px;
    bottom: -10px;
    height: 84px;
  }
  .opening-copy { left: 6%; right: 6%; width: auto; top: auto; bottom: 14%; max-width: none }
  .practice-copy, .about-copy, .contact-copy {
    left: 6%;
    right: 6%;
    width: auto;
    max-height: calc(100svh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
    background: rgba(15, 12, 10, 0.82);
    border: 1px solid var(--room-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px;
    border-radius: 2px;
  }
  .practice-copy::-webkit-scrollbar, .about-copy::-webkit-scrollbar, .contact-copy::-webkit-scrollbar { display: none }
  .practice-copy { top: auto; bottom: 11%; max-height: 44svh }
  .about-copy { top: 13% }
  .contact-copy { top: 14% }
}

@media (max-width: 520px) {
  .wordmark-sep, .wordmark-ar { display: none }
  .notes-toggle { padding: .42em .7em }
  .all-projects-trigger { padding: .45em .65em .45em .78em; font-size: 11px }
}

@media (max-width: 390px) {
  html[data-renderer="cycles-v268"] .header {
    left: 12px;
    right: 12px;
    gap: 6px;
  }
  .wordmark {
    font-size: 10px;
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .all-projects-trigger {
    padding: 0.4em 0.55em 0.4em 0.65em;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
}

/* ==========================================================================
   Studio Monograph Preloader — Darkroom Registration & Full Frame Cache
   ========================================================================== */

.studio-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 3vw, 40px) clamp(20px, 4vw, 56px);
  background: #0e0c0a;
  color: #f2ece1;
  font-family: var(--font-sans);
  overflow: hidden;
  border-bottom: 2px solid #e0462b;
  transform: translate3d(0, 0, 0);
  transition: transform .72s cubic-bezier(0.76, 0, 0.24, 1), opacity .5s ease;
}
.studio-preloader[data-state="exiting"] {
  transform: translate3d(0, -102%, 0);
  pointer-events: none;
}
.sp-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(242, 236, 225, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 236, 225, 0.045) 1px, transparent 1px);
  background-size: clamp(64px, 8vw, 120px) clamp(64px, 8vw, 120px);
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 35%, transparent 100%);
}
.sp-corner {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: rgba(242, 236, 225, 0.28);
}
.sp-tl { top: 10px; left: 10px }
.sp-tr { top: 10px; right: 10px }
.sp-bl { bottom: 10px; left: 10px }
.sp-br { bottom: 10px; right: 10px }

.sp-top, .sp-stage, .sp-foot { position: relative; z-index: 2 }
.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(242, 236, 225, 0.14);
}
.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: clamp(11px, .86vw, 12.5px);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sp-mark { width: 15px; height: 15px; flex: none }
.sp-mark-pulse {
  animation: spPulse 1.3s ease-in-out infinite;
}
@keyframes spPulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .28 }
}
.sp-sep { color: rgba(242, 236, 225, 0.4) }
.sp-ar { font-family: var(--font-ar); letter-spacing: 0; font-size: 1.08em }
.sp-edition {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(242, 236, 225, 0.56);
}

.sp-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3vh, 34px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}
.sp-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(10.5px, .86vw, 12px);
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #f2ece1;
}
.sp-sq { width: 7px; height: 7px; background: #e0462b; flex: none }
.sp-main-row {
  display: grid;
  grid-template-columns: 1fr minmax(270px, 360px);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}
.sp-counter-wrap {
  display: flex;
  align-items: baseline;
  gap: .15em;
  line-height: .82;
}
.sp-pct {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(82px, 16vw, 224px);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  color: #f2ece1;
}
.sp-pct-sign {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.8vw, 38px);
  font-weight: 500;
  color: #e0462b;
}

.sp-telemetry {
  padding: 18px 20px;
  background: rgba(242, 236, 225, 0.03);
  border: 1px solid rgba(242, 236, 225, 0.16);
  border-radius: 2px;
}
.sp-telemetry-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  color: rgba(242, 236, 225, 0.54);
}
.sp-stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.sp-stops li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  color: rgba(242, 236, 225, 0.44);
  transition: color .2s ease;
}
.sp-dot {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(242, 236, 225, 0.36);
  transition: background-color .2s ease, border-color .2s ease;
}
.sp-stops li.is-ready {
  color: #f2ece1;
}
.sp-stops li.is-ready .sp-dot {
  background: #e0462b;
  border-color: #e0462b;
}
.sp-stop-state {
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(242, 236, 225, 0.38);
}
.sp-stops li.is-ready .sp-stop-state {
  color: #ff5e40;
}
.sp-ticker {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(242, 236, 225, 0.12);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(242, 236, 225, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-progress-wrap {
  display: grid;
  gap: 10px;
}
.sp-track {
  position: relative;
  height: 2px;
  width: 100%;
  background: rgba(242, 236, 225, 0.14);
  overflow: hidden;
}
.sp-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e0462b, #ff5e40 70%, #f2ece1);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}
.sp-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .11em;
  color: rgba(242, 236, 225, 0.68);
  font-variant-numeric: tabular-nums;
}

.sp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 236, 225, 0.14);
}
.sp-motto {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(242, 236, 225, 0.58);
}
.sp-skip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  padding: .48em 1.05em;
  border-radius: 2px;
  border: 1px solid rgba(242, 236, 225, 0.28);
  background: transparent;
  color: #f2ece1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.sp-skip:hover, .sp-skip:focus-visible {
  background: #f2ece1;
  border-color: #f2ece1;
  color: #0e0c0a;
}

@media (max-width: 780px) {
  .sp-main-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sp-edition { display: none }
  .sp-motto { font-size: 10px }
}
@media (max-width: 520px) {
  .sp-sep, .sp-ar, .sp-motto span[lang="ar"], .sp-motto span[aria-hidden] { display: none }
}

/* ==========================================================================
   STUDIO MONOGRAPH — Mobile Experience Refinement (<= 680px / 390px / 360px)
   ========================================================================== */
.mob-nav,
.mob-collection-bar,
.practice-mob-cta {
  display: none;
}

@media (max-width: 780px) {
  .sp-skip {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 14px;
    font-size: 10px;
  }
  .sp-foot {
    gap: 12px;
    align-items: center;
  }
  .sp-meta-row {
    font-size: 10px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .sp-meta-row span {
    white-space: nowrap;
  }
}

@media (max-width: 440px) {
  .sp-foot {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .sp-meta-row {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  .sp-skip {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .mob-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    position: absolute;
    z-index: 4;
    top: 58px;
    left: 16px;
    right: 16px;
    padding: 3px;
    background: rgba(14, 12, 10, 0.56);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 236, 225, 0.14);
    border-radius: 2px;
    pointer-events: auto;
  }
  .mob-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font: 500 11px/1 var(--font-mono, "IBM Plex Mono", monospace);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(242, 236, 225, 0.78);
    text-decoration: none;
    border-radius: 1px;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease;
  }
  .mob-nav a[aria-current="location"] {
    background: rgba(224, 70, 43, 0.24);
    color: #f2ece1;
    box-shadow: inset 0 -2px 0 #e0462b;
  }

  .mob-collection-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 4;
    padding: 6px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    pointer-events: auto;
  }
  .mob-collection-bar::-webkit-scrollbar {
    display: none;
  }
  .mob-work-pill {
    flex: none;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    background: rgba(14, 12, 10, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 236, 225, 0.24);
    border-left: 2.5px solid var(--pill-accent, #e0462b);
    border-radius: 2px;
    color: #f2ece1;
    font: 500 11.5px/1 var(--font-sans, "Space Grotesk", sans-serif);
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  }
  .mob-work-pill small {
    font-family: var(--font-mono, "IBM Plex Mono", monospace);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #ff5e40;
    font-variant-numeric: tabular-nums;
  }
  .mob-work-pill:active,
  .mob-work-pill:focus-visible {
    background: #0e0c0a;
    border-color: #e0462b;
  }

  /* Clear the mobile chapter nav bar cleanly and avoid compact-height card clipping */
  .practice-copy,
  .about-copy,
  .contact-copy {
    top: clamp(114px, 14vh, 130px) !important;
    bottom: auto !important;
    max-height: calc(100svh - 178px) !important;
    padding: clamp(14px, 2vh, 20px) 16px !important;
  }

  .practice-mob-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    padding: 0 14px;
    background: #f2ece1;
    color: #0e0c0a;
    border: 1px solid #f2ece1;
    border-radius: 2px;
    font: 600 11px/1 var(--font-mono, "IBM Plex Mono", monospace);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
  }
  @media (hover: hover) and (pointer: fine) {
    .practice-mob-cta:hover {
      background: #e0462b;
      border-color: #e0462b;
      color: #f2ece1;
    }
  }
  .practice-mob-cta:active,
  .practice-mob-cta:focus-visible {
    background: #e0462b;
    border-color: #e0462b;
    color: #f2ece1;
  }

  .footer {
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }
  .instruction {
    font-size: 9.5px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .return {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 10px;
    font-size: 9.5px;
  }

  .index-drawer {
    padding: 18px 16px 24px;
    width: min(100vw, 420px);
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  .practice-copy,
  .about-copy,
  .contact-copy {
    top: 112px !important;
    max-height: calc(100svh - 168px) !important;
    padding: 12px 14px !important;
  }
  .practice-copy h2 {
    font-size: 26px !important;
    margin-bottom: 8px !important;
  }
  .practice-pillars {
    gap: 8px !important;
    margin-top: 10px !important;
  }
  .practice-pillars li {
    gap: 2px !important;
  }
  .practice-pillars span {
    font-size: 12px !important;
    line-height: 1.38 !important;
  }
  .practice-mob-cta {
    margin-top: 10px;
  }
}
