.journal-page .main-content {
  padding: 36px 0;
}

.project-detail .studio-description {
  max-width: none;
  margin: 0;
}

.project-detail .hero-description {
  margin: 0;
  max-width: none;
}

.journal-page .studio-section {
  padding: 40px;
  border: none;
  margin: 0;
}

.journal-page .studio-section + .studio-section {
  margin-top: 0;
}

.journal-page .studio-section h3 {
  text-transform: uppercase;
}
/* ─── FONTS ───────────────────────────────────────────────────── */
@font-face {
  font-family: 'Arqiring Mono';
  src: local('Arqiring Mono Regular'), local('ArqiringMono-Regular'),
       url('fonts/ARQIRING_MONO_REG.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.value-item + .value-item {
  margin-top: -1px; /* collapse shared edge to a single line */
}

@font-face {
  font-family: 'Arqiring Mono';
  src: local('Arqiring Mono Medium'), local('ArqiringMono-Medium'),
       url('fonts/ARQIRING_MONO_MED.TTF') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arqiring Mono';
  src: local('Arqiring Mono Bold'), local('ArqiringMono-Bold'),
       url('fonts/ARQIRING_MONO_BOLD.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arqiring SS';
  src: local('Arqiring SS Regular'), local('ArqiringSS-Regular'),
       url('fonts/ARQIRING_SS_REG.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arqiring SS';
  src: local('Arqiring SS Medium'), local('ArqiringSS-Medium'),
       url('fonts/ARQIRING_SS_MED.TTF') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arqiring SS';
  src: local('Arqiring SS Bold'), local('ArqiringSS-Bold'),
       url('fonts/ARQIRING_SS_BOLD.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Page load blur & header fade: only on ring-lab page via .ring-page on body */
.ring-page {
  animation: fadeInFromBlur 1s ease-out;
}

.ring-page .main-content {
  animation: fadeIn 0.8s ease-out 0.6s both;
}


@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mobileSlideFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes solidSlideDown {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 20px;
  }
}

html, body {
  height: 100%;
  font-family: 'Arqiring SS', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
}

/* ─── GLOBAL ARQI STYLING ─────────────────────────────────────────── */
body:not(.ring-page) {
  background: #ffffff;
  color: #1a1a1a;
}

body:not(.ring-page) .main-content {
  background: #ffffff;
  color: #1a1a1a;
}

body:not(.ring-page) .sidebar {
  background: #ffffff;
  color: #1a1a1a;
}

body:not(.ring-page) .site-header {
  background: #ffffff;
  color: #1a1a1a;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
}

/* ─── GLOBAL RING STYLING ─────────────────────────────────────────── */
.ring-page {
  background: #000000;
  color: #ffffff;
}

.ring-page .main-content {
  background: #000000 !important;
  color: #ffffff !important;
}

.ring-page .sidebar {
  background: #000000;
  color: #ffffff;
  border-left: none;
  border-right: 1px dashed rgba(255, 255, 255, 0.5);
}

.ring-page.lab-page .sidebar {
  border-left: none;
  border-right: 1px dashed rgba(255, 255, 255, 0.5);
}

.ring-page .site-header {
  background: #000000 !important;
  color: #ffffff !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}

.ring-page .header-text {
  color: #ffffff !important;
}

.ring-page .header-logo .logo-image {
  transform: rotate(180deg);
}

.ring-page .header-nav a {
  color: #ffffff !important;
}

.ring-page .social-link {
  color: #ffffff !important;
}

.ring-page .site-header::before {
  border-left: 1px dashed rgba(255, 255, 255, 0.5) !important;
}

.ring-page .site-header::after {
  border-left: 1px dashed rgba(255, 255, 255, 0.5) !important;
}

.ring-page .body-wrapper {
  background: #000000;
}

.ring-page .studio-section {
  color: #ffffff !important;
}

.ring-page .studio-description {
  color: #ffffff !important;
}

.ring-page .studio-description p {
  color: #ffffff !important;
}

.ring-page .section-title {
  color: #ffffff !important;
}

.ring-page .categories-label {
  color: #666 !important;
}

.ring-page .category-item {
  color: #ffffff !important;
}

.ring-page .category-link {
  color: #ffffff !important;
}

.ring-page .category-link:hover {
  background-color: #81ff2e !important;
  color: #000000 !important;
}

.ring-page .project-category {
  color: #666 !important;
}

.ring-page .project-name {
  color: #ffffff !important;
}

.ring-page .project-location {
  color: #999 !important;
}

.ring-page .project-detail-category {
  color: #ffffff !important;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Custom selection and cursor colors - ARQI default orange */
::selection {
  background-color: #ff6a00;
  color: #ffffff;
}

::-moz-selection {
  background-color: #ff6a00;
  color: #ffffff;
}

body::selection {
  background-color: #ff6a00;
  color: #ffffff;
}

body::-moz-selection {
  background-color: #ff6a00;
  color: #ffffff;
}

/* Ring page accent: green selection and separator text */
.ring-page ::selection {
  background-color: #81ff2e;
  color: #000000;
}

.ring-page ::-moz-selection {
  background-color: #81ff2e;
  color: #000000;
}

.ring-page body::selection {
  background-color: #81ff2e;
  color: #000000;
}

.ring-page body::-moz-selection {
  background-color: #81ff2e;
  color: #000000;
}

.ring-page .right-separator-text {
  color: #81ff2e;
}

/* Custom cursor color for text inputs and textareas */
input, textarea, [contenteditable] {
  caret-color: #ff6a00;
}

.ring-page input,
.ring-page textarea,
.ring-page [contenteditable] {
  caret-color: #81ff2e;
}

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  z-index: 100;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
}

.header-text {
  font-family: 'Arqiring Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  color: #1a1a1a;
  display: none;
  height: 42px;
  align-items: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-text {
    display: flex;
    font-size: 12px;
  }
}

.site-header::after {
  content: '';
  position: absolute;
  right: 45px;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  cursor: pointer;
}

.journal-page .site-header::after,
.contact-page .site-header::after {
  right: 45px;
}

.site-header::after:hover {
  right: 119px;
}

.ring-page .site-header::after {
  right: 45px;
}

body.right-separator-hover .site-header::after {
  right: 120.887px;
}

.site-header::before {
  content: '';
  position: absolute;
  left: calc(20vw - 1px);
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed rgba(0, 0, 0, 0.5);
}

.header-logo {
  flex: 0 0 20vw;
}

.logo-image {
  height: 20px;
  width: auto;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-left: 10px;
}

.header-nav a {
  font-family: 'Arqiring Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
  padding: 2px 4px;
  margin: -2px -4px;
}

.header-nav a:hover {
  font-weight: bold;
}

.ring-page .header-nav a:hover {
  background-color: #81ff2e;
  color: #000000 !important;
  font-weight: normal;
}

.header-nav a.active {
  font-weight: bold;
}

.ring-page .header-nav a.active {
  background-color: #81ff2e;
  color: #000000 !important;
  font-weight: normal;
}

.sidebar .mobile-nav a.active {
  font-weight: bold;
}

.ring-page .sidebar .mobile-nav a.active {
  background-color: #81ff2e;
  color: #000000 !important;
  font-weight: normal;
}

.nav-sep {
  display: none;
}

/* Show sidebar on desktop but hide mobile nav */
.sidebar {
  display: flex;
}

.sidebar .mobile-nav {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background: #1a1a1a;
}

.ring-page .hamburger-line {
  background: #ffffff;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ─── BODY WRAPPER ──────────────────────────────────────────── */
.body-wrapper {
  display: flex;
  margin-top: 42px;
  height: calc(100vh - 42px);
  overflow: hidden;
}

/* ─── LEFT SIDEBAR ──────────────────────────────────────────── */
.sidebar {
  width: 20vw;
  min-width: 160px;
  height: 100%;
  background: #ffffff;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px 28px 28px;
  border-right: 1px dashed rgba(0, 0, 0, 0.6);
  border-left: none;
  overflow: hidden;
}

/* Home page: only right border */
body:not(.studio-page):not(.contact-page):not(.journal-page):not(.lab-page):not(.project-page) .sidebar {
  border-left: none;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── RING LAB TITLE (global across ring pages) ───────────── */
.ring-lab-title {
  font-family: 'Arqiring Mono', monospace;
  font-size: 36px;
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 0.9;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.ring-lab-title span {
  display: inline-block;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background-color 0.2s ease, padding 0.2s ease, margin 0.2s ease;
}

.ring-lab-title:hover span {
  background-color: #81ff2e;
  padding: 4px 8px;
  margin: -4px -8px;
}

.ring-lab-title:hover {
  color: #1a1a1a;
}

.sidebar-title {
  font-family: 'Arqiring Mono', monospace;
  font-size: clamp(20px, 5vw, 36px);
  font-weight: 500;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 0.9;
  cursor: pointer;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.sidebar-title span {
  display: inline-block;
  position: relative;
  font-weight: 500;
}

/* Social links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  transition: color 0.2s;
}

.social-link:hover {
  color: #000000;
}

.social-link:hover svg {
  fill: currentColor;
}

/* Individual brand colors on hover */
.social-link[aria-label="Instagram"]:hover {
  color: #E4405F;
}

.social-link[aria-label="LinkedIn"]:hover {
  color: #0077B5;
}

.social-link[aria-label="Facebook"]:hover {
  color: #1877F2;
}

.social-link svg {
  flex-shrink: 0;
  color: inherit;
}

/* Dashed line standard */
:root {
  --dash-light: 1px dashed rgba(0, 0, 0, 0.5);
  --dash-dark: 1px dashed rgba(255, 255, 255, 0.5);
}

/* Sidebar bottom categories */
.sidebar .mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.sidebar .mobile-nav a {
  padding-left: 0 !important;
}

@media (max-width: 768px) {
  .sidebar .mobile-nav {
    display: flex;
  }
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Blog posts list in journal sidebar - styled like categories */
.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.blog-post-item {
  font-family: 'Arqiring Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.blog-post-link {
  color: #1a1a1a;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 2px 4px;
  margin: -2px -4px;
}

.blog-post-link:hover {
  background-color: #ff6a00;
  font-weight: 500;
  color: #ffffff;
}

/* Project letters list - horizontal layout */
.project-letters-list {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-letter-item {
  font-family: 'Arqiring Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 500;
}

.project-letter-link {
  color: #1a1a1a;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 2px 4px;
  margin: -2px -4px;
}

.project-letter-link:hover {
  background-color: #000000;
  font-weight: 600;
  color: #ffffff;
}

/* Unavailable project letters */
.project-letter-unavailable {
  font-family: 'Arqiring Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 500;
  color: #cccccc;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Ring page project letters */
.ring-page .project-letter-link {
  color: #ffffff;
}

.ring-page .project-letter-link:hover {
  background-color: #81ff2e;
  color: #000000;
}

.ring-page .project-letter-unavailable {
  color: #666666;
  opacity: 0.5;
}

/* Journal cards grid */
.journal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  margin: 40px;
  border-top: 1px dashed rgba(0, 0, 0, 0.3);
  border-left: 1px dashed rgba(0, 0, 0, 0.3);
  border-radius: 0;
}

.ring-page .journal-cards-grid {
  border-top-color: rgba(255, 255, 255, 0.3);
  border-left-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .journal-cards-grid {
    margin: 0;
  }
}

.journal-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #ffffff;
  border-top: 1px dashed rgba(0, 0, 0, 0.3);
  border-right: 1px dashed rgba(0, 0, 0, 0.3);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #1a1a1a;
  transition: all 0.2s ease;
  cursor: pointer;
}

.journal-card:hover {
  background: #f9f9f9;
  border-top-color: #ff6a00;
  border-right-color: #ff6a00;
  border-bottom-color: #ff6a00;
  transform: translateY(-2px);
}

.journal-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  font-family: 'Arqiring Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: #1a1a1a;
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.6);
  border-radius: 0;
}

.ring-page .journal-card-badge {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.journal-card:hover .journal-card-badge {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.ring-page .journal-card:hover .journal-card-badge {
  background: #81ff2e;
  color: #000000;
  border-color: #81ff2e;
}

.journal-card h3 {
  font-family: 'Arqiring Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  color: #1a1a1a;
}

.journal-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  flex-grow: 1;
}

/* Ring page journal cards */
.ring-page .journal-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ring-page .journal-card:hover {
  background: #2a2a2a;
  border-color: #81ff2e;
}

.ring-page .journal-card h3 {
  color: #ffffff;
}

.ring-page .journal-card p {
  color: #ccc;
}

/* Category items in projects sidebar */
.category-item {
  font-family: 'Arqiring Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  color: #1a1a1a;
  cursor: pointer;
  transition: color 0.2s;
}

.category-item:hover {
  color: #ff6a00;
}

.categories-label {
  font-family: 'Arqiring Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
}

.categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-link {
  font-family: 'Arqiring Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 2px 4px;
  margin: -2px -4px;
}

.category-link:hover {
  background-color: #ff6a00;
  font-weight: 500;
}

.category-link.active {
  color: #1a1a1a;
  font-weight: 600;
}

/* ─── RIGHT MAIN CONTENT ────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 36px 40px;
}

/* Pages with projects grid: prevent main content scroll */
body:not(.studio-page):not(.contact-page):not(.journal-page):not(.lab-page):not(.project-page) .main-content {
  overflow: hidden;
}

/* Ring contact page: allow scrolling */
.ring-page.contact-page .main-content {
  overflow-y: auto;
}

/* Studio page: let boxes touch the grid edges */
.studio-page .main-content {
  padding: 36px 0;
}

.studio-page .values-grid,
.studio-page .studio-team-grid {
  padding: 0;
}

/* Journal page: edge-to-edge sections */
.journal-page .main-content {
  padding: 36px 0;
}

.journal-page .studio-section {
  padding: 40px;
  border: none;
}

.journal-page .studio-description {
  padding: 0 40px;
  margin-bottom: 48px;
  max-width: none;
}

/* Contact page: edge-to-edge sections */
.contact-page .main-content {
  padding: 0 0 36px 0;
}

.contact-page .studio-section {
  padding: 40px;
  border-top: none;
}

.contact-page .studio-description {
  padding: 0 40px;
  margin-bottom: 48px;
  max-width: 800px;
}

/* Contact page: vertical layout for coordinates */
.contact-page .projects-grid {
  grid-template-columns: 1fr;
  max-width: 400px;
}

/* Contact page: 66% width on desktop */
.contact-page .studio-section {
  max-width: none;
}

.contact-page .studio-description {
  max-width: 66%;
}

/* Project pages: full-width separators, constrained inner content */
.project-page .main-content {
  padding: 36px 0;
}

.project-page .studio-description {
  padding: 0 40px;
  margin-bottom: 48px;
  max-width: 800px;
}

.project-page .studio-section {
  width: 100%;
  padding: 40px;
}

.project-page .studio-section > * {
  max-width: 66%;
}

@media (max-width: 768px) {
  .contact-page .studio-section,
  .contact-page .studio-description {
    max-width: 100%;
  }
  
  .project-page .main-content {
    padding: 24px 16px !important;
  }

  .project-page .studio-section {
    width: 100%;
    padding: 24px 0 !important;
  }

  .project-page .studio-section > * {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Contact map styling — B&W with red ARQI pin overlay */
.contact-map {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.contact-map iframe {
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  filter: grayscale(1);
}

/* Ring pages: keep B&W, but slightly darker */
.ring-page .contact-map iframe {
  filter: grayscale(1) brightness(0.9);
}

/* Red pin overlay marking ARQI Studio location */
.contact-map::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 26px;
  transform: translate(-50%, -100%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'><path fill='%23ea4335' stroke='%23b31412' stroke-width='0.8' d='M12 0C5.4 0 0 5.4 0 12c0 9 12 24 12 24s12-15 12-24C24 5.4 18.6 0 12 0z'/><circle cx='12' cy='12' r='4.5' fill='%23ffffff'/></svg>") no-repeat center / contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

/* Ring page overrides - ensure dark background and white text */
.ring-page.contact-page .main-content {
  background: #000000 !important;
  color: #ffffff !important;
}

.ring-page.contact-page .studio-description {
  color: #ffffff !important;
}

.ring-page.contact-page .studio-section {
  border-top: none !important;
  color: #ffffff !important;
}

.ring-page.contact-page .section-title {
  color: #ffffff !important;
}

.ring-page.contact-page .project-category {
  color: #999 !important;
}

.ring-page.contact-page .project-name {
  color: #ffffff !important;
}

.ring-page.contact-page .project-location {
  color: #999 !important;
}

.ring-page.contact-page .category-link {
  color: #ffffff !important;
}

.ring-page.contact-page .category-link:hover {
  background-color: #81ff2e !important;
  color: #000000 !important;
}

/* ─── RIGHT SEPARATOR ─────────────────────────────────────────── */
.right-separator {
  width: 45px;
  height: 100%;
  position: sticky;
  top: 0;
  right: 0;
  flex-shrink: 0;
  border-left: none;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.3s ease;
  padding-right: 1px;
}

/* ARQI pages: black background for right separator (indicates going to ring) */
body:not(.ring-page) .right-separator {
  background: #000000;
  border-left: 1px dashed rgba(0, 0, 0, 0.5);
}

/* Ring pages: white background for right separator (indicates going to ARQI) */
.ring-page .right-separator {
  background: #ffffff;
  border-left: 1px dashed rgba(255, 255, 255, 0.5);
}

.ring-page .right-separator-logo {
  filter: none;
  transform: none;
}

.ring-page .right-separator-text {
  color: #1a1a1a;
}

.right-separator:hover {
  width: 121px;
}

/* Right separator hover pushes content left */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 36px 40px;
  box-sizing: border-box;
  transition: padding-right 0.3s ease;
}

body.project-detail-active .main-content,
body.project-detail-active.right-separator-hover .main-content {
  padding-right: 40px;
}

body.right-separator-hover .main-content {
  padding-right: calc(40px + 76px);
}

.project-hero {
  min-height: 40vh;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-image 0.8s ease, width 0.3s ease;
  position: relative;
  width: 100%;
  margin: 0;
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
}




/* ARQI pages: rotated and inverted logo */
body:not(.ring-page) .right-separator-logo {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
  filter: brightness(0) invert(1);
}

.right-separator-logo {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* ARQI pages: rotate on hover */
body:not(.ring-page) .right-separator:hover .right-separator-logo {
  transform: rotate(180deg) scale(2);
  width: 27px;
  height: 27px;
}

/* Ring pages: scale only on hover, no rotation */
.ring-page .right-separator:hover .right-separator-logo {
  transform: scale(2);
  width: 27px;
  height: 27px;
}

.right-separator-text {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 0 4px;
  color: white;
  font-family: 'Arqiring Mono', monospace;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, font-size 0.3s ease;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.right-separator:hover .right-separator-text {
  opacity: 1;
  font-size: 13px;
}

.studio-description {
  margin-bottom: 48px;
  max-width: 800px;
}

.studio-page .studio-description {
  padding: 0 40px;
  max-width: none;
}

.journal-page .studio-description {
  padding: 0 40px;
  margin-bottom: 48px;
  max-width: none;
}

.studio-description p {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 26px;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.studio-description p:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 28px;
}

/* ─── PROJECT GRID ──────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
}

/* ─── STUDIO PAGE ──────────────────────────────────────────── */
.studio-section {
  padding: 40px;
}

.studio-section h3 {
  font-family: 'Arqiring Mono', monospace;
  font-size: 18px;
  margin-bottom: 12px;
}

.studio-section p,
.studio-section ul {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
}

.studio-section ul {
  padding-left: 18px;
  display: grid;
  gap: 10px;
  list-style: disc;
}

.studio-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 16px;
  width: 100%;

}

.values-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
}

.ring-page .values-grid {
  flex-direction: row;
}

@media (max-width: 768px) {
  .values-grid {
    flex-direction: column;
  }
}

.value-item {
  border: none;
  padding: 16px 0 16px 0;
  background: #ffffff;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-item.visible {
  opacity: 1;
  transform: translateY(0);
  background: transparent;
}

.value-title {
  font-family: 'Arqiring Mono', monospace;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.value-text {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a1a;
}

.team-card {
  background: #ffffff;
  border: none;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 24px 0;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  z-index: 1;
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  transform: translateY(-6px);
  transform-origin: bottom;
}

.ring-page .team-card {
  background: transparent;
  border: none;
  color: #ffffff;
}

.ring-page .team-role {
  color: #999;
}

.ring-page {
  color: #ffffff;
}

.ring-page p,
.ring-page li,
.ring-page ul,
.ring-page strong,
.ring-page em,
.ring-page span,
.ring-page div,
.ring-page h1,
.ring-page h2,
.ring-page h3,
.ring-page h4,
.ring-page h5,
.ring-page h6,
.ring-page .project-name,
.ring-page .value-text,
.ring-page .value-title,
.ring-page .studio-description,
.ring-page .team-name,
.ring-page .team-role {
  color: #ffffff;
}

.ring-page .value-text {
  color: #cccccc;
}

.ring-page .team-photo {
  border-bottom: none;
}

.ring-page .team-card.visible {
  border: none;
}

.ring-page .value-item.visible {
  border: none;
}

.team-photo {
  width: 100%;
  height: clamp(120px, 18vw, 240px);
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  margin-bottom: 16px;
  border-bottom: none;
  padding-bottom: 15px;
}

/* Mobile: first card full-width, rest in 2 columns; portrait photos, no height crop */
@media (max-width: 768px) {
  .studio-team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .studio-team-grid .team-card:first-child {
    grid-column: 1 / -1;
  }

  .team-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
  }

  .studio-team-grid .team-card:first-child .team-photo {
    aspect-ratio: 1 / 1;
    object-position: center;
  }
}

.team-card .team-name {
  position: relative;
  padding-top: 0;
  margin-top: 0;
}

.team-name {
  font-family: 'Arqiring Mono', monospace;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
}

.team-role {
  font-size: 13px;
  color: #555;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.project-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-category {
  font-family: 'Arqiring Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #aaa;
}

.project-name {
  font-family: 'Arqiring Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
}

.member-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
  margin-top: 8px;
  font-weight: 400;
  font-family: inherit;
}

/* ─── PROJECT DETAIL VIEW ───────────────────────────────────── */
.project-detail {
  background: #000000 !important;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.project-hero {
  min-height: 40vh;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-image 0.8s ease;
  position: relative;
  width: 100%;
  margin: 0 -40px 0 0;
  background-size: cover !important;
  background-position: center !important;
}


.studio-description {
  position: relative;
  z-index: 120;
  text-align: left;
  max-width: 800px;
  pointer-events: auto;
}

.hero-content {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.4s;
  position: relative;
  z-index: 130;
  pointer-events: auto;
}

.hero-content.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-text {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 15px;
  color: #ffffff !important;
}

.hero-description {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 600px;
  margin: 0 auto;
}

.project-header {
  padding: 32px 0;
  background: #000000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.3s;
  margin: 0;
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.project-detail-title {
  color: #ffffff !important;
}

.project-detail-category,
.project-detail-program {
  color: rgba(255, 255, 255, 0.8) !important;
}


.project-header.show {
  opacity: 1;
  transform: translateY(0);
}

.project-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.3s;
  flex: 1;
  overflow-y: auto;
  padding: 24px 0 40px;
}

.project-detail .studio-section {
  padding: 32px 0;
  margin: 0;
}

.project-content.show {
  opacity: 1;
  transform: translateY(0);
}

.project-detail-header {
  margin-bottom: 40px;
}

.project-detail-title {
  font-family: 'Arqiring Mono', monospace;
  font-size: 48px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.project-detail-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.project-detail-category {
  font-family: 'Arqiring Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.project-detail-program {
  font-family: 'Arqiring Mono', monospace;
  font-size: 14px;
  color: #999;
}

.project-detail-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-detail-photo {
  width: 100%;
  height: 400px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.photo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arqiring Mono', monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.project-detail-text {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  max-width: 800px;
}

.back-button {
  font-family: 'Arqiring Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.back-button:hover {
  color: #ff6a00;
}

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #888888;
  min-height: 10px;
  border: 1px solid #000000;
  border-radius: 0;
}

/* ─── MOBILE RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  
  /* Header adjustments */
  .site-header {
    padding: 0 20px;
  }

  .header-logo {
    padding-left: 0;
    margin-left: 0;
    min-width: 0;
    flex: 1;
  }

  .header-text {
    min-width: max-content;
    overflow: visible;
    text-overflow: unset;
  }

 /* Header navigation - hide on mobile */
  .header-nav {
    display: none;
  }

  /* Hide sidebar by default on mobile, show when opened */
  .sidebar {
    display: none !important;
  }

  .sidebar.mobile-open {
    display: flex !important;
  }

  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 120;
    margin-left: auto;
    flex-shrink: 0;
  }

  .ring-page .mobile-menu-toggle {
    display: flex !important;
  }

  /* Body wrapper - full width on mobile */
  .body-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 42px);
    height: auto;
    overflow: visible;
    padding-bottom: 42px;
  }

  /* Allow page to scroll on mobile */
  html, body {
    overflow: auto;
    height: auto;
  }

  .main-content {
    flex: 1;
    height: auto;
    min-height: auto;
    padding: 24px 16px !important;
  }

  /* Force 16px padding on studio/journal pages too */
  .studio-page .main-content,
  .journal-page .main-content {
    padding: 24px 16px !important;
  }

  /* Inner sections: no horizontal padding on mobile */
  .main-content > .studio-description,
  .main-content > .studio-section,
  .main-content > .section-title,
  .main-content > .projects-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Sidebar becomes slide-in menu from right */
  .sidebar {
    position: fixed;
    top: 42px;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: calc(100vh - 42px);
    background: #ffffff;
    border-left: none;
    border-right: none;
    transform: translateX(100%);
    z-index: 90;
    overflow-y: auto;
    padding: 24px 20px;
  }

  .ring-page .sidebar {
    background: #000000;
    border-left: none;
    border-right: 1px dashed rgba(255, 255, 255, 0.5);
  }

  .ring-page.lab-page .sidebar {
    border-left: none;
    border-right: 1px dashed rgba(255, 255, 255, 0.5);
  }

  
  .sidebar .mobile-nav a {
    display: block;
    padding: 2px 4px;
    margin: 10px 0;
    font-family: 'Arqiring Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
  }

  .ring-page .sidebar .mobile-nav a {
    color: #ffffff;
  }

  .sidebar .mobile-nav a:hover {
    background-color: #ff6a00;
    font-weight: 500;
  }

  .ring-page .sidebar .mobile-nav a:hover {
    background-color: #81ff2e;
    color: #000000;
  }

  
  /* Show mobile navigation only when sidebar is open */
  .sidebar.mobile-open .mobile-nav {
    display: block !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    animation: mobileSlideFromRight 0.3 ease-out;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Main content takes full width */
  .main-content {
    width: 100%;
    padding: 24px 16px;
  }

  /* Right separator becomes a bottom horizontal bar on mobile */
  .right-separator {
    display: flex;
    position: fixed;
    left: 0;
    width: 100%;
    height: 42px;
    top: auto;
    right: auto;
    bottom: 0;
    margin: 0;
    flex-shrink: 0;
    border-left: none;
    border-top: 1px dashed rgba(0, 0, 0, 0.5);
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 95;
  }

  body:not(.ring-page) .right-separator {
    background: #000000;
    border-top: 1px dashed rgba(0, 0, 0, 0.5);
  }

  .ring-page .right-separator {
    background: #ffffff;
    border-top: 1px dashed rgba(0, 0, 0, 0.5);
  }

  .right-separator:hover {
    width: 100%;
  }

  .right-separator-text {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    opacity: 1;
    font-size: 13px;
    font-family: 'Arqiring Mono', monospace;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    margin-left: 0;
    text-align: center;
  }

  body:not(.ring-page) .right-separator-text {
    color: #ffffff;
  }

  .ring-page .right-separator-text {
    color: #1a1a1a;
  }

  .right-separator:hover .right-separator-text {
    font-size: 11px;
  }

  body:not(.ring-page) .right-separator-logo,
  body:not(.ring-page) .right-separator:hover .right-separator-logo,
  .ring-page .right-separator:hover .right-separator-logo {
    transform: none;
    width: 22px;
    height: 22px;
  }

  .right-separator .header-logo {
    flex: 0 0 auto;
    display: block;
    min-width: auto;
    margin: 0;
    padding: 0;
  }

  /* Hide header separator lines on mobile */
  .site-header::before,
  .site-header::after {
    display: none;
  }

  /* Single column grid on mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Adjust project card aspect ratio for mobile */
  .project-img {
    aspect-ratio: 3 / 2;
  }

  /* Smaller description text on mobile */
  .studio-description p {
    font-size: 26px;
    letter-spacing: normal;
  }
}

/* Contact Form Styles */
.contact-form-container {
  max-width: 600px;
  margin: 40px 0;
  padding: 40px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: inherit;
}

.form-group input,
.form-group textarea {
  font-family: 'Arqiring SS', sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px dashed rgba(0, 0, 0, 0.6);
  background: transparent;
  color: inherit;
  resize: vertical;
}

.ring-page .form-group input,
.ring-page .form-group textarea {
  border-color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.6);
}

.ring-page .form-group input:focus,
.ring-page .form-group textarea:focus {
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.submit-btn {
  font-family: 'Arqiring Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px dashed rgba(0, 0, 0, 0.6);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ring-page .submit-btn {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.submit-btn:hover {
  background-color: #ff6a00;
  border-color: #ff6a00;
}

.ring-page .submit-btn:hover {
  background-color: #81ff2e;
  color: #000000;
  border-color: #81ff2e;
}

/* Form Error Styles */
.form-group.error input,
.form-group.error textarea {
  border-color: #ff6a00 !important;
}

/* Gallery Styles */
.gallery-container {
  margin: 20px 0;
  height: 340px;
}

.gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  min-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-item .project-detail-photo {
  flex: 1;
  margin-bottom: 10px;
}

.gallery-item p {
  margin: 0;
  font-size: 16px;
  color: #666;
}

.separator-line {
  width: 100%;
  height: 1px;
  border-top: var(--dash-light);
  background: none;
}

.ring-page .separator-line {
  border-top: var(--dash-dark);
}

/* Landscape orientation for phones */
@media (max-width: 768px) and (orientation: landscape) {
  .sidebar {
    padding: 16px 20px !important;
  }
  
  .sidebar-top {
    gap: 12px !important;
  }
  
  .sidebar-title {
    font-size: 24px !important;
  }
  
  .mobile-nav {
    margin-bottom: 12px !important;
  }
  
  .sidebar-bottom {
    gap: 8px !important;
  }
  
  .categories-label {
    font-size: 11px !important;
  }
  
  .category-link {
    font-size: 11px !important;
  }
}
