/* ============================================
   ARELIUS VILLCENT — DESIGN ARCHIVE
   Endfield-style portfolio
   ============================================ */

:root {
  --bg:         #FAFAFA;
  --ink:        #0E0E0E;
  --ink-panel:  #1A1A1A;
  --navy:       #1B2430;
  --yellow:     #E8FF00;
  --yellow-soft:#F2FF7A;
  --grey-100:   #EDEDED;
  --grey-200:   #D6D6D6;
  --grey-400:   #9A9A9A;
  --grey-600:   #5A5A5A;
  --magenta:    #E6007A;
  --mint:       #5FE3A1;
  --cyan:       #27C8F5;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
  background: #ECECEC;
}

body {
  background: transparent;
  color: var(--ink);
  font-family: 'Archivo', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The wrap container — content is max 1440px, centered, with the
   surrounding light-grey body showing through as a workbench/margin */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
}

/* ============ DECORATIVE GUTTERS (HUD margin) ============
   Fill the empty grey area on wide screens with engineering-drawing
   style decoration: ruler ticks, technical labels, coordinates,
   so the wide-screen view doesn't feel hollow. */
.gutter {
  position: fixed;
  top: 78px;
  bottom: 0;
  width: calc((100vw - 1440px) / 2);
  pointer-events: none;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #B5B5B5;
  letter-spacing: 0.1em;
  display: none;
}
.gutter-left { left: 0; }
.gutter-right { right: 0; }

@media (min-width: 1500px) {
  .gutter { display: block; }
}

/* Ruler ticks down the gutter */
.gutter-ruler {
  position: absolute;
  top: 32px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gutter-left .gutter-ruler { right: 24px; align-items: flex-end; }
.gutter-right .gutter-ruler { left: 24px; align-items: flex-start; }
.gutter-tick {
  display: flex; align-items: center; gap: 6px;
  height: 0;
}
.gutter-left .gutter-tick { flex-direction: row; }
.gutter-tick-num {
  font-size: 8px;
  color: #B5B5B5;
  letter-spacing: 0.1em;
  min-width: 24px;
}
.gutter-left .gutter-tick-num { text-align: right; }
.gutter-tick-line {
  width: 12px; height: 1px;
  background: #C8C8C8;
}

/* Labels in gutter */
.gutter-label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #B5B5B5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.5;
}
.gutter-label-strong {
  color: #6B6B6B;
  font-weight: 500;
}
.gutter-label-line {
  width: 16px; height: 1px;
  background: #C8C8C8;
  display: block;
  margin-top: 4px;
}

/* "+" cross markers scattered through gutter */
.gutter-cross {
  position: absolute;
  width: 10px; height: 10px;
}
.gutter-cross::before, .gutter-cross::after {
  content: '';
  position: absolute;
  background: #C8C8C8;
}
.gutter-cross::before { width: 10px; height: 1px; top: 4.5px; left: 0; }
.gutter-cross::after { width: 1px; height: 10px; left: 4.5px; top: 0; }

/* ============ CMYK SWATCH ============ */
.cmyk {
  display: flex; flex-direction: column;
  gap: 2px;
  pointer-events: none;
}
.cmyk span { width: 12px; height: 12px; display: block; }
.cmyk .m { background: var(--magenta); }
.cmyk .c { background: var(--cyan); }
.cmyk .y { background: var(--yellow); }
.cmyk .k { background: var(--grey-400); }

/* ============ BARCODE ============ */
.barcode {
  height: 32px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--grey-400) 0 1.5px, transparent 1.5px 3px,
    var(--grey-400) 3px 4px, transparent 4px 5.5px,
    var(--grey-400) 5.5px 7px, transparent 7px 9px,
    var(--grey-400) 9px 10px, transparent 10px 12px,
    var(--grey-400) 12px 14px, transparent 14px 17px
  );
  pointer-events: none;
}

/* ============ TITLE BLOCK (low yellow swipe) ============ */
.title-block {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--ink);
  display: inline-block;
  background: linear-gradient(to bottom,
    transparent 0%,
    transparent 48%,
    var(--yellow) 48%,
    var(--yellow) 105%
  );
  padding: 0 4px 6px 0;
}
.title-block-cjk {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 900;
  color: var(--ink);
  display: inline-block;
  background: linear-gradient(to bottom,
    transparent 0%,
    transparent 48%,
    var(--yellow) 48%,
    var(--yellow) 110%
  );
  padding: 0 4px 6px 0;
  line-height: 1;
}

/* ============ MONO ============ */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.sec-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--grey-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============ GHOSTED TYPE ============ */
.ghost-type {
  position: absolute;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--grey-200);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
  z-index: 0;
  user-select: none;
}

/* ============ STATUS BAR ============ */
.status-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: 26px;
  background: var(--ink-panel);
  color: var(--grey-400);
  display: flex;
  justify-content: center;
}
.status-bar-inner {
  width: 100%;
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.status-bar .mono { font-size: 9px; letter-spacing: 0.12em; }
.status-live {
  display: flex; align-items: center; gap: 6px;
  color: var(--yellow);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.status-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  animation: blink 1.6s infinite;
}
.status-mid { color: var(--grey-400); }
@keyframes blink { 50% { opacity: 0.2; } }

/* ============ NAV ============ */
nav {
  position: fixed; top: 26px; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--grey-200);
  height: 52px;
  display: flex;
  justify-content: center;
}
.nav-inner {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 0 40px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.nav-logo-box {
  width: 24px; height: 24px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow);
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 13px;
}
.nav-logo-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.nav-logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--grey-400);
  letter-spacing: 0.1em;
}
.nav-links {
  display: flex; align-items: stretch;
  height: 100%;
  list-style: none;
  border-left: 1px solid var(--grey-200);
}
.nav-links li { border-right: 1px solid var(--grey-200); }
.nav-links a {
  display: flex; align-items: center;
  padding: 0 20px;
  height: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--grey-600);
  transition: background 0.2s, color 0.2s;
  gap: 6px;
}
.nav-links a:hover { background: var(--ink); color: var(--yellow); }
.nav-num { color: var(--grey-400); font-size: 8px; }
.nav-links a:hover .nav-num { color: var(--yellow); opacity: 0.6; }

/* ============ SPINE ============ */
.has-spine { position: relative; }
.spine {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 52px;
  border-right: 1px solid var(--grey-200);
  z-index: 1;
  overflow: hidden;
}
.spine-text {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--grey-400);
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.spine-num {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 11px;
  color: var(--grey-200);
}
.inner { margin-left: 52px; position: relative; }

/* ============ HERO ============ */
.hero {
  margin-top: 78px;
  border-bottom: 1px solid var(--grey-200);
}
.hero-title-zone {
  padding: 40px 40px 24px;
  border-bottom: 1px solid var(--grey-200);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hero-pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--grey-600);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.hero-pre::before { content: '//'; color: var(--grey-400); }
.hero-h1 { font-size: clamp(48px, 8vw, 96px); }
.hero-h1-cn {
  font-size: clamp(24px, 3.5vw, 44px);
  display: inline-block;
  margin-top: 12px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.hero-title-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 16px;
  padding-top: 4px;
}
.hero-dot-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.hero-dot-grid span {
  width: 4px; height: 4px;
  background: var(--grey-200);
  display: block;
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-body-left {
  padding: 32px 40px;
  border-right: 1px solid var(--grey-200);
}
.hero-body-right { padding: 32px 40px; }

.spec-block { margin-bottom: 24px; }
.spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--grey-400);
  margin-bottom: 4px;
}
.spec-val {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.spec-val.hl-y { display: inline; background: var(--yellow); padding: 1px 4px; }

.iso-wrap {
  width: 100%; aspect-ratio: 1;
  max-width: 280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.iso-wrap svg { width: 100%; height: 100%; }

.hero-bottom-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--grey-200);
}
.hb-cell {
  padding: 16px 32px;
  border-right: 1px solid var(--grey-200);
}
.hb-cell:last-child { border-right: none; }
.hb-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; color: var(--grey-400);
  letter-spacing: 0.15em; margin-bottom: 4px;
}
.hb-val {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-size: 28px;
  letter-spacing: -0.02em; line-height: 1;
}
.hb-unit {
  font-size: 11px; font-weight: 400;
  color: var(--grey-600); margin-left: 2px;
}
.hb-val .on-yellow { background: var(--yellow); padding: 0 6px; }

/* ============ SECTION HEAD ============ */
.sec-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--grey-200);
  background: var(--bg);
}
.sec-head-num {
  width: 56px;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sec-head-body {
  padding: 12px 24px;
  border-right: 1px solid var(--grey-200);
  flex: 1;
}
.sec-head-en {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
}
.sec-head-cn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--grey-400);
  letter-spacing: 0.15em;
  margin-top: 2px;
}
.sec-head-right {
  padding: 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--grey-400);
  letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 16px;
}
.sec-head-barcode { width: 48px; }

/* ============ XIAOHONGSHU GRID ============ */
.rednote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--grey-200);
}
.rednote-card {
  background: var(--bg);
  border-right: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.25s cubic-bezier(0.23,1,0.32,1);
}
.rednote-card:nth-child(3n) { border-right: none; }
.rednote-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 2;
}
.rednote-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--grey-200);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--grey-100);
}
.rednote-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--ink); font-weight: 500;
  letter-spacing: 0.1em;
}
.rednote-ext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; color: var(--grey-400);
  letter-spacing: 0.1em;
}

.rednote-thumb {
  aspect-ratio: 3/4;
  background: var(--grey-100);
  position: relative;
  overflow: hidden;
}
.rednote-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.rednote-placeholder {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 0;
}
.rednote-thumb.no-img .rednote-placeholder { display: flex; }
.ph-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--grey-400);
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1px solid var(--grey-200);
  background: var(--bg);
}

.rednote-hover {
  position: absolute; inset: 0; z-index: 3;
  background: var(--navy);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.rednote-card:hover .rednote-hover { opacity: 0.85; }
.rednote-hover-txt {
  color: var(--yellow);
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s 0.05s;
}
.rednote-card:hover .rednote-hover-txt { opacity: 1; transform: translateY(0); }

.rednote-foot {
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.rednote-title {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
}
.rednote-arrow {
  width: 24px; height: 24px;
  background: var(--ink-panel);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}
.rednote-card:hover .rednote-arrow { background: var(--yellow); color: var(--ink); }

/* ============ PPT GRID ============ */
.ppt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--grey-200);
}
.ppt-card {
  background: var(--bg);
  border-right: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.25s cubic-bezier(0.23,1,0.32,1);
}
.ppt-card:nth-child(2n) { border-right: none; }
.ppt-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 2;
}

.ppt-header {
  padding: 8px 14px;
  border-bottom: 1px solid var(--grey-200);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--grey-100);
}
.ppt-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--ink); font-weight: 500;
  letter-spacing: 0.1em;
}
.ppt-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--grey-400);
  letter-spacing: 0.1em;
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 6px;
}

.ppt-thumb {
  aspect-ratio: 16/9;
  background: var(--grey-100);
  position: relative;
  overflow: hidden;
}
.ppt-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ppt-thumb.no-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}
.ppt-thumb.no-img::after {
  content: attr(data-placeholder);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--grey-400);
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border: 1px solid var(--grey-200);
  background: var(--bg);
}

.ppt-hover {
  position: absolute; inset: 0; z-index: 3;
  background: var(--navy);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.ppt-card:hover .ppt-hover { opacity: 0.88; }
.ppt-hover-txt {
  color: var(--yellow);
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s 0.05s;
}
.ppt-hover-sub {
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s 0.12s;
}
.ppt-card:hover .ppt-hover-txt,
.ppt-card:hover .ppt-hover-sub { opacity: 1; transform: translateY(0); }

.ppt-foot {
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.ppt-title {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}
.ppt-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--grey-400);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.ppt-arrow {
  width: 28px; height: 28px;
  background: var(--ink-panel);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ppt-card:hover .ppt-arrow { background: var(--yellow); color: var(--ink); }

/* ============ CONTACT (about) — redesigned ============ */
.contact {
  background: var(--navy);
  color: var(--bg);
  padding: 80px 80px 40px;
  position: relative;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
  align-items: start;
}
.contact-left {}
.contact-right {
  padding-top: 12px;
}
.contact-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 0.2em;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.contact-tag::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--yellow);
}
.contact-headline {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--bg);
  text-transform: uppercase;
}
.contact-headline-cn {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 900;
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 10px 6px;
  margin-top: 4px;
  line-height: 1;
}
.contact-blurb {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  margin-bottom: 0;
}
.contact-blurb strong {
  color: var(--bg);
  font-weight: 500;
}

/* right column — info card */
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-card-head {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-card-head-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 12px;
  color: var(--bg);
  letter-spacing: 0.05em;
}
.contact-card-head-stamp {
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.contact-row {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.contact-row:last-child { border-bottom: none; }
.contact-row-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  flex-shrink: 0;
}
.contact-row-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--bg);
  letter-spacing: 0.02em;
  text-align: right;
  word-break: break-all;
}

a.contact-row-val {
  text-decoration: none;
  color: var(--yellow);
  transition: opacity 0.2s;
  display: flex; align-items: center; gap: 6px;
}
a.contact-row-val:hover { opacity: 0.7; }
a.contact-row-val::after { content: '→'; font-size: 14px; }

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--yellow);
}
.contact-status::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: blink 1.6s infinite;
}

.contact-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 56px;
  position: relative; z-index: 1;
}
.contact-footer .mono { font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; }
.contact-bg-text {
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(120px, 14vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink-panel);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}
footer .mono { font-size: 9px; color: var(--grey-400); letter-spacing: 0.1em; }
.footer-note {
  color: var(--grey-400);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}
.footer-note::before { content: '** '; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.96);
  display: none;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox.active { display: flex; }

.lb-status {
  flex-shrink: 0;
  height: 36px;
  background: var(--ink-panel);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--grey-400);
}
.lb-status-left { display: flex; align-items: center; gap: 16px; }
.lb-status-right { display: flex; align-items: center; gap: 16px; }
.lb-live {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--yellow);
  display: flex; align-items: center; gap: 6px;
}
.lb-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  animation: blink 1.6s infinite;
}
.lb-status .mono { font-size: 9px; letter-spacing: 0.12em; }
#lb-counter { color: var(--yellow); font-weight: 500; }
.lb-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--grey-400);
  width: 24px; height: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 24px;
  min-height: 0;
}

.lb-nav {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--grey-400);
  width: 48px; height: 48px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif;
}
.lb-nav:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lb-nav:disabled { opacity: 0.25; cursor: not-allowed; }
.lb-nav:disabled:hover { background: transparent; color: var(--grey-400); border-color: rgba(255,255,255,0.2); }

.lb-image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lb-image-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  display: block;
  background: var(--grey-100);
}
.lb-corner-mark {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.lb-corner-mark::before, .lb-corner-mark::after {
  content: ''; position: absolute;
  background: var(--yellow);
}
.lb-corner-mark.tl { top: 0; left: 0; }
.lb-corner-mark.tl::before { width: 14px; height: 1px; top: 0; left: 0; }
.lb-corner-mark.tl::after  { width: 1px; height: 14px; top: 0; left: 0; }
.lb-corner-mark.tr { top: 0; right: 0; }
.lb-corner-mark.tr::before { width: 14px; height: 1px; top: 0; right: 0; }
.lb-corner-mark.tr::after  { width: 1px; height: 14px; top: 0; right: 0; }
.lb-corner-mark.bl { bottom: 0; left: 0; }
.lb-corner-mark.bl::before { width: 14px; height: 1px; bottom: 0; left: 0; }
.lb-corner-mark.bl::after  { width: 1px; height: 14px; bottom: 0; left: 0; }
.lb-corner-mark.br { bottom: 0; right: 0; }
.lb-corner-mark.br::before { width: 14px; height: 1px; bottom: 0; right: 0; }
.lb-corner-mark.br::after  { width: 1px; height: 14px; bottom: 0; right: 0; }

.lb-foot {
  flex-shrink: 0;
  height: 36px;
  background: var(--ink-panel);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--grey-400);
}
.lb-foot .mono { font-size: 9px; letter-spacing: 0.12em; }

/* ============ ANIMATIONS ============ */
@keyframes up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.a1 { animation: up 0.65s 0.05s both; }
.a2 { animation: up 0.65s 0.18s both; }
.a3 { animation: up 0.65s 0.30s both; }
.a4 { animation: up 0.65s 0.42s both; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-body-left { border-right: none; border-bottom: 1px solid var(--grey-200); }
  .hero-bottom-bar { grid-template-columns: repeat(2, 1fr); }
  .hb-cell:nth-child(2) { border-right: none; }
  .hb-cell:nth-child(1), .hb-cell:nth-child(2) { border-bottom: 1px solid var(--grey-200); }
  .rednote-grid { grid-template-columns: repeat(2, 1fr); }
  .rednote-card:nth-child(3n) { border-right: 1px solid var(--grey-200); }
  .rednote-card:nth-child(2n) { border-right: none; }
  .ppt-grid { grid-template-columns: 1fr; }
  .ppt-card:nth-child(n) { border-right: none; }
  .nav-links { display: none; }
  .inner { margin-left: 0; }
  .spine { display: none; }
  nav { padding-left: 0; }
  .nav-inner { padding: 0 16px; }
  .status-bar-inner { padding: 0 12px; }
  .hero-title-zone { padding: 24px 20px; }
  .hero-body-left, .hero-body-right { padding: 24px 20px; }
  .hb-cell { padding: 14px 20px; }
  .contact { padding: 48px 24px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-right { padding-top: 0; }
  footer { padding: 14px 20px; flex-direction: column; gap: 6px; text-align: center; }
  .status-bar { font-size: 8px; }
  .status-bar-inner > div { font-size: 8px; }
  .status-mid { display: none; }
  .lb-stage { padding: 16px 8px; gap: 8px; }
  .lb-nav { width: 36px; height: 36px; font-size: 16px; }
}

@media (max-width: 540px) {
  .rednote-grid { grid-template-columns: 1fr; }
  .rednote-card:nth-child(n) { border-right: none; }
}
