/*
Theme Name: YourTech v3
Theme URI: https://yourtech.solutions
Author: Jonathan Frontela
Author URI: https://yourtech.solutions
Description: Dark editorial design system for YourTech — IT Security & Managed Services. Snellman v2 architecture adapted for cybersecurity branding.
Version: 3.0.3
License: Proprietary
Text Domain: yourtech
*/

/* ========================================================================
   0. CSS CUSTOM PROPERTIES
   ======================================================================== */

:root {
  /* Brand */
  --accent: #00d4aa;
  --accent-light: #00f0c0;
  --accent-rgb: 0,212,170;
  --accent-dark: #00b894;
  --gold: #00d4aa;
  --indigo: #6366f1;

  /* Backgrounds — 4-tier system */
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #161616;
  --bg-elevated: #1c1c1c;

  /* Text */
  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --text-inverse: #0a0a0a;

  /* Borders */
  --border: #222222;
  --border-light: #333333;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Layout */
  --container: 1320px;
  --container-narrow: 900px;
  --section-pad: clamp(80px, 10vw, 140px);
  --gap: clamp(16px, 2vw, 24px);

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;

  /* Cursor */
  --cursor-size: 8px;
  --cursor-ring-size: 40px;
}

/* ========================================================================
   1. RESET & BASE
   ======================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button, input, textarea, select {
  font-family: inherit;
  cursor: none;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ========================================================================
   2. GRAIN OVERLAY
   ======================================================================== */

.grain-overlay {
  display: none; /* removed: read as an ugly gradient/texture on scroll */
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================================================
   3. SCROLL PROGRESS BAR
   ======================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 10001;
  transition: none;
}

/* ========================================================================
   4. CUSTOM CURSOR
   ======================================================================== */

.cursor-dot {
  position: fixed;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), opacity 0.15s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  border: 1.5px solid rgba(0,212,170,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s, opacity 0.3s;
}

.cursor-label {
  position: fixed;
  pointer-events: none;
  z-index: 10003;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translate(-50%, 30px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  white-space: nowrap;
}

.cursor-label.visible {
  opacity: 1;
  transform: translate(-50%, 24px);
}

body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0.5;
}

body.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: rgba(0,212,170,0.6);
}

/* ========================================================================
   5. PAGE LOADER
   ======================================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__text {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text);
}

.page-loader__subtitle {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-top: 0.75rem;
  opacity: 0.7;
}

.page-loader__bar {
  width: 120px;
  height: 1px;
  background: var(--border);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.page-loader__bar::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: loader-slide 1.2s var(--ease) infinite;
}

@keyframes loader-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ========================================================================
   6. NAVIGATION
   ======================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-nav.scrolled {
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 40px;
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 92px;
  width: auto;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text);
}

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

.nav-center a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--text);
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 10px 24px;
  border: none;
  border-radius: 0;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color 0.3s, color 0.3s;
  border-radius: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1002;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ========================================================================
   7. MOBILE MENU (Full-screen)
   ======================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: color 0.3s;
  line-height: 1.3;
}

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

.mobile-menu__contact {
  margin-top: 2rem;
  text-align: center;
}

.mobile-menu__contact a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.mobile-menu__social {
  display: flex;
  gap: 24px;
  margin-top: 1.5rem;
}

.mobile-menu__social a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ========================================================================
   8. LAYOUT UTILITIES
   ======================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--surface {
  background: var(--bg); /* flattened to solid background */
}

.section--card {
  background: var(--bg); /* flattened to solid background */
}

/* ========================================================================
   9. PAGE HERO
   ======================================================================== */

.page-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(120px, 16vh, 190px); /* clear the scroll indicator below the content */
  position: relative;
  overflow: hidden;
}

.page-hero__glow {
  display: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.page-hero__title em {
  font-style: italic;
  color: var(--accent);
}

.page-hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
}

.page-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-light);
  position: relative;
  overflow: hidden;
}

.page-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-indicator 2s var(--ease) infinite;
}

@keyframes scroll-indicator {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ========================================================================
   10. BUTTONS
   ======================================================================== */

.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 16px 36px;
  border: none;
  border-radius: 0;
  transition: background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-fill:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-fill:hover::after {
  opacity: 1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  padding: 16px 36px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-magnetic {
  position: relative;
}

/* ========================================================================
   11. EYEBROW / SECTION HEADERS
   ======================================================================== */

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ========================================================================
   12. STATS BAR
   ======================================================================== */

.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-item {
  background: var(--bg-surface);
  text-align: center;
  padding: 20px;
}

.stat-value {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ========================================================================
   13. SERVICES GRID
   ======================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 60px;
}

.service-card {
  background: var(--bg-card);
  padding: clamp(30px, 3vw, 50px);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  background: var(--bg-elevated);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  opacity: 0.6;
}

.service-card__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-card__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.service-card__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  opacity: 0.8;
}

/* ========================================================================
   14. ABOUT / STORY (Asymmetric 2-column)
   ======================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  margin-top: 60px;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.about-feature::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========================================================================
   15. MARQUEE
   ======================================================================== */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 30s linear infinite;
}

.marquee__item {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--text);
  padding: 0 30px;
  letter-spacing: 0.02em;
}

.marquee__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================================
   16. CTA SECTION
   ======================================================================== */

.cta-section {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__glow {
  display: none;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.cta-title em {
  font-style: italic;
  color: var(--accent);
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================================
   17. BLOG GRID
   ======================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 60px;
}

.blog-card {
  background: var(--bg-card);
  padding: clamp(24px, 2.5vw, 40px);
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease);
  position: relative;
}

.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.blog-card:hover {
  background: var(--bg-elevated);
}

.blog-card:hover::after {
  transform: scaleX(1);
}

.blog-card__date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.blog-card__title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
  flex-grow: 1;
}

.blog-card__excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.blog-card__link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: letter-spacing 0.3s;
}

.blog-card:hover .blog-card__link {
  letter-spacing: 0.25em;
}

/* ========================================================================
   18. CONTACT SECTION
   ======================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  margin-top: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail__icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.contact-detail__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-detail__value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-detail__value a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

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

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

.form-group label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color 0.3s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  align-self: flex-start;
}

.form-status {
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: 0;
  display: none;
}

.form-status--success {
  display: block;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.3);
  color: var(--accent);
}

.form-status--error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}

.form-response-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========================================================================
   19. SERVICE AREA
   ======================================================================== */

.area-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  margin-top: 60px;
  align-items: start;
}

.area-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.area-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) saturate(0.3) brightness(0.8);
}

.area-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.area-city {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s;
}

.area-city:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================================================
   20. FOOTER
   ======================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(30px, 4vw, 60px);
}

.footer-brand__logo {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col__title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-item a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

/* ========================================================================
   21. REVEAL ANIMATIONS
   ======================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ========================================================================
   22. YOURTECH-SPECIFIC: Terminal & Badges
   ======================================================================== */

.terminal,
.yt-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  font-family: var(--mono);
}

.terminal__bar,
.yt-terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.terminal__dot,
.yt-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red, .yt-terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow, .yt-terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green, .yt-terminal__dot--green { background: #28c840; }

.terminal__title,
.yt-terminal__title {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  letter-spacing: 0.05em;
}

.terminal__body,
.yt-terminal__body {
  padding: 20px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.yt-terminal__body .prompt {
  color: var(--accent);
  font-weight: 700;
}

.yt-terminal__body .flag {
  color: var(--accent);
}

.yt-terminal__body .value {
  color: var(--text);
}

.yt-terminal-text {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.yt-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 6px 14px;
}

.yt-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ========================================================================
   23. COUNTER ANIMATION
   ======================================================================== */

.counter {
  font-variant-numeric: tabular-nums;
}

/* ========================================================================
   24. LIGHT THEME
   ======================================================================== */

[data-theme="light"] {
  --bg: #fafafa;
  --bg-surface: #f0f0f0;
  --bg-card: #ffffff;
  --bg-elevated: #f5f5f5;
  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-inverse: #fafafa;
  --border: #e0e0e0;
  --border-light: #cccccc;
  --accent: #00b894;
  --accent-light: #00d4aa;
  --accent-rgb: 0,184,148;
  --gold: #00b894;
}

[data-theme="light"] .grain-overlay {
  opacity: 0.015;
}

[data-theme="light"] .page-loader {
  background: var(--bg);
}

[data-theme="light"] .site-nav.scrolled {
  background: rgba(250,250,250,0.92);
}

/* The brand logo is white line-art (built for the dark default theme), so it
   vanished on the light theme's near-white nav and footer. Invert the pure-white
   artwork to crisp black for light mode. Transparency is preserved. */
[data-theme="light"] .nav-logo,
[data-theme="light"] .footer-brand__logo,
[data-theme="light"] .nfc-card__avatar img {
  filter: invert(1);
}

[data-theme="light"] .cursor-dot {
  mix-blend-mode: normal;
}

[data-theme="light"] .cursor-ring {
  border-color: rgba(0,184,148,0.35);
}

[data-theme="light"] .area-map iframe {
  filter: saturate(0.3) brightness(0.95);
}

[data-theme="light"] body {
  cursor: auto;
}

[data-theme="light"] a,
[data-theme="light"] button,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  cursor: auto;
}

[data-theme="light"] .cursor-dot,
[data-theme="light"] .cursor-ring,
[data-theme="light"] .cursor-label {
  display: none;
}

/* ========================================================================
   25. RESPONSIVE
   ======================================================================== */

@media (max-width: 1024px) {
  .nav-center {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 16px 20px;
  }

  .site-nav.scrolled {
    padding: 10px 20px;
  }

  .nav-logo {
    height: 64px;
  }

  .nav-cta {
    display: none;
  }

  .page-hero {
    min-height: 90vh;
    padding-bottom: 60px;
  }

  .page-hero__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .page-hero__actions {
    flex-direction: column;
  }

  .page-hero__actions .btn-fill,
  .page-hero__actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .marquee__item {
    font-size: 1.5rem;
    padding: 0 16px;
  }

  /* Hide custom cursor on touch devices */
  .cursor-dot,
  .cursor-ring,
  .cursor-label {
    display: none;
  }

  body {
    cursor: auto;
  }

  a, button, input, textarea, select {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .page-hero__eyebrow {
    font-size: 9px;
  }

  .page-hero__scroll {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-value {
    font-size: 1.8rem;
  }
}

/* ========================================================================
   26. WORDPRESS CORE OVERRIDES
   ======================================================================== */

.wp-block-separator {
  border-color: var(--border);
}

.wp-block-quote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* ========================================================================
   27. PARALLAX HELPER
   ======================================================================== */

.parallax-slow {
  will-change: transform;
}

/* ========================================================================
   28. PRINT STYLES
   ======================================================================== */

@media print {
  .grain-overlay,
  .scroll-progress,
  .cursor-dot,
  .cursor-ring,
  .cursor-label,
  .page-loader,
  .site-nav,
  .mobile-menu,
  .theme-toggle,
  .page-hero__scroll {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ========================================================================
   CHAT WIDGET
   ======================================================================== */
body.yt-chat-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Full-screen overlay behind chat */
#yt-chat-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9997;
}

#yt-chat-overlay.yt-chat-overlay--active {
  display: block;
}

#yt-chat-demo {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: var(--sans);
}

/* FAB Button */
#yt-chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
  transition: all 0.3s ease;
}

#yt-chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 212, 170, 0.6);
}

/* Chat Window */
#yt-chat-win {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 400px;
  height: 560px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/* Header */
#yt-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-bottom: 1px solid var(--border);
}

/* Role switcher tabs */
#yt-chat-roles {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #0d1117;
  padding: 0;
}

.yt-role-btn {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.yt-role-btn:hover {
  color: var(--text);
  background: rgba(0, 212, 170, 0.05);
}

.yt-role-btn--active {
  color: #00d4aa;
  border-bottom-color: #00d4aa;
  background: rgba(0, 212, 170, 0.08);
}

#yt-chat-head-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#yt-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: var(--mono);
  flex-shrink: 0;
}

#yt-chat-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

#yt-chat-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

#yt-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 4px var(--accent);
}

#yt-chat-minimize {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

#yt-chat-minimize:hover {
  color: #fff;
}

/* Message Area */
#yt-chat-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#yt-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

/* Messages */
.yt-msg {
  display: flex;
  gap: 0.5rem;
  animation: ytMsgIn 0.3s ease;
}

.yt-msg--user {
  flex-direction: row-reverse;
}

.yt-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.6rem;
  font-family: var(--mono);
  flex-shrink: 0;
  margin-top: 2px;
}

.yt-msg-content {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.yt-msg--user .yt-msg-content {
  align-items: flex-end;
}

.yt-msg-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-wrap: break-word;
}

.yt-msg--bot .yt-msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-top-left-radius: 4px;
}

.yt-msg--user .yt-msg-bubble {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  border-top-right-radius: 4px;
}

.yt-msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding: 0 0.25rem;
  font-family: var(--mono);
}

/* Typing Indicator */
.yt-msg-typing {
  display: flex;
  gap: 5px;
  padding: 0.75rem 1rem;
  align-items: center;
}

.yt-msg-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: ytTypingDot 1.4s infinite;
}

.yt-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.yt-msg-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Suggestions */
#yt-chat-suggestions {
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.yt-sugg-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.yt-sugg-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Input Area */
#yt-chat-input-wrap {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  gap: 0.5rem;
}

#yt-chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s ease;
}

#yt-chat-input:focus {
  border-color: var(--accent);
}

#yt-chat-input::placeholder {
  color: var(--text-muted);
}

#yt-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

#yt-chat-send:hover {
  background: var(--accent-light);
}

/* Footer */
#yt-chat-footer {
  padding: 0.4rem 1rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  background: var(--bg);
}

#yt-chat-footer a {
  color: var(--accent);
  text-decoration: none;
}

#yt-chat-footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes ytMsgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ytTypingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Chat Widget — Small phones */
@media (max-width: 480px) {
  #yt-chat-win {
    width: 100vw;
    height: calc(100dvh - 3rem);
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 12px 12px 0 0;
  }

  #yt-chat-fab {
    width: 50px;
    height: 50px;
  }

  #yt-chat-demo {
    bottom: 0.75rem;
  }
}

/* ========================================================================
   BLOG MONTH GROUPING
   ======================================================================== */

.blog-month {
  margin-bottom: 60px;
}

.blog-month:first-of-type {
  margin-top: 40px;
}

.blog-month__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ========================================================================
   BLOG PAGINATION
   ======================================================================== */

.blog-pagination {
  margin-top: 60px;
  text-align: center;
}

.blog-pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination li {
  display: inline-block;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.3s;
}

.blog-pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.blog-pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ========================================================================
   NFC CONTACT CARD
   ======================================================================== */

.nfc-hero {
  background: var(--bg);
  min-height: 100vh;
}

.nfc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.nfc-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.nfc-card__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  overflow: hidden;
}

.nfc-card__avatar img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nfc-card__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.nfc-card__title {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 0.15rem;
  font-family: var(--mono);
}

.nfc-card__company {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.nfc-card__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nfc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--sans);
  transition: border-color 0.3s, color 0.3s;
}

.nfc-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nfc-btn__icon {
  font-size: 1.3rem;
}

.nfc-card__save {
  margin-bottom: 1.5rem;
}

.nfc-card__details {
  margin-bottom: 1.5rem;
}

.nfc-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.nfc-detail:last-child {
  border-bottom: none;
}

.nfc-detail__label {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-right: 1rem;
}

.nfc-detail__value {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  text-align: right;
}

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

.nfc-card__services {
  margin-bottom: 1.5rem;
}

.nfc-services__title {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.nfc-services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nfc-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--sans);
}

.nfc-tag--highlight {
  border-color: var(--accent);
  color: var(--accent);
}

.nfc-card__community {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.nfc-community__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  text-align: center;
}

.nfc-card__quote {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.nfc-card__quote p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 0.25rem;
}

.nfc-card__quote cite {
  font-size: 0.75rem;
  color: var(--accent);
  font-style: normal;
  font-family: var(--mono);
}

.nfc-card__credentials {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ========================================================================
   POST CONTENT (single post / default template)
   ======================================================================== */

.post-content {
  max-width: var(--container-narrow);
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.2em;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.post-content ul,
.post-content ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5em;
  font-style: italic;
  color: var(--text-secondary);
  margin: 1.5em 0;
}

.post-content code {
  font-family: var(--mono);
  background: var(--bg-card);
  padding: 2px 6px;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* ========================================================================
   RESPONSIVE — SUBPAGE ADDITIONS
   ======================================================================== */

@media (max-width: 768px) {
  .blog-month__title {
    font-size: 1.1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nfc-card {
    padding: 1.5rem 1rem;
  }
}

/* ── Live Attacks nav link (added by YourTech Live Attack Map) ── */
.nav-live { display: inline-flex; align-items: center; gap: 6px; }
.nav-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ef4444; box-shadow: 0 0 8px #ef4444;
    animation: navLivePulse 1.6s infinite;
}
@keyframes navLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.65); }
}
