/* ============================================
   Ariso Technology — Company Website
   Design System & Global Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-primary: #080B09;
  --bg-secondary: #0E1210;
  --bg-card: #131714;
  --bg-card-hover: #181D19;
  --text-primary: #E2E0DD;
  --text-secondary: #9A9590;
  --text-muted: #7A756F;
  --accent: #7BAF8B;
  --accent-dim: rgba(123, 175, 139, 0.1);
  --accent-hover: #6A9E7A;
  --accent-glow: rgba(123, 175, 139, 0.12);
  --border: #1E2420;
  --border-light: #272D28;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-width: 1100px;
  --content-width: 720px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-dramatic: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset & Base --- */
::selection {
  background-color: rgba(123, 175, 139, 0.4);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: rgba(123, 175, 139, 0.4);
  color: var(--text-primary);
}


*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  filter: url(#noise);
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

.noise-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Ambient glow removed — noise + grid provide sufficient depth */
.ambient-glow {
  display: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

.metallic-text {
  color: var(--text-primary);
}

.accent-text {
  color: var(--accent);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-dramatic), transform 0.9s var(--ease-dramatic);
}

.fade-up--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children — pronounced cascade */
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.24s; }
.fade-up:nth-child(4) { transition-delay: 0.36s; }
.fade-up:nth-child(5) { transition-delay: 0.48s; }
.fade-up:nth-child(6) { transition-delay: 0.60s; }

/* --- Page-load sequential reveal (no scroll trigger) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealIn 0.7s var(--ease-dramatic) forwards;
}

.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }
.reveal:nth-child(5) { animation-delay: 0.5s; }
.reveal:nth-child(6) { animation-delay: 0.6s; }
.reveal:nth-child(7) { animation-delay: 0.7s; }

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 9, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-expo);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__linkedin {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav__linkedin:hover {
  color: var(--accent);
}

.nav__linkedin svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 11, 9, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  .nav__links--open {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.hero__heading {
  margin-bottom: 28px;
  line-height: 1.1;
}

.hero__line {
  display: block;
}

.hero__line--1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s var(--ease-dramatic) 0.2s forwards;
}

.hero__line--2 {
  display: block;
  margin-top: 0.2em;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s var(--ease-dramatic) 0.55s forwards;
}

.hero__drama {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subheading {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 600px;
  width: fit-content;
  margin: 0 auto 48px;
  line-height: 1.65;
  font-weight: 400;
  animation: heroReveal 1s var(--ease-dramatic) 0.85s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroReveal 1s var(--ease-dramatic) 1.05s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-expo);
  border: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--loading {
  position: relative;
  color: transparent !important;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-primary);
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123, 175, 139, 0.2), 0 0 0 1px rgba(123, 175, 139, 0.1);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(123, 175, 139, 0.08);
}

.btn--small {
  padding: 12px 20px;
  font-size: 0.85rem;
  min-height: 44px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s var(--ease-expo);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- Section Styling --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-title {
  margin-bottom: 20px;
}

.section-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: var(--content-width);
}

/* --- About Section --- */
.about__content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about__content--centered {
  text-align: center;
}

.about__text {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1.05rem;
}

/* --- Vision Section (elevated) --- */
.vision {
  position: relative;
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(123, 175, 139, 0.07), transparent);
  pointer-events: none;
}

.vision__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.vision__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.vision__label::before,
.vision__label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.vision__statement {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}

@media (max-width: 768px) {
  .vision {
    padding: 80px 0;
  }
}

.vision-statement {
  border-left: 3px solid var(--accent);
  padding: 24px 32px;
  margin: 32px 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 500;
}

/* --- Building Section --- */
.building {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.building__content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.building__text {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1.05rem;
}

.section-title__sub {
  display: block;
  font-size: 0.75em;
  color: var(--text-secondary);
}

/* --- quantOS Product Card --- */
.quantos-card {
  position: relative;
  overflow: hidden;
}

.quantos-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.quantos-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.quantos-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.quantos-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.quantos-card__name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.quantos-card__desc {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 20px;
}

.quantos-card__philosophy {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* --- quantOS Intro Section --- */
.quantos-intro {
  border-top: 1px solid var(--border);
}

.quantos-intro__content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.quantos-intro__text {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.quantos-intro__details {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quantos-intro__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quantos-intro__detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.quantos-intro__detail-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.quantos-intro__detail-value--status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quantos-intro__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Founder Section --- */
.founder {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

/* --- quantOS Hero Variants --- */
.quantos-hero-status {
  justify-content: center;
  margin-bottom: 24px;
}

.quantos-hero__tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.quantos-hero__tagline .hero__drama {
  font-size: inherit;
}

/* --- Subscribe Section (Homepage) --- */
.subscribe-section {
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.subscribe-section--alt {
  background-color: var(--bg-secondary);
}

.subscribe-section__title {
  width: fit-content;
  margin-inline: auto;
}

.subscribe-section__text {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.subscribe-section__form {
  max-width: 480px;
  margin: 0 auto;
}

/* --- Forms --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form__input,
.form__textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.3s var(--ease-expo), box-shadow 0.3s var(--ease-expo);
  width: 100%;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 4px 16px rgba(0, 255, 136, 0.06);
}

.form__input:invalid:not(:placeholder-shown),
.form__textarea:invalid:not(:placeholder-shown) {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

/* Subscribe form inline */
.subscribe-form {
  display: flex;
  gap: 8px;
}

.subscribe-form .form__input {
  flex: 1;
}

@media (max-width: 480px) {
  .subscribe-form {
    flex-direction: column;
  }
}

/* --- Subscribe Link Cards (Contact Page) --- */
.subscribe-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-link-card {
  display: block;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s var(--ease-expo);
}

.subscribe-link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.subscribe-link-card__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.subscribe-link-card__desc {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Blog Listing --- */
.blog-header {
  padding: 100px 0 40px;
  text-align: center;
}

.blog-header__subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* Coming soon state */
.coming-soon {
  text-align: center;
  padding: 80px 0;
}

.coming-soon__icon {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.coming-soon__icon svg {
  width: 48px;
  height: 48px;
}

.coming-soon__heading {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.coming-soon__text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Post cards grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.35s var(--ease-expo);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.post-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.post-card__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-card__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-card__preview {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card__read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.post-card__read-more:hover {
  color: var(--accent-hover);
}

/* Blog sidebar */
.blog-sidebar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.blog-sidebar__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.blog-sidebar__subscribe {
  flex: 1;
  min-width: 280px;
}

.blog-sidebar__subscribe h3 {
  margin-bottom: 12px;
}

.blog-sidebar__subscribe p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* --- Contact Page --- */
.contact-header {
  padding: 100px 0 40px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 80px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* Connect section */
.connect {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.connect__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 500;
}

.connect__link svg {
  width: 24px;
  height: 24px;
}

/* --- Post Template --- */
.post-header {
  padding: 100px 0 40px;
  text-align: center;
}

.post-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.post-header__back:hover {
  color: var(--accent);
}

.post-header__title {
  margin-bottom: 20px;
}

.post-header__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-header__meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.post-header__tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* Post body */
.post-body {
  padding: 40px 0 60px;
}

.post-body .content-width {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.post-body h2 {
  color: var(--text-primary);
  margin: 48px 0 16px;
  font-size: 1.6rem;
}

.post-body h3 {
  color: var(--text-primary);
  margin: 36px 0 12px;
  font-size: 1.25rem;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.post-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-body ul,
.post-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 8px; }

.post-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Author card */
.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 40px auto;
  max-width: var(--content-width);
}

.author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--bg-card));
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.author-card__info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-card__info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.author-card__link {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Post subscribe CTA */
.post-subscribe {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.post-subscribe__title {
  margin-bottom: 12px;
}

.post-subscribe__text {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.post-subscribe .subscribe-form {
  max-width: 480px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  width: fit-content;
  margin-inline: auto;
}

.footer__subscribe {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer__subscribe a {
  font-weight: 600;
}

/* --- Cursor Pulse Effect — touch-off only, muted --- */
.cursor-pulse {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: scale(0.01);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.07) 0%, transparent 70%);
  opacity: 0;
  will-change: transform, opacity;
  animation: pulse-ring 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.01);
    opacity: 0;
  }
  10% {
    opacity: 0.65;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* --- Thank You Page --- */
.thank-you {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thank-you__text {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 1.125rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Expect List (Contact) --- */
.expect-list {
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 2;
  padding-left: 20px;
  list-style: disc;
}

/* --- Connect Section --- */
.connect__text {
  color: var(--text-secondary);
  margin-top: 8px;
}

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

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
  color: var(--bg-primary);
}

/* --- quantOS Intro Responsive --- */
@media (max-width: 768px) {
  .quantos-intro__details {
    gap: 24px;
  }

  .quantos-intro__ctas {
    flex-direction: column;
  }

  .quantos-intro__ctas .btn {
    text-align: center;
    justify-content: center;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__line--1,
  .hero__line--2,
  .hero__subheading,
  .hero__ctas {
    opacity: 1;
    transform: none;
  }

  .metallic-text,
  .hero__drama {
    animation: none;
  }

  .ambient-glow {
    display: none;
  }
}

/* ============================================
   quantOS Page — Split Layout & Sections
   ============================================ */

/* Split layout grid */
.split-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 0;
  min-height: 60vh;
  align-items: center;
}

.split-layout--reverse {
  grid-template-columns: 45fr 55fr;
}

.split-layout__text {
  padding: 80px 60px 80px 0;
}

.split-layout--reverse .split-layout__text {
  padding: 80px 0 80px 60px;
}

.split-layout__visual {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, black 18%, black 82%, transparent),
    linear-gradient(to right, transparent, black 18%, black 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, black 18%, black 82%, transparent),
    linear-gradient(to right, transparent, black 18%, black 82%, transparent);
  mask-composite: intersect;
}

/* Sketch images — white strokes on transparent, native for dark theme */
.sketch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}

.sketch-img--hero {
  object-position: center 40%;
}

/* quantOS sections */
.quantos-section {
  border-top: 1px solid var(--border);
}

.quantos-section--alt {
  background-color: var(--bg-secondary);
}

/* Divider rule */
.quantos-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 16px 0 32px;
  opacity: 0.6;
}

/* Quote typography */
.quantos-quote {
  border: none;
  padding: 0;
  margin: 0;
}

.quantos-quote__line {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.1em;
}

.quantos-quote__line--accent {
  color: var(--accent);
}

/* Tighter quote size for sections with more text */
.quantos-section--alt .quantos-quote__line {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.quantos-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 24px;
  font-weight: 400;
}

/* quantOS hero — full-width centered with sketch atmosphere */
.quantos-hero {
  position: relative;
  overflow: hidden;
}

.quantos-hero .container {
  position: relative;
  z-index: 1;
}

.quantos-hero .hero__heading {
  margin-bottom: 20px;
}

.quantos-hero .hero__line--2 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.quantos-hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
}

.quantos-hero__bg img {
  width: 100%;
  max-width: 900px;
  height: auto;
  opacity: 0.08;
  filter: blur(1px);
  margin-top: -15%;
}

/* Subscribe — asymmetric accent */
.subscribe-section--quantos {
  position: relative;
}

.subscribe-section--quantos::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  opacity: 0.4;
  border-radius: 2px;
}

/* ─── quantOS responsive ─── */
@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-layout--reverse {
    grid-template-columns: 1fr;
  }

  .split-layout__text {
    padding: 60px 0;
  }

  .split-layout--reverse .split-layout__text {
    padding: 60px 0;
  }

  .split-layout__visual {
    height: 50vw;
    min-height: 260px;
  }

  .split-layout--reverse .split-layout__visual {
    order: -1;
  }


  .quantos-quote__line {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}
