@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f4f2ed;
  --bg2:        #edeae3;
  --bg3:        #e5e1d8;
  --surface:    #faf9f6;
  --ink:        #14120e;
  --ink2:       #2a2620;
  --ink-mid:    rgba(20,18,14,.45);
  --ink-dim:    rgba(20,18,14,.22);
  --ink-ghost:  rgba(20,18,14,.10);
  --acc:        #1a3a8f;
  --acc-l:      #e8edf8;
  --acc-m:      rgba(26,58,143,.12);
  --red:        #c0392b;
  --line:       rgba(20,18,14,.10);
  --line2:      rgba(26,58,143,.18);
  --font-hd:    'Archivo', sans-serif;
  --font-body:  'Lato', sans-serif;
  --font-mono:  'Lato', sans-serif;
  --max:        min(75vw, 1440px);

  /* Цвета футера — инвертируются через тему */
  --footer-bg:       var(--ink);
  --footer-text:     rgba(244,242,237,.9);
  --footer-text-dim: rgba(244,242,237,.3);
  --footer-text-mut: rgba(244,242,237,.22);

  /* ── Масштаб шрифтов. Измени это число — изменятся все шрифты сайта ── */
  --scale:      1.44;         /* 1 = текущий размер | 1.2 = +20% | 0.9 = -10% */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-gutter: stable;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(16px * var(--scale));
  line-height: 1.6;
  overflow-x: auto;
}
a { color: inherit; text-decoration: none; }

/* ── UTILS ─────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 36px; }

.label {
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--scale)); letter-spacing: .24em; text-transform: uppercase;
  color: var(--acc);
}

.section-sep {
  height: 30px;
  /* background: var(--line); */
  margin: 0;
}

/* ── HEADER ────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,242,237,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 58px;
}
.logo {
  font-size: calc(17.5px * var(--scale)); font-weight: 900; letter-spacing: .18em;
  color: var(--ink); text-transform: uppercase;
}
.logo span { color: var(--acc); }
nav { display: flex; align-items: center; gap: 30px; }
nav a {
  font-family: var(--font-mono); font-size: calc(10.5px * var(--scale)); letter-spacing: .14em;
  color: var(--ink-mid); transition: color .18s; text-transform: uppercase;
}
nav a:hover { color: var(--acc); }
.nav-lang {
  display: flex; gap: 2px; align-items: center;
  font-family: var(--font-mono); font-size: calc(10.5px * var(--scale)); letter-spacing: .1em;
  border: 1px solid var(--line); padding: 4px 10px;
  color: var(--ink-mid);
}
.nav-lang .act { color: var(--acc); font-weight: 500; }

.hero {
  min-height: calc(100vh - 58px);
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
} */

/* paper texture dots */
/* ── SECTION HEADER ────────────────────────────── */
/* ── PORTFOLIO ─────────────────────────────────── */
/* ── CAROUSEL ──────────────────────────────────── */

.carousel-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.carousel-track-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  /* Трек — ровно N×100% ширины обёртки, не тянется */
  width: 100%;
  height: 100%;
  /* Важно: трек сам не сжимается */
  flex-shrink: 0;
  transition: transform .36s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
  cursor: grab;
}
.carousel-track:active { cursor: grabbing; }

.carousel-slide {
  /* Каждый слайд = ровно 100% ширины .carousel-track-wrap */
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.carousel-arr {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 32px; height: 32px;
  background: rgba(250,249,246,.9);
  border: 1px solid var(--line);
  color: var(--acc);
  font-size: calc(17.5px * var(--scale)); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, opacity .15s;
}
.carousel-arr--l { left: 10px; }
.carousel-arr--r { right: 10px; }
.carousel-arr:hover { background: var(--acc-m); }
.carousel-arr.is-disabled { opacity: .25; pointer-events: none; }

html[data-theme="dark"] .carousel-arr {
  background: rgba(13,16,24,.9);
  border-color: rgba(255,255,255,.08);
}
.project-title { font-family: var(--font-hd); font-size: calc(25px * var(--scale)); font-weight: 900; color: var(--ink); line-height: 1.05; letter-spacing: -.01em; }
.project-body { font-family: var(--font-body); font-size: calc(13px * var(--scale)); color: var(--ink-mid); line-height: 1.9; }
/* ── SMALL ROWS ────────────────────────────────── */
/* ── MISC ──────────────────────────────────────── */
/* ── TEAM ──────────────────────────────────────── */
/* ── CONTACT ───────────────────────────────────── */
.contact-section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-desc { font-family: var(--font-body); font-size: calc(13px * var(--scale)); color: var(--ink-mid); line-height: 1.9; margin: 20px 0 28px; max-width: 360px; }
.contact-info { display: flex; flex-direction: column; gap: 10px; }
.contact-info-row { display: flex; gap: 16px; font-family: var(--font-body); font-size: calc(12.5px * var(--scale)); color: var(--ink-mid); align-items: flex-start; }
.contact-info-row .k { color: var(--ink-dim); min-width: 80px; letter-spacing: .1em; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-mono); font-size: calc(10px * var(--scale)); letter-spacing: .16em; color: var(--ink-dim); text-transform: uppercase; }
.form-field input, .form-field textarea {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-mono); font-size: calc(12.5px * var(--scale));
  padding: 10px 14px; outline: none; transition: border-color .2s; resize: none;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--acc); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-dim); }
.form-submit {
  font-family: var(--font-mono); font-size: calc(10.5px * var(--scale)); letter-spacing: .18em;
  padding: 12px 30px; background: var(--ink); color: var(--bg);
  border: none; cursor: pointer; font-weight: 600; align-self: flex-start;
  transition: background .2s; text-transform: uppercase;
}
.form-submit:hover { background: var(--acc); }

/* ── FOOTER ────────────────────────────────────── */
footer {
  /* Светлая тема: использует CSS-переменные чтобы инвертироваться с темой */
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
}
.footer-inner {
  padding: 32px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-size: calc(15px * var(--scale)); font-weight: 900;
  letter-spacing: .22em; color: var(--footer-text);
}
.footer-logo span { color: rgba(100,140,255,.85); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--font-mono); font-size: calc(10px * var(--scale));
  letter-spacing: .12em;
  color: var(--footer-text-dim); transition: color .2s;
}
.footer-links a:hover { color: var(--footer-text); }
.footer-copy {
  font-family: var(--font-mono); font-size: calc(10px * var(--scale));
  letter-spacing: .1em; color: var(--footer-text-mut);
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  nav { display: none; }
}

/* ══════════════════════════════════════════════════
   PRODUCTS SECTION — три вертикальных блока
══════════════════════════════════════════════════ */

.products-section {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════
   PORTFOLIO MODAL — окно с деталями проекта
══════════════════════════════════════════════════ */

.portfolio-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 7000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  overscroll-behavior: none;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, .48);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transition: opacity .4s ease;
}

html.portfolio-modal-open,
body.portfolio-modal-open {
  overscroll-behavior: none;
}
.portfolio-modal.is-open {
  pointer-events: auto;
}
.portfolio-modal.is-open .portfolio-modal-backdrop {
  opacity: 1;
}

.portfolio-modal-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  width: 100%;
  max-width: 1040px;
  height: min(680px, calc(100vh - 120px));
  min-height: min(680px, calc(100vh - 120px));
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid rgba(28, 24, 19, 0.08);
  overflow: hidden;
  box-shadow: 0 34px 110px rgba(0,0,0,.28);
  /* Начальное состояние — устанавливается из JS через transform-origin */
  transform: scale(0.08);
  opacity: 0;
  border-radius: 28px;
  transition:
    transform .5s cubic-bezier(.28, 0, .1, 1),
    opacity   .35s ease,
    border-radius .5s ease;
}
.portfolio-modal.is-open .portfolio-modal-box {
  transform: scale(1);
  opacity: 1;
  border-radius: 28px;
}
.portfolio-modal.is-closing .portfolio-modal-box {
  transform: scale(0.08);
  opacity: 0;
  border-radius: 28px;
}
.portfolio-modal.is-closing .portfolio-modal-backdrop {
  opacity: 0;
}

/* Медиа — карусель */
.portfolio-detail-media {
  position: relative;
  background: linear-gradient(180deg, #f6f3ec 0%, #efe9de 100%);
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  border-right: 1px solid rgba(28, 24, 19, 0.08);
  min-height: 0;
  overflow: hidden;
  /* высота берётся от .portfolio-modal-box через grid */
}
.portfolio-detail-media .carousel-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portfolio-detail-media .carousel-track-wrap {
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  flex: none;
  overflow: hidden;
  position: relative;
  margin: auto;
  border: 1px solid rgba(28, 24, 19, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.95), rgba(232,227,219,.96) 44%, rgba(214,209,201,.92) 76%, rgba(244,241,234,.72) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.portfolio-detail-media .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 1.15s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.portfolio-detail-media .carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  user-select: none;
}
.portfolio-detail-media .carousel-slide--image {
  cursor: zoom-in;
}
.portfolio-detail-media .carousel-slide--video {
  cursor: pointer;
}
.portfolio-detail-media .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.portfolio-detail-media .carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(11, 14, 20, 0.92);
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

.portfolio-video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.portfolio-image-lightbox {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.portfolio-image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.portfolio-image-lightbox-media {
  position: absolute;
  inset: 32px;
  width: calc(100% - 64px);
  height: calc(100% - 64px);
  object-fit: contain;
  display: block;
  border-radius: 24px;
  cursor: zoom-out;
}

.portfolio-image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: rgba(12, 15, 22, 0.78);
  color: #f6f7fb;
  font-size: 16px;
  cursor: pointer;
}

.portfolio-video-controls {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-video-button {
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(12, 15, 22, 0.72);
  color: #f6f7fb;
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.portfolio-video-button:hover {
  background: rgba(33, 73, 166, 0.88);
  border-color: rgba(128, 166, 255, 0.64);
  transform: translateY(-1px);
}

.portfolio-video-volume {
  min-width: 146px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(12, 15, 22, 0.72);
  color: #f6f7fb;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portfolio-video-volume span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}

.portfolio-video-volume input[type="range"] {
  width: 100%;
  accent-color: #80a6ff;
  cursor: pointer;
}

.portfolio-modal-controls {
  width: min(100%, 540px);
  margin: 14px auto 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 6px;
}

.portfolio-modal-controls[hidden] {
  display: none;
}

.portfolio-modal-arrow {
  flex-shrink: 0;
}

.portfolio-modal-controls .ref-slider-dots {
  min-width: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.portfolio-modal-controls .ref-slider-dot {
  width: 8px;
  height: 8px;
  background: rgba(28, 24, 19, 0.18);
}

.portfolio-modal-controls .ref-slider-dot.is-active {
  transform: scale(1.16);
}

/* Описание */
.portfolio-detail-desc {
  background: linear-gradient(180deg, rgba(250,248,242,0.96), rgba(246,243,235,0.98));
  padding: 72px 40px 38px 42px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Кнопка закрытия */
.pd-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(28, 24, 19, 0.08);
  border-radius: 14px;
  color: var(--ink-mid);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
  flex-shrink: 0;
  z-index: 5;
}
.pd-close:hover {
  border-color: rgba(33, 73, 166, 0.24);
  color: var(--acc);
  background: rgba(255,255,255,.92);
  transform: translateY(-1px);
}

.pd-close--global {
  position: absolute;
}

.portfolio-detail-desc .project-body p + p {
  margin-top: 16px;
}

.portfolio-detail-desc .project-title {
  font-family: var(--font-hd);
  max-width: 14ch;
  color: var(--ref-text);
  font-size: calc(21px * var(--scale));
  line-height: 1.04;
}

.portfolio-detail-desc .project-body {
  max-width: 34ch;
  color: var(--ref-muted);
  font-size: calc(10.8px * var(--scale));
  line-height: 1.7;
}

/* Тёмная тема */
html[data-theme="dark"] .portfolio-modal-box {
  background: #131820;
  border-color: rgba(237, 241, 248, 0.08);
}

html[data-theme="dark"] .portfolio-detail-media {
  background: linear-gradient(180deg, #171d26 0%, #10151c 100%);
  border-right-color: rgba(237, 241, 248, 0.08);
}

html[data-theme="dark"] .portfolio-detail-media .carousel-track-wrap {
  border-color: rgba(237, 241, 248, 0.08);
  background: radial-gradient(circle at 50% 40%, rgba(34,42,55,.92), rgba(22,28,37,.96) 48%, rgba(12,16,22,.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-theme="dark"] .portfolio-image-lightbox-backdrop {
  background: rgba(4, 6, 10, 0.82);
}

html[data-theme="dark"] .portfolio-detail-desc  {
  background: linear-gradient(180deg, rgba(18,22,30,0.96), rgba(14,18,25,0.98));
}

html[data-theme="dark"] .portfolio-modal-controls .ref-slider-dot {
  background: rgba(237, 241, 248, 0.24);
}

html[data-theme="dark"] .pd-close {
  background: rgba(255,255,255,.03);
  border-color: rgba(237, 241, 248, 0.08);
  color: var(--ref-text);
}

html[data-theme="dark"] .pd-close:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(128, 166, 255, 0.28);
  color: var(--ref-accent);
}

html[data-theme="dark"] .portfolio-video-button {
  background: rgba(6, 9, 14, 0.78);
  border-color: rgba(237, 241, 248, 0.16);
}

html[data-theme="dark"] .portfolio-video-volume {
  background: rgba(6, 9, 14, 0.78);
  border-color: rgba(237, 241, 248, 0.16);
}

/* Responsive */
@media (min-width: 721px) and (max-width: 1180px) {
  .portfolio-modal {
    align-items: center;
    padding: 24px;
  }

  .portfolio-modal-box {
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, .92fr);
    width: min(92vw, 940px);
    height: min(640px, calc(100vh - 48px));
    min-height: min(640px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
  }

  .portfolio-detail-media {
    border-right: 1px solid rgba(28, 24, 19, 0.08);
    border-bottom: none;
    padding: 20px 18px 18px;
  }

  .portfolio-detail-media .carousel-track-wrap,
  .portfolio-modal-controls {
    width: min(100%, 440px);
  }

  .portfolio-detail-desc {
    padding: 72px 28px 28px 30px;
    overflow-y: auto;
  }

  .portfolio-detail-desc .project-title {
    max-width: 16ch;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
  }

  .portfolio-detail-desc .project-body {
    max-width: none;
    font-size: clamp(0.98rem, 1.6vw, 1.08rem);
    line-height: 1.75;
  }
}

@media (max-width: 720px) {
  .portfolio-modal {
    align-items: flex-start;
    padding: 0;
  }

  .portfolio-modal-box {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border: none;
    border-radius: 0;
    overflow: hidden;
  }

  .portfolio-detail-media {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 14px 12px;
    overflow: hidden;
  }

  .portfolio-detail-media .carousel-track-wrap {
    width: 100%;
    max-width: none;
    height: min(42vh, 320px);
    min-height: min(42vh, 320px);
    aspect-ratio: auto;
    margin: 0 auto;
  }

  .portfolio-modal-controls {
    width: 100%;
    margin-top: 12px;
  }

  .portfolio-video-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pd-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .portfolio-detail-desc {
    padding: 72px 18px 24px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .portfolio-detail-desc .project-title,
  .portfolio-detail-desc .project-body {
    width: 100%;
    max-width: none;
  }

  .portfolio-detail-desc .project-title {
    font-size: clamp(1.95rem, 8vw, 2.4rem);
    line-height: 1.03;
  }

  .portfolio-detail-desc .project-body {
    font-size: 1.02rem;
    line-height: 1.8;
  }
}

/* Reference-style homepage */
.page-home-reference {
  --ref-bg: #f4f1ea;
  --ref-panel: #f8f6f1;
  --ref-panel-strong: #f1eee8;
  --ref-line: rgba(27, 24, 18, 0.1);
  --ref-text: #1c1813;
  --ref-muted: rgba(28, 24, 19, 0.82);
  --ref-accent: #2149a6;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.8), transparent 26%),
    var(--ref-bg);
  color: var(--ref-text);
  font-family: var(--font-hd);
  font-size: 16px;
  line-height: 1.6;
  transition: background-color .28s ease, color .28s ease;
}

.page-home-reference * {
  box-sizing: border-box;
}

.page-home-reference a {
  color: inherit;
  text-decoration: none;
}

.page-home-reference .ref-shell {
  width: min(75vw, 1440px);
  max-width: calc(100vw - 48px);
  margin: 0 auto;
}

.page-home-reference .ref-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--ref-line);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}

.page-home-reference .ref-header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-home-reference .ref-logo,
.page-home-reference .ref-footer-brand {
  font-family: var(--font-hd);
  font-size: 1.36rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.page-home-reference .ref-logo span,
.page-home-reference .ref-footer-brand span {
  color: var(--ref-accent);
}

.page-home-reference .ref-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ref-muted);
}

.page-home-reference .ref-footer-links a {
  color: inherit;
  transition: color .2s ease, opacity .2s ease;
}

.page-home-reference [data-i18n],
.page-home-reference [data-placeholder-i18n] {
  transition: opacity .12s ease, color .22s ease, background-color .22s ease, border-color .22s ease;
}

.page-home-reference .ref-footer-links a:hover,
.page-home-reference .ref-logo:hover,
.page-home-reference .ref-footer-brand:hover {
  color: var(--ref-accent);
}

.page-home-reference .ref-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.page-home-reference .ref-lang-switch {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  height: 40px;
  padding: 4px;
  width: 108px;
  border: 1px solid var(--ref-line);
  background: rgba(255,255,255,.52);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ref-muted);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.page-home-reference .ref-lang-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  height: calc(100% - 8px);
  border-radius: 10px;
  background: var(--ref-accent);
  box-shadow:
    0 8px 18px rgba(33, 73, 166, 0.22),
    inset 0 1px 0 rgba(255,255,255,.24);
  transform: translateX(0);
  transition:
    transform .32s cubic-bezier(.22, 1, .36, 1),
    background-color .24s ease,
    box-shadow .24s ease;
  z-index: 0;
}

.page-home-reference .ref-lang-switch[data-active-lang="en"]::before {
  transform: translateX(100%);
}

.page-home-reference .ref-lang-switch span {
  display: none;
}

.page-home-reference .ref-lang-btn,
.page-home-reference .ref-theme-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.page-home-reference .ref-lang-btn {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ref-muted);
  border-radius: 10px;
  transition: color .22s ease, opacity .18s ease, transform .22s ease;
}

.page-home-reference .ref-lang-btn:hover,
.page-home-reference .ref-lang-btn.is-active {
  color: var(--ref-accent);
}

.page-home-reference .ref-lang-btn:hover {
  transform: translateY(-1px);
}

.page-home-reference .ref-lang-btn.is-active {
  color: #f7f4ee;
}

html[data-theme="dark"] .page-home-reference .ref-lang-btn.is-active {
  color: #f6f7fb;
}

.page-home-reference.lang-switching .ref-lang-btn:not(.is-active) {
  opacity: .55;
}

.page-home-reference .ref-theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ref-line);
  background: rgba(255,255,255,.4);
  border-radius: 14px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.page-home-reference .ref-theme-toggle:hover,
.page-home-reference .ref-header-cta:hover {
  color: var(--ref-accent);
  border-color: rgba(33, 73, 166, 0.28);
}

.page-home-reference .ref-header-cta:hover,
.page-home-reference .ref-form button:hover {
  background: #e9e4db;
  color: #17130f;
}

.page-home-reference .theme-icon {
  position: absolute;
  transition: opacity .2s ease, transform .2s ease;
}

.page-home-reference .ref-theme-toggle {
  position: relative;
}

.page-home-reference .theme-icon-sun {
  opacity: 0;
  transform: scale(.75);
}

.page-home-reference .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .page-home-reference .theme-icon-sun {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .page-home-reference .theme-icon-moon {
  opacity: 0;
  transform: scale(.75);
}

.page-home-reference .ref-header-cta {
  min-height: 40px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #17130f;
  color: #f8f5ee;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}

.page-home-reference .ref-header-cta::after {
  content: "\2192";
  font-size: 0.95em;
  line-height: 1;
}

.page-home-reference .ref-zoom-badge {
  position: fixed;
  top: 74px;
  right: 28px;
  z-index: 46;
  min-width: 112px;
  height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(28, 24, 19, 0.08);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(20, 18, 14, 0.08);
  color: var(--ref-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  opacity: 0;
  transform: scale(calc(1 / var(--ref-page-zoom, 1)));
  transform-origin: top right;
  transition: opacity .18s ease;
}

.page-home-reference .ref-zoom-badge.is-visible {
  opacity: 1;
}

.page-home-reference .ref-zoom-badge-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ref-accent);
}

.page-home-reference .ref-zoom-badge-value {
  min-width: 52px;
  text-align: right;
}


.page-home-reference .ref-side-rail {
  position: fixed;
  top: 50%;
  right: 26px;
  transform: translateY(-50%) scale(var(--ref-rail-scale, 1));
  transform-origin: right center;
  z-index: 45;
  width: 292px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  min-height: 232px;
  padding: 18px 10px;
}

.page-home-reference .ref-side-rail::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 64px;
  border: 1px solid rgba(28, 24, 19, 0.06);
  border-radius: 20px;
  background: rgba(255,255,255,.46);
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 28px rgba(20, 18, 14, 0.06);
  opacity: 1;
  transform: none;
  transition:
    width .28s cubic-bezier(.22, 1, .36, 1),
    opacity .22s ease,
    border-color .22s ease,
    background-color .22s ease,
    box-shadow .22s ease;
}

.page-home-reference .ref-side-rail:hover::after,
.page-home-reference .ref-side-rail:focus-within::after {
  width: 100%;
  border-color: rgba(28, 24, 19, 0.08);
  background: rgba(255,255,255,.66);
  box-shadow: 0 18px 46px rgba(20, 18, 14, 0.08);
}

.page-home-reference .ref-side-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  min-height: 24px;
  padding: 10px 14px 10px 18px;
  border-radius: 16px;
  color: var(--ref-muted);
  transition: color .2s ease;
}

.page-home-reference .ref-side-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(28, 24, 19, 0.06);
  opacity: 0;
  transform: scale(.98);
  transition:
    opacity .2s ease,
    transform .24s cubic-bezier(.22, 1, .36, 1),
    background-color .2s ease,
    border-color .2s ease;
}

.page-home-reference .ref-side-label {
  display: block;
  max-width: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  color: var(--ref-text);
  opacity: 0;
  transform: translateX(12px);
  overflow: hidden;
  transition:
    max-width .26s cubic-bezier(.22, 1, .36, 1),
    opacity .2s ease,
    transform .24s cubic-bezier(.22, 1, .36, 1),
    color .2s ease;
}

.page-home-reference .ref-side-line {
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: rgba(28, 24, 19, 0.2);
  transition:
    width .24s cubic-bezier(.22, 1, .36, 1),
    background-color .2s ease,
    transform .24s ease;
}

.page-home-reference .ref-side-rail:hover .ref-side-label,
.page-home-reference .ref-side-link:hover .ref-side-label,
.page-home-reference .ref-side-link:focus-visible .ref-side-label {
  max-width: 220px;
  opacity: 1;
  transform: translateX(0);
}

.page-home-reference .ref-side-link:hover .ref-side-line,
.page-home-reference .ref-side-link:focus-visible .ref-side-line {
  width: 22px;
  background: rgba(28, 24, 19, 0.42);
}

.page-home-reference .ref-side-link:hover::before,
.page-home-reference .ref-side-link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.page-home-reference .ref-side-link:hover .ref-side-label,
.page-home-reference .ref-side-link:focus-visible .ref-side-label {
  color: var(--ref-accent);
}

.page-home-reference .ref-side-link.is-active {
  color: var(--ref-accent);
}

.page-home-reference .ref-side-link.is-active .ref-side-line {
  width: 28px;
  background: var(--ref-accent);
  transform: translateX(-2px);
}

.page-home-reference .ref-side-link:focus-visible {
  outline: none;
}

.page-home-reference .ref-side-link:focus-visible .ref-side-line {
  box-shadow: 0 0 0 4px rgba(33, 73, 166, 0.14);
}

.page-home-reference main {
  padding: 26px 0 0;
}

.page-home-reference [data-side-section] {
  scroll-margin-top: 96px;
  min-height: 0;
}

.page-home-reference .ref-product-card[data-side-section] {
  min-height: 0;
}

.page-home-reference .ref-product-stack {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.page-home-reference .ref-product-mobile-stack {
  display: none;
  flex-direction: column;
  gap: 44px;
}

.page-home-reference .ref-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  align-items: stretch;
  background: transparent;
}

.page-home-reference .ref-product-card > * {
  min-width: 0;
  box-sizing: border-box;
}

.page-home-reference .ref-product-card--carousel .ref-visual,
.page-home-reference .ref-product-card--carousel .ref-copy {
  min-height: 0;
}

.page-home-reference .ref-product-card--carousel .ref-slider-viewport,
.page-home-reference .ref-product-card--carousel .ref-copy-slider-viewport {
  width: 100%;
  overflow: clip;
  position: relative;
  contain: layout paint inline-size;
}

.page-home-reference .ref-product-card--carousel .ref-slider-viewport,
.page-home-reference .ref-product-card--carousel .ref-slider-track,
.page-home-reference .ref-product-card--carousel .ref-slider-media-slide {
  height: 100%;
}

.page-home-reference .ref-product-card--carousel .ref-slider-track,
.page-home-reference .ref-product-card--carousel .ref-copy-slider-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  transition: transform 1.8s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.page-home-reference .ref-product-card--carousel .ref-slider-media-slide,
.page-home-reference .ref-product-card--carousel .ref-copy-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
}

.page-home-reference .ref-product-card--carousel .ref-slider-media-slide {
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  isolation: isolate;
}

.page-home-reference .ref-product-card--carousel .ref-slider-media-slide .ref-visual-media {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.page-home-reference .ref-product-card--carousel .ref-slider-viewport {
  aspect-ratio: 1 / 1;
}

.page-home-reference .ref-product-card--carousel .ref-slider-media-slide .ref-visual-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: none;
}

.page-home-reference .ref-copy--carousel {
  padding: 38px 34px 24px 58px;
  justify-content: space-between;
  gap: 24px;
}

.page-home-reference .ref-product-card--carousel .ref-copy-slider-viewport {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  width: 100%;
  margin-left: 0;
}

.page-home-reference .ref-product-card--carousel .ref-copy-slide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  box-sizing: border-box;
  max-width: min(100%, 35rem);
  padding: 0;
  margin: 0 auto;
}

.page-home-reference .ref-product-card--carousel .ref-slider-controls {
  margin-top: auto;
  width: 100%;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 12px;
}

.page-home-reference .ref-slider-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ref-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ref-text);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.page-home-reference .ref-slider-arrow:hover {
  background: rgba(33, 73, 166, 0.08);
  border-color: rgba(33, 73, 166, 0.28);
  color: var(--ref-accent);
  transform: translateY(-1px);
}

.page-home-reference .ref-slider-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home-reference .ref-slider-dot {
  width: 9px;
  height: 9px;
  border: none;
  padding: 0;
  border-radius: 999px;
  background: rgba(28, 24, 19, 0.18);
  cursor: pointer;
  transition: transform .22s ease, background-color .22s ease, opacity .22s ease;
}

.page-home-reference .ref-slider-dot:hover {
  transform: scale(1.08);
}

.page-home-reference .ref-slider-dot.is-active {
  background: var(--ref-accent);
  transform: scale(1.12);
}

.page-home-reference .ref-visual,
.page-home-reference .ref-copy,
.page-home-reference .ref-project-card,
.page-home-reference .ref-contact-grid {
  border: 1px solid var(--ref-line);
}

.page-home-reference .ref-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fbfaf7;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
}

.page-home-reference .ref-visual-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: transparent;
}

.page-home-reference img.ref-visual-media--disabled,
.page-home-reference .ref-project-thumb img.ref-visual-media--disabled {
  display: none !important;
}

.page-home-reference .ref-visual-diagonal {
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: flex;
}

.page-home-reference .ref-visual-diagonal .ref-visual-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  margin: 0;
}

.page-home-reference .ref-visual::after {
  content: none;
}

.page-home-reference .ref-copy {
  background: var(--ref-panel);
  padding: 38px 34px 32px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
}

.page-home-reference .ref-product-card:not(.ref-product-card--carousel) .ref-copy {
  padding: 38px 30px 32px 42px;
}

.page-home-reference #gui,
.page-home-reference #defense-architecture {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
}

.page-home-reference #gui .ref-visual,
.page-home-reference #defense-architecture .ref-visual {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.page-home-reference #gui .ref-copy,
.page-home-reference #defense-architecture .ref-copy {
  width: 100%;
  min-width: 0;
  padding: 38px 30px 32px 42px;
  overflow: hidden;
}

.page-home-reference #gui .ref-copy h2,
.page-home-reference #gui .ref-copy p,
.page-home-reference #gui .ref-copy .ref-copy-list,
.page-home-reference #defense-architecture .ref-copy h2,
.page-home-reference #defense-architecture .ref-copy p,
.page-home-reference #defense-architecture .ref-copy .ref-copy-list {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-home-reference .ref-kicker {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ref-accent);
}

.page-home-reference .ref-product-stack .ref-kicker:not(.ref-kicker--section) {
  display: none;
}

.page-home-reference .ref-copy h2,
.page-home-reference .ref-copy-slide h2,
.page-home-reference .ref-section-head h2 {
  font-family: var(--font-hd);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.02;
  margin-bottom: 18px;
  font-weight: 800;
}

.page-home-reference .ref-title-accent {
  color: var(--ref-accent);
}

.page-home-reference .ref-copy p,
.page-home-reference .ref-contact-info p,
.page-home-reference .ref-project-note {
  max-width: 46ch;
  color: var(--ref-muted);
  font-size: 0.94rem;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.page-home-reference .ref-copy p,
.page-home-reference .ref-copy-list,
.page-home-reference .ref-project-card p,
.page-home-reference .ref-project-note-list,
.page-home-reference .ref-contact-info p,
.page-home-reference .ref-contact-info dd,
.page-home-reference .project-body,
.page-home-reference .ref-form input,
.page-home-reference .ref-form textarea {
  font-family: var(--font-body);
}

.page-home-reference .ref-copy p + p {
  margin-top: 14px;
}

.page-home-reference .ref-copy p + .ref-copy-list,
.page-home-reference .ref-copy-slide p + .ref-copy-list {
  margin-top: 18px;
}

.page-home-reference .ref-copy-list {
  margin: 18px 0 20px;
  padding-left: 18px;
  color: var(--ref-muted);
  font-size: 0.94rem;
  text-align: left;
  width: min(100%, 46ch);
}

.page-home-reference .ref-product-card--carousel .ref-copy p,
.page-home-reference .ref-product-card--carousel .ref-copy .ref-copy-list,
.page-home-reference .ref-product-mobile-stack .ref-copy p,
.page-home-reference .ref-product-mobile-stack .ref-copy .ref-copy-list {
  color: var(--ref-text);
}

.page-home-reference .ref-copy-list li + li {
  margin-top: 8px;
}

.page-home-reference .ref-copy-list + p,
.page-home-reference .ref-copy-list + .ref-copy-list,
.page-home-reference .ref-project-note-list + p,
.page-home-reference .ref-project-note-list + .ref-project-note-list {
  margin-top: 0;
}

.page-home-reference .ref-projects {
  padding: 54px 0 0;
}

.page-home-reference .ref-contact {
  padding: 18px 0 0;
}

.page-home-reference .ref-section-head {
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 24, 19, 0.12);
}

.page-home-reference .ref-section-head h2 {
  max-width: none;
  font-size: 1.26rem;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  text-align: left;
}

.page-home-reference .ref-projects .ref-section-head h2,
.page-home-reference .ref-projects .ref-section-head .ref-title-accent,
.page-home-reference .ref-contact .ref-section-head h2,
.page-home-reference .ref-contact .ref-section-head .ref-title-accent {
  color: var(--ref-text);
}

.page-home-reference .ref-project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.page-home-reference .ref-project-card {
  background: var(--ref-panel);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.page-home-reference .ref-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 73, 166, 0.22);
  box-shadow: 0 12px 28px rgba(20, 18, 14, 0.08);
}

.page-home-reference .ref-project-card:focus-visible,
.page-home-reference .ref-project-card.is-active {
  outline: none;
  border-color: rgba(33, 73, 166, 0.34);
  box-shadow: 0 0 0 3px rgba(33, 73, 166, 0.1);
}

.page-home-reference .ref-project-thumb {
  aspect-ratio: 1 / 0.82;
  margin-bottom: 10px;
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,.92), rgba(224,219,210,.9) 55%, rgba(205,200,193,.85) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home-reference .ref-project-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: transparent;
}

.page-home-reference .ref-project-thumb::after {
  display: none;
}

.page-home-reference .ref-project-card h3 {
  font-family: var(--font-hd);
  font-size: 0.9rem;
  padding: 0 12px;
  margin-bottom: 6px;
  text-align: left;
  color: var(--ref-text);
}

.page-home-reference .ref-project-card p {
  color: var(--ref-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 0 12px 14px;
  text-align: left;
}

.page-home-reference .ref-subsection {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 24, 19, 0.08);
}

.page-home-reference .ref-subsection .ref-title-accent {
  color: var(--ref-text);
}

.page-home-reference .ref-kicker--section {
  margin: 0 0 10px;
  text-align: left;
  font-size: 0.98rem;
  color: var(--ref-text);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.page-home-reference .ref-project-note-list {
  margin: 0 0 20px;
  padding-left: 18px;
  width: 75%;
  max-width: none;
  color: var(--ref-text);
  font-size: 1.04rem;
  line-height: 1.72;
  text-align: left;
}

.page-home-reference .ref-project-note-list li + li {
  margin-top: 8px;
}

.page-home-reference .ref-contact-grid {
  background: transparent;
  border: none;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.page-home-reference .ref-contact-info,
.page-home-reference .ref-form {
  border: 1px solid var(--ref-line);
  background: var(--ref-panel);
  padding: 28px;
}

.page-home-reference .ref-contact-info dl {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.page-home-reference .ref-contact-info dt,
.page-home-reference .ref-form span {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ref-muted);
}

.page-home-reference .ref-form span em {
  font-style: normal;
  color: var(--ref-muted);
  letter-spacing: 0.08em;
}

.page-home-reference .ref-contact-info p {
  color: var(--ref-text);
}

.page-home-reference .ref-contact-info dd {
  font-size: 0.92rem;
  color: var(--ref-text);
}

.page-home-reference .ref-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home-reference .ref-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.page-home-reference .ref-form label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.page-home-reference .ref-form input,
.page-home-reference .ref-form textarea {
  border: 1px solid var(--ref-line);
  background: var(--ref-panel-strong);
  color: var(--ref-text);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  resize: vertical;
}

.page-home-reference .ref-form input[aria-invalid="true"],
.page-home-reference .ref-form textarea[aria-invalid="true"] {
  border-color: rgba(172, 62, 62, 0.45);
}

.page-home-reference .ref-form-field-error,
.page-home-reference .ref-form-status {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.55;
}

.page-home-reference .ref-form-field-error {
  margin-top: 8px;
  color: #9f3a3a;
}

.page-home-reference .ref-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-home-reference .ref-form button {
  align-self: flex-start;
  padding: 12px 18px;
  border: none;
  background: #17130f;
  color: #f8f5ee;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.page-home-reference .ref-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.page-home-reference .ref-form-status {
  color: var(--ref-muted);
}

.page-home-reference .ref-form-status[data-status="success"] {
  color: #2a6b46;
}

.page-home-reference .ref-form-status[data-status="error"] {
  color: #9f3a3a;
}

.page-home-reference .ref-footer {
  margin-top: 56px;
  background: #12100d;
  color: rgba(248,245,238,.88);
}

.page-home-reference .ref-footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-home-reference .ref-footer-links {
  color: rgba(248,245,238,.42);
}

.page-home-reference .ref-footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248,245,238,.3);
}

html[data-theme="dark"] .page-home-reference {
  --ref-bg: #11141a;
  --ref-panel: #171c24;
  --ref-panel-strong: #1e2430;
  --ref-line: rgba(233, 237, 245, 0.1);
  --ref-text: #edf1f8;
  --ref-muted: rgba(237, 241, 248, 0.62);
  --ref-accent: #80a6ff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.08), transparent 26%),
    var(--ref-bg);
}

html[data-theme="dark"] .page-home-reference .ref-product-card {
  background: transparent;
}

html[data-theme="dark"] .page-home-reference .ref-visual,
html[data-theme="dark"] .page-home-reference .ref-copy {
  background-color: var(--ref-panel);
}


html[data-theme="dark"] .page-home-reference .ref-header {
  background: rgba(17, 20, 26, 0.92);
}

html[data-theme="dark"] .page-home-reference .ref-zoom-badge {
  border-color: rgba(237, 241, 248, 0.08);
  background: rgba(20, 24, 32, 0.72);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .page-home-reference .ref-side-line {
  background: rgba(237, 241, 248, 0.24);
}

html[data-theme="dark"] .page-home-reference .ref-side-rail::after {
  border-color: rgba(237, 241, 248, 0.06);
  background: rgba(20, 24, 32, 0.46);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .page-home-reference .ref-side-link:hover .ref-side-line,
html[data-theme="dark"] .page-home-reference .ref-side-link:focus-visible .ref-side-line {
  background: rgba(237, 241, 248, 0.48);
}

html[data-theme="dark"] .page-home-reference .ref-side-link::before {
  background: rgba(237, 241, 248, 0.04);
  border-color: rgba(237, 241, 248, 0.08);
}

html[data-theme="dark"] .page-home-reference .ref-side-link:hover::before,
html[data-theme="dark"] .page-home-reference .ref-side-link:focus-visible::before {
  background: rgba(237, 241, 248, 0.08);
  border-color: rgba(128, 166, 255, 0.18);
}

html[data-theme="dark"] .page-home-reference .ref-lang-switch,
html[data-theme="dark"] .page-home-reference .ref-theme-toggle {
  background: rgba(255,255,255,.03);
}

html[data-theme="dark"] .page-home-reference .ref-header-cta,
html[data-theme="dark"] .page-home-reference .ref-form button {
  background: #edf1f8;
  color: #11141a;
}

html[data-theme="dark"] .page-home-reference .ref-header-cta:hover,
html[data-theme="dark"] .page-home-reference .ref-form button:hover {
  background: #80a6ff;
  color: #0d1117;
}

html[data-theme="dark"] .page-home-reference .ref-footer {
  background: #090b10;
}

@media (max-width: 1440px) {
  .page-home-reference .ref-product-card {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  }

  .page-home-reference .ref-copy {
    padding-left: 46px;
  }

  .page-home-reference #gui .ref-copy,
  .page-home-reference #defense-architecture .ref-copy {
    padding: 36px 26px 30px 38px;
  }

  .page-home-reference .ref-copy--carousel {
    padding-left: 48px;
  }
}

@media (max-width: 1560px), (max-aspect-ratio: 3/2) {
  .page-home-reference #product {
    display: none;
  }

  .page-home-reference .ref-product-mobile-stack {
    display: flex;
  }

  .page-home-reference .ref-product-mobile-stack .ref-product-card {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .page-home-reference .ref-product-mobile-stack .ref-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: clamp(360px, 52vw, 640px);
  }

  .page-home-reference .ref-product-mobile-stack .ref-copy {
    width: 100%;
    padding: 30px 28px;
    align-items: center;
    text-align: center;
  }

  .page-home-reference .ref-product-mobile-stack .ref-copy > * {
    margin-left: auto;
    margin-right: auto;
  }

  .page-home-reference .ref-product-mobile-stack .ref-copy h2,
  .page-home-reference .ref-product-mobile-stack .ref-copy p,
  .page-home-reference .ref-product-mobile-stack .ref-kicker {
    text-align: center;
    max-width: 38rem;
  }


  .page-home-reference #gui,
  .page-home-reference #defense-architecture {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .page-home-reference #gui .ref-visual,
  .page-home-reference #defense-architecture .ref-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: clamp(360px, 52vw, 640px);
  }

  .page-home-reference #gui .ref-copy,
  .page-home-reference #defense-architecture .ref-copy {
    width: 100%;
    padding: 30px 28px;
    align-items: center;
    text-align: center;
  }

  .page-home-reference #gui .ref-copy > *,
  .page-home-reference #defense-architecture .ref-copy > * {
    margin-left: auto;
    margin-right: auto;
  }

  .page-home-reference #gui .ref-copy h2,
  .page-home-reference #gui .ref-copy p,
  .page-home-reference #gui .ref-copy .ref-copy-list,
  .page-home-reference #defense-architecture .ref-copy h2,
  .page-home-reference #defense-architecture .ref-copy p,
  .page-home-reference #defense-architecture .ref-copy .ref-copy-list {
    max-width: 38rem;
    text-align: center;
  }

  .page-home-reference #gui .ref-copy .ref-copy-list,
  .page-home-reference #defense-architecture .ref-copy .ref-copy-list {
    padding-left: 0;
    list-style-position: inside;
  }

  .page-home-reference .ref-project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px), (max-aspect-ratio: 5/4) {
  .page-home-reference .ref-shell {
    width: min(100vw - 32px, 1440px);
    max-width: calc(100vw - 32px);
  }

  .page-home-reference .ref-side-rail {
    display: none;
  }

  .page-home-reference .ref-product-card,
  .page-home-reference .ref-contact-grid,
  .page-home-reference .ref-form-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .page-home-reference .ref-product-card,
  .page-home-reference .ref-product-card[data-side-section] {
    min-height: auto;
  }

  .page-home-reference .ref-visual {
    aspect-ratio: auto;
    height: auto;
    min-height: clamp(320px, 58vw, 720px);
    width: 100%;
  }

  .page-home-reference .ref-visual-diagonal,
  .page-home-reference .ref-visual-side,
  .page-home-reference .ref-copy,
  .page-home-reference .ref-copy--carousel {
    width: 100%;
  }

  .page-home-reference .ref-product-card--carousel .ref-slider-viewport,
  .page-home-reference .ref-product-card--carousel .ref-slider-track,
  .page-home-reference .ref-product-card--carousel .ref-slider-media-slide {
    height: clamp(320px, 58vw, 720px);
  }

  .page-home-reference .ref-product-card--carousel .ref-slider-viewport {
    aspect-ratio: auto;
  }

  .page-home-reference .ref-product-card--carousel .ref-copy-slider-viewport,
  .page-home-reference .ref-product-card--carousel .ref-copy-slider-track {
    height: auto;
  }

  .page-home-reference .ref-copy,
  .page-home-reference .ref-copy--carousel,
  .page-home-reference .ref-product-card:not(.ref-product-card--carousel) .ref-copy,
  .page-home-reference .ref-contact-info,
  .page-home-reference .ref-form {
    padding: 30px 28px;
  }

  .page-home-reference .ref-product-card--carousel .ref-copy-slide {
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .page-home-reference .ref-copy,
  .page-home-reference .ref-copy--carousel,
  .page-home-reference .ref-product-card:not(.ref-product-card--carousel) .ref-copy {
    align-items: center;
    text-align: center;
  }

  .page-home-reference .ref-copy > *,
  .page-home-reference .ref-copy-slide > * {
    margin-left: auto;
    margin-right: auto;
  }

  .page-home-reference .ref-copy p,
  .page-home-reference .ref-copy-slide p,
  .page-home-reference .ref-copy h2,
  .page-home-reference .ref-copy-slide h2,
  .page-home-reference .ref-kicker {
    max-width: 38rem;
    text-align: center;
  }

  .page-home-reference .ref-copy-list {
    width: min(100%, 38rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    text-align: center;
    list-style-position: inside;
  }

  .page-home-reference .ref-project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home-reference .ref-project-card {
    max-width: none;
  }

  .page-home-reference .ref-project-thumb {
    aspect-ratio: 1 / 0.72;
  }
}

@media (max-width: 1024px) {
  .page-home-reference .ref-side-rail {
    display: none;
  }

  .page-home-reference .ref-product-card,
  .page-home-reference .ref-contact-grid {
    grid-template-columns: 1fr;
  }

  .page-home-reference .ref-project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-home-reference .ref-header.is-mobile-hidden {
    transform: translateY(calc(-100% - 4px));
  }

  .page-home-reference .ref-section-head,
  .page-home-reference .ref-subsection,
  .page-home-reference .ref-contact,
  .page-home-reference .ref-projects {
    text-align: center;
  }

  .page-home-reference .ref-section-head h2,
  .page-home-reference .ref-subsection .ref-kicker,
  .page-home-reference .ref-project-note-list,
  .page-home-reference .ref-contact-info,
  .page-home-reference .ref-form,
  .page-home-reference .ref-contact-info dl,
  .page-home-reference .ref-contact-info p,
  .page-home-reference .ref-form .ref-kicker {
    text-align: center;
  }

  .page-home-reference .ref-project-note-list {
    list-style-position: inside;
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .page-home-reference .ref-project-card h3,
  .page-home-reference .ref-project-card p {
    text-align: center;
  }

  .page-home-reference.has-mobile-rail-in-header .ref-header-tools {
    position: relative;
    padding-right: 46px;
    overflow: visible;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    transform-origin: center;
    z-index: 6;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 42px;
    padding: 0;
    align-items: stretch;
    justify-content: center;
    overflow: visible;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail::after {
    top: 0;
    right: 0;
    bottom: 0;
    width: 42px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail::before {
    content: "";
    position: absolute;
    top: 50%;
    left: auto;
    right: 11px;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: rgba(28, 24, 19, 0.58);
    transform: translateY(-50%);
    box-shadow:
      0 -6px 0 rgba(28, 24, 19, 0.28),
      0 6px 0 rgba(28, 24, 19, 0.28);
    z-index: 3;
    transition: opacity .18s ease;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-link {
    display: none;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail.is-touch-open {
    top: calc(100% + 8px);
    right: 0;
    transform: none;
    width: 248px;
    min-width: 248px;
    max-width: 248px;
    min-height: 232px;
    padding: 18px 10px;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail.is-touch-open::after {
    top: 0;
    bottom: 0;
    width: 100%;
    border-radius: 20px;
    background: rgba(250, 246, 238, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(28, 24, 19, 0.12);
    box-shadow: none;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail.is-touch-open::before {
    opacity: 0;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link {
    display: inline-flex;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail.is-touch-open .ref-side-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .page-home-reference .ref-shell {
    width: min(100vw - 20px, 1120px);
    max-width: calc(100vw - 20px);
  }

  .page-home-reference .ref-header-inner,
  .page-home-reference .ref-footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0 16px;
    gap: 12px;
    width: 100%;
  }

  .page-home-reference .ref-header-tools {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    display: grid;
    grid-template-columns: minmax(112px, 1fr) 42px minmax(146px, 1fr) 42px;
    align-items: center;
  }

  .page-home-reference .ref-logo,
  .page-home-reference .ref-footer-brand {
    font-size: 1.06rem;
    letter-spacing: 0.17em;
    text-align: center;
    width: 100%;
  }

  .page-home-reference .ref-footer-inner {
    min-height: auto;
    justify-content: center;
  }

  .page-home-reference .ref-nav,
  .page-home-reference .ref-footer-links {
    gap: 14px;
    flex-wrap: wrap;
  }

  .page-home-reference .ref-copy,
  .page-home-reference .ref-contact-info,
  .page-home-reference .ref-form {
    padding: 22px;
  }

  .page-home-reference .ref-product-card {
    min-height: auto;
    width: 100%;
    max-width: none;
    justify-items: stretch;
  }

  .page-home-reference .ref-visual {
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .page-home-reference .ref-product-card--carousel .ref-slider-viewport,
  .page-home-reference .ref-product-card--carousel .ref-slider-track,
  .page-home-reference .ref-product-card--carousel .ref-slider-media-slide {
    height: 100%;
  }

  .page-home-reference .ref-product-card--carousel .ref-slider-viewport {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .page-home-reference .ref-product-card--carousel .ref-slider-media-slide .ref-visual-media,
  .page-home-reference .ref-visual-diagonal .ref-visual-media,
  .page-home-reference .ref-visual-side .ref-visual-media {
    object-fit: cover;
    object-position: center;
  }

  .page-home-reference .ref-visual,
  .page-home-reference .ref-visual-diagonal,
  .page-home-reference .ref-visual-side,
  .page-home-reference .ref-copy,
  .page-home-reference .ref-copy--carousel {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .page-home-reference .ref-copy,
  .page-home-reference .ref-copy--carousel,
  .page-home-reference .ref-product-card:not(.ref-product-card--carousel) .ref-copy {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-home-reference .ref-project-grid,
  .page-home-reference .ref-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-home-reference .ref-header {
    width: 100%;
  }

  .page-home-reference .ref-shell {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .page-home-reference .ref-header-inner {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin: 0 auto;
  }

  .page-home-reference .ref-header-inner,
  .page-home-reference .ref-footer-inner {
    padding: 12px 0 14px;
  }

  .page-home-reference .ref-footer-inner {
    width: 100%;
    max-width: 100%;
  }

  .page-home-reference .ref-header-tools {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: center;
    padding-right: 0;
    grid-template-columns: minmax(96px, 1fr) 40px minmax(120px, 1fr) 40px;
  }

  .page-home-reference .ref-lang-switch,
  .page-home-reference .ref-theme-switch,
  .page-home-reference .ref-header-cta {
    transform-origin: center;
  }

  .page-home-reference .ref-lang-switch {
    transform: none;
    width: 100%;
    min-width: 0;
  }

  .page-home-reference .ref-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .page-home-reference .ref-header-cta {
    min-height: 40px;
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    border-radius: 14px;
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    white-space: nowrap;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail::after {
    width: 40px;
    border-radius: 14px;
  }

  .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail::before {
    width: 18px;
    right: 11px;
  }

  .page-home-reference .ref-product-stack,
  .page-home-reference .ref-product-card,
  .page-home-reference .ref-projects,
  .page-home-reference .ref-contact,
  .page-home-reference .ref-project-grid,
  .page-home-reference .ref-project-card,
  .page-home-reference .ref-contact-grid,
  .page-home-reference .ref-contact-info,
  .page-home-reference .ref-form,
  .page-home-reference .ref-visual,
  .page-home-reference .ref-visual-diagonal,
  .page-home-reference .ref-visual-side,
  .page-home-reference .ref-copy,
  .page-home-reference .ref-copy--carousel {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  .page-home-reference .ref-product-card > *,
  .page-home-reference .ref-project-card > * {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .page-home-reference .ref-visual,
  .page-home-reference .ref-product-card--carousel .ref-slider-viewport {
    aspect-ratio: 1 / 1;
  }

  .page-home-reference .ref-product-card,
  .page-home-reference .ref-contact-grid,
  .page-home-reference .ref-project-grid {
    grid-template-columns: 1fr !important;
  }

  .page-home-reference .ref-product-card--carousel .ref-slider-track,
  .page-home-reference .ref-product-card--carousel .ref-copy-slider-track {
    min-width: 0;
    max-width: none;
  }

  .page-home-reference .ref-copy,
  .page-home-reference .ref-copy--carousel,
  .page-home-reference .ref-product-card:not(.ref-product-card--carousel) .ref-copy {
    padding: 18px 14px 20px;
  }
}

.page-home-reference.has-touch-nav .ref-side-rail {
  cursor: pointer;
  width: 64px;
  min-width: 64px;
  overflow: hidden;
  transition: width .24s cubic-bezier(.22, 1, .36, 1);
}

.page-home-reference.has-touch-nav .ref-side-link {
  pointer-events: none;
  padding: 10px 12px;
}

.page-home-reference.has-touch-nav:not(.has-mobile-rail-in-header) .ref-side-link {
  display: inline-flex;
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open {
  width: 292px;
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link {
  pointer-events: auto;
}

.page-home-reference.has-touch-nav:not(.has-mobile-rail-in-header) .ref-side-rail.is-touch-open .ref-side-link {
  display: inline-flex;
}

.page-home-reference.has-touch-nav .ref-side-rail::after {
  width: 100%;
}

.page-home-reference.has-touch-nav .ref-side-link::before {
  opacity: 0;
  transform: none;
}

.page-home-reference.has-touch-nav .ref-side-label {
  max-width: 0;
  width: 0;
  opacity: 0;
  transform: translateX(12px);
  overflow: hidden;
}

.page-home-reference.has-touch-nav .ref-side-line {
  width: 22px;
  background: rgba(28, 24, 19, 0.22);
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open::after {
  width: 100%;
  border-color: rgba(28, 24, 19, 0.08);
  background: rgba(255,255,255,.66);
  box-shadow: 0 18px 46px rgba(20, 18, 14, 0.08);
}

.page-home-reference.has-touch-nav .ref-side-link {
  width: 100%;
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-label {
  max-width: 220px;
  width: auto;
  opacity: 1;
  transform: translateX(0);
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link::before {
  opacity: 1;
  transform: scale(1);
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link.is-active::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(33, 73, 166, 0.08);
  border-color: rgba(33, 73, 166, 0.16);
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link.is-active .ref-side-line {
  width: 28px;
  background: var(--ref-accent);
  transform: translateX(-2px);
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link:hover .ref-side-line,
.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link:focus-visible .ref-side-line {
  width: 22px;
}

.page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link.is-active .ref-side-label {
  color: var(--ref-accent);
}

html[data-theme="dark"] .page-home-reference.has-touch-nav .ref-side-line {
  background: rgba(237, 241, 248, 0.24);
}

html[data-theme="dark"] .page-home-reference.has-touch-nav .ref-side-rail::after {
  border-color: rgba(237, 241, 248, 0.06);
  background: rgba(20, 24, 32, 0.46);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .page-home-reference.has-touch-nav .ref-side-rail.is-touch-open::after {
  border-color: rgba(237, 241, 248, 0.08);
  background: rgba(17, 21, 29, 0.82);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link::before {
  background: rgba(237, 241, 248, 0.04);
  border-color: rgba(237, 241, 248, 0.08);
}

html[data-theme="dark"] .page-home-reference.has-touch-nav .ref-side-rail.is-touch-open .ref-side-link.is-active::before {
  background: rgba(128, 166, 255, 0.14);
  border-color: rgba(128, 166, 255, 0.22);
}

html[data-theme="dark"] .page-home-reference.has-touch-nav .ref-side-label {
  color: #eef2fa;
}

@media (max-width: 720px) {
  html[data-theme="dark"] .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail::after,
  html[data-theme="dark"] .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail.is-touch-open::after {
    box-shadow: none;
  }

  html[data-theme="dark"] .page-home-reference.has-mobile-rail-in-header.has-touch-nav .ref-side-rail::before {
    background: rgba(237, 241, 248, 0.72);
    box-shadow:
      0 7px 0 rgba(237, 241, 248, 0.3),
      0 14px 0 rgba(237, 241, 248, 0.3);
  }
}

@media (max-width: 1180px), (max-aspect-ratio: 5/4) {
  .page-home-reference .ref-side-rail {
    display: flex !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .page-home-reference .ref-copy,
  .page-home-reference .ref-copy--carousel,
  .page-home-reference .ref-product-card:not(.ref-product-card--carousel) .ref-copy,
  .page-home-reference .ref-product-mobile-stack .ref-copy,
  .page-home-reference #gui .ref-copy,
  .page-home-reference #defense-architecture .ref-copy {
    align-items: flex-start;
    text-align: left;
    padding: 40px 38px 36px;
  }

  .page-home-reference .ref-copy > *,
  .page-home-reference .ref-copy-slide > *,
  .page-home-reference .ref-product-mobile-stack .ref-copy > *,
  .page-home-reference #gui .ref-copy > *,
  .page-home-reference #defense-architecture .ref-copy > * {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
  }

  .page-home-reference .ref-copy h2,
  .page-home-reference .ref-copy-slide h2,
  .page-home-reference .ref-product-mobile-stack .ref-copy h2,
  .page-home-reference #gui .ref-copy h2,
  .page-home-reference #defense-architecture .ref-copy h2 {
    max-width: none;
    text-align: left;
    font-size: clamp(2rem, 3.6vw, 2.7rem);
    line-height: 1.03;
  }

  .page-home-reference .ref-copy p,
  .page-home-reference .ref-copy-slide p,
  .page-home-reference .ref-kicker,
  .page-home-reference .ref-product-mobile-stack .ref-copy p,
  .page-home-reference .ref-product-mobile-stack .ref-kicker,
  .page-home-reference #gui .ref-copy p,
  .page-home-reference #defense-architecture .ref-copy p {
    max-width: none;
    text-align: left;
  }

  .page-home-reference .ref-copy p,
  .page-home-reference .ref-copy-slide p,
  .page-home-reference .ref-product-mobile-stack .ref-copy p,
  .page-home-reference #gui .ref-copy p,
  .page-home-reference #defense-architecture .ref-copy p {
    font-size: 1.08rem;
    line-height: 1.78;
  }

  .page-home-reference .ref-copy-list,
  .page-home-reference #gui .ref-copy .ref-copy-list,
  .page-home-reference #defense-architecture .ref-copy .ref-copy-list {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25em;
    text-align: left;
    list-style-position: outside;
  }

  .page-home-reference .ref-project-note-list {
    max-width: none;
    text-align: left;
    list-style-position: outside;
    padding-left: 1.25em;
    margin-left: 0;
    margin-right: 0;
  }
}
