:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --line: rgba(0, 0, 0, 0.2);
  --yellow: #ff8a1f;
  --header-height: 76px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* RGB XYZ cursor */
body { cursor: none; }
.cursor-axes {
  position: fixed;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}
.cursor-axes .axis {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 50%;
  height: 2px;
  width: 16px;
}
.cursor-axes .axis-x { background: #ff3030; transform: translateY(-50%) rotate(0deg); }
.cursor-axes .axis-y { background: #35c759; transform: translateY(-50%) rotate(120deg); }
.cursor-axes .axis-z { background: #2f6bff; transform: translateY(-50%) rotate(240deg); }
.cursor-axes .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #111;
  transform: translate(-50%, -50%);
}

/* Home design */
.home-page {
  background: #ffffff;
  color: #111;
}

.home-main {
  --home-grid-step: 20mm;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.home-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to right, transparent 0, transparent calc(var(--home-grid-step) - 1px), rgba(0, 0, 0, 0.14) calc(var(--home-grid-step) - 1px), rgba(0, 0, 0, 0.14) var(--home-grid-step)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--home-grid-step) - 1px), rgba(0, 0, 0, 0.14) calc(var(--home-grid-step) - 1px), rgba(0, 0, 0, 0.14) var(--home-grid-step)),
    repeating-linear-gradient(to right, transparent 0, transparent calc(calc(var(--home-grid-step) * 4) - 1px), rgba(0, 0, 0, 0.26) calc(calc(var(--home-grid-step) * 4) - 1px), rgba(0, 0, 0, 0.26) calc(var(--home-grid-step) * 4)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(calc(var(--home-grid-step) * 4) - 1px), rgba(0, 0, 0, 0.26) calc(calc(var(--home-grid-step) * 4) - 1px), rgba(0, 0, 0, 0.26) calc(var(--home-grid-step) * 4));
  opacity: 0.98;
  -webkit-mask-image: radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 24%, rgba(0, 0, 0, 0.6) 44%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.05) 67%, rgba(0, 0, 0, 0) 74%);
  mask-image: radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 24%, rgba(0, 0, 0, 0.6) 44%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.05) 67%, rgba(0, 0, 0, 0) 74%);
  transition: opacity 0.9s ease;
}

.home-grid-accent {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.9s ease;
}

.home-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0b1028;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.home-grid-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.home-words {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.home-word {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
  mix-blend-mode: multiply;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.08);
  transition: left 1.8s ease, top 1.8s ease, opacity 1s ease;
}

.home-media video,
.home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0.26;
  filter: grayscale(25%);
}

.home-media.has-video video,
.home-media.has-gif img {
  display: block;
}

.home-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: min(340px, 92vw);
  display: grid;
  justify-items: center;
  margin-top: 0;
}

.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: block;
  padding: 0;
  z-index: 6;
  pointer-events: none;
}

.home-title {
  position: fixed;
  top: 38px;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  letter-spacing: 0.045em;
  font-weight: 400;
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  line-height: 1;
  color: #000000;
  z-index: 7;
  transition: top 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), font-size 0.9s ease, letter-spacing 0.9s ease, opacity 0.5s ease;
}

.cube-scene {
  width: 260px;
  height: 260px;
  perspective: 900px;
  margin-top: 0.4rem;
  z-index: 3;
}

.home-seq-1 .home-main::before,
.home-seq-1 .home-grid-accent {
  opacity: 0;
}

.home-seq-1 .home-title {
  top: 50%;
  font-size: clamp(2.2rem, 6.6vw, 4.6rem);
  letter-spacing: 0.07em;
  opacity: 1;
}

.home-seq-2 .home-title {
  top: 38px;
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  letter-spacing: 0.045em;
  opacity: 1;
}

.home-seq-3 .home-title {
  top: 38px;
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  letter-spacing: 0.045em;
  opacity: 1;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(24deg);
  transition: transform 0.1s linear;
}

.cube-face {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 3px solid #111111;
  background: rgba(255, 255, 255, 0.16);
  color: #000000;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  user-select: none;
  backface-visibility: visible;
  pointer-events: auto;
  transition: background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, color 0.2s ease;
}

.cube-face:hover {
  background: rgba(255, 255, 255, 0.88);
  filter: saturate(1.28) contrast(1.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95), 0 0 0 2px rgba(0, 0, 0, 0.18), 0 18px 42px rgba(0, 0, 0, 0.28);
  color: #000;
}

.cube-face:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  outline: 2px solid #111;
  outline-offset: -2px;
}

.cube-scene.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
}

.cube-scene {
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.face-front { transform: rotateY(0deg) translateZ(130px); }
.face-back { transform: rotateY(180deg) translateZ(130px); }
.face-right { transform: rotateY(90deg) translateZ(130px); }
.face-left { transform: rotateY(-90deg) translateZ(130px); }
.face-top { transform: rotateX(90deg) translateZ(130px); }
.face-bottom { transform: rotateX(-90deg) translateZ(130px); }

.upload-bar.home-upload {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  color: #d0d0d0;
}

.upload-bar.home-upload label {
  font-size: 0.76rem;
  text-transform: uppercase;
}

.upload-bar.home-upload input[type="file"] {
  border: 1px solid #454545;
  background: rgba(14, 14, 14, 0.8);
  color: #d2d2d2;
  padding: 0.34rem;
}

/* Internal pages */
.internal-page {
  position: relative;
  background:
    repeating-linear-gradient(to right, transparent 0, transparent calc(20mm - 1px), var(--line) calc(20mm - 1px), var(--line) 20mm),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(20mm - 1px), var(--line) calc(20mm - 1px), var(--line) 20mm),
    #fff;
}

.project-detail {
  background: #fff;
}

.internal-page::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16mm;
  z-index: 8;
  pointer-events: none;
  border-right: 1px solid rgba(0, 0, 0, 0.5);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(1mm - 1px),
      rgba(0, 0, 0, 0.45) calc(1mm - 1px),
      rgba(0, 0, 0, 0.45) 1mm
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(10mm - 1px),
      rgba(0, 0, 0, 0.8) calc(10mm - 1px),
      rgba(0, 0, 0, 0.8) 10mm
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(20mm - 1px),
      rgba(0, 0, 0, 0.82) calc(20mm - 1px),
      rgba(0, 0, 0, 0.82) 20mm
    );
  background-size: 100% 100%, 55% 100%, 80% 100%, 100% 100%;
  background-repeat: no-repeat;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 76px;
  border-bottom: 1px solid #111;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  padding: 0 1rem;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

.menu-toggle {
  width: 52px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  font-size: 0;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: "";
  position: absolute;
  right: 4px;
  width: 34px;
  height: 2px;
  background: #111;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle::before { top: 9px; }
.menu-toggle span { top: 17px; }
.menu-toggle::after { top: 25px; }
.menu-toggle.is-open::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span { opacity: 0; }
.menu-toggle.is-open::after { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 76px;
  right: 1rem;
  width: min(260px, calc(100% - 2rem));
  border: 1px solid #111;
  background: #fff;
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.45rem;
}

.site-nav.open { display: flex; }

.site-nav a {
  text-decoration: none;
  color: #111;
  border: 1px solid #111;
  padding: 0.5rem 0.64rem;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.site-nav a:hover,
.site-nav a.active {
  background: #111;
  color: #fff;
}

.has-ruler-nav .site-header {
  grid-template-columns: 1fr;
}

.has-ruler-nav .menu-toggle {
  display: none;
}

.has-ruler-nav .site-nav {
  position: fixed;
  left: 20mm;
  right: auto;
  top: 50%;
  width: 40mm;
  height: 40mm;
  min-height: 40mm;
  border: 0;
  background: transparent;
  transform: translateY(-50%) scale(0.96);
  transform-origin: left center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2mm;
  justify-content: center;
  align-items: flex-start;
  padding: 2.8mm 3.2mm 2.8mm 8.2mm;
  z-index: 70;
  transition: opacity 0.18s ease, transform 0.24s ease, visibility 0.24s ease;
}

.has-ruler-nav .site-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.has-ruler-nav .site-nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6mm;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(#2bb34a, #2bb34a) left top / 3px calc(50% - 5.5mm) no-repeat,
    linear-gradient(#2bb34a, #2bb34a) left bottom / 3px calc(50% - 5.5mm) no-repeat,
    linear-gradient(#2bb34a, #2bb34a) left top / 6mm 3px no-repeat,
    linear-gradient(#2bb34a, #2bb34a) left bottom / 6mm 3px no-repeat;
}

.has-ruler-nav .site-nav::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6mm;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(#2bb34a, #2bb34a) right top / 3px 100% no-repeat,
    linear-gradient(#2bb34a, #2bb34a) right top / 6mm 3px no-repeat,
    linear-gradient(#2bb34a, #2bb34a) right bottom / 6mm 3px no-repeat;
}

.ruler-nav-trigger {
  position: fixed;
  left: 20mm;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 72;
}

.ruler-nav-line {
  position: absolute;
  right: 50%;
  top: 50%;
  width: calc(20mm + 8px);
  height: 2px;
  background: #e12222;
  transform: translateY(-50%);
  transform-origin: right center;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.ruler-nav-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  background: #f2f2f2;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ruler-nav-trigger:hover .ruler-nav-line,
.ruler-nav-trigger.is-open .ruler-nav-line {
  opacity: 0;
  transform: translateY(-50%) scaleX(0.2);
}

.has-ruler-nav .site-nav a {
  background: transparent;
  border: 0;
  padding: 0;
  color: #101010;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.has-ruler-nav .site-nav a:hover,
.has-ruler-nav .site-nav a:focus-visible {
  background: transparent;
  color: #101010;
}

.has-ruler-nav .site-nav a.active {
  color: #1141a0;
}

.ruler-nav-trigger:hover .ruler-nav-dot,
.ruler-nav-trigger.is-open .ruler-nav-dot {
  border-color: #2bb34a;
  background: #f4fff6;
  box-shadow: 0 0 0 2px rgba(43, 179, 74, 0.18);
}

.page,
.project-page,
.about-page,
.contact-page {
  position: relative;
  z-index: 2;
  width: min(1260px, 94%);
  margin: 1rem auto 0;
}

.project-detail .project-page {
  margin-top: 0;
}

.internal-page .page,
.internal-page .project-page,
.internal-page .about-page,
.internal-page .contact-page {
  padding-left: 12mm;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  text-decoration: none;
  border: 1px solid #000;
  background: #050505;
  overflow: hidden;
}

.project-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: filter 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
}

.project-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.95));
  padding: 0.72rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.project-title {
  margin: 0;
  color: #fff;
  font-size: 0.84rem;
}

.project-year {
  margin: 0.2rem 0 0;
  color: #d3d3d3;
  font-size: 0.75rem;
}

.project-card:hover .project-image {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-image-research {
  background: #d7d7d7;
  filter: none;
  opacity: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.research-card-title {
  color: #1d1d1d;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  text-align: center;
  line-height: 1.35;
  max-width: 92%;
  transition: font-size 0.22s ease, font-weight 0.22s ease, letter-spacing 0.22s ease;
}

.project-card:hover .project-image-research {
  transform: none;
}

.project-card:hover .research-card-title {
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.img-arch-1 { background-image: url("hariri-patricks-house/images/cover.jpg"); }
.img-arch-2 { background-image: url("hafez-housing-complex/images/cover.jpg"); }
.img-arch-3 { background-image: url("royan-residential-apartment/images/cover.jpg"); }
.img-arch-4 { background-image: url("bij-no.1-villa/images/cover.jpg"); }
.img-arch-5 { background-image: url("bostan-apartment/images/Cover.jpg"); }
.img-arch-6 { background-image: url("golshahr-market/images/cover.jpg"); }
.img-arch-7 { background-image: url("jamshid-workers'-house/images/cover.jpg"); }
.img-arch-8 { background-image: url("tafarojgah-villa/images/cover.jpg"); }
.img-arch-9 { background-image: url("urmia-amphitheater/images/cover.jpg"); }
.img-arch-10 { background-image: url("window-garden-exhebition/images/cover.jpg"); }
.img-prod-1 { background-image: linear-gradient(145deg, #3d6f84, #86b2c7); }
.img-prod-2 { background-image: linear-gradient(145deg, #c58755, #e0be92); }
.img-prod-3 { background-image: linear-gradient(145deg, #5f6168, #919aa8); }
.img-prod-4 { background-image: linear-gradient(145deg, #9c7c66, #ccb19a); }
.img-res-1 { background-image: linear-gradient(145deg, #5e718b, #a6bdd1); }
.img-res-2 { background-image: linear-gradient(145deg, #7e6a5a, #c2a68e); }
.img-res-3 { background-image: linear-gradient(145deg, #53686b, #93afb2); }
.img-res-4 { background-image: linear-gradient(145deg, #5f5670, #9f95b0); }
.img-art-1 { background-image: linear-gradient(145deg, #755f4d, #c9ab8f); }
.img-art-2 { background-image: linear-gradient(145deg, #4b5768, #8898b0); }
.img-art-3 { background-image: linear-gradient(145deg, #6f4f75, #c19ec7); }
.img-art-4 { background-image: linear-gradient(145deg, #7c5e52, #c8a496); }
.img-about { background-image: linear-gradient(145deg, #5a6877, #aab5c2); }

.project-page,
.about-page,
.contact-page {
  max-width: none;
}

.contact-page {
  min-height: calc(100vh - var(--header-height) - 2.2rem);
  display: grid;
  place-items: center;
  align-content: center;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.project-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-hero-full {
  width: min(92vw, 1400px);
  aspect-ratio: 2 / 1;
  height: auto;
  min-height: calc(100vh - 76px);
  border: none;
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
  position: relative;
  overflow: hidden;
}

.project-hero-image {
  max-width: 100%;
  max-height: calc(100vh - 76px);
  width: auto;
  height: auto;
  border: 1px solid #111;
  display: block;
  transition: filter 0.28s ease, transform 0.28s ease;
}

.project-hero-full.is-activated .project-hero-image {
  filter: grayscale(100%) blur(2.2px) contrast(1.04) brightness(0.72);
  transform: scale(1.01);
}

.project-hover-shell {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.project-bracket {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  --bracket-color: #2bb34a;
  padding: 0.95rem;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  filter: saturate(0.96);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: center;
  transition: opacity 0.24s ease, transform 0.28s ease;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.project-bracket::before,
.project-bracket::after {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 12px;
  opacity: 0.96;
  filter: blur(0.15px) drop-shadow(0 0 1.6px rgba(0, 0, 0, 0.28));
}

.project-bracket::before {
  left: -14px;
  border-left: 3px solid var(--bracket-color);
  border-top: 3px solid var(--bracket-color);
  border-bottom: 3px solid var(--bracket-color);
}

.project-bracket::after {
  right: -14px;
  border-right: 3px solid var(--bracket-color);
  border-top: 3px solid var(--bracket-color);
  border-bottom: 3px solid var(--bracket-color);
}

.project-bracket-info {
  width: fit-content;
  max-width: min(62ch, calc(100% - 2rem));
}

.project-bracket-info h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: inherit;
}

.project-bracket-kicker {
  margin: 0.56rem 0 0;
  color: #333;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}

.project-bracket-desc {
  margin: 0.66rem 0 0;
  color: #3e3e3e;
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.project-bracket-gallery {
  width: fit-content;
  max-width: calc(100% - 2rem);
  overflow: visible;
}

.project-bracket-grid {
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols, 3), 124px);
  gap: 0.5rem;
}

.project-bracket-chip {
  border: 1px solid #111;
  background: #fff center / cover no-repeat;
  width: 124px;
  height: 102px;
  cursor: pointer;
  padding: 0;
  font: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.project-bracket-chip:hover {
  transform: translateY(-1px);
  filter: contrast(1.05);
}

.project-bracket-chip.is-video {
  color: transparent;
  font-size: 0;
}

.project-bracket-chip.is-video::after,
.strip-item.is-video::after {
  content: "\25B6";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.project-hover-shell.is-open .project-bracket {
  opacity: 1;
  transform: scale(1);
}

.project-bracket.is-dragging {
  cursor: grabbing;
}

.has-hero-brackets .project-info,
.has-hero-brackets .project-strip {
  display: none;
}

.project-info {
  border: 1px solid #111;
  background: #fff;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  width: min(92vw, 1400px);
  margin: 0 auto 0.8rem;
}

.project-info h1 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.project-kicker {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.project-info p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.85;
}

.project-info [data-project-summary] {
  white-space: pre-wrap;
}

.project-info ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.project-info li {
  margin: 0.3rem 0;
}

.project-strip {
  margin: 0 auto 0.8rem;
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 1.2rem clamp(1rem, 4vw, 3rem) 1.4rem;
  border: 1px solid #111;
  width: min(92vw, 1400px);
}

.research-detail-mode .project-hero-full {
  display: none;
}

.research-detail-mode .project-info {
  background: transparent;
  border: 0;
  padding: 0.4rem clamp(0.2rem, 2vw, 1rem);
  margin-top: clamp(3.2rem, 8vh, 5.2rem);
}

.research-detail-mode .project-info h1,
.research-detail-mode .project-kicker,
.research-detail-mode .project-info p,
.research-detail-mode .project-info li {
  color: #1c1c1c;
}

.research-detail-mode .project-strip {
  width: min(92vw, 1400px);
  border: 0;
  background: transparent;
  padding: 0.2rem 0 0.8rem;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.research-detail-mode .strip-item {
  width: 100%;
  border: 1px solid #111;
  background: #e6e6e6;
}

.research-detail-mode .strip-item img,
.research-detail-mode .strip-item video {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.strip-item {
  border: 1px solid #111;
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.strip-item img,
.strip-item video {
  display: block;
  height: 160px;
  width: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(235, 235, 235, 0.18);
  backdrop-filter: blur(26px) saturate(88%);
  -webkit-backdrop-filter: blur(26px) saturate(88%);
  z-index: 5000;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img,
.lightbox video {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
}

.lightbox iframe {
  display: none;
  width: min(90vw, 1200px);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 2.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  z-index: 5002;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 0;
}

.lightbox-nav::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.lightbox-nav.prev::before { border-right: 18px solid #111; }
.lightbox-nav.next::before { border-left: 18px solid #111; }

.lightbox-nav:hover,
.lightbox-close:hover {
  opacity: 1 !important;
}

.lightbox-open .site-header {
  filter: blur(12px);
  opacity: 0.82;
}

.lightbox-open,
.lightbox-open * {
  cursor: auto !important;
}

.lightbox-open .ruler-nav-trigger,
.lightbox-open .site-nav,
.lightbox-open .cursor-axes {
  display: none !important;
  pointer-events: none !important;
}

.lightbox-open.has-ruler-nav .site-nav::before,
.lightbox-open.has-ruler-nav .site-nav::after {
  display: none !important;
}

.lightbox-open.internal-page::before {
  display: none !important;
}

.lightbox-close {
  display: none !important;
  top: 20px;
  right: 24px;
  z-index: 6000;
  color: transparent !important;
  font-size: 0;
  text-shadow: none;
}

.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transform-origin: center;
  opacity: 1;
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

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

.about-photo {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid #111;
  background-size: cover;
  background-position: center;
}

.about-text {
  margin-top: 0.8rem;
  border: 1px solid #111;
  background: #fff;
  padding: 0.86rem;
  line-height: 1.8;
  color: var(--muted);
}

.about-page {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  align-content: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  padding: 0 1.2rem 0 calc(clamp(4.8rem, 8.5vw, 8.8rem) + 20mm);
  min-height: 0;
}

.internal-page .about-page {
  padding-left: calc(clamp(4.8rem, 8.5vw, 8.8rem) + 20mm);
}

.about-portrait-wrap {
  margin: 0;
  width: fit-content;
  transform: none;
  filter: none;
}

.about-portrait {
  display: block;
  width: min(320px, 42vw);
  height: auto;
  object-fit: cover;
  clip-path: none;
  transform: rotate(-5.5deg);
}

.about-manifesto {
  border: 0;
  background: transparent;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(0.8rem, 2.6vw, 1.8rem);
  color: #bc1b1b;
  font-size: clamp(1.02rem, 1.48vw, 1.3rem);
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-weight: 500;
  max-width: min(96vw, 1320px);
  margin-top: 0;
  width: min(100%, 940px);
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.about-line {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: var(--line-top-gap, 0.45rem);
  margin-left: 0;
  margin-right: 0;
  line-height: var(--line-height, 1.85);
  transform: translateX(var(--line-shift, 0rem)) rotate(var(--line-rotate, 0deg));
  transform-origin: left center;
  will-change: transform;
}

.about-line .ink-core,
.about-line .ink-feather {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
  clip-path: inset(0 0 0 0);
}

.about-line .ink-core {
  position: relative;
  z-index: 2;
  color: #bc1b1b;
  text-shadow:
    0 0 0.2px rgba(110, 8, 8, 0.35),
    0.012em 0 rgba(95, 8, 8, 0.18),
    -0.012em 0 rgba(95, 8, 8, 0.12);
}

.about-line .ink-feather {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  color: rgba(128, 12, 12, 0.45);
  opacity: var(--feather-opacity, 0.2);
  filter: blur(var(--feather-blur, 0.45px));
  transform: translate(0.18px, 0.08px);
  pointer-events: none;
  mix-blend-mode: multiply;
}

@media (max-width: 900px) {
  .about-page {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.6rem;
    justify-content: center;
    padding: 0 0.9rem 0 calc(16mm + 6mm);
  }
  .internal-page .about-page {
    padding-left: calc(16mm + 6mm);
  }
  .about-portrait-wrap {
    margin-top: 1rem;
  }
}

.contact-form {
  border: 1px solid #111;
  background: #fff;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  width: min(860px, 95vw);
  min-height: 540px;
  align-content: start;
  margin-top: 6rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #111;
  background: #fff;
  padding: 0.66rem;
  font: inherit;
}

.contact-form textarea {
  min-height: 280px;
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 0.52rem 1rem;
  cursor: pointer;
}

.thank-you-page {
  min-height: calc(100vh - var(--header-height) - 2.2rem);
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}

.thank-you-box {
  width: min(720px, 92vw);
  border: 1px solid #111;
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(1.2rem, 2.4vw, 2rem);
  text-align: center;
}

.thank-you-box h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thank-you-box p {
  margin: 0.9rem 0 0;
  line-height: 1.8;
  color: #1b1b1b;
}

.thank-you-actions {
  margin-top: 1rem;
}

.thank-you-link {
  display: inline-block;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 0.52rem 1rem;
}

.site-footer {
  position: static;
  width: 100%;
  z-index: auto;
  margin: 0;
  margin-top: auto;
  padding: 0.5rem 0.8rem 0.6rem;
  border-top: 0;
  text-align: center;
  display: block;
  pointer-events: none;
  background: transparent;
}

.site-footer p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #1b1b1b;
  text-transform: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 1rem;
}

.admin-sidebar,
.admin-editor {
  border: 1px solid #111;
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem;
}

.admin-sidebar h1 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.admin-note,
.admin-status {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  color: #333;
}

.admin-section-label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  margin-bottom: 0.7rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.admin-actions button {
  font-size: 0.72rem;
  padding: 0.4rem 0.6rem;
}

.admin-project-list {
  display: grid;
  gap: 0.35rem;
  max-height: 56vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.admin-project-item {
  text-align: left;
  font-size: 0.75rem;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 0.45rem 0.55rem;
  box-shadow: none;
}

.admin-project-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: center;
}

.admin-project-item.active {
  background: #111;
  color: #fff;
}

.admin-order-controls {
  display: inline-flex;
  gap: 0.25rem;
}

.admin-order-btn {
  min-width: 28px;
  padding: 0.28rem 0.45rem;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.admin-grid label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.72rem;
}

.admin-grid label.full {
  grid-column: 1 / -1;
}

.admin-grid textarea {
  min-height: 110px;
}

.admin-block {
  margin-top: 0.95rem;
  border-top: 1px solid #111;
  padding-top: 0.8rem;
}

.admin-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.admin-block-head h2 {
  margin: 0;
  font-size: 0.86rem;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.admin-row.media-row {
  grid-template-columns: 110px 1fr auto;
}

.media-actions {
  justify-content: flex-end;
}

.admin-row input,
.admin-row select {
  width: 100%;
}

@media (max-width: 920px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.art-page .page {
  width: calc(100% - 20mm);
  max-width: none;
  margin: 1rem 0 2rem auto;
}

.art-scatter {
  --art-cell: 21mm;
  position: relative;
  width: 100%;
  min-height: calc(100vh - 110px);
  margin: 0 auto;
}

.art-item {
  position: absolute;
  left: calc(var(--x) * var(--art-cell));
  top: calc(var(--y) * var(--art-cell));
  width: calc(var(--w) * var(--art-cell));
  border: 1px solid #111;
  background: #fff;
  display: block;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.art-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: filter 0.24s ease, transform 0.24s ease;
}

.art-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.art-caption strong {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.art-caption em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.art-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.art-item.is-dragging {
  cursor: grabbing;
  transform: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  z-index: 5;
}

.art-item:hover img {
  filter: blur(2.2px) brightness(0.72);
  transform: scale(1.01);
}

.art-item:hover .art-caption {
  opacity: 1;
  transform: translateY(0);
}

.art-lightbox {
  flex-direction: column;
  gap: 0.75rem;
}

.art-lightbox-meta {
  display: none;
}

#artLightboxImage {
  max-width: 78vw;
  max-height: 70vh;
  border: 4px solid #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

@media (max-width: 920px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-hero-brackets .project-info,
  .has-hero-brackets .project-strip {
    display: block;
  }
  .project-hover-shell {
    display: none;
  }
  .project-hero-full.is-activated .project-hero-image {
    filter: none;
    transform: none;
  }
  .art-scatter {
    width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .art-item {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }
  .art-caption {
    opacity: 1;
    transform: none;
  }
  .art-item:hover img {
    filter: none;
    transform: none;
  }
  .project-strip { gap: 0.6rem; }
  .project-hero-full,
  .project-info,
  .project-strip {
    width: min(94vw, 1200px);
  }
}

@media (max-width: 620px) {
  .projects-grid { grid-template-columns: 1fr; }
  .art-scatter { grid-template-columns: 1fr; }
  .home-center { margin-top: 0; width: min(300px, 92vw); }
  .home-title { font-size: clamp(1.1rem, 6.2vw, 1.8rem); }
  .cube-scene { width: 190px; height: 190px; }
  .cube-face { width: 190px; height: 190px; font-size: 0.82rem; }
  .face-front { transform: rotateY(0deg) translateZ(95px); }
  .face-back { transform: rotateY(180deg) translateZ(95px); }
  .face-right { transform: rotateY(90deg) translateZ(95px); }
  .face-left { transform: rotateY(-90deg) translateZ(95px); }
  .face-top { transform: rotateX(90deg) translateZ(95px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(95px); }
  .project-hero-full,
  .project-info,
  .project-strip {
    width: 94vw;
  }
  .project-strip {
    padding: 0.8rem 0.8rem 1rem;
    flex-direction: column;
    overflow-x: hidden;
  }
  .strip-item img,
  .strip-item video { height: auto; width: 100%; }
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-axes { display: none; }
}
.lang-toggle {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font: 600 12px/1 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-toggle.is-dark {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-color: #fff;
}

[dir="rtl"] {
  direction: rtl;
}
.lang-toggle {
  display: none !important;
}





