/* ==========================================
   Sub-page Shared Styling - Noah Gunther Portfolio
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --hover-color: #91bfff;
  --bg-color: #12161a;
  --panel-bg: #0a0e12;
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Base link styling */
a {
  color: var(--hover-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================
   HEADER NAVIGATION (Matches Main Site)
   ========================================== */

.subpage-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 clamp(16px, 1.8vw, 40px);
  background: linear-gradient(
    to bottom,
    var(--bg-color) 0%,
    rgba(18, 22, 26, 0.98) 42%,
    rgba(18, 22, 26, 0.85) 65%,
    rgba(18, 22, 26, 0.4) 85%,
    transparent 100%
  );
}

/* Main nav logo button */
.logolink {
  position: relative;
  margin-top: clamp(14px, 1.8vh, 32px);
  width: clamp(60px, 30px + 2.8vw, 98px);
  height: clamp(60px, 30px + 2.8vw, 98px);
  z-index: 106;
  user-select: none;
  cursor: pointer;
  pointer-events: auto;
  display: block;
}

.logo-tint-mask {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  -webkit-mask-image: url('../graphics/thumbnail_ng_logo.webp');
  mask-image: url('../graphics/thumbnail_ng_logo.webp');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s ease;
}

.logolink:hover .logo-tint-mask {
  background-color: var(--hover-color);
}

/* Desktop Main Navigation Links */
#mainnavlinks {
  position: relative;
  margin-top: clamp(18px, 2.2vh, 42px);
  display: flex;
  gap: clamp(8px, 1.1vw, 24px);
  pointer-events: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.link {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(15px, 1.1vw, 22px);
  font-weight: 400;
  color: rgb(255, 255, 255);
  border: clamp(1.5px, 0.15vw, 2px) dashed transparent;
  padding: 0.15em 0.45em;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

/* Hover on main links only fades color - no dashed border on hover */
.link:hover {
  color: var(--hover-color);
  text-decoration: none;
  border-color: transparent;
}

/* Dashed border appears ONLY to indicate the current page / active tab */
.link.is-active,
.link.is-panel-open {
  border-color: var(--hover-color) !important;
  color: #ffffff !important;
}

/* 3D Site Button - Exactly matches 3D site's #plaintext-link */
#plaintext-toggle-link {
  position: fixed;
  left: clamp(16px, 1.8vw, 42px);
  bottom: clamp(16px, 1.8vw, 42px);
  width: clamp(44px, 24px + 1.8vw, 84px);
  aspect-ratio: 0.72;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(4px, 0.4vw, 7px);
  z-index: 90;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.90);
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(9.5px, 0.55vw, 13px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#plaintext-toggle-link:hover {
  color: var(--hover-color);
  border-color: var(--hover-color);
  text-decoration: none;
}

/* Hide 3D button in portrait layout */
@media (orientation: portrait) {
  #plaintext-toggle-link {
    display: none !important;
  }
}

/* Desktop LinkedIn Link */
#linkedin-desktop-wrapper {
  position: fixed;
  bottom: clamp(16px, 1.8vw, 42px);
  right: clamp(16px, 1.8vw, 42px);
  z-index: 90;
  pointer-events: auto;
}

#linkedin-desktop {
  display: block;
  width: clamp(32px, 2.1vw, 42px);
  height: clamp(32px, 2.1vw, 42px);
  border: none;
  padding: 0;
  text-decoration: none;
}

#linkedin-desktop-icon {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  -webkit-mask-image: url('../graphics/li_logo_white.webp');
  mask-image: url('../graphics/li_logo_white.webp');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s ease;
}

#linkedin-desktop:hover #linkedin-desktop-icon {
  background-color: var(--hover-color);
}

/* ==========================================
   MOBILE NAVIGATION MENU (Hamburger)
   ========================================== */

#mobilenavlinksbutton {
  position: fixed;
  top: calc(clamp(16px, 2.5vh, 20px) + 6px);
  right: clamp(20px, 3.5vw, 32px);
  width: 35px;
  height: 35px;
  z-index: 128 !important;
  cursor: pointer;
  display: none;
  pointer-events: auto;
}

#mobilenavlinksbuttontop,
#mobilenavlinksbuttonmiddle,
#mobilenavlinksbuttonbottom {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2.5px;
  background: #FFFFFF;
  border-radius: 1px;
}

#mobilenavlinksbuttontop { top: 24%; }
#mobilenavlinksbuttonmiddle { top: 47%; }
#mobilenavlinksbuttonbottom { top: 70%; }

/* Animations for mobile nav button (Matches Main Site) */

@keyframes mobileNavButtonTopIn {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  100% {
    transform: translate(0px, 8px) rotate(45deg);
  }
}

@keyframes mobileNavButtonMiddleIn {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(-45deg);
  }
}

@keyframes mobileNavButtonBottomIn {
  0% {
    opacity: 100%;
  }
  100% {
    opacity: 0%;
  }
}

@keyframes mobileNavButtonTopOut {
  0% {
    transform: translate(0px, 8px) rotate(45deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}

@keyframes mobileNavButtonMiddleOut {
  0% {
    transform: translate(0px, 0px) rotate(-45deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}

@keyframes mobileNavButtonBottomOut {
  0% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

/* Mobile Menu Overlay */
#mobilenavmenu {
  position: fixed;
  inset: 0;
  z-index: 120 !important;
  user-select: none;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobilenavmenu.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#mobilenavbackgroundblur {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#mobilenavlinks {
  position: relative;
  z-index: 122;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobilemenuwrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobilelinkwrapper {
  position: relative;
}

.mobilelink {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: rgb(255, 255, 255);
  border: clamp(1.5px, 0.15vw, 2px) dashed transparent;
  padding: 6px 16px;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.mobilelink:hover {
  color: var(--hover-color);
  border-color: transparent;
}

.mobilelink.is-active {
  color: #ffffff;
  border-color: var(--hover-color);
}

#linkedin-mobile-wrapper {
  margin-top: 30px;
}

#linkedin-mobile {
  display: block;
  width: 38px;
  height: 38px;
}

#linkedin-mobile-icon {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  -webkit-mask-image: url('../graphics/li_logo_white.webp');
  mask-image: url('../graphics/li_logo_white.webp');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ==========================================
   PAGE CONTENT CONTAINER & TYPOGRAPHY
   ========================================== */

.subpage-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(130px, 15vh, 145px) 24px 80px 24px;
  position: relative;
  z-index: 1;
}

.subpage-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--panel-border);
}

.subpage-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.subpage-subtitle {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.subpage-content {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.subpage-content h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  color: #ffffff;
  margin: 40px 0 16px 0;
}

.subpage-content h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: #ffffff;
  margin: 32px 0 12px 0;
}

.subpage-content p {
  margin: 0 0 20px 0;
}

.subpage-content hr {
  border: none;
  height: 1px;
  background: var(--panel-border);
  margin: 40px 0;
}

/* Media styling inside content - No drop shadows */
.subpage-content video,
.subpage-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 20px 0;
  box-shadow: none !important;
}

/* ==========================================
   PROJECT LIST (Single Column Layout)
   ========================================== */

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
  width: 100%;
}

.project-card {
  background: rgba(10, 14, 18, 0.6);
  border: none;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none !important;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border: 1px solid var(--hover-color);
  transform: none !important;
  box-shadow: none !important;
}

.project-card-image-wrapper {
  position: relative;
  width: 220px;
  min-width: 220px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11161d;
  flex-shrink: 0;
}

.project-card-image-wrapper.square {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 1 / 1;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 0 0 4px;
  box-shadow: none !important;
}

.project-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.project-card:hover .project-card-title {
  color: var(--hover-color);
}

.project-card-desc {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================
   VIDEO CAROUSEL & SPECIAL WRAPPERS
   ========================================== */

.videocontainer {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 24px auto;
  border-radius: 6px;
  overflow: hidden;
  background: #000000;
  box-shadow: none !important;
}

/* Side-by-side comparison images */
.side-by-side-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.side-by-side-grid figure {
  margin: 0;
}

.side-by-side-grid figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Footer Copyright */
.subpage-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================
   WIDE PROJECT BANNERS (About Page Banner Style)
   ========================================== */

.project-banners-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.project-banner {
  position: relative;
  width: 100%;
  height: clamp(180px, 24vh, 260px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #0a0e12;
  border-radius: 6px;
  overflow: hidden;
  border: none;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.project-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  transition: background 0.25s ease;
  z-index: 1;
}

.project-banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.project-banner:hover {
  border: 1px solid var(--hover-color);
  box-shadow: none !important;
  transform: none !important;
}

.project-banner:hover::before {
  background: rgba(0, 0, 0, 0.42);
}

.project-banner__title {
  position: relative;
  z-index: 2;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  transition: color 0.25s ease;
}

.project-banner:hover .project-banner__title {
  color: var(--hover-color);
}

.project-banner__desc {
  position: relative;
  z-index: 2;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.90);
  margin: 0;
  max-width: 88%;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.project-banner__actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Global Action Buttons (matches documentation top buttons) */
.action-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(10, 14, 18, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none !important;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.action-btn:hover {
  border-color: var(--hover-color) !important;
  color: #ffffff !important;
  background: rgba(145, 191, 255, 0.12) !important;
}

.action-btn-primary {
  background: rgba(145, 191, 255, 0.15);
  border-color: var(--hover-color);
  color: #ffffff !important;
}

.action-btn-primary:hover {
  background: rgba(145, 191, 255, 0.28) !important;
}

/* ==========================================
   COLUMN LAYOUT FOR AR PAGE
   ========================================== */

.project-banners-list--columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
}

.project-banner--portrait {
  height: auto;
  aspect-ratio: 9 / 16;
  width: 100%;
  padding: 32px 20px;
}

/* ==========================================
   AR SHOWCASE & CAROUSEL (AR Sub-pages)
   ========================================== */

.subpage-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.subpage-back-link:hover {
  color: var(--hover-color);
  transform: translateX(-3px);
  text-decoration: none;
}

.ar-showcase {
  display: grid;
  grid-template-areas:
    "prev body next"
    ".    dots .";
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  column-gap: clamp(16px, 2.5vw, 40px);
  row-gap: 36px;
  width: 100%;
  margin-bottom: 48px;
}

.ar-nav-btn--prev {
  grid-area: prev;
  justify-self: end;
}

.ar-nav-btn--next {
  grid-area: next;
  justify-self: start;
}

.ar-showcase__body {
  grid-area: body;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
}

.ar-showcase__media {
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 340px);
  aspect-ratio: 9 / 16;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ar-showcase__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ar-showcase__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ar-showcase__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ar-showcase__spinner.is-active {
  opacity: 1;
  visibility: visible;
}

.ar-spinner-circle {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--hover-color, #ffae21);
  border-radius: 50%;
  animation: arSpinnerRotate 0.8s linear infinite;
}

@keyframes arSpinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ar-showcase__content {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.ar-icon {
  width: clamp(56px, 5.5vw, 68px);
  height: clamp(56px, 5.5vw, 68px);
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  display: block;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.ar-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.ar-description {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  transition: opacity 0.2s ease;
}

.ar-nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  box-shadow: none !important;
  filter: none !important;
  padding: 0;
  user-select: none;
  flex-shrink: 0;
}

.ar-nav-btn:hover {
  color: var(--hover-color);
  transform: scale(1.15);
  box-shadow: none !important;
  filter: none !important;
  background: transparent;
  border: none;
}

.ar-nav-btn:active {
  transform: scale(0.95);
}

.ar-nav-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.ar-nav-arrow--left {
  transform: rotate(-135deg);
  margin-right: -4px;
}

.ar-nav-arrow--right {
  transform: rotate(45deg);
  margin-left: -4px;
}

.ar-dots-container {
  grid-area: dots;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  max-width: 320px;
}

.ar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  padding: 0;
}

.ar-dot:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: scale(1.2);
}

.ar-dot.is-active {
  background: var(--hover-color);
  transform: scale(1.3);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (Portrait / Mobile)
   ========================================== */

@media (max-width: 768px) {
  #mainnavlinks {
    display: none !important;
  }

  #linkedin-desktop-wrapper {
    display: none !important;
  }

  .subpage-header-nav {
    padding: 0;
    height: 105px;
  }

  .logolink {
    margin-top: clamp(14px, 2.2vh, 20px);
    margin-left: clamp(14px, 3vw, 20px);
    width: clamp(48px, 12vw, 60px);
    height: clamp(48px, 12vw, 60px);
  }

  #mobilenavlinksbutton {
    display: block !important;
    top: calc(clamp(14px, 2.2vh, 20px) + 6px);
    right: clamp(16px, 3.5vw, 24px);
  }

  .subpage-container {
    padding-top: clamp(88px, 12vh, 110px);
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
    padding-bottom: 80px;
    width: 100%;
    box-sizing: border-box;
  }

  .about-me-section > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }

  .about-me-section img {
    margin: 0 auto !important;
  }

  .about-me-section div[style*="min-width"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  .about-me-text {
    text-align: center !important;
  }

  .project-card {
    flex-direction: column;
    align-items: stretch;
  }

  .project-card-image-wrapper,
  .project-card-image-wrapper.square {
    width: 100%;
    min-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .project-card-image {
    border-radius: 4px 4px 0 0;
  }

  #plaintext-toggle-link {
    display: none !important;
  }

  .project-banners-list--columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-banner--portrait {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    height: auto;
  }

  .ar-showcase {
    grid-template-areas:
      "body body body"
      "prev dots next";
    grid-template-columns: auto 1fr auto;
    column-gap: 8px;
    row-gap: 28px;
    align-items: center;
    justify-items: center;
  }

  .ar-showcase__body {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .ar-icon {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
  }

  .ar-showcase__media {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .ar-showcase__content {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .ar-title {
    text-align: center;
  }

  .ar-description {
    text-align: center;
  }

  .ar-nav-btn {
    width: 36px;
    height: 36px;
  }

  .ar-nav-arrow {
    width: 11px;
    height: 11px;
    border-top: 2.2px solid currentColor;
    border-right: 2.2px solid currentColor;
  }

  .ar-nav-btn--prev {
    justify-self: end;
  }

  .ar-nav-btn--next {
    justify-self: start;
  }

  .ar-dots-container {
    justify-content: center;
    max-width: 240px;
  }
}

/* ==========================================
   HOUDINI & SUBPAGE MEDIA UTILITIES
   ========================================== */

/* Responsive Video Embeds (Vimeo / YouTube) */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  margin: 28px 0;
  background: #000000;
  border: 1px solid var(--panel-border);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 2-Column Media Grid */
.media-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

@media (max-width: 640px) {
  .media-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Semantic Figures and Captions */
.subpage-content figure {
  margin: 28px 0;
  text-align: center;
}

.subpage-content figure img,
.subpage-content figure video {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 4px;
}

.subpage-content figcaption {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
  max-width: 90%;
  margin: 10px auto 0 auto;
}

.subpage-content ol {
  padding-left: 24px;
  margin: 16px 0 24px 0;
}

.subpage-content ol li {
  margin-bottom: 10px;
  line-height: 1.65;
}

/* ==========================================
   TOKIMON SHOWCASE (MATCHES AR-SHOWCASE)
   ========================================== */

.ar-showcase--tokimon {
  margin: 36px auto 52px auto;
  max-width: 900px;
}

.ar-showcase--tokimon .ar-showcase__media {
  flex: 0 0 auto;
  width: clamp(240px, 28vw, 340px);
  aspect-ratio: 1331 / 1768 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  position: relative;
  box-shadow: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-showcase--tokimon .tokimon-card-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1331 / 1768 !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ar-showcase--tokimon .ar-showcase__content {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.ar-showcase--tokimon .ar-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 14px 0;
  line-height: 1.25;
  transition: opacity 0.2s ease;
}

.ar-showcase--tokimon .ar-description {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  transition: opacity 0.2s ease;
}

.ar-showcase--tokimon .ar-dots-container {
  max-width: 360px;
}

@media (max-width: 768px), (orientation: portrait) {
  .ar-showcase--tokimon .ar-showcase__media {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1331 / 1768 !important;
  }

  .ar-showcase--tokimon .ar-showcase__content {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .ar-showcase--tokimon .ar-title {
    text-align: center;
  }

  .ar-showcase--tokimon .ar-description {
    text-align: center;
  }
}


