/* ==========================================================================
   SidRatnam.com — Digital Headquarters Homepage (v5)
   Ultra-readable Plus Jakarta Sans + Inter typography, full-bleed hero,
   elevated obsidian-glass ABT & Research sections, 3x2 Portfolio Grid,
   Website Templates carousel, Upcoming Schedule cards, Digital HQ Closing CTA.
   Scoped to body.hq-page / .hq-main so #intro-overlay stays 100% untouched.
   ========================================================================== */

:root {
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hq-bg-0: #080808;
  --hq-bg-1: #0d0d10;
  --hq-surface: #111216;
  --hq-surface-hover: #17181e;
  --hq-border: rgba(255, 255, 255, 0.09);
  --hq-border-strong: rgba(255, 255, 255, 0.18);
  --hq-border-gold: rgba(255, 210, 0, 0.48);
  --hq-text-0: #f5f5f0;
  --hq-text-1: #d6d5cf;
  --hq-text-2: #a8a8a3;
  --hq-gold: #FFD200;
  --hq-gold-hover: #ffe047;
  --hq-cyan: #4ad8e0;
}

body.hq-page {
  background-color: var(--hq-bg-0);
  color: var(--hq-text-0);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hq-main {
  background-color: var(--hq-bg-0);
  color: var(--hq-text-0);
  font-family: var(--font-sans);
}

.hq-main h1,
.hq-main h2,
.hq-main h3,
.hq-main h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hq-main p {
  font-family: var(--font-sans);
  color: var(--hq-text-1);
}

.hq-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.hq-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Shared Buttons ── */
.hq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.hq-btn--primary {
  background-color: var(--hq-gold);
  color: #080808;
  border: 1px solid var(--hq-gold);
  font-weight: 600;
}

.hq-btn--primary:hover,
.hq-btn--primary:focus-visible {
  background-color: var(--hq-gold-hover);
  border-color: var(--hq-gold-hover);
  color: #080808;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 210, 0, 0.22);
}

.hq-btn--secondary {
  background-color: rgba(8, 8, 10, 0.62);
  color: var(--hq-text-0);
  border: 1px solid rgba(245, 245, 240, 0.28);
  backdrop-filter: blur(6px);
}

.hq-btn--secondary:hover,
.hq-btn--secondary:focus-visible {
  border-color: rgba(255, 210, 0, 0.72);
  background-color: rgba(255, 210, 0, 0.09);
  color: var(--hq-text-0);
  transform: translateY(-1px);
}

/* ==========================================================================
   1. MAIN DIGITAL HEADQUARTERS HERO (#hq-hero)
   Full-bleed architectural headquarters across desktop, laptop, tablet, and mobile.
   ========================================================================== */
.hq-hero {
  position: relative;
  min-height: clamp(580px, 76vh, 720px);
  padding-top: 82px;
  display: flex;
  align-items: center;
  background-color: var(--hq-bg-0);
  overflow: hidden;
}

section.hq-hero > .hq-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--hq-bg-0);
}

.hq-hero__media picture,
.hq-hero__img {
  width: 100%;
  height: 100%;
  display: block;
}

.hq-hero__img {
  width: 100%;
  height: 100%;
  margin-left: 0;
  object-fit: cover;
  object-position: 60% 24%;
}

/* Editorial scrim: shows rich dark architectural depth on left without dead black wall */
section.hq-hero > .hq-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 10, 0.72) 0%,
      rgba(8, 8, 10, 0.48) 28%,
      rgba(8, 8, 10, 0.20) 48%,
      rgba(8, 8, 10, 0.03) 68%,
      rgba(8, 8, 10, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 8, 10, 0.48) 0%,
      rgba(8, 8, 10, 0.04) 18%,
      rgba(8, 8, 10, 0) 78%,
      #080808 100%
    );
}

section.hq-hero > .hq-hero__lights {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hq-hero__light {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  will-change: opacity;
  animation: hq-light-cycle 28s ease-in-out infinite;
}

.hq-hero__light--cyan {
  background:
    radial-gradient(ellipse 26% 22% at 68% 20%, rgba(74, 216, 224, 0.56) 0%, rgba(74, 216, 224, 0.16) 44%, transparent 72%),
    radial-gradient(ellipse 22% 36% at 80% 56%, rgba(74, 216, 224, 0.36) 0%, transparent 70%);
  animation-delay: 0s;
}

.hq-hero__light--blue {
  background:
    radial-gradient(ellipse 26% 22% at 68% 20%, rgba(43, 108, 176, 0.58) 0%, rgba(43, 108, 176, 0.18) 45%, transparent 72%),
    radial-gradient(ellipse 22% 36% at 80% 56%, rgba(43, 108, 176, 0.42) 0%, transparent 70%);
  animation-delay: -7s;
}

.hq-hero__light--silver {
  background:
    radial-gradient(ellipse 26% 22% at 68% 20%, rgba(203, 213, 225, 0.46) 0%, rgba(203, 213, 225, 0.14) 44%, transparent 72%),
    radial-gradient(ellipse 22% 36% at 80% 56%, rgba(203, 213, 225, 0.30) 0%, transparent 70%);
  animation-delay: -14s;
}

.hq-hero__light--gold {
  background:
    radial-gradient(ellipse 26% 22% at 68% 20%, rgba(255, 210, 0, 0.40) 0%, rgba(255, 210, 0, 0.12) 44%, transparent 72%),
    radial-gradient(ellipse 22% 36% at 80% 56%, rgba(255, 210, 0, 0.28) 0%, transparent 70%);
  animation-delay: -21s;
}

@keyframes hq-light-cycle {
  0%   { opacity: 0; }
  12%  { opacity: 0.22; }
  25%  { opacity: 0.24; }
  37%  { opacity: 0; }
  100% { opacity: 0; }
}

section.hq-hero > .hq-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 52px 0 58px;
}

.hq-hero__content {
  max-width: 580px;
}

.hq-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d6d5cf;
  margin-bottom: 18px;
}

.hq-hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1.5px;
  background-color: var(--hq-gold);
  flex-shrink: 0;
}

.hq-hero__title {
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.78);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(2.15rem, 3.6vw, 3.35rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--hq-text-0);
}

.hq-hero__title-line {
  display: block;
}

.hq-hero__title-line--accent {
  color: var(--hq-gold);
}

.hq-hero__lead {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.84);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: #e2e1db;
  max-width: 47ch;
  margin-bottom: 30px;
}

.hq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   2. COMPACT BRAND PRINCIPLES BAND (#principles)
   ========================================================================== */
.hq-principles {
  background-color: #0b0b0e;
  border-top: 1px solid var(--hq-border);
  border-bottom: 1px solid var(--hq-border);
}

.hq-principles__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.hq-principles__heading {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--hq-text-0);
  line-height: 1.2;
}

.hq-principles__words {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hq-gold);
}

.hq-principles__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hq-principles__note {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--hq-text-2);
}

.hq-principles__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hq-text-0);
  padding: 7px 12px;
  border: 1px solid var(--hq-border-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.hq-principles__toggle:hover,
.hq-principles__toggle:focus-visible {
  border-color: var(--hq-border-gold);
  color: var(--hq-gold);
  background: rgba(255, 210, 0, 0.06);
}

.hq-principles__chev {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hq-principles__toggle[aria-expanded=true] .hq-principles__chev {
  transform: rotate(180deg);
}

.hq-principles__drawer {
  border-top: 1px solid var(--hq-border);
  padding: 28px 0 32px;
}

.hq-principles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hq-principles__item {
  background: linear-gradient(165deg, rgba(22, 23, 29, 0.94), rgba(14, 14, 18, 0.98));
  border: 1px solid var(--hq-border);
  border-top: 2px solid rgba(255, 210, 0, 0.28);
  border-radius: 6px;
  padding: 22px 24px;
}

.hq-principles__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hq-gold);
  margin-bottom: 6px;
}

.hq-principles__item h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--hq-text-0);
  margin-bottom: 10px;
}

.hq-principles__item p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--hq-text-1);
}

.hq-principles__footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.hq-inline-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hq-gold);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.hq-inline-link:hover,
.hq-inline-link:focus-visible {
  opacity: 0.88;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   3. HOMEPAGE DEPARTMENT DIRECTORY (#departments)
   ========================================================================== */
.hq-departments {
  padding: 36px 0 22px;
  background-color: var(--hq-bg-0);
}

.hq-dept-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hq-dept-card {
  background: linear-gradient(165deg, rgba(22, 23, 29, 0.94), rgba(14, 14, 18, 0.98));
  border: 1px solid var(--hq-border);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease;
}

.hq-dept-card:hover,
.hq-dept-card:focus-visible {
  border-color: var(--hq-border-gold);
  background: linear-gradient(165deg, rgba(28, 30, 38, 0.96), rgba(17, 18, 23, 0.98));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.hq-dept-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hq-dept-card__icon {
  width: 22px;
  height: 22px;
  color: var(--hq-gold);
  flex-shrink: 0;
}

.hq-dept-card__arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--hq-text-2);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hq-dept-card:hover .hq-dept-card__arrow,
.hq-dept-card:focus-visible .hq-dept-card__arrow {
  color: var(--hq-gold);
  transform: translateX(3px);
}

.hq-dept-card__title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--hq-text-0);
  line-height: 1.3;
  margin-bottom: 5px;
}

.hq-dept-card__sub {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--hq-text-2);
}

/* ==========================================================================
   4. ELEVATED IN FOCUS: THE ABT FRAMEWORK SHOWCASE (#in-focus)
   ========================================================================== */
.hq-focus {
  padding: 6px 0 56px;
  background-color: var(--hq-bg-0);
}

.hq-focus__bar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 0, 0.3);
  border-left: 3px solid var(--hq-gold);
  border-radius: 8px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  background-color: #0e0f13;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: border-color 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease;
}

.hq-focus__bar:hover {
  border-color: rgba(255, 210, 0, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.56);
}

.hq-focus__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hq-focus__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 50%;
  opacity: 0.36;
  display: block;
}

.hq-focus__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 16, 0.94) 0%, rgba(11, 12, 16, 0.84) 55%, rgba(11, 12, 16, 0.56) 100%),
    radial-gradient(ellipse 45% 90% at 88% 50%, rgba(74, 216, 224, 0.14), transparent 70%);
}

.hq-focus__main,
.hq-focus__actions {
  position: relative;
  z-index: 2;
}

.hq-focus__main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex: 1 1 600px;
}

.hq-focus__emblems {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hq-focus__logo {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 210, 0, 0.26);
}

.hq-focus__seal {
  width: 34px;
  height: 34px;
  display: block;
}

.hq-focus__copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 360px;
}

.hq-focus__headline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hq-focus__pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-color: var(--hq-gold);
  color: #080808;
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.hq-focus__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  color: var(--hq-text-0);
  flex-shrink: 0;
}

.hq-focus__patent {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hq-cyan);
}

.hq-focus__desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: #dcdbd5;
  max-width: 66ch;
}

.hq-focus__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hq-focus__primary-link::after {
  content: "";
  position: absolute;
  inset: -40px -40px;
  z-index: 1;
}

/* Make the stretched link truly cover the entire .hq-focus__bar */
.hq-focus__bar .hq-focus__primary-link {
  position: static;
}

.hq-focus__bar .hq-focus__primary-link::after {
  inset: 0;
}

.hq-focus__paper {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6d5cf;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 12, 0.65);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hq-focus__paper:hover,
.hq-focus__paper:focus-visible {
  color: var(--hq-gold);
  border-color: var(--hq-gold);
  background: rgba(255, 210, 0, 0.08);
}

/* ==========================================================================
   SHARED SECTION HEADER & CAROUSEL CONTROLS
   ========================================================================== */
.hq-section {
  padding: 68px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hq-section--tinted {
  background: linear-gradient(180deg, #0b0c10 0%, #090a0d 100%);
}

.hq-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hq-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hq-gold);
  margin-bottom: 8px;
}

.hq-sec-title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.1vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--hq-text-0);
  margin-bottom: 8px;
}

.hq-sec-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--hq-text-2);
  max-width: 62ch;
}

.hq-sec-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hq-carousel-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hq-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--hq-border-strong);
  background: var(--hq-surface);
  color: var(--hq-text-0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.hq-carousel-btn:hover:not(:disabled),
.hq-carousel-btn:focus-visible:not(:disabled) {
  border-color: var(--hq-border-gold);
  background: rgba(255, 210, 0, 0.1);
  color: var(--hq-gold);
}

.hq-carousel-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

/* ==========================================================================
   5. AUTO-ADVANCING CAROUSEL & 6. PORTFOLIO 3x2 GRID & WEBSITE TEMPLATES
   ========================================================================== */
.hq-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 8px;
}

.hq-carousel-track::-webkit-scrollbar {
  display: none;
}

.hq-carousel-track:focus-visible {
  outline: 2px solid var(--hq-gold);
  outline-offset: 6px;
  border-radius: 6px;
}

.hq-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hq-card {
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  background: linear-gradient(165deg, rgba(22, 23, 29, 0.94), rgba(13, 14, 18, 0.98));
  border: 1px solid var(--hq-border);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s ease, transform 0.2s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.hq-card:hover {
  border-color: var(--hq-border-gold);
  background: linear-gradient(165deg, rgba(28, 30, 38, 0.96), rgba(17, 18, 23, 0.98));
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

.hq-card__media {
  position: relative;
  pointer-events: none;
  aspect-ratio: 16 / 10;
  background-color: #14151a;
  overflow: hidden;
  border-bottom: 1px solid var(--hq-border);
}

.hq-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.hq-card__img--top {
  object-position: top center;
}

.hq-card:hover .hq-card__img {
  transform: scale(1.03);
}

.hq-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.hq-card__hook {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hq-gold);
  line-height: 1.4;
}

.hq-card__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hq-gold);
}

.hq-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--hq-text-0);
}

.hq-card__desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--hq-text-1);
  flex: 1;
}

/* Semantic WCAG stretched link: entire card is clickable */
.hq-card__link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hq-text-0);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hq-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hq-card:hover .hq-card__link,
.hq-card__link:hover,
.hq-card__link:focus-visible {
  color: var(--hq-gold);
}

.hq-carousel-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hq-carousel-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hq-text-2);
}

.hq-sublinks {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: baseline;
  gap: 10px 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--hq-text-2);
}

.hq-sublinks__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hq-text-2);
  flex-shrink: 0;
}

.hq-sublinks a {
  color: var(--hq-text-1);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hq-sublinks a:hover,
.hq-sublinks a:focus-visible {
  color: var(--hq-gold);
  border-color: var(--hq-gold);
}

/* ==========================================================================
   7. RESEARCH, POLICY & UPCOMING PUBLICATION SCHEDULE (#research-publications)
   Elevated institutional obsidian-glass editorial cards + Upcoming roadmap grid
   ========================================================================== */
.hq-section--research {
  position: relative;
  background:
    radial-gradient(ellipse 65% 45% at 15% 10%, rgba(255, 210, 0, 0.055), transparent 65%),
    radial-gradient(ellipse 55% 40% at 88% 22%, rgba(74, 216, 224, 0.05), transparent 65%),
    linear-gradient(180deg, #0b0c10 0%, #08080b 100%);
}

.hq-pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hq-pub-card {
  position: relative;
  cursor: pointer;
  background: linear-gradient(165deg, rgba(24, 26, 33, 0.94), rgba(13, 14, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(255, 210, 0, 0.42);
  border-radius: 8px;
  padding: 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease;
}

.hq-pub-card:hover {
  border-color: var(--hq-border-gold);
  background: linear-gradient(165deg, rgba(30, 32, 41, 0.96), rgba(16, 17, 23, 0.98));
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.hq-pub-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hq-pub-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 210, 0, 0.08);
  border: 1px solid rgba(255, 210, 0, 0.28);
  color: var(--hq-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hq-pub-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
}

.hq-pub-card__num,
.hq-pub-card__date {
  white-space: nowrap;
}

.hq-pub-card__num {
  color: var(--hq-gold);
  font-weight: 500;
}

.hq-pub-card__date {
  color: var(--hq-text-2);
}

.hq-pub-card__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.24rem;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--hq-text-0);
}

.hq-pub-card__desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--hq-text-1);
  flex: 1;
}

.hq-pub-card__link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hq-text-0);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hq-pub-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hq-pub-card:hover .hq-pub-card__link,
.hq-pub-card__link:hover,
.hq-pub-card__link:focus-visible {
  color: var(--hq-gold);
}

/* Upcoming Publication Schedule Sub-block */
.hq-upcoming {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hq-upcoming__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.hq-upcoming__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.025em;
  color: var(--hq-text-0);
  margin-bottom: 6px;
}

.hq-upcoming__sub {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--hq-text-2);
  max-width: 66ch;
}

.hq-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hq-upcoming-card {
  position: relative;
  cursor: pointer;
  background: linear-gradient(165deg, rgba(20, 22, 29, 0.9), rgba(12, 13, 17, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-top: 1px solid rgba(74, 216, 224, 0.34);
  border-radius: 6px;
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.22s ease, transform 0.2s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.hq-upcoming-card:hover {
  border-color: rgba(255, 210, 0, 0.48);
  background: linear-gradient(165deg, rgba(26, 28, 37, 0.95), rgba(15, 16, 22, 0.98));
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

.hq-upcoming-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hq-upcoming-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--hq-text-2);
}

.hq-upcoming-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--hq-cyan);
  background: rgba(74, 216, 224, 0.1);
  border: 1px solid rgba(74, 216, 224, 0.34);
}

.hq-upcoming-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.hq-upcoming-card__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.03rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--hq-text-0);
  flex: 1;
}

.hq-upcoming-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hq-upcoming-card__date {
  color: var(--hq-gold);
}

.hq-upcoming-card__link {
  color: var(--hq-text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hq-upcoming-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hq-upcoming-card:hover .hq-upcoming-card__link,
.hq-upcoming-card__link:focus-visible {
  color: var(--hq-gold);
}

.hq-patent-strip {
  margin-top: 28px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(22, 23, 30, 0.92), rgba(12, 13, 17, 0.96));
  border: 1px solid rgba(255, 210, 0, 0.24);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.hq-patent-strip__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 480px;
}

.hq-patent-strip__seal {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.hq-patent-strip__text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--hq-text-1);
}

.hq-patent-strip__code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hq-gold);
  letter-spacing: 0.06em;
}

.hq-patent-strip__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   8. FINAL INSTITUTIONAL CLOSING CTA BAND (#contact)
   Anchored with Digital HQ dark-granite briefing room backdrop
   ========================================================================== */
.hq-action {
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
  border-top: 1px solid rgba(255, 210, 0, 0.22);
  background-color: #08080a;
}

section.hq-action > .hq-action__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hq-action__bg picture,
.hq-action__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}

section.hq-action > .hq-action__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 10, 0.90) 0%, rgba(7, 7, 10, 0.74) 48%, rgba(7, 7, 10, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.76) 0%, rgba(7, 7, 10, 0.14) 24%, rgba(7, 7, 10, 0.22) 78%, rgba(7, 7, 10, 0.94) 100%);
}

section.hq-action > .hq-container {
  position: relative;
  z-index: 2;
}

.hq-action__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
}

.hq-action__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(2.05rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hq-text-0);
  margin-bottom: 14px;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.78);
}

.hq-action__copy {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: #dcdbd5;
  max-width: 56ch;
}

.hq-action__copy a {
  color: var(--hq-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hq-action__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hq-action__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hq-action__email {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--hq-text-1);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hq-action__email:hover,
.hq-action__email:focus-visible {
  color: var(--hq-gold);
  border-color: var(--hq-gold);
}

.hq-action__meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8c8c3;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .hq-dept-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hq-carousel-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

  .hq-portfolio-grid,
  .hq-upcoming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hq-pub-grid {
    grid-template-columns: 1fr;
  }

  .hq-principles__grid {
    grid-template-columns: 1fr;
  }

  .hq-action__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hq-container {
    padding: 0 20px;
  }

  /* Art-directed portrait Digital HQ hero on mobile & tablet:
     shows the complete ceiling ring, server bay, bonsai, world map & desk uncropped above,
     with crisp copy overlapping the lower granite floor reflection */
  .hq-hero {
    min-height: clamp(540px, 80svh, 660px);
    padding-top: 64px;
    display: flex;
    align-items: flex-end;
  }

  section.hq-hero > .hq-hero__media {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 0;
  }

  .hq-hero__img {
    width: 100%;
    height: 100%;
    margin-left: 0;
    object-fit: cover;
    object-position: center 31%;
  }

  section.hq-hero > .hq-hero__scrim {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 1;
    background:
      linear-gradient(
        180deg,
        rgba(8, 8, 8, 0.48) 0%,
        rgba(8, 8, 8, 0.04) 16%,
        rgba(8, 8, 8, 0.02) 44%,
        rgba(8, 8, 8, 0.52) 60%,
        rgba(8, 8, 8, 0.84) 78%,
        rgba(8, 8, 8, 0.96) 92%,
        #080808 100%
      );
  }

  section.hq-hero > .hq-hero__lights {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 2;
  }

  section.hq-hero > .hq-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 286px 0 32px;
    background: transparent;
  }

  .hq-hero__content {
    max-width: 100%;
  }

  .hq-hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
  }

  .hq-hero__title {
    font-size: clamp(1.62rem, 6.6vw, 2.5rem);
    line-height: 1.07;
    margin-bottom: 12px;
  }

  .hq-hero__lead {
    font-size: 0.95rem;
    line-height: 1.56;
    margin-bottom: 20px;
    max-width: 38ch;
  }

  .hq-dept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hq-section {
    padding: 54px 0;
  }

  .hq-focus__bar {
    padding: 22px 20px;
  }
}

@media (max-width: 600px) {
  .hq-dept-grid,
  .hq-portfolio-grid,
  .hq-upcoming-grid {
    grid-template-columns: 1fr;
  }

  .hq-carousel-track {
    grid-auto-columns: 86%;
    gap: 14px;
  }

  .hq-hero__actions .hq-btn,
  .hq-action__buttons .hq-btn {
    width: 100%;
  }

  .hq-principles__bar {
    align-items: flex-start;
  }
}

/* ==========================================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hq-hero__light {
    animation: none !important;
    opacity: 0 !important;
  }

  .hq-hero__light--cyan {
    opacity: 0.14 !important;
  }

  .hq-carousel-track {
    scroll-behavior: auto;
  }

  .hq-card,
  .hq-card__img,
  .hq-dept-card,
  .hq-pub-card,
  .hq-upcoming-card,
  .hq-focus__bar,
  .hq-btn {
    transition: none !important;
    transform: none !important;
  }
}

@media (min-width: 1100px) {
  .hq-hero__title span { white-space: nowrap; }
}
