/* ==========================================================================
   ARCHIVE — editorial projects showcase
   --------------------------------------------------------------------------
   Tone: luxury studio + cinematic editorial. Black, off-white, warm gold.
   Massive typography, asymmetric layout, image-dominant panels.
   Scoped to body.sk-archive only.
   ========================================================================== */

body.sk-archive {
  --ar-bg: #060606;
  --ar-bg-soft: #0c0c0e;
  --ar-text: #f0efe8;
  --ar-text-muted: rgba(240, 239, 232, 0.65);
  --ar-text-faint: rgba(240, 239, 232, 0.35);
  --ar-gold: #c9a84c;
  --ar-gold-warm: #d4b563;
  --ar-gold-soft: rgba(201, 168, 76, 0.35);
  --ar-gold-faint: rgba(201, 168, 76, 0.08);
  --ar-line: rgba(255, 255, 255, 0.04);
  --ar-line-strong: rgba(255, 255, 255, 0.08);
  --ar-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Deep charcoal background with soft gold-tinted atmosphere */
  background: 
    radial-gradient(circle at 15% 20%, rgba(201, 168, 76, 0.018) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(201, 168, 76, 0.022) 0%, transparent 60%),
    linear-gradient(180deg, #060606 0%, #0b0b0d 30%, #060606 60%, #09090b 100%) !important;
  color: var(--ar-text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.sk-archive .mil-wrapper,
body.sk-archive .mil-content,
body.sk-archive .mil-main-transition {
  background: transparent !important;
}

/* Frame chrome */
body.sk-archive .mil-frame { mix-blend-mode: normal !important; }
body.sk-archive .mil-frame .mil-logo,
body.sk-archive .mil-frame .mil-link { color: #ffffff !important; }
body.sk-archive .mil-frame .mil-menu-bar { background-color: #f0efe8 !important; }
body.sk-archive .mil-frame-bottom .mil-current-page { display: none !important; }
body.sk-archive .mil-back-to-top { margin-left: auto !important; margin-right: 0 !important; }
body.sk-archive .mil-progress-track { background-color: rgba(240, 239, 232, 0.06); }
body.sk-archive .mil-preloader { display: none !important; }

/* ─── Atmospheric ambient layer ─────────────────────────────────────────── */
/* While Swup is animating between pages, freeze archive's expensive
   ornaments so the transition stays smooth. They resume once the new
   page settles in. */
html.is-animating body.sk-archive .ar-glass-plane,
html.is-animating body.sk-archive .ar-wire-cube,
html.is-animating body.sk-archive .ar-cube-face,
html.is-animating body.sk-archive .ar-ambient-canvas,
html.is-animating body.sk-archive .ar-project__iframe,
html.is-animating body.sk-archive .ar-hero__marquee-track {
  animation-play-state: paused !important;
}
html.is-animating body.sk-archive .ar-project__iframe {
  visibility: hidden;
}

body.sk-archive .ar-ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}


body.sk-archive .mil-content {
  position: relative;
  z-index: 3;
}

/* ─── Layout helpers ────────────────-------------------------------------- */
.ar-shell {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  box-sizing: border-box;
}

@media screen and (min-width: 1201px) {
  .ar-shell {
    padding-left: max(56px, var(--sk-logo-clear, 200px));
    padding-right: 56px;
  }
}

.ar-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ar-gold-warm);
}
.ar-eyebrow::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--ar-gold-soft);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.ar-hero {
  position: relative;
  padding: clamp(8rem, 18vh, 13rem) 0 clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}

.ar-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.ar-hero__copy {
  position: relative;
  max-width: 38rem;
}

.ar-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 7.4vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 1.6rem 0 1.8rem;
  color: var(--ar-text);
  font-weight: 200;
}
.ar-hero__title .ar-thin   { font-weight: 200; display: block; }
.ar-hero__title .ar-bold   { font-weight: 700; display: block; font-style: normal; color: var(--ar-gold-warm); text-transform: uppercase; letter-spacing: -0.01em; }
.ar-hero__title .ar-italic { font-style: normal; font-weight: 300; }

.ar-hero__sub {
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ar-text-muted);
  margin: 0 0 2.6rem;
  font-weight: 300;
}

.ar-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2rem;
  border-top: 1px solid var(--ar-line);
  padding-top: 1.5rem;
  max-width: 26rem;
}
.ar-hero__meta-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ar-text-faint);
  font-weight: 300;
}
.ar-hero__meta-item strong {
  font-weight: 500;
  color: var(--ar-text);
  font-size: 11px;
  margin-bottom: 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Hero composition — 3D Glass & Wireframe Sculpture */
.ar-hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-glass-sculpture {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.ar-glass-plane {
  position: absolute;
  inset: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1.5px solid rgba(201, 168, 76, 0.18);
  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  pointer-events: none;
  /* Hint browsers to use a separate compositor layer instead of repainting */
  will-change: transform;
  transform: translateZ(0);
}

.ar-glass-plane--1 {
  transform: translate3d(0, 0, 40px) rotate(4deg);
  animation: floatGlass1 12s ease-in-out infinite alternate;
}

.ar-glass-plane--2 {
  transform: translate3d(0, 0, -40px) rotate(-8deg);
  background: rgba(201, 168, 76, 0.020);
  border-color: rgba(255, 255, 255, 0.06);
  animation: floatGlass2 16s ease-in-out infinite alternate;
}

.ar-wire-cube {
  position: absolute;
  width: 110px;
  height: 110px;
  left: calc(50% - 55px);
  top: calc(50% - 55px);
  transform-style: preserve-3d;
  animation: rotateCube 60s linear infinite;
  pointer-events: none;
  will-change: transform;
}

.ar-cube-face {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 0.75px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.01);
  box-shadow: inset 0 0 15px rgba(201, 168, 76, 0.04);
}

.ar-cube-face--front  { transform: rotateY(0deg) translateZ(55px); }
.ar-cube-face--back   { transform: rotateY(180deg) translateZ(55px); }
.ar-cube-face--left   { transform: rotateY(-90deg) translateZ(55px); border-color: rgba(201, 168, 76, 0.2); }
.ar-cube-face--right  { transform: rotateY(90deg) translateZ(55px); border-color: rgba(201, 168, 76, 0.2); }
.ar-cube-face--top    { transform: rotateX(90deg) translateZ(55px); }
.ar-cube-face--bottom { transform: rotateX(-90deg) translateZ(55px); }

@keyframes floatGlass1 {
  0%   { transform: translate3d(0, -8px, 35px) rotate(2deg); }
  100% { transform: translate3d(0, 8px, 45px) rotate(6deg); }
}

@keyframes floatGlass2 {
  0%   { transform: translate3d(0, 8px, -45px) rotate(-10deg); }
  100% { transform: translate3d(0, -8px, -35px) rotate(-6deg); }
}

@keyframes rotateCube {
  0%   { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Marquee */
.ar-hero__marquee {
  margin-top: clamp(3rem, 7vh, 5rem);
  border-top: 1px solid var(--ar-line);
  border-bottom: 1px solid var(--ar-line);
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
  z-index: 2;
}
.ar-hero__marquee-track {
  display: flex;
  gap: 5rem;
  white-space: nowrap;
  animation: ar-marquee 48s linear infinite;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ar-text-muted);
  font-weight: 300;
}
.ar-hero__marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}
.ar-hero__marquee-track span::after {
  content: "—";
  color: var(--ar-gold);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 300;
}
@keyframes ar-marquee {
  to { transform: translateX(-50%); }
}

/* ─── Filters ───────────────────────────────────────────────────────────── */
.ar-filters {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 9vh, 6rem) 0 0;
}
.ar-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5rem 2.6rem;
}
.ar-filters__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  margin: 0 auto 0 0;
  font-style: italic;
  color: var(--ar-text);
}
.ar-filters__title em {
  color: var(--ar-gold-warm);
  font-style: italic;
  font-weight: 400;
}
.ar-filter {
  position: relative;
  background: transparent;
  color: var(--ar-text-muted);
  border: none;
  padding: 0.4rem 0;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.4s var(--ar-ease);
  font-weight: 500;
}
.ar-filter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--ar-gold);
  transition: width 0.4s var(--ar-ease);
}
.ar-filter:hover { color: var(--ar-text); }
.ar-filter:hover::after { width: 100%; }
.ar-filter.is-active {
  color: var(--ar-gold-warm);
}
.ar-filter.is-active::after { width: 100%; }
.ar-filter__count {
  margin-left: 0.45rem;
  opacity: 0.5;
  font-feature-settings: "tnum";
  font-size: 10px;
  vertical-align: super;
}

/* ─── Showcase wall — cinematic vertical showcase ───────────────────────── */
.ar-showcase {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(6rem, 16vh, 12rem);
}

/* Single oversized editorial label per region */
.ar-showcase__label {
  position: absolute;
  font-size: clamp(7rem, 14vw, 14rem);
  font-weight: 200;
  font-style: italic;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.014);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 0.9;
  z-index: 0;
}
.ar-showcase__label--01 { top: 6rem; left: -2rem; }
.ar-showcase__label--02 { top: 60%; right: -3rem; transform: translateY(-50%); }

.ar-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(8rem, 16vh, 13rem); /* cinematic vertical spacing */
  margin-top: clamp(4rem, 8vh, 6rem);
}

/* Asymmetric staggered placement */
.ar-panel {
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.5s var(--ar-ease),
              transform 0.5s var(--ar-ease);
  will-change: transform, opacity;
  display: block;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* Optional reveal animation: the panel starts hidden only if explicitly
   marked .is-pending-reveal (we'll add this via JS only when IO is supported). */
.ar-panel.is-pending-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
}
.ar-panel.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Atmosphere bloom behind current item */
.ar-panel::before {
  content: "";
  position: absolute;
  inset: -4rem -2rem;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.02) 0%, transparent 70%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ar-ease);
}
.ar-panel:hover::before {
  opacity: 1;
}

.ar-panel.is-dim {
  opacity: 0.4;
}
.ar-panel.is-hidden {
  display: none !important;
}

/* Project container grid */
.ar-project__container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Alternating directions - Dynamic left/right layouts with fallback to odd/even */
.ar-panel--layout-left .ar-project__preview,
.ar-panel:nth-of-type(odd) .ar-project__preview {
  grid-column: 1 / span 7;
  grid-row: 1;
}
.ar-panel--layout-left .ar-project__info,
.ar-panel:nth-of-type(odd) .ar-project__info {
  grid-column: 9 / span 4;
  grid-row: 1;
}

.ar-panel--layout-right .ar-project__preview,
.ar-panel:nth-of-type(even) .ar-project__preview {
  grid-column: 6 / span 7;
  grid-row: 1;
}
.ar-panel--layout-right .ar-project__info,
.ar-panel:nth-of-type(even) .ar-project__info {
  grid-column: 1 / span 4;
  grid-row: 1;
}

/* The visual itself — large, cinematic golden aspect ratio */
.ar-project__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6; /* 16:10 cinematic display */
  z-index: 1;
}

.ar-project__image-wrap {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ar-bg-soft);
  box-shadow: 0 15px 45px -15px rgba(0, 0, 0, 0.7);
  transition: transform 0.8s var(--ar-ease), box-shadow 0.8s var(--ar-ease);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.ar-project__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 0, 0) scale(1.02);
  transition: transform 0.9s var(--ar-ease);
  opacity: 0.7;
}
/* When the .ar-project__image is also an iframe (live preview), don't apply
   the placeholder's scale/opacity/transition — the iframe should render at
   its own locked scale and stay fully visible. */
.ar-project__image.ar-project__iframe {
  opacity: 1;
}
.ar-project__iframe {
  pointer-events: none;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 250%;
  height: 250%;
  transform: scale(0.4);
  transform-origin: top left;
  transition: none;
  /* Lock the iframe scale so hover doesn't re-flow its document. The
     parent .ar-project__image-wrap handles the visual hover instead. */
}

.ar-panel:hover .ar-project__image-wrap {
  transform: translate3d(0, -6px, 0);
}

/* Only scale the placeholder image on hover — iframes stay locked. */
.ar-panel:hover .ar-project__image:not(.ar-project__iframe) {
  transform: translate3d(0, 0, 0) scale(1.05);
  opacity: 0.92;
}

/* iframes never re-scale on hover (prevents internal document re-layout) */
.ar-panel:hover .ar-project__iframe {
  transform: scale(0.4);
}

/* Soft vignette + bottom gradient over every visual */
.ar-project__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Offset Glassmorphic Details Panel */
.ar-project__image-wrap::before {
  content: "";
  position: absolute;
  top: 15%;
  width: 32%;
  height: 60%;
  background: rgba(12, 12, 14, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  z-index: 3;
  pointer-events: none;
  transition: transform 0.8s var(--ar-ease), opacity 0.8s var(--ar-ease);
}

/* compositions relative to layouts */
.ar-panel--layout-left .ar-project__image-wrap::before,
.ar-panel:nth-of-type(odd) .ar-project__image-wrap::before {
  left: -8%;
  transform: translate3d(0, 0, 0) rotate(-2deg);
}
.ar-panel--layout-left:hover .ar-project__image-wrap::before,
.ar-panel:nth-of-type(odd):hover .ar-project__image-wrap::before {
  transform: translate3d(-15px, -8px, 0) rotate(-4deg);
}

.ar-panel--layout-right .ar-project__image-wrap::before,
.ar-panel:nth-of-type(even) .ar-project__image-wrap::before {
  right: -8%;
  transform: translate3d(0, 0, 0) rotate(2deg);
}
.ar-panel--layout-right:hover .ar-project__image-wrap::before,
.ar-panel:nth-of-type(even):hover .ar-project__image-wrap::before {
  transform: translate3d(15px, -8px, 0) rotate(4deg);
}

/* Ethic Works (Incubator) - Design/Motion schema */
.ar-panel--01 .ar-project__image-wrap::before {
  background: 
    linear-gradient(135deg, rgba(201, 168, 76, 0.15) 0%, rgba(12, 12, 14, 0.6) 100%);
  content: "DESIGN STUDIO\a\a 01. TIMELINE\a [ACTIVE]\a\a 02. PARTICLES\a 450 FPS\a\a 03. SCHEMATIC\a L-09 / L-12";
  font-family: monospace;
  font-size: 8px;
  line-height: 1.4;
  color: rgba(240, 239, 232, 0.7);
  padding: 16px;
  box-sizing: border-box;
  white-space: pre-wrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Onixflow (AI Orchestration) - Data telemetry */
.ar-panel--02 .ar-project__image-wrap::before {
  background: 
    linear-gradient(135deg, rgba(100, 150, 200, 0.15) 0%, rgba(12, 12, 14, 0.6) 100%);
  content: "ONIXFLOW_CORE\a\a 01. LATENCY\a 0.8ms\a\a 02. INGESTION\a 18.5 TB/s\a\a 03. VECTOR_DB\a SYNC: OK";
  font-family: monospace;
  font-size: 8px;
  line-height: 1.4;
  color: rgba(100, 150, 200, 0.85);
  padding: 16px;
  box-sizing: border-box;
  white-space: pre-wrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Skyline Capital (Corporate) - Mini Stats Grid */
/* InfoGenius AI (Conversational Engine) - LaTeX & DB session telemetry */
.ar-panel--03 .ar-project__image-wrap::before {
  background: 
    linear-gradient(135deg, rgba(80, 160, 200, 0.15) 0%, rgba(12, 12, 14, 0.6) 100%);
  content: "INFOGENIUS_AI\a\a 01. LATEX\a MATHJAX_OK\a\a 02. DB_SESS\a MONGODB_CONNECTED\a\a 03. HYBRID_AI\a GPT3.5 & GEMINI";
  font-family: monospace;
  font-size: 8px;
  line-height: 1.4;
  color: rgba(140, 200, 240, 0.85);
  padding: 16px;
  box-sizing: border-box;
  white-space: pre-wrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Developer Portfolio (Creative Showcase) - Technical specs mockup */
.ar-panel--04 .ar-project__image-wrap::before {
  background: 
    linear-gradient(135deg, rgba(201, 168, 76, 0.12) 0%, rgba(12, 12, 14, 0.6) 100%);
  content: "DEV_PORTFOLIO\a\a 01. LAYOUT\a RESPONSIVE_OK\a\a 02. SEO\a JSON-LD_OK\a\a 03. FRAMEWORK\a HTML5/CSS3/JS";
  font-family: monospace;
  font-size: 8px;
  line-height: 1.4;
  color: rgba(240, 239, 232, 0.7);
  padding: 16px;
  box-sizing: border-box;
  white-space: pre-wrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}



/* Cinematic swatches */
.ar-panel--01 .ar-project__image {
  background:
    radial-gradient(ellipse at 35% 30%, rgba(201, 168, 76, 0.22) 0%, transparent 60%),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 40px),
    url("../assets/ethic_works_preview.png");
}
.ar-panel--02 .ar-project__image {
  background:
    radial-gradient(ellipse at 40% 25%, rgba(100, 150, 200, 0.20) 0%, transparent 60%),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 36px),
    url("../assets/onixflow_preview.png");
}
.ar-panel--03 .ar-project__image {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(100, 180, 220, 0.20) 0%, transparent 60%),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 36px),
    url("../assets/infogenius_ai_preview.png");
}
.ar-panel--04 .ar-project__image {
  background:
    radial-gradient(ellipse at 35% 30%, rgba(201, 168, 76, 0.22) 0%, transparent 60%),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 40px),
    url("../assets/developer_portfolio_preview.png");
}


/* Subtle architectural overlay on each visual */
.ar-project__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 20px;
  opacity: 0.4;
  transition: opacity 0.8s var(--ar-ease);
}
.ar-panel:hover .ar-project__overlay { opacity: 0.95; }

/* Corner crosshair markers */
.ar-project__overlay::before {
  content: "+";
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: monospace;
  font-size: 13px;
  font-weight: 300;
  color: var(--ar-gold);
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
.ar-panel:hover .ar-project__overlay::before { opacity: 0.95; }

.ar-project__overlay::after {
  content: "+";
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: monospace;
  font-size: 13px;
  font-weight: 300;
  color: var(--ar-gold);
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
.ar-panel:hover .ar-project__overlay::after { opacity: 0.95; }

.ar-project__coord {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ar-text-faint);
  text-transform: uppercase;
  transition: color 0.4s var(--ar-ease);
}
.ar-panel:hover .ar-project__coord {
  color: var(--ar-gold-warm);
}

/* Framing lines */
.ar-project__frame-lines {
  position: absolute;
  inset: -12px;
  pointer-events: none;
  z-index: 3;
  transition: inset 0.8s var(--ar-ease);
}
.ar-panel:hover .ar-project__frame-lines {
  inset: -6px;
}

.ar-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.6s var(--ar-ease);
}
.ar-line--t { top: 0; left: 0; right: 0; height: 1px; }
.ar-line--b { bottom: 0; left: 0; right: 0; height: 1px; }
.ar-line--l { top: 0; bottom: 0; left: 0; width: 1px; }
.ar-line--r { top: 0; bottom: 0; right: 0; width: 1px; }

.ar-panel:hover .ar-line {
  background-color: var(--ar-gold-soft);
}

/* Info block styling */
.ar-project__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform 0.6s var(--ar-ease);
}
.ar-panel:hover .ar-project__info {
  transform: translateY(-2px);
}

.ar-project__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.2rem;
}

/* Organic line expanding from the category header */
.ar-project__header::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--ar-gold);
  transition: width 0.6s var(--ar-ease);
  margin-left: 14px;
}
.ar-panel:hover .ar-project__header::after {
  width: 60px;
}

.ar-project__index {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ar-gold-warm);
  font-weight: 500;
}

.ar-project__cat {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ar-text-faint);
  font-weight: 400;
}

.ar-project__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem 0;
  color: var(--ar-text-muted);
  transition: color 0.5s var(--ar-ease), text-shadow 0.5s var(--ar-ease);
}
.ar-panel:hover .ar-project__title {
  color: var(--ar-text);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.ar-project__desc {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--ar-text-muted);
  margin: 0 0 2rem 0;
  font-weight: 300;
  transition: color 0.5s var(--ar-ease);
}
.ar-panel:hover .ar-project__desc {
  color: rgba(240, 239, 232, 0.85);
}

.ar-project__meta-grid {
  display: flex;
  gap: 3rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--ar-line);
  border-bottom: 1px solid var(--ar-line);
  margin-bottom: 2rem;
  transition: border-color 0.5s var(--ar-ease);
}
.ar-panel:hover .ar-project__meta-grid {
  border-color: var(--ar-line-strong);
}

.ar-project__meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ar-project__meta-item strong {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ar-text-faint);
  font-weight: 500;
}
.ar-project__meta-item span {
  font-size: 13px;
  color: var(--ar-text-muted);
  font-weight: 400;
  transition: color 0.5s var(--ar-ease);
}
.ar-panel:hover .ar-project__meta-item span {
  color: var(--ar-text);
}

.ar-project__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ar-text-muted);
  cursor: pointer;
  transition: color 0.4s var(--ar-ease);
}
.ar-project__cta span {
  position: relative;
}
.ar-project__cta span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ar-gold);
  transition: width 0.4s var(--ar-ease);
}
.ar-project__cta-arrow svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.4s var(--ar-ease);
}
.ar-panel:hover .ar-project__cta {
  color: var(--ar-gold-warm);
}
.ar-panel:hover .ar-project__cta span::after {
  width: 100%;
}
.ar-panel:hover .ar-project__cta-arrow svg {
  transform: translateX(6px);
}

/* ─── Project focus modal ───────────────────────────────────────────────── */
.ar-focus {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: rgba(4, 4, 4, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(1.05);
  backdrop-filter: blur(24px) saturate(1.05);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ar-ease);
  padding: 4vh 4vw;
  box-sizing: border-box;
}
.ar-focus.is-open {
  pointer-events: all;
  opacity: 1;
}
.ar-focus__panel {
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(15, 15, 14, 0.96), rgba(8, 8, 8, 0.96));
  border-radius: 6px;
  padding: clamp(2rem, 4vw, 3.5rem);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.65s var(--ar-ease) 0.1s,
              transform 0.65s var(--ar-ease) 0.1s;
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.92);
}
.ar-focus.is-open .ar-focus__panel {
  opacity: 1;
  transform: translateY(0);
}
.ar-focus__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ar-line-strong);
  background: rgba(0, 0, 0, 0.55);
  color: var(--ar-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.4s var(--ar-ease), transform 0.4s var(--ar-ease);
  z-index: 1;
}
.ar-focus__close:hover {
  border-color: var(--ar-gold);
  transform: rotate(90deg);
}
.ar-focus__close::before, .ar-focus__close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1px;
  background: currentColor;
}
.ar-focus__close::before { transform: rotate(45deg); }
.ar-focus__close::after  { transform: rotate(-45deg); }

.ar-focus__head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ar-line);
}
body.sk-archive .ar-focus__cat {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ar-gold-warm) !important;
  font-weight: 500;
}
body.sk-archive .ar-focus__title {
  color: var(--ar-text) !important;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin: 0;
}
body.sk-archive .ar-focus__sub {
  color: var(--ar-text-muted) !important;
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0.6rem 0 0;
  font-weight: 300;
  line-height: 1.6;
}

body.sk-archive .ar-focus__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-bottom: 2rem;
}
body.sk-archive .ar-focus__block {
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--ar-line);
}
body.sk-archive .ar-focus__block h4 {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ar-gold-warm) !important;
  margin: 0 0 0.9rem;
  font-weight: 500;
}
body.sk-archive .ar-focus__block p,
body.sk-archive .ar-focus__block li {
  font-size: 0.95rem;
  color: var(--ar-text-muted) !important;
  margin: 0;
  line-height: 1.65;
  font-weight: 300;
}
.ar-focus__block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.ar-focus__block li {
  padding-left: 1rem;
  position: relative;
}
.ar-focus__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 1px;
  background: var(--ar-gold);
}

.ar-focus__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 0 36px;
  height: 60px;
  background: var(--ar-gold);
  color: #1a1a14;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s var(--ar-ease),
              box-shadow 0.4s var(--ar-ease);
  margin-top: 0.5rem;
  box-shadow: 0 18px 50px -22px rgba(201, 168, 76, 0.55);
}
.ar-focus__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -18px rgba(201, 168, 76, 0.7);
}
.ar-focus__cta-circle {
  width: 40px;
  height: 40px;
  background: #0a0a0a;
  color: var(--ar-gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ar-ease);
}
.ar-focus__cta:hover .ar-focus__cta-circle {
  transform: scale(1.1);
}
.ar-focus__cta-circle svg {
  width: 14px; height: 14px;
  stroke: var(--ar-gold);
  fill: none;
  stroke-width: 1.6;
}

/* ─── Final CTA — calm, architectural ───────────────────────────────────── */
.ar-final {
  position: relative;
  padding: clamp(6rem, 16vh, 11rem) 0 clamp(5rem, 14vh, 9rem);
  overflow: hidden;
  text-align: center;
}
.ar-final__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
}
/* Single elegant arch behind the headline */
.ar-final__arc {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 110vw;
  max-width: 1300px;
  aspect-ratio: 1;
  border: 1px solid var(--ar-gold-faint);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.ar-final__arc::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.ar-final__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}
.ar-final__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 1rem auto 1.5rem;
  color: #ffffff;
  max-width: 28rem;
}
.ar-final__title em {
  font-style: normal; /* Remove italic! */
  font-weight: 500;
  color: var(--ar-gold-warm);
}
.ar-final__sub {
  color: rgba(240, 239, 232, 0.7);
  font-size: 1.05rem;
  margin: 0 0 2.4rem;
  font-weight: 300;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.ar-final__btn-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.ar-btn-pulse-circle {
  position: absolute;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  animation: btnPulseCircle 2.5s infinite ease-in-out;
}

.ar-sparkles {
  position: absolute;
  inset: -30px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ar-ease);
}
.ar-final__btn-wrap:hover .ar-sparkles {
  opacity: 1;
}

.ar-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ar-gold);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px var(--ar-gold);
}
.ar-sparkle::before,
.ar-sparkle::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: inherit;
  box-shadow: inherit;
}
.ar-sparkle::before {
  top: -2px; bottom: -2px; left: 2px; right: 2px;
}
.ar-sparkle::after {
  top: 2px; bottom: 2px; left: -2px; right: -2px;
}

.ar-sparkle--1 {
  top: 20%; left: 10%;
  animation: floatSparkle1 3s infinite linear;
}
.ar-sparkle--2 {
  top: 80%; right: 12%;
  animation: floatSparkle2 2.5s infinite linear 0.5s;
}
.ar-sparkle--3 {
  bottom: 10%; left: 25%;
  animation: floatSparkle3 2.8s infinite linear 1s;
}
.ar-sparkle--4 {
  top: 15%; right: 20%;
  animation: floatSparkle4 3.2s infinite linear 1.5s;
}

@keyframes btnPulseCircle {
  0% { transform: scale(1); opacity: 0.8; border-color: rgba(201, 168, 76, 0.35); }
  50% { transform: scale(1.12); opacity: 0.25; border-color: rgba(201, 168, 76, 0.15); }
  100% { transform: scale(1.22); opacity: 0; border-color: rgba(201, 168, 76, 0); }
}

@keyframes floatSparkle1 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  50% { opacity: 0.8; transform: translate(-15px, -15px) scale(1) rotate(90deg); }
  100% { transform: translate(-30px, -30px) scale(0) rotate(180deg); opacity: 0; }
}
@keyframes floatSparkle2 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  50% { opacity: 0.8; transform: translate(15px, 15px) scale(1.1) rotate(90deg); }
  100% { transform: translate(30px, 30px) scale(0) rotate(180deg); opacity: 0; }
}
@keyframes floatSparkle3 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  50% { opacity: 0.8; transform: translate(-12px, 18px) scale(0.9) rotate(-90deg); }
  100% { transform: translate(-24px, 36px) scale(0) rotate(-180deg); opacity: 0; }
}
@keyframes floatSparkle4 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  50% { opacity: 0.8; transform: translate(18px, -18px) scale(1.2) rotate(-90deg); }
  100% { transform: translate(36px, -36px) scale(0) rotate(-180deg); opacity: 0; }
}

.ar-final__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px 0 36px;
  height: 64px;
  background: var(--ar-gold);
  color: #1a1a14;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s var(--ar-ease),
              box-shadow 0.4s var(--ar-ease);
  box-shadow: 0 18px 50px -22px rgba(201, 168, 76, 0.55);
}
.ar-final__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px -18px rgba(201, 168, 76, 0.65);
}
.ar-final__btn-circle {
  width: 44px;
  height: 44px;
  background: #0a0a0a;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.ar-final__btn-circle svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--ar-gold);
  stroke-width: 1.5;
}

/* ─── Mobile (<992px) ──────────────────────────────────────────────────── */
@media screen and (max-width: 992px) {
  .ar-hero {
    padding: clamp(6rem, 14vh, 8rem) 0 2rem;
  }
  .ar-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ar-hero__visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .ar-hero__numeral {
    font-size: clamp(10rem, 36vw, 18rem);
  }
  .ar-grid {
    gap: clamp(4rem, 10vh, 6rem);
  }
  .ar-project__container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  .ar-project__preview,
  .ar-project__info {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
  }
  .ar-project__preview {
    aspect-ratio: 1.4 !important; /* taller for mobile impact */
  }
  .ar-project__image-wrap::before {
    display: none !important;
  }
  .ar-focus__grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .ar-showcase__label {
    font-size: clamp(5rem, 18vw, 9rem);
  }
}

/* ─── Mobile header alignment — match other pages (22px gutter) ─────────── */
@media screen and (max-width: 1200px) {
  body.sk-archive .mil-frame .mil-frame-top {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  body.sk-archive .mil-frame .mil-frame-top .mil-logo {
    margin-left: 0 !important;
  }
}

@media screen and (max-width: 575px) {
  .ar-hero__title { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .ar-final__title { font-size: clamp(2rem, 11vw, 3rem); }
  .ar-project__header { gap: 10px; margin-bottom: 0.8rem; }
  .ar-project__meta-grid { gap: 1.5rem; flex-direction: column; padding: 1rem 0; margin-bottom: 1.5rem; }
  .ar-filters__row { gap: 0.7rem 1.4rem; }
  .ar-filters__title { width: 100%; margin-bottom: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-hero__marquee-track { animation: none; }
  .ar-frame, .ar-project__image, .ar-project__preview {
    transition: none !important;
    transform: none !important;
  }
  .ar-panel {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Architectural framing guidelines & dividers (Visual DNA) ─────────── */
.ar-shell {
  position: relative;
}
/* Delicate vertical guidelines for the shell layout alignment */
.ar-shell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}
@media screen and (min-width: 1201px) {
  .ar-shell::before {
    left: calc(var(--sk-logo-clear, 200px) - 24px);
  }
}
@media screen and (max-width: 1200px) {
  .ar-shell::before {
    left: 12px;
  }
}

/* Grid Dividers */
.ar-grid-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 18px 8px;
  margin-top: 5rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
  grid-column: 1 / -1;
  gap: 1.5rem;
}
.ar-grid-divider__index {
  font-family: monospace;
  font-size: 11px;
  color: var(--ar-gold-warm);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.ar-grid-divider__label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ar-text);
  margin-right: auto;
}
.ar-grid-divider__coord {
  font-family: monospace;
  font-size: 10px;
  color: var(--ar-text-faint);
  letter-spacing: 0.05em;
}
